@ai-matrx/records-ui 0.116.66 → 0.116.67
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 +11 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### Unreleased
|
|
4
4
|
|
|
5
|
+
- **An empty section can be quiet (2026-10-21).** `SectionCard` takes `empty`: `"line"` (default) says "Nothing here yet."; `"quiet"` draws the header and its Add alone, for a page of many sections that start empty together (a design system board the AI fills), so the sentence is never repeated down the page. `SectionEmpty` is exported from `EntitySectionCard`. Guard: `an-empty-section-card-can-be-quiet.test.tsx` (red before: no `empty` option). Consumer action: none.
|
|
5
6
|
- **A refused reference search is never drawn as an empty list (lane LINK-PICKER, 2026-10-20).** The entity-reference picker (`EntityReferenceControl`, the "Pick" on a column that points at a platform kind) drew the store's refusal AND, under it, "There is no <kind> you can open yet"; on a custom row's Pay period column a person saw a dead picker. When the search door refuses, only the refusal is drawn; "there is none" stays for a search that answered an empty list. The refusal itself came from the store (`custom.entity_reference_search` could not search a kind with no title column; fixed by migrations `linkpicker_a`, `_b`, `_c`). Guard: `a-refused-reference-search-is-never-an-empty-list.test.tsx` (red before). Consumer action: none.
|
|
6
7
|
- **A hook that reads the store never drops a refusal (lane TABLEFACTS-SILENT, 2026-10-19).** `usePublicReadOnly` read a timed-out `table_facts` as "not public" and said nothing; thirteen sibling hooks did the same with their own reads (`useStageField`, `useFarFields`, `useStructureHidden`, `useTableDecorations`, `useChoiceOptions`, `useColumnSummaries` operations, `useLinkGroupNamer`, `useFormulaReadings`, `usePickerTables`, `useWholeTableCount`, `useRecordVersion`, `useAddedRows`, `useMemberQuestion`, `useNames`, the value counts). They now read through one shared seat (`readRefusals.tsx`: `askWithOneRetry`, `useReadRefusal`, `useReadAgain`): a refused read is asked once more by itself, then said in place as the shared timeout sentence with Try again by `ReadRefusalDock` (fixed over the page, so nothing moves; mounted by `TablePage` and `PageCanvas`), and cleared when an answer lands. Guard: `a-hook-that-reads-the-store-never-swallows-a-refusal.test.tsx` (red on 13 hooks before). Consumer action: none. Needs `@ai-matrx/records` whose memory store answers `table_facts` (a template preview otherwise shows the refusal).
|
|
7
8
|
- **"Fill N rows" in the AI fill panel; a bulk fill confirms with its points estimate (lane ENRICH-SPEED, 2026-10-19).** `EnrichPanel` gains a small number box and "Fill N rows" (1 to 50, default 3) beside "Try on 1 row", so a person can try 3 or 10 before paying for all. It runs the same `host.enrich` as "Fill in what is due" (never a second runner); 10 rows or fewer run at once, anything bigger, including "Fill in what is due" (the rows still empty, at most 50), meets a confirm step that shows the points estimate (`cost_per_row_cents` at the host's `pointsRate`, or says there is no estimate yet). New exports from `Enrich`: `FILL_TRY_MAX`, `FILL_ROWS_MAX`, `dueRowsEstimate`, `fillCountFrom`. Guard: `fill-n-rows-and-a-bulk-fill-confirms.test.tsx` (red before). Consumer action: none.
|
|
@@ -40,11 +41,20 @@
|
|
|
40
41
|
- Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
|
|
41
42
|
- **New subpath `@ai-matrx/records-ui/data-source`:** `recordsDataSource`, `personActor` and the who-changed words (`whenWords`, `actorWords`, `actorBadge`, `lastChangeSentence`, `SOMEBODY`, `THE_SYSTEM`) alone. `/helpers` also carries the field-type words, the colour resolver and the table builders, which read `@ai-matrx/records/core`; this entry reaches `@ai-matrx/kit` only, and shares the one data-source cache with `/helpers` and the root. Additive. Consumer action: a shell-reachable service that only binds its supabase client or says when imports from `/data-source`.
|
|
42
43
|
|
|
43
|
-
## 0.116.
|
|
44
|
+
## 0.116.67
|
|
44
45
|
|
|
45
46
|
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.
|
|
46
47
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
|
|
47
48
|
|
|
49
|
+
## 0.116.65
|
|
50
|
+
|
|
51
|
+
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
|
52
|
+
so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
|
|
53
|
+
Diff: `git diff 9e86d982ea 2d22605e6d -- apps/shared/records-ui/src`
|
|
54
|
+
|
|
55
|
+
Changed shipped source files (1):
|
|
56
|
+
- `apps/shared/records-ui/src/enumLabels.ts`
|
|
57
|
+
|
|
48
58
|
## 0.116.64
|
|
49
59
|
|
|
50
60
|
SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
|
package/dist/index.cjs
CHANGED
|
@@ -64280,7 +64280,7 @@ function EntitySectionBody(props) {
|
|
|
64280
64280
|
"Add"
|
|
64281
64281
|
] }) : null
|
|
64282
64282
|
] }),
|
|
64283
|
-
entity.error ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: entity.error }) : entity.loading && entity.rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : entity.rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
64283
|
+
entity.error ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: entity.error }) : entity.loading && entity.rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : entity.rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(SectionEmpty, { empty: props.empty }) : /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { className: "-mb-px overflow-x-auto", children: groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)("div", { "data-records-section-group": group.key, children: [
|
|
64284
64284
|
cols.group ? /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)("div", { className: "flex items-center justify-between border-y border-border px-5 py-1 sm:px-6", children: [
|
|
64285
64285
|
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)("span", { className: "text-xs font-semibold text-foreground", children: group.key || "No group" }),
|
|
64286
64286
|
mayAdd ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(import_design_system183.Button, { type: "button", variant: "ghost", size: "sm", "aria-label": `Add to ${group.key || "no group"}`, onClick: () => setAdding(group.key), children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(import_icons2.PlusIcon, { className: "h-4 w-4" }) }) : null
|
|
@@ -64329,6 +64329,10 @@ function EntitySectionBody(props) {
|
|
|
64329
64329
|
)
|
|
64330
64330
|
] });
|
|
64331
64331
|
}
|
|
64332
|
+
function SectionEmpty({ empty }) {
|
|
64333
|
+
if (empty === "quiet") return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { "data-records-section-empty": "quiet", className: "pb-2" });
|
|
64334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)("p", { "data-records-section-empty": "line", className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: "Nothing here yet." });
|
|
64335
|
+
}
|
|
64332
64336
|
|
|
64333
64337
|
// src/SectionCard.tsx
|
|
64334
64338
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
@@ -64803,7 +64807,7 @@ function TableSectionCard(props) {
|
|
|
64803
64807
|
] }),
|
|
64804
64808
|
mayWrite && nameField ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_controls14.Button, { type: "button", variant: "outline", icon: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_icons3.PlusIcon, {}), onClick: () => setAdding(groups[groups.length - 1]?.key ?? UNGROUPED2), children: "Add" }) : null
|
|
64805
64809
|
] }),
|
|
64806
|
-
refused ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: refusalSentence(refused) }) : !fieldsRead.data || page.loading && rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
64810
|
+
refused ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("p", { className: "px-5 pb-5 text-sm text-muted-foreground sm:px-6", children: refusalSentence(refused) }) : !fieldsRead.data || page.loading && rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "flex flex-col gap-1.5 px-5 pb-5 sm:px-6", "aria-busy": "true", children: [0, 1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: "h-9 rounded-md bg-muted" }, i)) }) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(SectionEmpty, { empty: props.empty }) : /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { className: (0, import_design_system184.cn)("-mb-px", !narrow && "overflow-x-auto"), children: groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { "data-records-section-group": group.key, className: "", children: [
|
|
64807
64811
|
cols.group ? /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { className: "flex items-center justify-between border-y border-border px-5 py-1 sm:px-6", children: [
|
|
64808
64812
|
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { className: "text-xs font-semibold text-foreground", children: group.key || "No group" }),
|
|
64809
64813
|
mayWrite ? /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_controls14.Button, { type: "button", variant: "quiet", icon: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_icons3.PlusIcon, {}), "aria-label": `Add to ${group.key || "no group"}`, onClick: () => setAdding(group.key) }) : null
|