@ai-matrx/records-ui 0.116.74 → 0.116.75
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 +6 -0
- package/dist/{SaveToTable-M532U7TS.js → SaveToTable-HQREESNE.js} +3 -3
- package/dist/{chunk-K5RXFZYC.js → chunk-D2FZEAYO.js} +9 -8
- package/dist/{chunk-K5RXFZYC.js.map → chunk-D2FZEAYO.js.map} +1 -1
- package/dist/{chunk-ZX4EFZSB.js → chunk-HCPNQM4Y.js} +1 -1
- package/dist/chunk-HCPNQM4Y.js.map +1 -0
- package/dist/{chunk-XLHEYH5J.js → chunk-NDYZROTI.js} +4 -4
- package/dist/chunk-NDYZROTI.js.map +1 -0
- package/dist/helpers.d.cts +26 -0
- package/dist/helpers.d.ts +26 -0
- package/dist/index.cjs +217 -109
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -1
- package/dist/index.d.ts +41 -1
- package/dist/index.js +193 -86
- package/dist/index.js.map +1 -1
- package/dist/pickers.cjs +5 -4
- package/dist/pickers.cjs.map +1 -1
- package/dist/pickers.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-XLHEYH5J.js.map +0 -1
- package/dist/chunk-ZX4EFZSB.js.map +0 -1
- /package/dist/{SaveToTable-M532U7TS.js.map → SaveToTable-HQREESNE.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
# Changelog — @ai-matrx/records-ui
|
|
2
2
|
|
|
3
|
+
## 0.116.75
|
|
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.74
|
|
4
9
|
|
|
10
|
+
- **An AI fill shows its points before it runs; Fill says why it is grey (lane FIX-AI4, CD-AI-04, 2026-10-21).** The confirm step before a bulk fill said "no estimate yet, it has not run" until a first real run recorded a per-row cost. It now reads, in order: the column's measured cost per row, what a preview on this screen actually cost a row, then the new optional host port `estimateFill` (the server's `POST /v1/tables/{table}/ai-columns/{field}/estimate`: the bound model's catalog price over what each row sends); "or more" when the column also reads the web or pictures. A switched-off column's Fill buttons carry "Switch it on to fill" and a line under them with Turn on. New exports from `Enrich`: `fillEstimateWords`, `FILL_OFF_REASON`, types `FillEstimate`, `FillEstimateAsk`. Guard: `an-ai-fill-is-priced-before-it-runs.test.tsx` (red before: "no estimate yet"; no reason, no Turn on). Consumer action: bind `estimateFill` (matrx-frontend does).
|
|
5
11
|
- **Table settings: "Lives in" with "Also lives in…", and "Links to other organizations" (lane CLOSE-LINK, CD-LINK-10/11, 2026-10-22).** New `TableHomes` (every Home the table lives in, named, and "Also lives in…" through `MoveUnderDialog`'s new `purpose="home"`, which calls `client.homeAdd` and says "People shared on “X” will see “Risks” and its records there") and `TableOtherOrganizationsSwitch` (`cross_organization_relations` on the Table record, the table's half of the organization wall's one opening; both organizations also turn on "Links to other organizations"). Both drawn in `TableSettings`. Guard: `a-table-lives-in-two-homes-and-may-link-to-other-organizations.test.tsx` (red before: no such section). Needs `@ai-matrx/records` with `tableHomes`/`homeAdd`. Consumer action: none.
|
|
6
12
|
- **A link can carry access, and two records can link each other (lane CLOSE-LINK, CD-LINK-08/09, 2026-10-21).** `FieldEditor` on an existing link column gains "Whoever sees a linked record sees this one" (`carries`) with "Up to view" / "Up to edit" (`carries_max`), and, on a link to its own table, "Two records can link each other" (`loops`); with both on it says the consequence ("Sharing one record shares the records it links to, and back again, view only."). Each is sent only when it changed. Guard: a case in `FieldEditor.test.tsx` (red before: no such control). Needs `@ai-matrx/records` with `FieldPatch.carries`. Consumer action: none.
|
|
7
13
|
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
SAVE_TO_TABLE_TYPES,
|
|
5
5
|
SaveToTable,
|
|
6
6
|
shapesOfSource
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NDYZROTI.js";
|
|
8
8
|
import "./chunk-ESNTHDQO.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-HCPNQM4Y.js";
|
|
10
10
|
import "./chunk-6Z537SLG.js";
|
|
11
11
|
import "./chunk-LBZZDHV6.js";
|
|
12
12
|
import "./chunk-K7OX6RG6.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
SaveToTable,
|
|
18
18
|
shapesOfSource
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=SaveToTable-
|
|
20
|
+
//# sourceMappingURL=SaveToTable-HQREESNE.js.map
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
useRecordsUi,
|
|
56
56
|
useTableRights,
|
|
57
57
|
withoutInternalCodes
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-HCPNQM4Y.js";
|
|
59
59
|
import {
|
|
60
60
|
kindItemWords,
|
|
61
61
|
kindLabel,
|
|
@@ -4788,7 +4788,7 @@ import { OutboundLink as OutboundLink5 } from "@ai-matrx/kit/outbound-react";
|
|
|
4788
4788
|
import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
|
|
4789
4789
|
import { momentZoneOptions } from "@ai-matrx/design-system/field-formats";
|
|
4790
4790
|
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4791
|
-
var SaveToTable = lazy(() => import("./SaveToTable-
|
|
4791
|
+
var SaveToTable = lazy(() => import("./SaveToTable-HQREESNE.js").then((m) => ({ default: m.SaveToTable })));
|
|
4792
4792
|
var LONGEST_READ = 5e5;
|
|
4793
4793
|
var FENCE = /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n?```$/;
|
|
4794
4794
|
function isPlainObject(v) {
|
|
@@ -6274,6 +6274,7 @@ async function forgetWrittenWords(client, tableId, key, written) {
|
|
|
6274
6274
|
}
|
|
6275
6275
|
|
|
6276
6276
|
// src/FieldRetype.tsx
|
|
6277
|
+
import { formatCount } from "@ai-matrx/kit/format";
|
|
6277
6278
|
import { jsx as jsx30, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6278
6279
|
var RETYPE_PREVIEW_DEBOUNCE_MS = 300;
|
|
6279
6280
|
function scheduleRetypePreview(ask, ms = RETYPE_PREVIEW_DEBOUNCE_MS) {
|
|
@@ -6497,7 +6498,7 @@ function FieldRetype({ field: field2, tableId, onRetyped }) {
|
|
|
6497
6498
|
] }) : null,
|
|
6498
6499
|
to && preview && limitedHeld !== null ? /* @__PURE__ */ jsxs26("p", { className: "text-[11px] text-muted-foreground", "data-records-retype-preview": "", "data-records-retype-limited": "", children: [
|
|
6499
6500
|
"About ",
|
|
6500
|
-
limitedHeld
|
|
6501
|
+
formatCount(limitedHeld),
|
|
6501
6502
|
" values to change to ",
|
|
6502
6503
|
to.label.toLowerCase(),
|
|
6503
6504
|
"; any that do not fit are kept aside with their records, with the reason \u2014 nothing is deleted."
|
|
@@ -7062,19 +7063,19 @@ function FieldFormatPicker({
|
|
|
7062
7063
|
import { humanizeIdentifier as humanizeIdentifier2 } from "@ai-matrx/kit/text-case";
|
|
7063
7064
|
|
|
7064
7065
|
// src/archiveWords.ts
|
|
7065
|
-
import { formatCount } from "@ai-matrx/kit/format";
|
|
7066
|
+
import { formatCount as formatCount2 } from "@ai-matrx/kit/format";
|
|
7066
7067
|
function archiveConfirmSentence(what) {
|
|
7067
7068
|
const subject = what.trim() || "it";
|
|
7068
7069
|
return `This archives ${subject}. It leaves this list, and you can restore it from the Archived view.`;
|
|
7069
7070
|
}
|
|
7070
|
-
var recordsWord = (n) => `${
|
|
7071
|
+
var recordsWord = (n) => `${formatCount2(n)} record${n === 1 ? "" : "s"}`;
|
|
7071
7072
|
function tableArchiveSentence(s) {
|
|
7072
7073
|
const p = s.progress;
|
|
7073
7074
|
if (!p) return "Every record in it goes with it.";
|
|
7074
7075
|
const done = p.total - p.remaining;
|
|
7075
|
-
const sofar = `${
|
|
7076
|
+
const sofar = `${formatCount2(done)} of ${recordsWord(p.total)} ${done === 1 ? "is" : "are"} put away`;
|
|
7076
7077
|
if (s.running) {
|
|
7077
|
-
return `Archiving \u2014 ${
|
|
7078
|
+
return `Archiving \u2014 ${formatCount2(done)} of ${recordsWord(p.total)} put away.${s.slowedDown ? " Busy, so it is taking smaller passes; it will still finish." : ""}`;
|
|
7078
7079
|
}
|
|
7079
7080
|
if (p.in_progress && !s.failed && !(s.passesHere ?? 0)) {
|
|
7080
7081
|
return `Archiving this table was started and not finished: ${sofar}. Carry on and it picks up where it stopped.`;
|
|
@@ -12606,4 +12607,4 @@ export {
|
|
|
12606
12607
|
RecordNameText,
|
|
12607
12608
|
HeldChangeDecision
|
|
12608
12609
|
};
|
|
12609
|
-
//# sourceMappingURL=chunk-
|
|
12610
|
+
//# sourceMappingURL=chunk-D2FZEAYO.js.map
|