@mechane-ai/elements 0.65.0 → 0.68.0
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/README.md +21 -10
- package/dist/ai.js +288 -205
- package/dist/{article-BrUa4Wz1.js → article-Ni152e-v.js} +107 -92
- package/dist/article.js +1 -1
- package/dist/catalog.json +151 -34
- package/dist/{categorical-values-AXJkMt-Y.js → categorical-values-6Iz03F1i.js} +1 -1
- package/dist/{cells-X8SVrZBc.js → cells-BRI8LpMU.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/cells.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +2 -2
- package/dist/charts/plot.js +16 -15
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{code-block-BDRmjlES.js → code-block-DbW_t9U4.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{color-legend-CIo7DhXB.js → color-legend-4As8881l.js} +1 -1
- package/dist/{commands-rzsDElrG.js → commands-C7Zrp-tG.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-DRaNf1mD.js → content-link-BN4NPp0u.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-wu-gKO2C.js → dates-OTq-xU33.js} +2 -2
- package/dist/{dumbbell-plot-VFajQtEW.js → dumbbell-plot-jaQvOctJ.js} +4 -4
- package/dist/{embedding-map-BqDEmy88.js → embedding-map-DnZL1kvY.js} +8 -8
- package/dist/feedback.js +1 -1
- package/dist/figure-format-BVb7yFCA.js +46 -0
- package/dist/{figure-frame-Dd-pOeZN.js → figure-frame-96zFqsWz.js} +22 -21
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-Bjx7JQ30.js → forms-iAOjGRTO.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/{image-grid-Dpyqxgwy.js → image-grid-B6fdmE9c.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +15 -15
- package/dist/kits/interpretability.js +49 -45
- package/dist/kits/operations.js +81 -80
- package/dist/kits/research.js +776 -499
- package/dist/kits/training.js +108 -107
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/markdown-JeuBeMDZ.js +293 -0
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/{navigation-Cp3p0gss.js → navigation-CTnYtVD8.js} +1 -1
- package/dist/navigation.js +3 -3
- package/dist/packages/ai/src/index.d.ts +2 -0
- package/dist/packages/ai/src/message-reactions.d.ts +51 -0
- package/dist/packages/ai/src/message.d.ts +3 -1
- package/dist/packages/charts/src/plot/index.d.ts +2 -0
- package/dist/packages/charts/src/plot/plot-layout.d.ts +2 -2
- package/dist/packages/charts/src/plot/spatial-layer.d.ts +32 -0
- package/dist/packages/charts/src/plot/ticks.d.ts +2 -2
- package/dist/packages/collections/src/card-columns-model.d.ts +50 -0
- package/dist/packages/collections/src/card-columns.d.ts +30 -0
- package/dist/packages/collections/src/collection-page.d.ts +43 -0
- package/dist/packages/collections/src/column-card.d.ts +15 -0
- package/dist/packages/collections/src/data-table-layout.d.ts +2 -0
- package/dist/packages/collections/src/data-table-rows.d.ts +4 -3
- package/dist/packages/collections/src/data-table.d.ts +2 -2
- package/dist/packages/collections/src/index.d.ts +5 -0
- package/dist/packages/collections/src/table-query.d.ts +9 -1
- package/dist/packages/feedback/src/feedback.d.ts +0 -4
- package/dist/packages/feedback/src/index.d.ts +1 -1
- package/dist/packages/foundations/src/visible-motion.d.ts +1 -1
- package/dist/packages/kits/src/research/index.d.ts +7 -2
- package/dist/packages/kits/src/research/motion-clip.d.ts +41 -0
- package/dist/packages/kits/src/research/motion-error.d.ts +8 -0
- package/dist/packages/kits/src/research/motion-figure.d.ts +9 -0
- package/dist/packages/kits/src/research/motion-frame.d.ts +22 -0
- package/dist/packages/kits/src/research/motion-scene.d.ts +22 -0
- package/dist/packages/teaching/src/article/uncover.d.ts +2 -0
- package/dist/{param-CwT1RvUS.js → param-Dk92C-K1.js} +2 -2
- package/dist/{pierre-diff-DuvK3kLF.js → pierre-diff-DXVIwW7o.js} +1 -1
- package/dist/plot-CpTwLIYN.js +101 -0
- package/dist/{plot-layout-CvkeUuG6.js → plot-layout-1MG72ZWn.js} +175 -124
- package/dist/{plot-surface-yy37R4vs.js → plot-surface-8-FZI94y.js} +1 -1
- package/dist/{reference-lines-AMeDkYlo.js → reference-lines-C18o1yEY.js} +1 -1
- package/dist/{scene-BRhI8XSy.js → scene-B8dppj5V.js} +7 -7
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-BMOCaa8R.js → slope-chart-CELflRJd.js} +5 -5
- package/dist/{src-9n2M1V_y.js → src-BCAelv4f.js} +3 -3
- package/dist/{src-BgmAkau8.js → src-Bkov5TTa.js} +171 -164
- package/dist/{src-Bns-5joF.js → src-BsqbWDxS.js} +4 -4
- package/dist/{src-BdyO4PgQ.js → src-CIyuaSCi.js} +101 -107
- package/dist/{src-Tu6d_Pm8.js → src-Dc1t1ugL.js} +958 -585
- package/dist/{src-C5SH3jjU.js → src-DceyVyL0.js} +2 -2
- package/dist/{src-C_E29-DX.js → src-Dlh99sPD.js} +1 -1
- package/dist/styles2.css +33 -1
- package/dist/{time-series-CTNVqoUQ.js → time-series-DtAtGoT_.js} +9 -9
- package/dist/{timeline-DrsDtEIW.js → timeline-CzianQir.js} +5 -5
- package/dist/{token-heatmap-DddArdH8.js → token-heatmap-m6oaMwkK.js} +274 -289
- package/dist/{token-predictions-CBykmPID.js → token-predictions-CpGVjOIs.js} +4 -4
- package/dist/{transport-r1QgELf8.js → transport-DQ1yzsQl.js} +5 -5
- package/dist/{tree-diagram-BIJFK4pl.js → tree-diagram-D9ekymCQ.js} +5 -5
- package/dist/{treemap-DgmEw_mr.js → treemap-DT8q65LQ.js} +5 -5
- package/dist/{use-tween-BWf44Jy4.js → use-tween-DbXVZBR8.js} +1 -1
- package/dist/{violin-plot-BYJnv6sG.js → violin-plot-83HSjnQM.js} +4 -4
- package/dist/visible-motion-D6NwjGNz.js +24 -0
- package/dist/{waterfall-BNseqMas.js → waterfall-DmApvdrY.js} +5 -5
- package/package.json +1 -1
- package/recipes/recorded-motion.tsx +14 -0
- package/recipes/searchable-collection.tsx +74 -76
- package/skills/extend-elements/SKILL.md +2 -1
- package/skills/review-elements/SKILL.md +15 -7
- package/skills/review-explainer/SKILL.md +4 -0
- package/skills/upgrade-elements/SKILL.md +3 -1
- package/skills/upgrade-elements/references/releases.md +20 -0
- package/skills/use-elements/SKILL.md +10 -6
- package/skills/use-elements/references/collections.md +59 -12
- package/skills/use-elements/references/conversations.md +32 -0
- package/skills/use-elements/references/editorial-restraint.md +17 -29
- package/skills/use-elements/references/figures.md +6 -2
- package/skills/use-elements/references/kits.md +23 -0
- package/skills/use-elements/references/workspace.md +5 -5
- package/skills/write-explainer/SKILL.md +5 -0
- package/dist/figure-format-B8kRZMlo.js +0 -36
- package/dist/markdown--nfaDoR1.js +0 -313
- package/dist/packages/kits/src/research/collection-page.d.ts +0 -71
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as e } from "./tokens.stylex-dF5CACEJ.js";
|
|
2
2
|
import { t } from "./chart-tones-ei3BC2AL.js";
|
|
3
|
-
import { A as n, D as r, E as i, M as a, O as o, S as s, a as c, i as l, j as u, n as d, s as f, x as p } from "./plot-layout-
|
|
3
|
+
import { A as n, D as r, E as i, M as a, O as o, S as s, a as c, i as l, j as u, n as d, s as f, x as p } from "./plot-layout-1MG72ZWn.js";
|
|
4
4
|
import { i as ee } from "./chart-link-AE_xuxiP.js";
|
|
5
|
-
import { r as m } from "./figure-format-
|
|
5
|
+
import { r as m } from "./figure-format-BVb7yFCA.js";
|
|
6
6
|
import { a as h, i as g, o as _ } from "./scale-C2xgZyZN.js";
|
|
7
|
-
import { i as te, l as ne, n as re, r as v, t as ie } from "./figure-frame-
|
|
7
|
+
import { i as te, l as ne, n as re, r as v, t as ie } from "./figure-frame-96zFqsWz.js";
|
|
8
8
|
import { n as ae } from "./plot-width-D3hTycYX.js";
|
|
9
9
|
import { t as y } from "./plot-axes-D5S9BnBa.js";
|
|
10
10
|
import { c as b, f as x, r as S, u as C } from "./plot-marks-DgCtcd3L.js";
|
|
11
|
-
import { n as w, r as T, t as E } from "./plot-surface-
|
|
11
|
+
import { n as w, r as T, t as E } from "./plot-surface-8-FZI94y.js";
|
|
12
12
|
import { r as D } from "./path-BglsXpnO.js";
|
|
13
13
|
import { t as O } from "./locate-Bcg3QcP4.js";
|
|
14
14
|
import * as k from "@stylexjs/stylex";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { O as e, m as t } from "./src-
|
|
2
|
-
import { d as n, u as r, x as i } from "./src-
|
|
3
|
-
import { t as a } from "./forms-
|
|
4
|
-
import { r as o } from "./figure-format-
|
|
1
|
+
import { O as e, m as t } from "./src-Bkov5TTa.js";
|
|
2
|
+
import { d as n, u as r, x as i } from "./src-DceyVyL0.js";
|
|
3
|
+
import { t as a } from "./forms-iAOjGRTO.js";
|
|
4
|
+
import { r as o } from "./figure-format-BVb7yFCA.js";
|
|
5
5
|
import { n as s, t as c } from "./clock-DSm5lkNE.js";
|
|
6
|
-
import { a as l, c as u, d, f, h as p, m, o as h, p as g, r as _, s as v, v as y } from "./param-
|
|
6
|
+
import { a as l, c as u, d, f, h as p, m, o as h, p as g, r as _, s as v, v as y } from "./param-Dk92C-K1.js";
|
|
7
7
|
import "@stylexjs/stylex";
|
|
8
8
|
import { usePart as ee, usePrimitive as te } from "@ui-sdk/react/primitive";
|
|
9
9
|
import { use as b, useEffect as x, useId as S, useRef as ne, useState as re, useSyncExternalStore as C } from "react";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as e, E as t } from "./src-
|
|
1
|
+
import { A as e, E as t } from "./src-Bkov5TTa.js";
|
|
2
2
|
import { t as n } from "./accessibility-P89UG9-r.js";
|
|
3
3
|
import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
|
|
4
|
-
import { A as a, D as o, E as s, M as c, O as l, S as u, T as d, c as f, j as p, x as m } from "./plot-layout-
|
|
4
|
+
import { A as a, D as o, E as s, M as c, O as l, S as u, T as d, c as f, j as p, x as m } from "./plot-layout-1MG72ZWn.js";
|
|
5
5
|
import { i as h } from "./chart-link-AE_xuxiP.js";
|
|
6
6
|
import { a as g } from "./tone-scope-DKiSw-JR.js";
|
|
7
|
-
import { r as _ } from "./figure-format-
|
|
8
|
-
import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-
|
|
7
|
+
import { r as _ } from "./figure-format-BVb7yFCA.js";
|
|
8
|
+
import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-96zFqsWz.js";
|
|
9
9
|
import { n as C, t as w } from "./plot-width-D3hTycYX.js";
|
|
10
10
|
import { a as T, c as E, p as D, u as O } from "./plot-marks-DgCtcd3L.js";
|
|
11
|
-
import { r as k } from "./plot-surface-
|
|
11
|
+
import { r as k } from "./plot-surface-8-FZI94y.js";
|
|
12
12
|
import { t as A } from "./label-spacing-BncjePGb.js";
|
|
13
13
|
import { i as ee } from "./path-BglsXpnO.js";
|
|
14
14
|
import { m as j } from "./values-963L6n1m.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./chart-tones-ei3BC2AL.js";
|
|
2
|
-
import { A as t, E as n, M as r, S as i, j as a, s as o } from "./plot-layout-
|
|
3
|
-
import { i as s, n as c, t as l } from "./categorical-values-
|
|
2
|
+
import { A as t, E as n, M as r, S as i, j as a, s as o } from "./plot-layout-1MG72ZWn.js";
|
|
3
|
+
import { i as s, n as c, t as l } from "./categorical-values-6Iz03F1i.js";
|
|
4
4
|
import { i as u } from "./chart-link-AE_xuxiP.js";
|
|
5
5
|
import { a as d } from "./tone-scope-DKiSw-JR.js";
|
|
6
|
-
import { r as f } from "./figure-format-
|
|
7
|
-
import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-
|
|
6
|
+
import { r as f } from "./figure-format-BVb7yFCA.js";
|
|
7
|
+
import { i as p, l as m, n as h, r as g, t as _ } from "./figure-frame-96zFqsWz.js";
|
|
8
8
|
import { n as v } from "./plot-width-D3hTycYX.js";
|
|
9
|
-
import { n as y, r as b } from "./plot-surface-
|
|
9
|
+
import { n as y, r as b } from "./plot-surface-8-FZI94y.js";
|
|
10
10
|
import * as x from "@stylexjs/stylex";
|
|
11
11
|
import { useId as S } from "react";
|
|
12
12
|
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { n as e, t } from "./chart-tones-ei3BC2AL.js";
|
|
2
|
-
import { A as n, E as r, M as i, S as a, a as o, c as s, i as c, j as l, n as u, o as d } from "./plot-layout-
|
|
2
|
+
import { A as n, E as r, M as i, S as a, a as o, c as s, i as c, j as l, n as u, o as d } from "./plot-layout-1MG72ZWn.js";
|
|
3
3
|
import { i as f } from "./chart-link-AE_xuxiP.js";
|
|
4
4
|
import { a as p } from "./tone-scope-DKiSw-JR.js";
|
|
5
|
-
import { r as m } from "./figure-format-
|
|
5
|
+
import { r as m } from "./figure-format-BVb7yFCA.js";
|
|
6
6
|
import { a as h, o as g } from "./scale-C2xgZyZN.js";
|
|
7
7
|
import { t as _ } from "./chart-cursor-1mFd48Jc.js";
|
|
8
|
-
import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-
|
|
8
|
+
import { i as v, l as y, n as b, r as x, t as S } from "./figure-frame-96zFqsWz.js";
|
|
9
9
|
import { n as C, t as w } from "./plot-width-D3hTycYX.js";
|
|
10
10
|
import { t as T } from "./plot-axes-D5S9BnBa.js";
|
|
11
11
|
import { a as E, f as D, l as O, r as k, s as A } from "./plot-marks-DgCtcd3L.js";
|
|
12
|
-
import { n as ee, r as j, t as te } from "./plot-surface-
|
|
12
|
+
import { n as ee, r as j, t as te } from "./plot-surface-8-FZI94y.js";
|
|
13
13
|
import { r as ne } from "./path-BglsXpnO.js";
|
|
14
14
|
import { t as M } from "./locate-Bcg3QcP4.js";
|
|
15
15
|
import * as N from "@stylexjs/stylex";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useEffect as e, useRef as t, useState as n } from "react";
|
|
2
|
+
// packages/foundations/src/visible-motion.ts
|
|
3
|
+
function r(r, i = !1) {
|
|
4
|
+
let a = t(null), [o, s] = n(!1);
|
|
5
|
+
return e(() => {
|
|
6
|
+
let e = a.current;
|
|
7
|
+
if (!r || e === null) return;
|
|
8
|
+
let t = matchMedia("(prefers-reduced-motion: reduce)"), n = !1;
|
|
9
|
+
function o() {
|
|
10
|
+
let e = i || !t.matches;
|
|
11
|
+
s(n && !document.hidden && e);
|
|
12
|
+
}
|
|
13
|
+
let c = new IntersectionObserver((e) => {
|
|
14
|
+
n = e.some((e) => e.isIntersecting), o();
|
|
15
|
+
});
|
|
16
|
+
return c.observe(e), t.addEventListener("change", o), document.addEventListener("visibilitychange", o), () => {
|
|
17
|
+
c.disconnect(), t.removeEventListener("change", o), document.removeEventListener("visibilitychange", o);
|
|
18
|
+
};
|
|
19
|
+
}, [r, i]), {
|
|
20
|
+
ref: a,
|
|
21
|
+
isActive: r && o
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export { r as t };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { E as e, c as t, m as n } from "./src-
|
|
1
|
+
import { E as e, c as t, m as n } from "./src-Bkov5TTa.js";
|
|
2
2
|
import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
|
|
3
|
-
import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-
|
|
3
|
+
import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-1MG72ZWn.js";
|
|
4
4
|
import { i as ee } from "./chart-link-AE_xuxiP.js";
|
|
5
5
|
import { a as te } from "./tone-scope-DKiSw-JR.js";
|
|
6
|
-
import { n as p, r as m } from "./figure-format-
|
|
6
|
+
import { n as p, r as m } from "./figure-format-BVb7yFCA.js";
|
|
7
7
|
import { a as h, o as ne, r as re } from "./scale-C2xgZyZN.js";
|
|
8
8
|
import { t as ie } from "./chart-cursor-1mFd48Jc.js";
|
|
9
|
-
import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-
|
|
9
|
+
import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-96zFqsWz.js";
|
|
10
10
|
import { n as ce } from "./plot-width-D3hTycYX.js";
|
|
11
11
|
import { t as le } from "./plot-axes-D5S9BnBa.js";
|
|
12
12
|
import { a as v, c as ue, f as de, r as y } from "./plot-marks-DgCtcd3L.js";
|
|
13
|
-
import { n as b, r as fe, t as pe } from "./plot-surface-
|
|
13
|
+
import { n as b, r as fe, t as pe } from "./plot-surface-8-FZI94y.js";
|
|
14
14
|
import * as x from "@stylexjs/stylex";
|
|
15
15
|
import { useId as me, useState as he } from "react";
|
|
16
16
|
import { stackSpans as ge } from "@ui-sdk/core";
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MotionFigure, parseMotionClip } from '@mechane-ai/elements/kits/research';
|
|
2
|
+
import { useMemo, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Scrub a recorded simulation or jump to a named observation. Decode bounded JSON once per clip, handle invalid input
|
|
6
|
+
* at the read boundary, and key this recipe by immutable clip ID. A linked essay or application can lift the integer
|
|
7
|
+
* tick into its own state.
|
|
8
|
+
*/
|
|
9
|
+
export function RecordedMotion({ recording }: { readonly recording: unknown }) {
|
|
10
|
+
const clip = useMemo(() => parseMotionClip(recording), [recording]);
|
|
11
|
+
const [tick, setTick] = useState(clip.first);
|
|
12
|
+
|
|
13
|
+
return <MotionFigure clip={clip} tick={tick} onTickChange={setTick} />;
|
|
14
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Button } from '@mechane-ai/elements';
|
|
2
|
-
import {
|
|
3
|
-
import type { DataTableColumn, DataTableSort } from '@mechane-ai/elements/collections';
|
|
4
|
-
import {
|
|
5
|
-
import { PageLayout } from '@mechane-ai/elements/layout';
|
|
2
|
+
import { CollectionPage } from '@mechane-ai/elements/collections';
|
|
3
|
+
import type { CollectionRead, DataTableColumn, DataTableSort } from '@mechane-ai/elements/collections';
|
|
4
|
+
import { EmptyState } from '@mechane-ai/elements/feedback';
|
|
6
5
|
|
|
7
6
|
export type Worker = { readonly id: string; readonly name: string; readonly status: string };
|
|
8
7
|
|
|
@@ -33,84 +32,83 @@ const columns = [
|
|
|
33
32
|
{ id: 'status', label: 'Status', role: 'status', cell: (worker) => worker.status },
|
|
34
33
|
] satisfies ReadonlyArray<DataTableColumn<Worker>>;
|
|
35
34
|
|
|
35
|
+
function workerRead(result: WorkerRead, onRetry: () => void): CollectionRead<Worker> {
|
|
36
|
+
const retained = result.page === undefined ? {} : { rows: result.page.rows };
|
|
37
|
+
|
|
38
|
+
switch (result.status) {
|
|
39
|
+
case 'ready':
|
|
40
|
+
return { state: 'ready', rows: result.page.rows };
|
|
41
|
+
case 'pending':
|
|
42
|
+
return { state: 'pending', ...retained };
|
|
43
|
+
case 'failed':
|
|
44
|
+
return {
|
|
45
|
+
state: 'failed',
|
|
46
|
+
...retained,
|
|
47
|
+
failure: (
|
|
48
|
+
<EmptyState role="alert" title="Could not load workers" action={<Button onClick={onRetry}>Retry</Button>} />
|
|
49
|
+
),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
36
54
|
/**
|
|
37
|
-
* Build a
|
|
38
|
-
*
|
|
55
|
+
* Build a board feed, list, or server-paged collection with search and filters in its title and links to records. The
|
|
56
|
+
* route owns query state. The server authorizes, filters and sorts before paging.
|
|
39
57
|
*/
|
|
40
58
|
export function SearchableCollection({ query, result, onQueryChange, onRetry, workerHref, onOpen }: CollectionProps) {
|
|
41
59
|
const page = result.page;
|
|
42
|
-
const isPending = result.status === 'pending';
|
|
43
60
|
const isReady = result.status === 'ready';
|
|
44
61
|
|
|
45
|
-
const placeholder = <DataTablePlaceholder caption="Workers" columns={columns} />;
|
|
46
|
-
|
|
47
|
-
const failure = result.status === 'failed' && (
|
|
48
|
-
<Notice hasError>
|
|
49
|
-
Could not load workers. <Button onClick={onRetry}>Retry</Button>
|
|
50
|
-
</Notice>
|
|
51
|
-
);
|
|
52
|
-
|
|
53
62
|
return (
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
disabled: !isReady || !page.hasNext,
|
|
105
|
-
onClick: () => onQueryChange({ ...query, page: query.page + 1 }),
|
|
106
|
-
},
|
|
107
|
-
}}
|
|
108
|
-
empty="No workers yet."
|
|
109
|
-
filteredEmpty="No workers match your search or filters."
|
|
110
|
-
/>
|
|
111
|
-
)}
|
|
112
|
-
</AsyncRegion>
|
|
113
|
-
)}
|
|
114
|
-
</PageLayout>
|
|
63
|
+
<CollectionPage
|
|
64
|
+
title="Workers"
|
|
65
|
+
read={workerRead(result, onRetry)}
|
|
66
|
+
columns={columns}
|
|
67
|
+
getRowId={(worker) => worker.id}
|
|
68
|
+
query={{
|
|
69
|
+
mode: 'controlled',
|
|
70
|
+
search: {
|
|
71
|
+
label: 'Find workers',
|
|
72
|
+
value: query.text,
|
|
73
|
+
onChange: (text) => onQueryChange({ ...query, text, page: 1 }),
|
|
74
|
+
},
|
|
75
|
+
filters: [
|
|
76
|
+
{
|
|
77
|
+
id: 'status',
|
|
78
|
+
label: 'Status',
|
|
79
|
+
defaultValue: '',
|
|
80
|
+
value: query.status,
|
|
81
|
+
options: [
|
|
82
|
+
{ value: '', label: 'All statuses' },
|
|
83
|
+
{ value: 'Available', label: 'Available' },
|
|
84
|
+
{ value: 'Busy', label: 'Busy' },
|
|
85
|
+
],
|
|
86
|
+
onChange: (status) => onQueryChange({ ...query, status, page: 1 }),
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
}}
|
|
90
|
+
sort={query.sort}
|
|
91
|
+
onSortChange={(sort) => onQueryChange({ ...query, sort, page: 1 })}
|
|
92
|
+
rowAction={{
|
|
93
|
+
label: (worker) => `Open ${worker.name}`,
|
|
94
|
+
href: workerHref,
|
|
95
|
+
...(onOpen !== undefined && { onActivate: onOpen }),
|
|
96
|
+
}}
|
|
97
|
+
{...(page !== undefined && {
|
|
98
|
+
pagination: {
|
|
99
|
+
description: `Page ${page.number}`,
|
|
100
|
+
previous: {
|
|
101
|
+
disabled: !isReady || query.page <= 1,
|
|
102
|
+
onClick: () => onQueryChange({ ...query, page: query.page - 1 }),
|
|
103
|
+
},
|
|
104
|
+
next: {
|
|
105
|
+
disabled: !isReady || !page.hasNext,
|
|
106
|
+
onClick: () => onQueryChange({ ...query, page: query.page + 1 }),
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
})}
|
|
110
|
+
empty="No workers yet."
|
|
111
|
+
filteredEmpty="No workers match your search or filters."
|
|
112
|
+
/>
|
|
115
113
|
);
|
|
116
114
|
}
|
|
@@ -34,7 +34,8 @@ in the type. A family of styling booleans or a warning in the README leaves the
|
|
|
34
34
|
For a geometry regression, compare the bounds of the simplest shared composition with the consumer at desktop and phone
|
|
35
35
|
widths. For a navigation regression, hold the destination read and observe the first frame after activation. Identify
|
|
36
36
|
the boundary where the behavior first diverges. Exercise that boundary in the existing story or consumer check. Update
|
|
37
|
-
the contract and whichever recipe, application skill or review instruction taught the old pattern.
|
|
37
|
+
the contract and whichever recipe, application skill or review instruction taught the old pattern. Query the packaged
|
|
38
|
+
catalog with the original task and try its recommended call through the consumer's normal import boundary.
|
|
38
39
|
|
|
39
40
|
## A UI SDK component first
|
|
40
41
|
|
|
@@ -27,11 +27,13 @@ Put the pointer away and complete the page's main task.
|
|
|
27
27
|
|
|
28
28
|
Hold a slow read, fail one, and return an empty result.
|
|
29
29
|
|
|
30
|
-
-
|
|
31
|
-
|
|
30
|
+
- Try an immediate result, then hold a slow first read and release it while the placeholder fades in. Only the slow read
|
|
31
|
+
needs a visible placeholder. Check for one delayed loading announcement, stable focus and a smooth reveal. The heading
|
|
32
|
+
and dividers retain their positions. Repeat a background reconnect with a row under the pointer.
|
|
32
33
|
- A refresh keeps the last result, its focus and any draft on screen, with progress or the failure beside it.
|
|
33
|
-
- A failed first read shows
|
|
34
|
-
-
|
|
34
|
+
- A failed first read shows an `EmptyState` with Retry in place. A successful empty result shows an `EmptyState`.
|
|
35
|
+
- A failed refresh keeps usable content in place. For a collection, open the header's failure control and reach the
|
|
36
|
+
recovery action. Check that the same failure is reported once.
|
|
35
37
|
- Hold a destination read or route module open. Activate its link, then try Back and Forward. On the first rendered
|
|
36
38
|
frame the old heading, rows and record actions have left the changing region, and the shell stays usable. Release
|
|
37
39
|
responses out of order and confirm only the current destination can appear. Repeat for a record selected by URL.
|
|
@@ -42,7 +44,8 @@ Hold a slow read, fail one, and return an empty result.
|
|
|
42
44
|
Check 360 pixels wide, a tablet width and a wide desktop.
|
|
43
45
|
|
|
44
46
|
- The page never scrolls sideways. A wide table or plot scrolls inside its own region.
|
|
45
|
-
-
|
|
47
|
+
- Check the collection title and its collapsed search and filter controls together at each width. Long titles can wrap
|
|
48
|
+
while controls remain reachable. Explicitly opening a filter may reveal additional content.
|
|
46
49
|
- With a coarse pointer, standalone controls give 44px targets and text fields use 16px text.
|
|
47
50
|
- Compare the left and right bounds of a section heading, its table and the containing pane. All three span the same
|
|
48
51
|
width, including at phone width. Compare text positions inside cells separately.
|
|
@@ -56,6 +59,10 @@ Check 360 pixels wide, a tablet width and a wide desktop.
|
|
|
56
59
|
- Turn on reduced motion. Fades and slides stop, and nothing waits for an animation to finish. A scene lands on its new
|
|
57
60
|
state at once and a `Playback` jumps to its end.
|
|
58
61
|
|
|
62
|
+
- For recorded motion, seek forward and backward across a measured change. Check its exact tick, including on the
|
|
63
|
+
keyboard. Drag during playback, leave the viewport and enable reduced motion while playing. The paused frame must stay
|
|
64
|
+
readable and the controls must keep their place. Compare the same tick in the poster and the player.
|
|
65
|
+
|
|
59
66
|
## 5. Honest content
|
|
60
67
|
|
|
61
68
|
- Unknown is not zero. A missing value shows as unavailable, and a chart draws a gap.
|
|
@@ -128,8 +135,9 @@ and its readout.
|
|
|
128
135
|
must use inline readouts that never obscure curves or clip at container edges.
|
|
129
136
|
- **Zero card bloat.** Metrics use flat `MetricGrid`, lists use full-width `CollectionPage` / `DataTable`, and
|
|
130
137
|
documentation renders flat—not inside stacked bordered `Panel` cards.
|
|
131
|
-
- **
|
|
132
|
-
|
|
138
|
+
- **Read the first screen.** Remove explanatory rows that repeat labels or narrate ordinary interaction. Check whether a
|
|
139
|
+
user can open a record, copy its address and return to their place. Identify the action that requires seeing two panes
|
|
140
|
+
at once before keeping a permanent inspector.
|
|
133
141
|
- **Pinned shell & area-forking rail.** Scrolling `<main>` keeps the rail and sidebar fixed; rail icons fork top-level
|
|
134
142
|
areas rather than duplicating sidebar links; theme/environment controls live behind `railFooter` Settings while
|
|
135
143
|
explicit refresh actions belong to the data they update.
|
|
@@ -54,6 +54,10 @@ In order of what matters most to a learner:
|
|
|
54
54
|
12. **Keyboard.** Every `Param` takes arrow keys; each scene and chart is one Tab stop whose arrow keys reach every
|
|
55
55
|
labelled object; a draggable `ScenePoint` is its own Tab stop, a slider the arrow keys move; a pressable card turns
|
|
56
56
|
on Enter or Space; in the present view Right, Space and Left move.
|
|
57
|
+
13. **Guided replays.** Scroll several passages at once, then back. Check the tick against the visible passage,
|
|
58
|
+
including on a phone where the figure pins above the text. Drag or step one tick with the keyboard and scroll again.
|
|
59
|
+
The reader keeps that tick until they choose a passage or resume following the text. Both actions pause playback.
|
|
60
|
+
Check that the figure leaves room to read and that every control stays reachable.
|
|
57
61
|
|
|
58
62
|
## 3. Read the code once
|
|
59
63
|
|
|
@@ -30,7 +30,9 @@ is large.
|
|
|
30
30
|
assumptions in tests, and CSS that targets Elements internals. After 0.47, also search for `MAX_` limit constants,
|
|
31
31
|
`selection={` and `ChartSelection`, `@visx` imports your app relied on Elements to install, chart `height` numbers,
|
|
32
32
|
and `format` function props or missing `locale` props passed through spread objects.
|
|
33
|
-
6.
|
|
33
|
+
6. Query the installed catalog using the task that prompted the upgrade. Exercise its recommended composition through
|
|
34
|
+
the app's regular import boundary. Remove local wrappers that duplicate a behavior the new package owns. Review the
|
|
35
|
+
rendered page using the version-matched `review-elements` skill.
|
|
34
36
|
|
|
35
37
|
Do not pin an old behavior back with a wrapper or a patch. Move the call site to the new API, and report anything the
|
|
36
38
|
new version cannot do.
|
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Newest first. Each section lists what an application must change, then what it may adopt.
|
|
4
4
|
|
|
5
|
+
## 0.67.0
|
|
6
|
+
|
|
7
|
+
- Import `CollectionPage` and `CollectionSection` from `@mechane-ai/elements/collections`. Give the collection its read
|
|
8
|
+
state and choose a local query for complete authorized rows or a controlled query for paged records. Its title owns
|
|
9
|
+
the search and filter controls even when the page has navigation.
|
|
10
|
+
- Move record detail to a link. For simultaneous inspection, compose a dedicated `Workbench`. Move scope selection into
|
|
11
|
+
the application's route and actions. Replace a collection notice with the specific failure or mutation feedback the
|
|
12
|
+
user needs.
|
|
13
|
+
|
|
14
|
+
## 0.66.0
|
|
15
|
+
|
|
16
|
+
No change is required. Two parts are new.
|
|
17
|
+
|
|
18
|
+
- **`CardColumns` from `/collections`** shows records as cards in named columns, such as tasks by state. It takes
|
|
19
|
+
`columns`, `getCardId`, `getCard` and a `locale`. Pass `onMoveCard` for a move menu on each card, and a card's
|
|
20
|
+
`moveTargets` to limit its destinations. It has no drag and drop. `status` marks a pending or failed read.
|
|
21
|
+
- **`MessageReactions` from `/ai`** and a new `Message` `reactions` slot. The row shows reaction chips with counts and
|
|
22
|
+
an add control over the emoji your app supplies as `choices`. It reports every change through `onReactionToggle`.
|
|
23
|
+
Existing `Message` uses are unchanged.
|
|
24
|
+
|
|
5
25
|
## 0.65.0
|
|
6
26
|
|
|
7
27
|
- Remove `showNavigation` from page toolbars. In a workspace, the shell supplies navigation alongside a leading back
|
|
@@ -55,19 +55,21 @@ persistence and every asynchronous operation.
|
|
|
55
55
|
| The page needs | Use | Read |
|
|
56
56
|
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
57
57
|
| An app frame, a page, sections, a record page | `AppShell`, `PageLayout`, `PageSection`, `RecordPage` | [workspace](references/workspace.md) |
|
|
58
|
-
| A
|
|
58
|
+
| A full-width collection page or titled section | `CollectionPage` or `CollectionSection` from `/collections` | [workspace](references/workspace.md) |
|
|
59
59
|
| Records compared across columns, search, filters | `DataTable` with a `query` | [collections](references/collections.md) |
|
|
60
|
-
|
|
|
60
|
+
| Compare a detail while operating on its list | `Inspector`, `Details` | [collections](references/collections.md) |
|
|
61
|
+
| Records as cards in columns by state (a kanban board) | `CardColumns` with `onMoveCard` | [collections](references/collections.md) |
|
|
61
62
|
| Fields, choices, dates, files, a save | `Field`, the `/forms` controls, `FormActions`, `ConfirmButton` | [forms](references/forms.md) |
|
|
62
63
|
| A trend, comparison, distribution or relationship | One chart from a `/charts/*` entry | [charts](references/charts.md) |
|
|
63
64
|
| A figure an agent or a server writes as JSON | `Figure`, `validateFigureSpec`, `describeFigure` and `chartGuide` from `/charts/figure` | [figures](references/figures.md) |
|
|
64
65
|
| A run, evaluation, research, service or feature | A kit from `/kits/training`, `/kits/evaluation`, `/kits/research`, `/kits/operations`, `/kits/interpretability` | [kits](references/kits.md) |
|
|
65
66
|
| Page focus, zero-card layout, anti-slop copy | Flat `MetricGrid`, hairline sections, `CollectionPage`, concise titles | [editorial restraint](references/editorial-restraint.md) |
|
|
66
67
|
| An explorable essay, a lesson, a moving diagram | `/lesson`, `/scene`, `/article` and `/mdx`, planned with `/lesson/spec` | [teaching](references/teaching.md) |
|
|
67
|
-
| A first read, a refresh, an empty or failed read | `AsyncRegion`, `LoadingScope`, `EmptyState`, `
|
|
68
|
+
| A first read, a refresh, an empty or failed read | `AsyncRegion`, `LoadingScope`, `EmptyState`, `Toaster` / `toast` | [reports](references/reports.md) |
|
|
68
69
|
| A command menu, a decision, an anchored panel | `Menu`, `AlertDialog`, `Dialog`, `Drawer`, `Popover`, `Tooltip` | the catalog |
|
|
69
70
|
| Route destinations or panels inside one view | `PageNavigation` for links, `Tabs` or `ContentTabs` for panels | [workspace](references/workspace.md) |
|
|
70
71
|
| A transcript, a prompt, tool activity, approvals | `Conversation`, `Message`, `PromptInput`, `Approval` | [conversations](references/conversations.md) |
|
|
72
|
+
| Emoji reactions on a message | `MessageReactions` in `Message`'s `reactions` slot | [conversations](references/conversations.md) |
|
|
71
73
|
| Markdown, source, a diff, a file tree, a log, playback | `/content/markdown`, `/content/code`, `/content/diff`, `/content/tree`, `/content` | the catalog |
|
|
72
74
|
| A model or browser agent that reads and acts | `createAgent` and `registerTools` from `/agent` | [agent access](references/agent.md) |
|
|
73
75
|
|
|
@@ -76,14 +78,16 @@ persistence and every asynchronous operation.
|
|
|
76
78
|
- **Workspace dashboard.** Look up `workspace-report` for linked charts, metrics and a drill-down table inside a
|
|
77
79
|
persistent shell. Look up `workspace-files` for loading, empty and detail views, or `session-timeline` for agent
|
|
78
80
|
activity. Each recipe's catalog entry names a runnable Storybook example.
|
|
79
|
-
- **Searchable collection.**
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
- **Searchable collection.** Start with the `searchable-collection` recipe. The collection owns its heading, query
|
|
82
|
+
controls and read boundary. Supply all authorized rows for local search, or a controlled query for paged data. Link
|
|
83
|
+
each record to its detail route and restore the query and position on Back.
|
|
82
84
|
- **Sectioned report.** Mount the shell around the router outlet. Put each heading and its body in a sibling
|
|
83
85
|
`PageSection`. Headers and tables span the pane by default. Use `PageInset` around local prose or forms and
|
|
84
86
|
`AppShell.sidebarControls` for a workspace picker.
|
|
85
87
|
- **Linked figures.** Give each model, run or series one id. Wrap the figures in `ToneScope` and `ChartLink` so a thing
|
|
86
88
|
keeps one hue and inspecting it in one figure marks it in the others.
|
|
89
|
+
- **Recorded simulation.** Use the `recorded-motion` recipe and the [research kit](references/kits.md) for a draggable
|
|
90
|
+
spatial replay, named moments and matching stills.
|
|
87
91
|
- **A chart you cannot name.** Read `chartGuide` from `/charts/figure`, or the chooser in
|
|
88
92
|
[charts](references/charts.md). It lists all 50 registered charts by family, with when to use each one.
|
|
89
93
|
- **Allocation report.** Show how one total divides with a parts strip above one explanatory chart. Give each part one
|
|
@@ -5,30 +5,38 @@ application owns requests, URL state, permissions and saved preferences.
|
|
|
5
5
|
|
|
6
6
|
## Declare the query
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Use `CollectionPage` or `CollectionSection` for a titled collection. Supply its read state and a local or controlled
|
|
9
|
+
query. The composition places the search and filter controls in its title row and renders the table and its matching
|
|
10
|
+
placeholder. Start with the installed catalog's `searchable-collection` recipe.
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
| ------------ | ------------------------------------------------------------------------------------------------------- |
|
|
12
|
-
| `local` | The app holds every row. Supply a search accessor and filter dimensions; the table filters and windows. |
|
|
13
|
-
| `controlled` | A server pages the rows. Supply search and filter values with callbacks, and reset the page on change. |
|
|
14
|
-
| `frame` | A shared header already holds the controls. Declare them once with `TableQueryFrame`. |
|
|
15
|
-
| `static` | The table is a fixed reference. Give a concrete `reason`. |
|
|
12
|
+
For example, a finite project list supplies its rows and search fields together.
|
|
16
13
|
|
|
17
14
|
```tsx
|
|
18
|
-
<
|
|
19
|
-
|
|
15
|
+
<CollectionPage
|
|
16
|
+
title="Projects"
|
|
20
17
|
columns={columns}
|
|
21
|
-
rows={projects}
|
|
22
18
|
getRowId={(project) => project.id}
|
|
19
|
+
read={{ state: 'ready', rows: projects }}
|
|
23
20
|
empty="No projects."
|
|
24
21
|
query={{
|
|
25
22
|
mode: 'local',
|
|
26
23
|
search: (project) => project.name,
|
|
27
24
|
filters: [{ id: 'status', label: 'Status', value: (project) => project.status }],
|
|
28
25
|
}}
|
|
26
|
+
rowAction={{ href: (project) => projectHref(project.id) }}
|
|
29
27
|
/>
|
|
30
28
|
```
|
|
31
29
|
|
|
30
|
+
A lower-level `DataTable` can also present rows inside a custom report. It takes a stable `getRowId`, a `caption`, an
|
|
31
|
+
`empty` state and a `query`.
|
|
32
|
+
|
|
33
|
+
| Query mode | Use it when |
|
|
34
|
+
| ------------ | ------------------------------------------------------------------------------------------------------- |
|
|
35
|
+
| `local` | The app holds every row. Supply a search accessor and filter dimensions; the table filters and windows. |
|
|
36
|
+
| `controlled` | A server pages the rows. Supply search and filter values with callbacks, and reset the page on change. |
|
|
37
|
+
| `frame` | An explicit custom report owns a shared query frame for several representations of the same result. |
|
|
38
|
+
| `static` | The table is a fixed reference. Give a concrete `reason`. |
|
|
39
|
+
|
|
32
40
|
To leave out only search or only filters, replace that capability with `{ reason: '…' }`. For a paged source, apply
|
|
33
41
|
search, filters and sort to the whole result before the server takes a page, with a unique key as the last sort field.
|
|
34
42
|
|
|
@@ -87,9 +95,48 @@ key handler around it.
|
|
|
87
95
|
- Register a shortcut with `useCommandShortcuts` from `/navigation/commands`, beside the action's owner, with an
|
|
88
96
|
explicit `isEnabled`. `CommandPalette` lists the same action records and registers nothing by mounting.
|
|
89
97
|
|
|
98
|
+
## Cards in columns
|
|
99
|
+
|
|
100
|
+
Use `CardColumns` for records grouped by a state the reader moves them between, such as tasks. Use `DataTable` when
|
|
101
|
+
records are compared across shared columns, and `Timeline` for events in time order.
|
|
102
|
+
|
|
103
|
+
```tsx
|
|
104
|
+
<CardColumns
|
|
105
|
+
label="Tasks by state"
|
|
106
|
+
locale="en-US"
|
|
107
|
+
columns={states.map((state) => ({
|
|
108
|
+
id: state.id,
|
|
109
|
+
title: state.title,
|
|
110
|
+
items: tasks.filter((t) => t.state === state.id),
|
|
111
|
+
}))}
|
|
112
|
+
getCardId={(task) => task.id}
|
|
113
|
+
getCard={(task) => ({
|
|
114
|
+
title: task.title,
|
|
115
|
+
href: `/tasks/${task.id}`,
|
|
116
|
+
status: <Badge tone={task.tone}>{task.stateTitle}</Badge>,
|
|
117
|
+
meta: <Timestamp dateTime={task.updated} label={task.updatedLabel} />,
|
|
118
|
+
moveTargets: task.allowedStates,
|
|
119
|
+
})}
|
|
120
|
+
onMoveCard={({ item, toColumnId }) => requestMove(item.id, toColumnId)}
|
|
121
|
+
/>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
- The app filters and orders the records into columns, in display order. `CardColumns` neither sorts nor counts for you.
|
|
125
|
+
- `onMoveCard` reports a request. Nothing moves until the app supplies new `columns`, so show a pending or failed move
|
|
126
|
+
in the card's `status` or `actions`. Leave `onMoveCard` out for a read-only board.
|
|
127
|
+
- `moveTargets` lists the column ids a card may move to. The app computes it from its rules. An empty list removes the
|
|
128
|
+
card's move control.
|
|
129
|
+
- Pass `status="pending"` or `"failed"` while the read is not ready. A column with no cards then shows a placeholder or
|
|
130
|
+
an error and a dash for its count, never an empty message. Cards already supplied stay visible during a refresh.
|
|
131
|
+
- `columnHeight="bounded"` (the default) caps each column and scrolls its cards. `"fill"` takes the height of the
|
|
132
|
+
parent.
|
|
133
|
+
- There is no drag and drop. Each card's move button is its own Tab stop, so a board with many cards has many stops.
|
|
134
|
+
- Take every word through `labels`, and pass `empty` on a column that needs its own empty text.
|
|
135
|
+
|
|
90
136
|
## A selected record
|
|
91
137
|
|
|
92
|
-
|
|
93
|
-
|
|
138
|
+
Use a detail link for reading one record. If the task requires inspecting a record while operating on the list,
|
|
139
|
+
`Inspector` puts the list in `master` and the selected record in `detail`, side by side when there is room and stacked
|
|
140
|
+
in a narrow container. Change `revealKey` when the selection changes so a stacked detail scrolls into view. `Details`
|
|
94
141
|
renders labeled fields. `Metric` and `MetricGrid` summarize a record or a period; pass `isLoading` to reserve their
|
|
95
142
|
space. `Timestamp` takes an ISO datetime and a label the app formatted with an explicit locale and time zone.
|