@ai-matrx/records-ui 0.116.48 → 0.116.50

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
@@ -2,6 +2,9 @@
2
2
 
3
3
  ### Unreleased
4
4
 
5
+ - **A reader's bulk write buttons are disabled with the reason (AT-FIX-G1b, 2026-10-19).** The selection bar drew Set a column / Clear / Fill down / Duplicate / Delete enabled for a member with only View access and refused on apply (or, on a read-only table, no row could be ticked at all). Every row is now selectable (copy and print read), and `BulkActions` draws the write buttons disabled with `NEEDS_EDIT_REASON` ("Needs Edit access") unless the person may write every ticked row; Print with layout stays on. The gate is in the action, not in the tick boxes. Guard: `a-view-only-reader-sees-the-bulk-write-buttons-disabled-with-the-reason.test.tsx` (red before). Consumer action: none.
6
+ - **An interface-only reader draws the real chart (AT-FIX-G1b, 2026-10-19).** A chart element read through the interface door now draws from `client.interfaceChart` (the one `ChartBlock`); the dashed "Charts draw for members of this organization." box stays only when the store answers nothing, and a chart over a column she may not read shows the store's refusal. Needs `@ai-matrx/records` with `interfaceChart`. Guard: `an-interface-only-viewer-draws-the-chart-from-the-interface-chart-read.test.tsx` (red before). Consumer action: none.
7
+ - **Follow this record (AT-FIX-G2, 2026-10-19).** New `RecordFollow` (exported): one Follow / Following button and the list of who follows, drawn by `RecordPanel` above the comments, so the table page's record rail and the record's own page both have it. Needs `@ai-matrx/records` with `recordFollowSet` / `recordFollowers`. Guard: `a-record-can-be-followed-from-its-panel.test.tsx` (red before: no `RecordFollow`). Consumer action: none.
5
8
  - **A gallery card is titled like a board card (ADVERSARIAL-4 N1, 2026-10-19).** The gallery read only the host-handed `titleField` and drew "Untitled" when a host left it out and the name column was not a conventional key (`room_name`); it now uses the same `cardTitleField` as the board, so the name is the title and is not repeated as a field. Guard: the gallery clause in `a-card-is-titled-by-what-names-its-record.test.tsx` (red before). Consumer action: none (hosts should still pass the table's `titleField`).
6
9
  - **A number tile wears its title; an interface-only reader's chart box says why it is empty; choices read in their words; the row's "Shown to" sentence names what it gates (AT-FIX-G1, 2026-10-19).** `NumberBlockView` draws the element's `title` above the count (the skeleton keeps the line, so the number landing shifts nothing). A `chart` element read through the interface door (no chart door for an outsider) draws "Charts draw for members of this organization." in a box of the chart's own height instead of a hole. Rows read through the interface door get their choice cells in the choice's own words (`withChoiceWords`, from the door's `labels`; a value with no word stays as stored). `ROW_CONTROL_WORDS.whoMayChangeRow` is now `SHOWN_TO_WHO_MAY_CHANGE` from `@ai-matrx/records` ("...can change who sees it."): it governs "Shown to", never the row's cells (those follow the table's Editor level). Guards: `a-number-tile-shows-its-title-and-an-outsiders-chart-says-why.test.tsx` (red before), `a-built-thing-is-archived-and-a-row-says-who-it-is-shown-to.test.tsx`. Consumer action: none.
7
10
 
@@ -32,11 +35,38 @@
32
35
  - Tests: `vitest.setup.ts` gives jsdom a no-op `performance.mark` / `measure`.
33
36
  - **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`.
34
37
 
35
- ## 0.116.48
38
+ ## 0.116.50
36
39
 
37
40
  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.
38
41
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/records-ui/src`.
39
42
 
43
+ ## 0.116.49
44
+
45
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
46
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
47
+ Diff: `git diff ff560b1be4 05488c8d62 -- apps/shared/records-ui/src`
48
+
49
+ Changed shipped source files (8):
50
+ - `apps/shared/records-ui/src/Grid.tsx`
51
+ - `apps/shared/records-ui/src/PageCanvas.tsx`
52
+ - `apps/shared/records-ui/src/RecordFollow.tsx`
53
+ - `apps/shared/records-ui/src/RecordPanel.tsx`
54
+ - `apps/shared/records-ui/src/TemplatePreview.tsx`
55
+ - `apps/shared/records-ui/src/gridBulk.tsx`
56
+ - `apps/shared/records-ui/src/host.tsx`
57
+ - `apps/shared/records-ui/src/index.ts`
58
+
59
+ ## 0.116.48
60
+
61
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
62
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
63
+ Diff: `git diff 77f29a65b9 ff560b1be4 -- apps/shared/records-ui/src`
64
+
65
+ Changed shipped source files (3):
66
+ - `apps/shared/records-ui/src/PageCanvas.tsx`
67
+ - `apps/shared/records-ui/src/RowControls.tsx`
68
+ - `apps/shared/records-ui/src/ViewSwitcher.tsx`
69
+
40
70
  ## 0.116.47
41
71
 
42
72
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
@@ -4,9 +4,9 @@ import {
4
4
  SAVE_TO_TABLE_TYPES,
5
5
  SaveToTable,
6
6
  shapesOfSource
7
- } from "./chunk-VJDJQDDI.js";
7
+ } from "./chunk-KDD2FZZR.js";
8
8
  import "./chunk-ABIUJCNS.js";
9
- import "./chunk-MDXDJVDB.js";
9
+ import "./chunk-P4P4IFM4.js";
10
10
  import "./chunk-6Z537SLG.js";
