@ai-matrx/records-ui 0.116.89 → 0.116.91

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,7 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.116.91
4
+
5
+ UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
6
+ Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
7
+
8
+ ## 0.116.90
9
+
10
+ Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff 75905bd9ac f75d04e431 -- apps/shared/records-ui/src`
11
+ has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
12
+
3
13
  ## 0.116.89
4
14
 
15
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
16
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
17
+ Diff: `git diff 5da59424ae 75905bd9ac -- apps/shared/records-ui/src`
18
+
19
+ Changed shipped source files (2):
20
+ - `apps/shared/records-ui/src/SwipeLayout.tsx`
21
+ - `apps/shared/records-ui/src/ViewSwitcher.tsx`
22
+
23
+ ## 0.116.88
24
+
25
+ - **Swipe view asks follow-ups in dependency order** (2026-10-23): whatever the table's sort, a card comes after the record its condition names (`dependencyOrder`); condition warnings are one line (all of them in Logic); the Logic panel has a fixed height and no longer overlaps the deck. Consumer action: none.
5
26
  - **The Swipe layout: any table swiped through one record at a time (2026-10-22).** `SwipeLayout` (drawn by `ViewSwitcher` for `layout: "swipe"`): the title is the card, each answer is a record write to the view's Answers-to column — a choice column's options ARE the answers (four on the edges, up to four more as buttons, toned by the option's color) — and an Asked-when column holds each card's condition over earlier cards (`{"item": <record id or title>, "is": <option word>}`, read by the deck's one `readDeckCondition`), so questions open only after the right answer. The Logic button opens the host's new optional `deckLogicEditor` (`DeckLogicEditorProps`; bind rich-content's `SwipeDeckLogicEditor`), whose edits write back only the conditions that changed; unbound it says where to edit the column. A table with nowhere to write answers says so. Skeleton `swipe`. Guard: `src/a-table-can-be-swiped-through.test.tsx`. **Consumer action:** bind `deckLogicEditor` on `<RecordsUiProvider>` to get the graph.
6
27
  - **The enrichment cost sits behind the host's cost door (Arman, 2026-10-22).** `RecordsUiHost.CostDoor` (optional; props `RecordsCostDoorProps`) draws a quiet "Cost" link that reveals points on click. The field settings line no longer prints "N points so far / a row" and the fill confirm's estimate moves into the door; unbound, no cost shows. The confirm and Fill button are unchanged. Consumer action: pass the app's cost door as `CostDoor` where the host is built.
7
28
  - `TablePage` asks `isUuidShape` from `@ai-matrx/kit/uuid` instead of carrying its own anchored UUID regex.
@@ -9,6 +30,14 @@
9
30
  # Changelog — @ai-matrx/records-ui
10
31
 
11
32
 
33
+ ## 0.116.87
34
+
35
+ - **The enrichment cost sits behind the host's cost door (Arman, 2026-10-22).** `RecordsUiHost.CostDoor` (optional; props `RecordsCostDoorProps`) draws a quiet "Cost" link that reveals points on click. The field settings line no longer prints "N points so far / a row" and the fill confirm's estimate moves into the door; unbound, no cost shows. The confirm and Fill button are unchanged. Consumer action: pass the app's cost door as `CostDoor` where the host is built.
36
+ - `TablePage` asks `isUuidShape` from `@ai-matrx/kit/uuid` instead of carrying its own anchored UUID regex.
37
+
38
+ # Changelog — @ai-matrx/records-ui
39
+
40
+
12
41
  ## 0.116.86
13
42
 
14
43
  - **A total's filter written by a template reads in words (CD-FORMULA-04, lane CLOSE-FORMULA, 2026-10-22).** Column settings on a roll-up whose `config.filter` is the store's flat map (`{"status": {"not": "Lost"}}`, `{"result": ["Rework", "Fail"]}`, `{"paid": null}`, `{"logged_on": {"relative": "this_month"}}`, the list words) read "Only use records where ." on every one of the 98 filtered roll-ups in the live store; `conditionInWords` now reads that grammar (`flatFilterInWords`, exported) and never returns an empty sentence. Guard: `a-total-filter-from-a-template-reads-in-words.test.tsx` (13 red on 0.116.76, green now). Consumer action: none.
package/dist/index.cjs CHANGED
@@ -48972,7 +48972,7 @@ function SwipeLayout({ view, fields, rows, titleKey, onChange, canWrite, remembe
48972
48972
  if (typeof v === "number" && Number.isInteger(v) && rows[v - 1]) return rows[v - 1].id;
48973
48973
  return byTitle.get(t.toLowerCase()) ?? t;
48974
48974
  };
48975
- return rows.map((row) => {
48975
+ return (0, import_swipe_deck.dependencyOrder)(rows.map((row) => {
48976
48976
  const doc = row.document ?? {};
48977
48977
  const extra = lines.map((f) => ({ label: fieldName(f), value: plain(doc[f.key], options.get(f.key)) })).filter((x) => x.value);
48978
48978
  const raw = condition ? readJson(doc[condition.key]) : void 0;
@@ -48983,7 +48983,7 @@ function SwipeLayout({ view, fields, rows, titleKey, onChange, canWrite, remembe
48983
48983
  ...extra.length ? { fields: extra } : {},
48984
48984
  ...showIf ? { showIf } : {}
48985
48985
  };
48986
- });
48986
+ }));
48987
48987
  }, [rows, lines, condition, options, titleField?.key, titleKey, answerOf2]);
48988
48988
  const state2 = (0, import_react295.useMemo)(() => {
48989
48989
  const answers2 = {};
@@ -49054,7 +49054,10 @@ function SwipeLayout({ view, fields, rows, titleKey, onChange, canWrite, remembe
49054
49054
  condition && canWrite ? /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(import_design_system144.Button, { size: "sm", variant: logicOpen ? "secondary" : "ghost", className: "h-7", "aria-pressed": logicOpen, onClick: () => setLogicOpen((o) => !o), children: "Logic" }) : null,
49055
49055
  remembered ? null : /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-muted-foreground", children: "Kept for this visit only" }),
49056
49056
  note ? /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-muted-foreground", children: note }) : null,
49057
- problems.map((p) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "text-muted-foreground", "data-records-swipe-problem": "", children: p }, p))
49057
+ problems.length > 0 && !logicOpen ? (
49058
+ // ONE LINE, never a stack pushing the deck down; the Logic panel lists every one.
49059
+ /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("span", { className: "min-w-0 basis-full truncate text-muted-foreground sm:basis-auto sm:flex-1", title: problems.join("\n"), "data-records-swipe-problem": "", children: problems.length === 1 ? problems[0] : `${problems[0]} (+${problems.length - 1} more in Logic)` })
49060
+ ) : null
49058
49061
  ] });
49059
49062
  if (!answer) {
49060
49063
  return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex min-h-0 flex-col gap-2", "data-records-swipe-layout": "", "data-records-swipe-state": "needs-field", children: [
@@ -49064,7 +49067,7 @@ function SwipeLayout({ view, fields, rows, titleKey, onChange, canWrite, remembe
49064
49067
  }
49065
49068
  return /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex min-h-0 flex-col gap-2", "data-records-swipe-layout": "", "data-records-swipe-state": "ready", "data-records-swipe-cards": items.length, children: [
49066
49069
  toolbar,
49067
- logicOpen && condition ? /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex min-h-[28rem] flex-col gap-2 rounded-md border border-border p-2", "data-records-swipe-logic": "", children: [
49070
+ logicOpen && condition ? /* @__PURE__ */ (0, import_jsx_runtime169.jsxs)("div", { className: "flex h-[36rem] max-h-[80vh] flex-col gap-2 overflow-hidden rounded-md border border-border p-2", "data-records-swipe-logic": "", children: [
49068
49071
  logicError ? /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(RefusalLine, { error: logicError }) : null,
49069
49072
  Editor ? /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(Editor, { items, ...key ? { answers: key.answers, more: key.more } : {}, onChange: (next) => void saveLogic(next) }) : /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("p", { className: "p-2 text-xs text-muted-foreground", children: `The logic graph isn't installed here. Edit ${fieldName(condition)} in the grid.` })
49070
49073
  ] }) : null,