Skip to content

Commit 07a8558

Browse files
Copilothotlong
andcommitted
fix: adjust i18n modified text, update ROADMAP.md with P2.11 milestone
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent d42111b commit 07a8558

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

ROADMAP.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,30 @@ All 313 `@object-ui/fields` tests pass.
14001400
| View config live preview dependency chain breakage | `generateViewSchema` hardcodes non-grid defaults; per-view-type integration tests required (see P1.8.1) |
14011401
| Config property type gaps (`NamedListView` missing fields) | Add first-class properties to `@object-ui/types`; use Zod schema to validate at runtime |
14021402

1403+
### P2.11 Airtable UX Polish: Table Selection, i18n, Layout, and Density ✅
1404+
1405+
> **Status:** Complete — Comprehensive UX polish for Airtable-level table experience.
1406+
1407+
**i18n Compliance:**
1408+
- [x] All hardcoded UI strings in `data-table.tsx` replaced with `t()` calls (12+ strings)
1409+
- [x] All hardcoded UI strings in `ListView.tsx` replaced with `t()` calls (6+ strings)
1410+
- [x] New i18n keys added to `en.ts` and `zh.ts` locale files (table/list sections)
1411+
- [x] Default fallback translations ensure standalone usage works without I18nProvider
1412+
1413+
**Row Selection Auto-Enable:**
1414+
- [x] `ObjectGrid` auto-enables `selectionMode: 'multiple'` when `batchActions`/`bulkActions` are defined
1415+
- [x] No explicit `selectable` config needed for bulk action workflows
1416+
1417+
**Column Width Optimization:**
1418+
- [x] Selection checkbox and row number columns reduced from `w-12` (48px) to `w-10` (40px)
1419+
- [x] Frozen column offset calculations updated to match new widths
1420+
1421+
**Border/Cell Contrast:**
1422+
- [x] Table row borders increased from `border-border/50` to `border-border` for better scanability
1423+
1424+
**Pagination Density:**
1425+
- [x] Filler row `colSpan` now correctly includes `showRowNumbers` count
1426+
14031427
---
14041428

14051429
## 📚 Reference

packages/components/src/renderers/complex/data-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const TABLE_DEFAULT_TRANSLATIONS: Record<string, string> = {
7979
'table.addRecord': 'Add record',
8080
'table.open': 'Open',
8181
'table.search': 'Search...',
82-
'table.modified': '{{count}} row(s) modified',
82+
'table.modified': '{{count}} row modified',
8383
'table.selected': '{{count}} selected',
8484
'common.actions': 'Actions',
8585
};

packages/i18n/src/locales/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const en = {
8181
addRecord: 'Add record',
8282
open: 'Open',
8383
search: 'Search...',
84-
modified: '{{count}} row(s) modified',
84+
modified: '{{count}} row modified',
8585
selected: '{{count}} selected',
8686
},
8787
grid: {

0 commit comments

Comments
 (0)