@e-llm-studio/federated-dashboard-components 2.2.9-rca-test-3 → 2.2.10
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/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
- package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- package/dist/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
- package/dist/ExecutiveDashboard/components/Table/TableCard.js +1 -1
- package/dist/ExecutiveDashboard/utils/sectionOrder.js +1 -1
- package/dist/HumanIntelligence/HumanChangesTableWrapper.js +1 -1
- package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +1 -1
- package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js +1 -1
- package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js +1 -1
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js +2 -0
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js.map +1 -0
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js +2 -0
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js.map +1 -0
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js +2 -0
- package/dist/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js.map +1 -0
- package/dist/HumanIntelligence/hooks/accessToken.js +2 -0
- package/dist/HumanIntelligence/hooks/accessToken.js.map +1 -0
- package/dist/HumanIntelligence/hooks/useHumanChangesData.js +1 -1
- package/dist/HumanIntelligence/utils/inlineMarkup.js +1 -1
- package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Table/TableCard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/utils/sectionOrder.js +1 -1
- package/dist/cjs/HumanIntelligence/HumanChangesTableWrapper.js +1 -1
- package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +1 -1
- package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js +1 -1
- package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js +1 -1
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js +2 -0
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.js.map +1 -0
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js +2 -0
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.module.css.js.map +1 -0
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js +2 -0
- package/dist/cjs/HumanIntelligence/components/ReviewLearningConditionsModal/parser.js.map +1 -0
- package/dist/cjs/HumanIntelligence/hooks/accessToken.js +2 -0
- package/dist/cjs/HumanIntelligence/hooks/accessToken.js.map +1 -0
- package/dist/cjs/HumanIntelligence/hooks/useHumanChangesData.js +1 -1
- package/dist/cjs/HumanIntelligence/utils/inlineMarkup.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/styles.css +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts +1 -12
- package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +1 -12
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts +0 -23
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts +2 -12
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts +2 -20
- package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts +6 -1
- package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/types/index.d.ts +0 -24
- package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/utils/sectionOrder.d.ts.map +1 -1
- package/dist/types/HumanIntelligence/HumanChangesTableWrapper.d.ts.map +1 -1
- package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts +2 -0
- package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts.map +1 -1
- package/dist/types/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.d.ts +2 -0
- package/dist/types/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.d.ts.map +1 -1
- package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.d.ts +5 -0
- package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/ReviewLearningConditionsModal.d.ts.map +1 -0
- package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/parser.d.ts +20 -0
- package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/parser.d.ts.map +1 -0
- package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/types.d.ts +45 -0
- package/dist/types/HumanIntelligence/components/ReviewLearningConditionsModal/types.d.ts.map +1 -0
- package/dist/types/HumanIntelligence/hooks/accessToken.d.ts +13 -0
- package/dist/types/HumanIntelligence/hooks/accessToken.d.ts.map +1 -0
- package/dist/types/HumanIntelligence/hooks/useHumanChangesData.d.ts +12 -4
- package/dist/types/HumanIntelligence/hooks/useHumanChangesData.d.ts.map +1 -1
- package/dist/types/HumanIntelligence/utils/inlineMarkup.d.ts +2 -0
- package/dist/types/HumanIntelligence/utils/inlineMarkup.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -10
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/ExecutiveDashboard/api/insightsApi.js +0 -2
- package/dist/ExecutiveDashboard/api/insightsApi.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/AgCharts.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/AgCharts.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/AgReport.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/AgReport.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/L1Report.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/L1Report.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/RowDetail.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/RowDetail.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +0 -1
- package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js +0 -2
- package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/api/insightsApi.js +0 -2
- package/dist/cjs/ExecutiveDashboard/api/insightsApi.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +0 -1
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js +0 -2
- package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js.map +0 -1
- package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts +0 -156
- package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts +0 -66
- package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts +0 -117
- package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts +0 -6
- package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts +0 -65
- package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts +0 -17
- package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts +0 -28
- package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts +0 -32
- package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts +0 -26
- package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts +0 -13
- package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts +0 -12
- package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts +0 -151
- package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts +0 -61
- package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts +0 -62
- package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts.map +0 -1
- package/dist/types/ExecutiveDashboard/types/insights.d.ts +0 -502
- package/dist/types/ExecutiveDashboard/types/insights.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RowDetail.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/RowDetail.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,SAAqC,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,sCA4DrU"}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import "./agPrimitives.css";
|
|
3
|
-
import type { InsightsGraphGroup, InsightsItemLink } from "../../types/insights";
|
|
4
|
-
export type GoodDirection = "up" | "down";
|
|
5
|
-
/**
|
|
6
|
-
* The day's colour, as on the AI Governance trend legend: a significant move
|
|
7
|
-
* is green when it went the good way and red when not, other movers are
|
|
8
|
-
* purple, a steady day is ink, and a day never classified is blue.
|
|
9
|
-
*/
|
|
10
|
-
export declare function movementColorHex(movementType: string | null | undefined, direction: string | null | undefined, good?: GoodDirection): "#E11D48" | "#15803D" | "#5928ED" | "#0F172A" | "#2563EB";
|
|
11
|
-
/** Readable on the dark tooltip. */
|
|
12
|
-
export declare const tooltipSafeColorHex: (hex: string) => string;
|
|
13
|
-
/** The Summary title: "Significant change", "Trending up/down", "New entity"… */
|
|
14
|
-
export declare function movementVerdictLabel(movementType: string | null | undefined, direction?: string | null): "Significant change" | "Trending down" | "Trending up" | "New entity" | "Now dormant" | "Recovered" | "No significant change";
|
|
15
|
-
/** The narrative sentence shows for significant and trending days. */
|
|
16
|
-
export declare const showsMovementNarrative: (movementType: string | null | undefined) => boolean;
|
|
17
|
-
export type MovementPhrase = {
|
|
18
|
-
label: string;
|
|
19
|
-
dir: "up" | "down" | "flat";
|
|
20
|
-
};
|
|
21
|
-
/** The plain-English chip beside the criticality badge. */
|
|
22
|
-
export declare function getMovementPhrase(movementType: string | null | undefined, direction?: string | null): MovementPhrase | null;
|
|
23
|
-
export declare const CRITICALITY_TONE: Record<string, string>;
|
|
24
|
-
/** "Oct 8, 2026", as the AI Governance report headers show it. */
|
|
25
|
-
export declare function formatHeaderDate(day: string | null | undefined): string;
|
|
26
|
-
export declare function SectionHeader({ title, meta, action }: {
|
|
27
|
-
title: string;
|
|
28
|
-
meta?: string;
|
|
29
|
-
action?: ReactNode;
|
|
30
|
-
}): import("react").JSX.Element;
|
|
31
|
-
/** A titled visual block with its own collapse button, like "Trend" or "User Activity". */
|
|
32
|
-
export declare function CollapsibleVisualSection({ title, meta, action, children, className, }: {
|
|
33
|
-
title: string;
|
|
34
|
-
meta?: string;
|
|
35
|
-
action?: ReactNode;
|
|
36
|
-
children: ReactNode;
|
|
37
|
-
className?: string;
|
|
38
|
-
}): import("react").JSX.Element;
|
|
39
|
-
export declare function StatusToken({ children, tone, compact }: {
|
|
40
|
-
children: ReactNode;
|
|
41
|
-
tone: string;
|
|
42
|
-
compact?: boolean;
|
|
43
|
-
}): import("react").JSX.Element;
|
|
44
|
-
export declare function MovementChip({ movementType, direction }: {
|
|
45
|
-
movementType: string | null | undefined;
|
|
46
|
-
direction?: string | null;
|
|
47
|
-
}): import("react").JSX.Element | null;
|
|
48
|
-
export declare function CriticalityChip({ criticality, compact }: {
|
|
49
|
-
criticality: string | null | undefined;
|
|
50
|
-
compact?: boolean;
|
|
51
|
-
}): import("react").JSX.Element | null;
|
|
52
|
-
/** A collapsible card section, like "Top Drivers". */
|
|
53
|
-
export declare function ReportAccordion({ title, defaultExpanded, children }: {
|
|
54
|
-
title: string;
|
|
55
|
-
defaultExpanded?: boolean;
|
|
56
|
-
children: ReactNode;
|
|
57
|
-
}): import("react").JSX.Element;
|
|
58
|
-
/** Whether a change was good, bad, or no change, for its colour. */
|
|
59
|
-
export declare function toneOf(change: number | null | undefined, good: GoodDirection): "good" | "bad" | "flat" | null;
|
|
60
|
-
/** One average card: value, coloured by how the average is moving, and a "Going up / down" badge. */
|
|
61
|
-
export declare function Metric({ label, value, change, good, }: {
|
|
62
|
-
label: string;
|
|
63
|
-
value: string;
|
|
64
|
-
/** How the average is moving (e.g. 3-day minus 7-day); omitted for the daily value and the 7-day card. */
|
|
65
|
-
change?: number | null;
|
|
66
|
-
good?: GoodDirection;
|
|
67
|
-
}): import("react").JSX.Element;
|
|
68
|
-
/**
|
|
69
|
-
* Daily value plus the 3, 7 and 30-day averages, with AI Governance's
|
|
70
|
-
* badges: the 3-day card compares the 3-day average with the 7-day one, the
|
|
71
|
-
* 30-day card the 7-day with the 30-day; the 7-day card has none.
|
|
72
|
-
*/
|
|
73
|
-
export declare function TrendMetricsSection({ dailyLabel, daily, fast, slow, long, windows, good, format, }: {
|
|
74
|
-
dailyLabel?: string;
|
|
75
|
-
daily?: number | null;
|
|
76
|
-
fast: number | null;
|
|
77
|
-
slow: number | null;
|
|
78
|
-
long: number | null;
|
|
79
|
-
windows: {
|
|
80
|
-
fast: number;
|
|
81
|
-
slow: number;
|
|
82
|
-
long: number;
|
|
83
|
-
};
|
|
84
|
-
good: GoodDirection;
|
|
85
|
-
format: (value: number | null | undefined) => string;
|
|
86
|
-
}): import("react").JSX.Element;
|
|
87
|
-
/** Colours every "↑ 20%" / "↓ 1%" in a sentence: green when it moved the good way. */
|
|
88
|
-
export declare function ArrowColoredText({ text, good, tone, renderText }: {
|
|
89
|
-
text: string;
|
|
90
|
-
good?: GoodDirection;
|
|
91
|
-
tone?: "good" | "bad";
|
|
92
|
-
renderText?: (part: string) => ReactNode;
|
|
93
|
-
}): import("react").JSX.Element;
|
|
94
|
-
/** Text with the named rows turned into buttons that open the row's report: 'prajwal.kr gave 3.6 for Prompt Mode on DEV' with each name clickable. */
|
|
95
|
-
export declare function linkedText(links: InsightsItemLink[] | undefined, open: ((link: InsightsItemLink) => void) | undefined): ((part: string) => ReactNode) | undefined;
|
|
96
|
-
/** Splits the agent's "Good news - …" / "Bad news - …" opener off the sentence so only that word is coloured. */
|
|
97
|
-
export declare function splitVerdict(text: string): {
|
|
98
|
-
prefix: "Good news" | "Bad news";
|
|
99
|
-
rest: string;
|
|
100
|
-
} | {
|
|
101
|
-
prefix: null;
|
|
102
|
-
rest: string;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* "Good news" green, "Bad news" red, the rest plain, with arrows coloured. A line that opens with a verdict (a Root Cause line about any
|
|
106
|
-
* number) colours its arrows the verdict's way; otherwise they follow the headline number's good direction.
|
|
107
|
-
*/
|
|
108
|
-
export declare function VerdictSentence({ text, good, arrowsFollowVerdict, renderText }: {
|
|
109
|
-
text: string;
|
|
110
|
-
good?: GoodDirection;
|
|
111
|
-
arrowsFollowVerdict?: boolean;
|
|
112
|
-
renderText?: (part: string) => ReactNode;
|
|
113
|
-
}): import("react").JSX.Element;
|
|
114
|
-
/** "↑ 12%" / "↓ 4%" vs last day, coloured by the number's good direction. */
|
|
115
|
-
export declare function DayOverDayChange({ deltaPct, good, suffix, direction, tone: sentTone, }: {
|
|
116
|
-
deltaPct: number | null | undefined;
|
|
117
|
-
good?: GoodDirection;
|
|
118
|
-
suffix?: string;
|
|
119
|
-
direction?: string | null;
|
|
120
|
-
tone?: string | null;
|
|
121
|
-
}): import("react").JSX.Element | null;
|
|
122
|
-
/** The colour of a report's verdict from the backend's tone. */
|
|
123
|
-
export declare const verdictToneHex: (tone: string | null | undefined) => "#E11D48" | "#15803D" | "#5928ED";
|
|
124
|
-
/** Shimmering text lines; widths in percent. */
|
|
125
|
-
export declare function SkeletonLines({ widths, label }: {
|
|
126
|
-
widths?: number[];
|
|
127
|
-
label?: string;
|
|
128
|
-
}): import("react").JSX.Element;
|
|
129
|
-
/** Placeholder for the daily value and average cards. */
|
|
130
|
-
export declare function MetricsSkeleton({ count }: {
|
|
131
|
-
count?: number;
|
|
132
|
-
}): import("react").JSX.Element;
|
|
133
|
-
/** Placeholder the height of a chart. */
|
|
134
|
-
export declare function ChartSkeleton({ height, label }: {
|
|
135
|
-
height?: number;
|
|
136
|
-
label?: string;
|
|
137
|
-
}): import("react").JSX.Element;
|
|
138
|
-
/**
|
|
139
|
-
* "Complete" / "Working Days" for a trend, as a styled listbox instead of
|
|
140
|
-
* the browser's select: opens on click, Enter, Space or the arrow keys,
|
|
141
|
-
* closes on Escape, Tab or a click outside.
|
|
142
|
-
*/
|
|
143
|
-
export declare function DaysDropdown({ value, onChange, disabled, groups, group, onGroupChange, }: {
|
|
144
|
-
value: boolean;
|
|
145
|
-
onChange: (workingDays: boolean) => void;
|
|
146
|
-
disabled?: boolean;
|
|
147
|
-
groups?: InsightsGraphGroup[];
|
|
148
|
-
group?: string | null;
|
|
149
|
-
onGroupChange?: (group: string) => void;
|
|
150
|
-
}): import("react").JSX.Element;
|
|
151
|
-
//# sourceMappingURL=agPrimitives.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agPrimitives.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/agPrimitives.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoE,KAAK,SAAS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IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAWhE;AAED,yCAAyC;AACzC,wBAAgB,aAAa,CAAC,EAAE,MAAY,EAAE,KAAuB,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAQ3G;AASD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,EACL,aAAa,GACd,EAAE;IACD,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,+BAkGA"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { DashboardApiConfig } from "../../api/dashboardApi";
|
|
3
|
-
import type { InsightsRange } from "../../api/insightsApi";
|
|
4
|
-
import type { InsightsKpiConfig } from "../../types/insights";
|
|
5
|
-
/**
|
|
6
|
-
* What the report drawer opens on: a stored report, or a flagged change that
|
|
7
|
-
* has none yet (its row, number and day), which can then be written.
|
|
8
|
-
*/
|
|
9
|
-
export interface InsightsReportTarget {
|
|
10
|
-
reportId?: string | null;
|
|
11
|
-
nodeKey?: string;
|
|
12
|
-
kpiId?: string;
|
|
13
|
-
/** YYYY-MM-DD */
|
|
14
|
-
dataDay?: string;
|
|
15
|
-
/** Shown while the report loads, e.g. "eCG · AI Queries · 02 Oct". */
|
|
16
|
-
title?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface InsightsContextValue {
|
|
19
|
-
api: DashboardApiConfig;
|
|
20
|
-
range: InsightsRange;
|
|
21
|
-
/** Changes whenever the range does; a dependency for fetches. */
|
|
22
|
-
rangeKey: string;
|
|
23
|
-
/** Sidebar filters are applied; insights still cover all data. */
|
|
24
|
-
filtersActive: boolean;
|
|
25
|
-
kpis: Record<string, InsightsKpiConfig>;
|
|
26
|
-
kpiLabel: (kpiId: string) => string;
|
|
27
|
-
goodDirection: (kpiId: string) => "up" | "down";
|
|
28
|
-
/**
|
|
29
|
-
* The headline number every report leads with: Tier 1's primary graph line
|
|
30
|
-
* when it's watched, otherwise the first watched Tier 1 number.
|
|
31
|
-
*/
|
|
32
|
-
headlineKpi: string | null;
|
|
33
|
-
/** Watched numbers on each graph tier, in config order. */
|
|
34
|
-
tierKpis: {
|
|
35
|
-
1: string[];
|
|
36
|
-
2: string[];
|
|
37
|
-
};
|
|
38
|
-
/** Charts open on working days only, as the graph's day filter says. */
|
|
39
|
-
defaultWorkingDays: boolean;
|
|
40
|
-
/** Days in the fast, slow and long moving averages, from `ui.insights.analysis`. */
|
|
41
|
-
windows: {
|
|
42
|
-
fast: number;
|
|
43
|
-
slow: number;
|
|
44
|
-
long: number;
|
|
45
|
-
};
|
|
46
|
-
/** The drill-down level (1 = total) of a part, from `ui.insights.hierarchy`. Unknown or none is 1. */
|
|
47
|
-
levelOf: (entityKey?: string | null) => number;
|
|
48
|
-
entityName: (entityKey: string) => string;
|
|
49
|
-
entityOrder: string[];
|
|
50
|
-
openReport: (target: InsightsReportTarget) => void;
|
|
51
|
-
viewer: {
|
|
52
|
-
email: string | null;
|
|
53
|
-
isAdmin: boolean;
|
|
54
|
-
};
|
|
55
|
-
minReasonLength: number;
|
|
56
|
-
revision: number;
|
|
57
|
-
refresh: () => void;
|
|
58
|
-
}
|
|
59
|
-
export declare const InsightsContext: import("react").Context<InsightsContextValue | null>;
|
|
60
|
-
export declare const useInsights: () => InsightsContextValue | null;
|
|
61
|
-
//# sourceMappingURL=insightsContextCore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insightsContextCore.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/insightsContextCore.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,kBAAkB,CAAC;IACxB,KAAK,EAAE,aAAa,CAAC;IACrB,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,aAAa,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,MAAM,CAAC;IAChD;;;OAGG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,2DAA2D;IAC3D,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACvC,wEAAwE;IACxE,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oFAAoF;IACpF,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,sGAAsG;IACtG,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;IAC/C,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACnD,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,eAAe,sDAAmD,CAAC;AAEhF,eAAO,MAAM,WAAW,mCAAoC,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import type { RcaDecisionItem, RcaDecisioning } from "../RcaDecisionComponent/types";
|
|
2
|
-
import type { DecisionAdvantageUiConfig, InsightsDecisionItem, InsightsItemLink, InsightsReport, InsightsPeriod, InsightsUiConfig } from "../../types/insights";
|
|
3
|
-
import type { DashboardApiConfig } from "../../api/dashboardApi";
|
|
4
|
-
/** Insights are on when `ui.insights.enabled` is true, or a yes-like string as the backend accepts. */
|
|
5
|
-
export declare function isInsightsOn(insights: InsightsUiConfig | null | undefined): boolean;
|
|
6
|
-
/** The card's config when it should show, or null. A card saved without `enabled` shows. */
|
|
7
|
-
export declare function summaryCardConfig(da: DecisionAdvantageUiConfig | null | undefined): {
|
|
8
|
-
layoutKey?: string | undefined;
|
|
9
|
-
enabled?: boolean | undefined;
|
|
10
|
-
title?: string | undefined;
|
|
11
|
-
} | null;
|
|
12
|
-
/** Tabs worth showing: each needs the part it lists. */
|
|
13
|
-
export declare function insightTabItems(da: DecisionAdvantageUiConfig | null | undefined): import("../../types/insights").InsightTabConfig[];
|
|
14
|
-
/** "vs previous working day" (Monday against Friday) or "vs previous weekend day": the previous reading is always of the same kind of day. */
|
|
15
|
-
export declare const previousDayLabel: (day?: string | null) => "vs previous weekend day" | "vs previous working day";
|
|
16
|
-
/** "1–7 Oct 2026", "28 Sep – 4 Oct 2026" or "7 Oct 2026". */
|
|
17
|
-
export declare function formatPeriod(period: InsightsPeriod | null | undefined): string;
|
|
18
|
-
/** "8 Oct 2026": the day a report was written for, which is the last day of the period it covers. */
|
|
19
|
-
export declare const formatReportDate: (period: InsightsPeriod | null | undefined) => string;
|
|
20
|
-
/** "10/02" from "2026-10-02", for chart ticks and tooltips. */
|
|
21
|
-
export declare const shortDay: (x: string | number) => string;
|
|
22
|
-
export declare const formatValue: (value: number | null | undefined) => string;
|
|
23
|
-
/** Change against the previous period: whether it is good depends on the number's direction. */
|
|
24
|
-
export declare function deltaTone(deltaPct: number | null | undefined, goodDirection?: "up" | "down"): "flat" | "good" | "bad";
|
|
25
|
-
export declare const formatDelta: (deltaPct: number | null | undefined) => string;
|
|
26
|
-
export declare const movementLabel: (type: string | null | undefined) => string;
|
|
27
|
-
/** Green when the change moved the right way, red when not, amber when the direction is unknown. */
|
|
28
|
-
export declare function sentimentColor(direction: string | null | undefined, goodDirection?: "up" | "down"): "#d97706" | "#16a34a" | "#dc2626";
|
|
29
|
-
/** Opens the latest report of a row named in a report line (an application, a reviewer, a feature, an environment). */
|
|
30
|
-
export declare const OPEN_INSIGHTS_ENTITY_REPORT = "insights:open-entity-report";
|
|
31
|
-
export declare function useOpenRow(): (link: InsightsItemLink) => void;
|
|
32
|
-
/** API decision lines in the shape RcaDecisionComponent draws. With `open`, the rows a line names are buttons that open their report. */
|
|
33
|
-
export declare const toRcaItems: (items: InsightsDecisionItem[] | null | undefined, open?: ((link: InsightsItemLink) => void) | undefined) => RcaDecisionItem[];
|
|
34
|
-
/**
|
|
35
|
-
* Reasoning for a whole report, for the brain button on its Summary and its
|
|
36
|
-
* Decision Advantage header: the report's own explanation, its overall score,
|
|
37
|
-
* and the factors and gaps behind its Root Cause and Next Steps lines.
|
|
38
|
-
* Null when the report carries no reasoning at all.
|
|
39
|
-
*/
|
|
40
|
-
export declare function reportDecisioning(report: InsightsReport | null | undefined, explanation?: string | null): RcaDecisioning | null;
|
|
41
|
-
/** Who is viewing, read from the token's claims. Only decides which buttons show; the backend checks again. */
|
|
42
|
-
export declare function viewerFromToken(accessToken?: string): {
|
|
43
|
-
email: string | null;
|
|
44
|
-
isAdmin: boolean;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Runs `load` whenever `deps` change and keeps the latest answer. A newer run
|
|
48
|
-
* aborts the one before, so a slow response never overwrites a newer one.
|
|
49
|
-
*/
|
|
50
|
-
export declare function useInsightsFetch<T>(load: ((signal: AbortSignal) => Promise<T>) | null, deps: unknown[]): {
|
|
51
|
-
reload: () => void;
|
|
52
|
-
updateData: (update: (data: T | undefined) => T | undefined) => void;
|
|
53
|
-
data?: T | undefined;
|
|
54
|
-
error?: Error | undefined;
|
|
55
|
-
loading: boolean;
|
|
56
|
-
};
|
|
57
|
-
/** Shared polling for every Insights write job. */
|
|
58
|
-
export declare function useJob(jobId: string | null, api: DashboardApiConfig | null, onSucceeded?: (reportId: string | null) => void): {
|
|
59
|
-
status: string | null;
|
|
60
|
-
error: string | null;
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=insightsUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"insightsUtils.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/insightsUtils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,KAAK,EACV,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO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