@validation-os/dashboard 0.11.0 → 0.13.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 +13 -5
- package/dist/index.js +383 -240
- 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
|
|
|
@@ -357,6 +357,14 @@ type NeedsHumanByRegister = Partial<Record<Collection, number>>;
|
|
|
357
357
|
interface UseNeedsHumanResult {
|
|
358
358
|
counts: NeedsHumanCounts;
|
|
359
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;
|
|
360
368
|
}
|
|
361
369
|
/**
|
|
362
370
|
* Client hook: load the assumptions / experiments / decisions registers and
|
|
@@ -1132,19 +1140,19 @@ interface HumanText {
|
|
|
1132
1140
|
declare function humanInputFields(register: Collection, record: AnyRecord): HumanText[];
|
|
1133
1141
|
/** One belief a reading grades, prepared for the reading detail's verdict list
|
|
1134
1142
|
* (OPS-1305). Modelled on the experiment bar-line view: the assumption resolved
|
|
1135
|
-
* to a title + navigable id, plus this belief's own
|
|
1136
|
-
*
|
|
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. */
|
|
1137
1147
|
interface BeliefVerdict {
|
|
1138
1148
|
assumptionId: string;
|
|
1139
1149
|
/** The belief's title if it's in the loaded set, else its bare id. */
|
|
1140
1150
|
title: string;
|
|
1141
1151
|
/** True when the assumption resolved — drives whether the title links. */
|
|
1142
1152
|
linked: boolean;
|
|
1143
|
-
rung: Rung | null;
|
|
1144
1153
|
result: Result | null;
|
|
1145
1154
|
/** Derived per-belief strength (signed −100…100). */
|
|
1146
1155
|
strength: number | null;
|
|
1147
|
-
magnitudeBand: MagnitudeBand | null;
|
|
1148
1156
|
justification: string;
|
|
1149
1157
|
}
|
|
1150
1158
|
/** The per-belief verdicts a reading carries, in stored order — the reading
|