@mt-gloss/ui 0.1.122 → 0.1.124
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/{COMMITS-C1VHNgld.js → COMMITS-DlJB1KcF.js} +177 -182
- package/composites-panels.js +510 -703
- package/index.d.ts +2 -4
- package/index.js +969 -1014
- package/lib/composites/panels/index.d.ts +0 -2
- package/lib/composites/panels/shells/internals/catalog-mocks.d.ts +21 -14
- package/package.json +1 -1
- package/ui.css +1 -1
|
@@ -30,11 +30,9 @@ export type { PanelIdKey } from './coordinator/PANEL_IDS';
|
|
|
30
30
|
export { PanelHost } from './PanelHost';
|
|
31
31
|
export { PanelHostShell } from './PanelHostShell';
|
|
32
32
|
export { PanelSlot } from './PanelSlot';
|
|
33
|
-
export { PanelChrome } from './PanelChrome';
|
|
34
33
|
export type { PanelHostProps, PanelShellProps } from './PanelHost';
|
|
35
34
|
export type { PanelSlotProps } from './PanelSlot';
|
|
36
35
|
export type { PanelProviderProps } from './PanelProvider';
|
|
37
|
-
export type { PanelChromeProps } from './PanelChrome';
|
|
38
36
|
export * from './chrome-v2';
|
|
39
37
|
export { positionKey } from './utils/positionKey';
|
|
40
38
|
export { useReducedMotionPanel } from './hooks/useReducedMotionPanel';
|
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Catalog panel mock data — Phase 11.5 P4 W2 + GAP-06 (
|
|
2
|
+
* Catalog panel mock data — Phase 11.5 P4 W2 + GAP-06 + Fix-2 (2026-05-21).
|
|
3
3
|
*
|
|
4
|
-
* Module-level constants; no fetch, no PII.
|
|
5
|
-
* §6.2.7 tile model.
|
|
4
|
+
* Module-level constants; no fetch, no PII.
|
|
6
5
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* Fix-2 (debug session: catalog-wrong-inventory-and-blank-insert) — lens
|
|
7
|
+
* vocabulary restored to the legacy sales-agency taxonomy (`Revenue / Order
|
|
8
|
+
* flow / Rep performance / Brand portfolio / Account coverage / Commission`)
|
|
9
|
+
* sourced from `reptime-cloud/react-dashboard/app/data/lensInfo.ts:29-34`.
|
|
10
|
+
* Tile inventory restricted to `agency-*` IDs that are registered in
|
|
11
|
+
* `react-dashboard/app/data/metricInfo/agency/*.ts` so every catalog tile
|
|
12
|
+
* resolves to a metricInfo entry and renders a real card on insert (no more
|
|
13
|
+
* blank-shell fall-through in `useRenderCard.tsx:411-428`).
|
|
9
14
|
*
|
|
10
|
-
*
|
|
11
|
-
* selling / On track vs plan / Orders on time / Vendor performance /
|
|
12
|
-
* Assortment mix / Customer retention BETA).
|
|
15
|
+
* Visual treatment preserved from GAP-06 + S923–S925 polish:
|
|
13
16
|
* - `lensMeta` keyed by lens name carries `headline` (active-lens H2),
|
|
14
17
|
* `helper` (sub-paragraph), `beta` flag.
|
|
15
18
|
* - Tiles per lens split into `primary` (rendered in main grid; at most one
|
|
16
|
-
* `startHere: true` per lens
|
|
17
|
-
*
|
|
19
|
+
* `startHere: true` per lens) and `secondary` (rendered under "MORE IN
|
|
20
|
+
* THIS LENS" subsection).
|
|
18
21
|
* - `value` semantics: a single string for 1×1 tiles, OR `subStats` array
|
|
19
|
-
* for multi-up tiles
|
|
20
|
-
* `
|
|
21
|
-
* segments. Span is implicit: 0 stats = 1×1, 3 = 1×3, 5 = 1×5.
|
|
22
|
+
* for multi-up tiles. When `subStats` is present, the renderer ignores
|
|
23
|
+
* `value` and stacks the segments.
|
|
22
24
|
* - `accent` color hint for sparkline/donut tiles (HEX); CSS reads via
|
|
23
25
|
* inline style. `donut` flag enables the donut variant.
|
|
24
26
|
*
|
|
27
|
+
* Removed (Fix-2): all `ob-*`, `ws-*`, `pl-*`, `ot-*`, `vp-*`, `am-*`, `cr-*`
|
|
28
|
+
* tiles. These were spike-vocabulary illustrative mocks with NO metricInfo
|
|
29
|
+
* registration — selecting one produced a blank card on the grid (per commit
|
|
30
|
+
* b54301f83b's documented "expected by design" footnote).
|
|
31
|
+
*
|
|
25
32
|
* Real BFF binding will replace this seam in a future plan (P5+); the
|
|
26
33
|
* `CatalogAddWithCards` HOF in V2FeedbackSurface will inject live-card
|
|
27
34
|
* snapshot values per Q4 (B_representative_static + mock fallback).
|
|
@@ -139,7 +146,7 @@ export interface CatalogLensMeta {
|
|
|
139
146
|
beta?: boolean;
|
|
140
147
|
}
|
|
141
148
|
export declare const MOCK_LENSES: readonly string[];
|
|
142
|
-
export declare const MOCK_DEFAULT_LENS = "
|
|
149
|
+
export declare const MOCK_DEFAULT_LENS = "Revenue";
|
|
143
150
|
export declare const MOCK_LENS_META: Readonly<Record<string, CatalogLensMeta>>;
|
|
144
151
|
/** Primary vs secondary tile groups for a lens. */
|
|
145
152
|
export interface CatalogLensTiles {
|