@ai-matrx/records-ui 0.86.0 → 0.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.88.0 (2026-09-26 — type-to-edit; needs @ai-matrx/design-system 0.43.0)
4
+
5
+ - **Type to edit (both grids).** Select a cell and type: the cell opens ITS OWN Field editor
6
+ holding what was typed — a letter, an IME composition, an Option/AltGr character, dictation —
7
+ through design-system 0.43's type catcher and `spreadsheet.onEditRequest`. A column a person
8
+ types into opens with the typed text replacing the value (numbers only when it is a number); a
9
+ picker column opens as usual; a worked-out column or a row this person may not write swallows
10
+ nothing. The editor opens with the caret at the end. `GridEditing.begin(address, seed?)`.
11
+ - **"Who changed this?" moved off the bare `h`** (it clashed with typing): Option-Shift-H
12
+ (`asksWhoChanged`, read off `code`), the cell's own badge, and the merged grid's right-click
13
+ Cell section ("Who changed this? ⌥⇧H").
14
+ - Test doubles: `store-rule-gaps.test.tsx` answers `field_options` (the column settings read an
15
+ existing choice column's words for its colours) — 0.87.0's CI publish failed on it.
16
+
17
+ ## Unreleased
18
+
19
+ - **Fix: the one toolbar row never overlaps and never spills** (lane V25-UI-FIXES; VERIFIER-25 on
20
+ production at 1600 px: with Settings open, the purple *Settings* button and the grid's *Manual*
21
+ sort chip overprinted; with a personal look pending the row ran to 1663 px in 1532 px, *New record*
22
+ cut to "Ne", *Layout* past the edge). The layout's slot in `TablePage`'s row is its own sideways
23
+ scroller, so what a layout draws there can never spill over the buttons after it; every piece
24
+ after the slot keeps its width. The row MEASURES its pieces (`useToolbarFit`, `toolbarFit.ts`) and,
25
+ when they do not fit, folds the least it must — first your look's three doors into one
26
+ **Your look** menu (same doors, same words), then the inline layout chooser into the table's menu
27
+ (where a phone already has it) — from widths measured unfolded, so it never flips back and forth.
28
+ Pure `toolbarFold` and the layout pair guard `overlappingPieces` are exported for walks. Suites:
29
+ `the-toolbar-row-never-overlaps.test.tsx` RED 5/5 on 0.87.0 bytes → GREEN 5/5;
30
+ `toolbarFit.test.tsx` 7/7.
31
+
32
+ ## 0.87.0 (2026-09-25 — one-grid merge step 5 + tranches 6a / 6b; needs @ai-matrx/design-system 0.42.0)
33
+
34
+ - **THE MERGED GRID, behind a temporary switch (`RecordsUiHost.grid?: "classic" | "merged"`,
35
+ default `classic`).** Arman and the custom-data lead ruled that the older /data grid's behaviour
36
+ becomes THE table grid in this package. `merged` lays its control layer over `Grid`'s data paths
37
+ (`gridControls.tsx`, pure builders in `gridMenus.ts`):
38
+ - **Column header menu** (`MatrxColumnDef.headerMenu`): Rename column, Column settings…, Insert
39
+ column left… / right…, Use as row label (`title_field`), Hide column, Delete column… — each
40
+ through the store's own doors (`field_update`, `field_declare` via `FieldEditor`,
41
+ `field_retire`, the table record's `title_field`); a person who may not change the table's
42
+ shape sees each item with the reason, never a dead one.
43
+ - **Right-click** (`contextMenu.sections`): Cell (copy, paste, clear, who changed this, show rows
44
+ with this value), Row (open record, row history, copy row, insert row above/below on a
45
+ hand-ordered view, duplicate, delete), Column (sort A→Z / Z→A / clear, plus the header items),
46
+ Table (new record, add column); a selected range gets copy / clear / fill down. Every write is
47
+ the grid's own versioned cell write.
48
+ - **Column order and hidden columns are kept on the view's look** (`presentation.columnOrder` —
49
+ new, sparse like `widths` — and `presentation.hiddenFields`), written through
50
+ `onPresentationChange` (the table page's `view_look_set`), so they survive a reload.
51
+ - A column inserted left/right of another lands beside it in the view's order.
52
+ - **Merge step 5 (pure refactor):** `Grid.tsx`'s drawing parts moved to `gridColumns.tsx`
53
+ (`columnForField`, `workedOutFrom`, `reorderItems` still exported from `Grid`).
54
+ - **A reader can copy (both grids):** readers get the spreadsheet cursor with `readOnly` — range
55
+ select, select all, Cmd-C — and every write gesture says why it cannot run.
56
+ - **A choice wears the colour its column keeps (both grids, tranche 6f early):** the Field's own
57
+ `display_format.options.choices` colours (what the /data-v2 Sheet's seam writes) now paint choice
58
+ chips (design-system `CELL_TINT_CLASS`) and the colour-by lookup; a word with no kept colour
59
+ still reads plain / hashes as before (`choiceLooks.ts`).
60
+ - **Column settings edit an existing column's look** (`FieldEditor`): per-choice colours
61
+ (`ChoiceColorsEditor`) and "Shows as" for plain columns (`ShowsAsPicker`, the design-system
62
+ format registry), both sent as the Field's `display_format` in the same `field_update`;
63
+ `formatForField` now honours a plain column's `display_format` (`shownAsOf`).
64
+ - **Fix:** `Grid` called a hook after its refusal early-return, so a refused table read threw
65
+ "Rendered fewer hooks than expected" instead of drawing the store's sentence (exposed when
66
+ `useTable` moved to `read_records_by_ids`). The clinic testkit models that door.
67
+ - **Guard:** `the-package-imports-no-app.test.tsx` — no source file imports `next/*`, `@/…`,
68
+ supabase or redux.
69
+
70
+ ## 0.86.1
71
+
72
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
73
+ `git diff npm/records-ui/v0.86.0..npm/records-ui/v0.86.1 -- apps/shared/records-ui`).
74
+ No source changes intended and no consumer action required.
75
+
3
76
  ## 0.86.0 (2026-09-25 — version and notes set by PUBLISHER-5; needs @ai-matrx/design-system 0.40.0)
4
77
 
5
78
  - **A text kept as a file is edited WHOLE (lane BIG-VALUES-WRITE, owner 2026-09-25: "Make sure that
@@ -3814,3 +3887,4 @@ First release: `Grid`, `RecordForm`, `FieldEditor`, `TableSettings`,
3814
3887
  `CustomFieldsSection`, plus the `RecordsUiProvider` rights port and the shared
3815
3888
  refusal surface. Every one of them is proven headlessly against the rehearsal
3816
3889
  branch by `pnpm test`.
3890
+