@ai-matrx/records-ui 0.116.90 → 0.116.92
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 +26 -0
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.116.92
|
|
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
|
+
|
|
3
8
|
## 0.116.90
|
|
4
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
|
+
|
|
13
|
+
## 0.116.89
|
|
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.
|
|
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.
|
|
28
|
+
- `TablePage` asks `isUuidShape` from `@ai-matrx/kit/uuid` instead of carrying its own anchored UUID regex.
|
|
29
|
+
|
|
30
|
+
# Changelog — @ai-matrx/records-ui
|
|
31
|
+
|
|
6
32
|
|
|
7
33
|
## 0.116.87
|
|
8
34
|
|
package/dist/index.cjs
CHANGED
|
@@ -32853,7 +32853,7 @@ var import_react171 = require("react");
|
|
|
32853
32853
|
var import_design_system92 = require("@ai-matrx/design-system");
|
|
32854
32854
|
init_names();
|
|
32855
32855
|
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
32856
|
-
var ROW_PEEK_FACTS =
|
|
32856
|
+
var ROW_PEEK_FACTS = 4;
|
|
32857
32857
|
function peekRecordOfRow(row, ctx) {
|
|
32858
32858
|
const document2 = row.document ?? {};
|
|
32859
32859
|
const title = recordNameIn(ctx.table, document2);
|
|
@@ -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.
|
|
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
|
|
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,
|