11
11
  import "./chunk-LBZZDHV6.js";
12
12
  import "./chunk-4ZS4WEEE.js";
@@ -17,4 +17,4 @@ export {
17
17
  SaveToTable,
18
18
  shapesOfSource
19
19
  };
20
- //# sourceMappingURL=SaveToTable-HG3HQMAQ.js.map
20
+ //# sourceMappingURL=SaveToTable-G7Y4H7SB.js.map
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  HtmlSampleFrame,
11
11
  HtmlSampleTokensProvider
12
- } from "./chunk-FMJ2ULGP.js";
12
+ } from "./chunk-O5K6Y3N3.js";
13
13
  import {
14
14
  ABSENCE_WORD_LABEL,
15
15
  CONTEXT_POLICY_LABEL,
@@ -54,7 +54,7 @@ import {
54
54
  useRecordsUi,
55
55
  useTableRights,
56
56
  withoutInternalCodes
57
- } from "./chunk-MDXDJVDB.js";
57
+ } from "./chunk-P4P4IFM4.js";
58
58
  import {
59
59
  kindItemWords,
60
60
  kindLabel,
@@ -679,7 +679,7 @@ function MeasureMini({ px, kind }) {
679
679
  ] });
680
680
  }
681
681
  if (kind === "border") {
682
- return /* @__PURE__ */ jsx2("span", { "aria-hidden": true, "data-records-measure-mini": "border", className: "inline-block h-5 w-5 shrink-0 rounded-sm bg-card", style: { boxShadow: `inset 0 0 0 ${Math.max(0.5, Math.min(px, 6))}px var(--foreground)` } });
682
+ return /* @__PURE__ */ jsx2("span", { "aria-hidden": true, "data-records-measure-mini": "border", className: "inline-block h-5 w-5 shrink-0 rounded-sm bg-card", style: { boxShadow: `inset 0 0 0 ${Math.max(0.5, Math.min(px, 6))}px hsl(var(--foreground))` } });
683
683
  }
684
684
  if (kind === "radius") {
685
685
  return /* @__PURE__ */ jsx2(
@@ -729,7 +729,7 @@ function MeasurePreview({ value, format }) {
729
729
  const px = pixels(n, unitOf(format));
730
730
  if (px === null) return null;
731
731
  const clamped = Math.max(0, Math.min(px, 160));
732
- const dotted = "flex h-24 w-full items-center justify-center rounded-lg border border-border bg-muted bg-[radial-gradient(var(--border)_1px,transparent_1px)] [background-size:12px_12px]";
732
+ const dotted = "flex h-24 w-full items-center justify-center rounded-lg border border-border bg-muted bg-[radial-gradient(hsl(var(--border))_1px,transparent_1px)] [background-size:12px_12px]";
733
733
  if (kind === "spacing") {
734
734
  return /* @__PURE__ */ jsxs2("span", { className: dotted, "data-records-measure-preview": "spacing", children: [
735
735
  /* @__PURE__ */ jsx2("span", { className: "h-14 w-11 rounded-md border border-border bg-card" }),
@@ -1089,6 +1089,7 @@ function htmlSampleChecks(value, _format) {
1089
1089
  message: "fixed colors, not the theme's",
1090
1090
  fix: {
1091
1091
  label: "Use tokens",
1092
+ // bare-hsl-ok: prose naming the frame's variables, not a colour
1092
1093
  ask: "Rewrite this HTML sample so every color is one of the design system's CSS variables (var(--background), var(--foreground), var(--primary), var(--border)\u2026), keeping the markup and the look the same, so it follows light and dark."
1093
1094
  }
1094
1095
  });
@@ -1102,7 +1103,10 @@ var HTML_SAMPLE_LOOK = {
1102
1103
  Editor: HtmlSampleEditor,
1103
1104
  Preview: HtmlSampleView,
1104
1105
  checks: htmlSampleChecks,
1105
- starter: () => '<style>.b{font:inherit;padding:6px 12px;border-radius:var(--radius);border:1px solid transparent;background:var(--primary);color:var(--primary-foreground)}</style>\n<button class="b">Button</button>'
1106
+ starter: () => (
1107
+ // bare-hsl-ok: sample HTML for the frame, whose :root holds full colours
1108
+ '<style>.b{font:inherit;padding:6px 12px;border-radius:var(--radius);border:1px solid transparent;background:var(--primary);color:var(--primary-foreground)}</style>\n<button class="b">Button</button>'
1109
+ )
1106
1110
  };
1107
1111
 
1108
1112
  // src/looks/jsonLook.tsx
@@ -4786,7 +4790,7 @@ import { AlchemyMenu } from "@ai-matrx/alchemy/react";
4786
4790
  import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
4787
4791
  import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
4788
4792
  import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
4789
- var SaveToTable = lazy(() => import("./SaveToTable-HG3HQMAQ.js").then((m) => ({ default: m.SaveToTable })));
4793
+ var SaveToTable = lazy(() => import("./SaveToTable-G7Y4H7SB.js").then((m) => ({ default: m.SaveToTable })));
4790
4794
  var LONGEST_READ = 5e5;
4791
4795
  var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
4792
4796
  function isPlainObject(v) {
@@ -12328,4 +12332,4 @@ export {
12328
12332
  RecordNameText,
12329
12333
  HeldChangeDecision
12330
12334
  };
12331
- //# sourceMappingURL=chunk-K3B5IRXY.js.map
12335
+ //# sourceMappingURL=chunk-4DIA5TP6.js.map