@validation-os/dashboard 0.10.0 → 0.12.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/dist/index.d.ts +20 -6
- package/dist/index.js +466 -269
- package/dist/index.js.map +1 -1
- package/dist/styles.css +145 -15
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { Collection, AnyRecord, Result,
|
|
3
|
+
import { Collection, AnyRecord, Result, Relation, BarLine } from '@validation-os/core';
|
|
4
4
|
import { PortfolioProgress, StageExperimentInput, MoveKind, NextMoveInput, BeliefStage, JourneyEvent, NextMove, JourneyEventKind, ConfSign, StageKey, Progress, MoverKind, TrajectoryPoint } from '@validation-os/core/derivation';
|
|
5
5
|
export { StageKey } from '@validation-os/core/derivation';
|
|
6
6
|
|
|
@@ -316,6 +316,9 @@ type Route = {
|
|
|
316
316
|
} | {
|
|
317
317
|
name: "records";
|
|
318
318
|
register: Collection;
|
|
319
|
+
lens?: string;
|
|
320
|
+
stage?: string;
|
|
321
|
+
view?: "all";
|
|
319
322
|
} | {
|
|
320
323
|
name: "record";
|
|
321
324
|
id: string;
|
|
@@ -354,6 +357,14 @@ type NeedsHumanByRegister = Partial<Record<Collection, number>>;
|
|
|
354
357
|
interface UseNeedsHumanResult {
|
|
355
358
|
counts: NeedsHumanCounts;
|
|
356
359
|
byRegister: NeedsHumanByRegister;
|
|
360
|
+
/**
|
|
361
|
+
* Live-only experiment count — archived plans excluded (OPS-1305). The API's
|
|
362
|
+
* `/counts` tallies every stored row, but an archived plan never surfaces
|
|
363
|
+
* anywhere in the UI, so the nav badge would overcount (66 vs the live few).
|
|
364
|
+
* `null` until the experiments list loads, so the caller falls back to the
|
|
365
|
+
* API count rather than flashing a wrong number.
|
|
366
|
+
*/
|
|
367
|
+
liveExperimentCount: number | null;
|
|
357
368
|
}
|
|
358
369
|
/**
|
|
359
370
|
* Client hook: load the assumptions / experiments / decisions registers and
|
|
@@ -1129,19 +1140,19 @@ interface HumanText {
|
|
|
1129
1140
|
declare function humanInputFields(register: Collection, record: AnyRecord): HumanText[];
|
|
1130
1141
|
/** One belief a reading grades, prepared for the reading detail's verdict list
|
|
1131
1142
|
* (OPS-1305). Modelled on the experiment bar-line view: the assumption resolved
|
|
1132
|
-
* to a title + navigable id, plus this belief's own
|
|
1133
|
-
*
|
|
1143
|
+
* to a title + navigable id, plus this belief's own Result / derived Strength
|
|
1144
|
+
* and the grading justification. Rung AND magnitude band are NOT here — they are
|
|
1145
|
+
* row-level attributes of the artifact now (0.10), the same for every belief the
|
|
1146
|
+
* reading grades, so they show once at the reading level, not per card. */
|
|
1134
1147
|
interface BeliefVerdict {
|
|
1135
1148
|
assumptionId: string;
|
|
1136
1149
|
/** The belief's title if it's in the loaded set, else its bare id. */
|
|
1137
1150
|
title: string;
|
|
1138
1151
|
/** True when the assumption resolved — drives whether the title links. */
|
|
1139
1152
|
linked: boolean;
|
|
1140
|
-
rung: Rung | null;
|
|
1141
1153
|
result: Result | null;
|
|
1142
1154
|
/** Derived per-belief strength (signed −100…100). */
|
|
1143
1155
|
strength: number | null;
|
|
1144
|
-
magnitudeBand: MagnitudeBand | null;
|
|
1145
1156
|
justification: string;
|
|
1146
1157
|
}
|
|
1147
1158
|
/** The per-belief verdicts a reading carries, in stored order — the reading
|
|
@@ -1347,6 +1358,9 @@ interface RegisterBrowserProps {
|
|
|
1347
1358
|
/** Open a record's canonical full page (story 12). When set, the drawer
|
|
1348
1359
|
* offers a "Full page" link; reads/edits still happen in the peek drawer. */
|
|
1349
1360
|
onOpenRecord?: (id: string) => void;
|
|
1361
|
+
/** Pre-filter applied before tab/free-text — Lens × Stage from the grid. */
|
|
1362
|
+
lens?: string;
|
|
1363
|
+
stage?: string;
|
|
1350
1364
|
}
|
|
1351
1365
|
/**
|
|
1352
1366
|
* The browse-create-edit surface for one register. Above the flat table sits the
|
|
@@ -1362,7 +1376,7 @@ interface RegisterBrowserProps {
|
|
|
1362
1376
|
* gated API (which recomputes derived fields on write). The canonical full record
|
|
1363
1377
|
* page is reachable via the drawer's "Full page" link when `onOpenRecord` is set.
|
|
1364
1378
|
*/
|
|
1365
|
-
declare function RegisterBrowser({ register, basePath, subtitle, onOpenRecord, }: RegisterBrowserProps): react.JSX.Element;
|
|
1379
|
+
declare function RegisterBrowser({ register, basePath, subtitle, onOpenRecord, lens, stage, }: RegisterBrowserProps): react.JSX.Element;
|
|
1366
1380
|
|
|
1367
1381
|
/**
|
|
1368
1382
|
* The front door — "what's my next move" (design OPS-1295, build OPS-1304): the
|