@ai-matrx/records-ui 0.93.6 → 0.93.8

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,26 @@
1
1
  # Changelog — @ai-matrx/records-ui
2
2
 
3
+ ## 0.93.8
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/records-ui/v0.93.7..npm/records-ui/v0.93.8 -- apps/shared/records-ui`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.93.7
10
+ ### Unreleased
11
+ ### lane CHOICE-COLUMN-EDIT (2026-09-27): an existing choice column's choices, one row each; a choice cell asks before it adds
12
+
13
+ - **Field editor, existing choice column:** the "type the choices one per line" box is replaced by `ChoiceListEditor` — the column's live choices read through `fieldOptions` in `metadata.option_position` order, each one's words edited in place, Add a choice, Remove, Move up / down. Save sends `options` as the ordered list (`{id, words}` for a choice that was there, plain words for a new one) in the panel's one `fieldUpdate` call, and nothing when the list is unchanged. An empty list or the same words twice is said beside Save and not sent. A column being CREATED keeps the one-per-line box.
14
+ - **The enum nudge on every choice cell of both grids.** Words typed into a choice cell that are not a choice ask `Add “<words>” to the choices for <Column>?` — Add · Keep as typed · Cancel, Keep as typed only when the column takes other values. Add saves through `recordUpdateAddingChoices` (one call); Keep as typed is the normal save; Cancel puts the cell back. The `custom/choice_nudge` knob (`useChoiceNudge` / `choiceNudgeOf`, read once per client) decides: `always_add` adds without asking; `never_add` keeps as typed if allowed, otherwise says the words are not one of the choices with Cancel only. The decision is `decideTypedChoice` from `@ai-matrx/records`.
15
+ - **The allow-other picker's Add line stops lying.** It used to send the word, which the store kept as an other value without adding it. Its foot now asks the same question; Add really adds (in a grid cell as a `ChoiceAddition` the grid saves in one call; in the record form through `fieldUpdate`'s `options_add`, then the cell takes the words), Keep as typed sends the words.
16
+ - **A re-worded choice keeps its colour** (`lookFollowsRenames`, ColumnLook): the field editor carries the column's look from a choice's old words to its new ones in the same save, so fixing "Cusor" to "Cursor" keeps its blue.
17
+ - **A choice column may start with no choices** (lane CHOICE-COLUMN-EDIT b, BREAKER-1): the new-column panel no longer refuses a Choice column with no choices ("Type the choices this column offers, one per line.") and the per-choice list no longer refuses an empty list; it says "No choices yet. Add the first one here, or type it into a cell and answer Add." The store makes such a column an empty list (it used to refuse, and the Sheet's Add column kept it as plain text).
18
+ - New package exports: `ChoiceListEditor`, `choiceListPatch`, `choiceRowsFrom`, `whatTheChoiceListIsMissing`, `ChoiceListRow`, `useChoiceNudge`, `choiceNudgeOf`, `ChoiceAddition`, `isChoiceAddition`, `choiceAddition`, `withoutAddition`, `ChoiceAsk`, `ChoiceAskButtons`, `choiceAskSentence`, `notAChoiceSentence`; `FieldEditorControlProps` gains `onCommit`, `onCancel`, `addsChoices`. `TypedDraft.judged` may now be `{ ask }`.
19
+ - **Proof:** `a-choice-cell-asks-before-it-adds.test.tsx` (Cedar Ridge Veterinary Clinic, merged and classic grids), `an-existing-choice-is-reworded-in-place.test.tsx` (Account Type: Cusor → Cursor), and the updated `a-choice-that-takes-other-values-adds-what-you-typed.test.tsx` — all RED on the previous bytes.
20
+
21
+ #### Consumer action
22
+ - Needs `@ai-matrx/records` with `recordUpdateAddingChoices` / `choiceNudge` (same release train). A host drawing `FieldControl` outside the grid needs no change; only a host that sets `addsChoices` must save a `ChoiceAddition` through `recordUpdateAddingChoices`.
23
+
3
24
  ## 0.93.6
4
25
 
5
26
  Automatic changed-only republish (docs/metadata drift since the last tag — see