@camunda/design-system 0.35.0 → 0.37.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/src/components/ui/app-header.d.ts +6 -2
- package/dist/src/components/ui/app-header.d.ts.map +1 -1
- package/dist/src/components/ui/app-header.js +1 -1
- package/dist/src/components/ui/app-header.js.map +1 -1
- package/dist/src/components/ui/app-sidebar.d.ts +44 -12
- package/dist/src/components/ui/app-sidebar.d.ts.map +1 -1
- package/dist/src/components/ui/app-sidebar.js +42 -15
- package/dist/src/components/ui/app-sidebar.js.map +1 -1
- package/dist/src/components/ui/avatar.d.ts +7 -0
- package/dist/src/components/ui/avatar.d.ts.map +1 -1
- package/dist/src/components/ui/avatar.js +1 -1
- package/dist/src/components/ui/avatar.js.map +1 -1
- package/dist/src/components/ui/bar-chart.d.ts.map +1 -1
- package/dist/src/components/ui/bar-chart.js +45 -7
- package/dist/src/components/ui/bar-chart.js.map +1 -1
- package/dist/src/components/ui/chart.d.ts +9 -2
- package/dist/src/components/ui/chart.d.ts.map +1 -1
- package/dist/src/components/ui/chart.js +13 -4
- package/dist/src/components/ui/chart.js.map +1 -1
- package/dist/src/components/ui/data-table.d.ts +6 -0
- package/dist/src/components/ui/data-table.d.ts.map +1 -1
- package/dist/src/components/ui/data-table.js +6 -5
- package/dist/src/components/ui/data-table.js.map +1 -1
- package/dist/src/components/ui/definition-tooltip.d.ts.map +1 -1
- package/dist/src/components/ui/definition-tooltip.js +37 -9
- package/dist/src/components/ui/definition-tooltip.js.map +1 -1
- package/dist/src/components/ui/line-chart.d.ts.map +1 -1
- package/dist/src/components/ui/line-chart.js +12 -2
- package/dist/src/components/ui/line-chart.js.map +1 -1
- package/dist/src/components/ui/meter.d.ts.map +1 -1
- package/dist/src/components/ui/meter.js +1 -10
- package/dist/src/components/ui/meter.js.map +1 -1
- package/dist/src/components/ui/nav-breadcrumb.d.ts +120 -2
- package/dist/src/components/ui/nav-breadcrumb.d.ts.map +1 -1
- package/dist/src/components/ui/nav-breadcrumb.js +54 -7
- package/dist/src/components/ui/nav-breadcrumb.js.map +1 -1
- package/dist/src/components/ui/nav-data.d.ts +46 -0
- package/dist/src/components/ui/nav-data.d.ts.map +1 -0
- package/dist/src/components/ui/nav-data.js +66 -0
- package/dist/src/components/ui/nav-data.js.map +1 -0
- package/dist/src/components/ui/nav-icon.assignability.d.ts +30 -0
- package/dist/src/components/ui/nav-icon.assignability.d.ts.map +1 -0
- package/dist/src/components/ui/nav-icon.assignability.js +28 -0
- package/dist/src/components/ui/nav-icon.assignability.js.map +1 -0
- package/dist/src/components/ui/nav-icon.d.ts +33 -0
- package/dist/src/components/ui/nav-icon.d.ts.map +1 -0
- package/dist/src/components/ui/nav-icon.js +20 -0
- package/dist/src/components/ui/nav-icon.js.map +1 -0
- package/dist/src/components/ui/notifications.d.ts +72 -0
- package/dist/src/components/ui/notifications.d.ts.map +1 -0
- package/dist/src/components/ui/notifications.js +53 -0
- package/dist/src/components/ui/notifications.js.map +1 -0
- package/dist/src/components/ui/scorecard.d.ts +1 -1
- package/dist/src/components/ui/scorecard.d.ts.map +1 -1
- package/dist/src/components/ui/scorecard.js +13 -8
- package/dist/src/components/ui/scorecard.js.map +1 -1
- package/dist/src/components/ui/sheet.d.ts +1 -1
- package/dist/src/components/ui/sparkline.d.ts.map +1 -1
- package/dist/src/components/ui/sparkline.js +11 -1
- package/dist/src/components/ui/sparkline.js.map +1 -1
- package/dist/src/examples/agent-control-plane-processes/DashboardPage.d.ts +3 -0
- package/dist/src/examples/agent-control-plane-processes/DashboardPage.d.ts.map +1 -0
- package/dist/src/examples/agent-control-plane-processes/DashboardPage.js +114 -0
- package/dist/src/examples/agent-control-plane-processes/DashboardPage.js.map +1 -0
- package/dist/src/examples/agent-control-plane-processes/derive.d.ts +65 -0
- package/dist/src/examples/agent-control-plane-processes/derive.d.ts.map +1 -0
- package/dist/src/examples/agent-control-plane-processes/derive.js +234 -0
- package/dist/src/examples/agent-control-plane-processes/derive.js.map +1 -0
- package/dist/src/examples/agent-control-plane-processes/mock-data.d.ts +37 -0
- package/dist/src/examples/agent-control-plane-processes/mock-data.d.ts.map +1 -0
- package/dist/src/examples/agent-control-plane-processes/mock-data.js +206 -0
- package/dist/src/examples/agent-control-plane-processes/mock-data.js.map +1 -0
- package/dist/src/examples/agent-control-plane-processes/summary-mock-data.d.ts +37 -0
- package/dist/src/examples/agent-control-plane-processes/summary-mock-data.d.ts.map +1 -0
- package/dist/src/examples/agent-control-plane-processes/summary-mock-data.js +53 -0
- package/dist/src/examples/agent-control-plane-processes/summary-mock-data.js.map +1 -0
- package/dist/src/examples/shared/DashboardSection.d.ts +9 -0
- package/dist/src/examples/shared/DashboardSection.d.ts.map +1 -0
- package/dist/src/examples/shared/DashboardSection.js +5 -0
- package/dist/src/examples/shared/DashboardSection.js.map +1 -0
- package/dist/src/examples/shared/DateRangePopover.d.ts +3 -0
- package/dist/src/examples/shared/DateRangePopover.d.ts.map +1 -0
- package/dist/src/examples/shared/DateRangePopover.js +35 -0
- package/dist/src/examples/shared/DateRangePopover.js.map +1 -0
- package/dist/src/examples/shared/agent-control-plane-nav.d.ts +4 -0
- package/dist/src/examples/shared/agent-control-plane-nav.d.ts.map +1 -0
- package/dist/src/examples/shared/agent-control-plane-nav.js +25 -0
- package/dist/src/examples/shared/agent-control-plane-nav.js.map +1 -0
- package/dist/src/examples/shared/date-range-utils.d.ts +10 -0
- package/dist/src/examples/shared/date-range-utils.d.ts.map +1 -0
- package/dist/src/examples/shared/date-range-utils.js +75 -0
- package/dist/src/examples/shared/date-range-utils.js.map +1 -0
- package/dist/src/icons/camunda-app-icons.d.ts +19 -0
- package/dist/src/icons/camunda-app-icons.d.ts.map +1 -0
- package/dist/src/icons/camunda-app-icons.js +26 -0
- package/dist/src/icons/camunda-app-icons.js.map +1 -0
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.d.ts.map +1 -1
- package/dist/src/icons/index.js +1 -0
- package/dist/src/icons/index.js.map +1 -1
- package/dist/src/index.d.ts +6 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -2
- package/dist/src/index.js.map +1 -1
- package/dist/styles.css +77 -25
- package/package.json +1 -1
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.d.ts +0 -2
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.d.ts.map +0 -1
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.js +0 -21
- package/dist/src/examples/cost-dashboard/CostBreakdownChart.js.map +0 -1
- package/dist/src/examples/cost-dashboard/CostDashboardPage.d.ts +0 -2
- package/dist/src/examples/cost-dashboard/CostDashboardPage.d.ts.map +0 -1
- package/dist/src/examples/cost-dashboard/CostDashboardPage.js +0 -56
- package/dist/src/examples/cost-dashboard/CostDashboardPage.js.map +0 -1
- package/dist/src/examples/cost-dashboard/TrendChart.d.ts +0 -2
- package/dist/src/examples/cost-dashboard/TrendChart.d.ts.map +0 -1
- package/dist/src/examples/cost-dashboard/TrendChart.js +0 -19
- package/dist/src/examples/cost-dashboard/TrendChart.js.map +0 -1
- package/dist/src/examples/cost-dashboard/mock-data.d.ts +0 -34
- package/dist/src/examples/cost-dashboard/mock-data.d.ts.map +0 -1
- package/dist/src/examples/cost-dashboard/mock-data.js +0 -120
- package/dist/src/examples/cost-dashboard/mock-data.js.map +0 -1
- package/dist/src/examples/projects-list/ProjectsListPage.d.ts +0 -4
- package/dist/src/examples/projects-list/ProjectsListPage.d.ts.map +0 -1
- package/dist/src/examples/projects-list/ProjectsListPage.js +0 -58
- package/dist/src/examples/projects-list/ProjectsListPage.js.map +0 -1
- package/dist/src/examples/projects-list/mock-data.d.ts +0 -10
- package/dist/src/examples/projects-list/mock-data.d.ts.map +0 -1
- package/dist/src/examples/projects-list/mock-data.js +0 -83
- package/dist/src/examples/projects-list/mock-data.js.map +0 -1
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// TODO: Replace with API calls to GET /v1/processes and
|
|
2
|
+
// GET /v1/processes/{id}/versions/{v}?agent=...&range=... — process
|
|
3
|
+
// definitions, their agents, and every metric/instance below are scoped to
|
|
4
|
+
// the selected date range and (for agents) the selected process+version.
|
|
5
|
+
const dates = ["Jul 1", "Jul 2", "Jul 3", "Jul 4", "Jul 5", "Jul 6", "Jul 7"];
|
|
6
|
+
function buildTrend(totalTokens, inputShare) {
|
|
7
|
+
const dailyTotal = totalTokens / 7;
|
|
8
|
+
return dates.map((date, i) => {
|
|
9
|
+
const wobble = 1 + 0.15 * Math.sin(i * 1.3);
|
|
10
|
+
const total = Math.round(dailyTotal * wobble);
|
|
11
|
+
const input = Math.round(total * inputShare);
|
|
12
|
+
return { date, input, output: total - input };
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export const processes = [
|
|
16
|
+
{
|
|
17
|
+
name: "Order fulfillment",
|
|
18
|
+
versions: [3, 2, 1],
|
|
19
|
+
latestVersion: 3,
|
|
20
|
+
instanceCount: 3840,
|
|
21
|
+
instances: [
|
|
22
|
+
{
|
|
23
|
+
key: "2251799813700012",
|
|
24
|
+
started: "Jul 7, 2026 · 09:12",
|
|
25
|
+
agentNames: ["Validate order", "Assess risk", "Resolve address"],
|
|
26
|
+
inputTokens: 420,
|
|
27
|
+
outputTokens: 140,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: "2251799813700018",
|
|
31
|
+
started: "Jul 7, 2026 · 09:31",
|
|
32
|
+
agentNames: ["Validate order", "Assess risk"],
|
|
33
|
+
inputTokens: 380,
|
|
34
|
+
outputTokens: 125,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: "2251799813700024",
|
|
38
|
+
started: "Jul 7, 2026 · 09:48",
|
|
39
|
+
agentNames: ["Validate order", "Assess risk", "Resolve address"],
|
|
40
|
+
inputTokens: 455,
|
|
41
|
+
outputTokens: 150,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: "2251799813700031",
|
|
45
|
+
started: "Jul 6, 2026 · 16:02",
|
|
46
|
+
agentNames: ["Validate order"],
|
|
47
|
+
inputTokens: 210,
|
|
48
|
+
outputTokens: 70,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: "2251799813700037",
|
|
52
|
+
started: "Jul 6, 2026 · 15:25",
|
|
53
|
+
agentNames: ["Validate order", "Assess risk", "Resolve address"],
|
|
54
|
+
inputTokens: 460,
|
|
55
|
+
outputTokens: 155,
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
agents: [
|
|
59
|
+
{
|
|
60
|
+
name: "Validate order",
|
|
61
|
+
model: "gpt-4o-mini",
|
|
62
|
+
tokenTrend: buildTrend(214000, 0.72),
|
|
63
|
+
totalTokens: 214000,
|
|
64
|
+
runs: 3840,
|
|
65
|
+
medianResponseMs: 850,
|
|
66
|
+
modelCalls: 3840,
|
|
67
|
+
toolCalls: 5200,
|
|
68
|
+
toolCallsByName: [
|
|
69
|
+
{ tool: "address_lookup", count: 2100 },
|
|
70
|
+
{ tool: "inventory_check", count: 3100 },
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "Assess risk",
|
|
75
|
+
model: "gpt-4o",
|
|
76
|
+
tokenTrend: buildTrend(384000, 0.75),
|
|
77
|
+
totalTokens: 384000,
|
|
78
|
+
runs: 3840,
|
|
79
|
+
medianResponseMs: 1450,
|
|
80
|
+
modelCalls: 3840,
|
|
81
|
+
toolCalls: 4300,
|
|
82
|
+
toolCallsByName: [
|
|
83
|
+
{ tool: "credit_check", count: 3840 },
|
|
84
|
+
{ tool: "fraud_score", count: 460 },
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "Resolve address",
|
|
89
|
+
model: "gpt-4o-mini",
|
|
90
|
+
tokenTrend: buildTrend(132000, 0.78),
|
|
91
|
+
totalTokens: 132000,
|
|
92
|
+
runs: 3120,
|
|
93
|
+
medianResponseMs: 640,
|
|
94
|
+
modelCalls: 3120,
|
|
95
|
+
toolCalls: 3120,
|
|
96
|
+
toolCallsByName: [{ tool: "address_lookup", count: 3120 }],
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "Invoice approval",
|
|
102
|
+
versions: [2, 1],
|
|
103
|
+
latestVersion: 2,
|
|
104
|
+
instanceCount: 2910,
|
|
105
|
+
instances: [
|
|
106
|
+
{
|
|
107
|
+
key: "2251799813710001",
|
|
108
|
+
started: "Jul 7, 2026 · 10:05",
|
|
109
|
+
agentNames: ["Extract invoice fields", "Approve invoice"],
|
|
110
|
+
inputTokens: 340,
|
|
111
|
+
outputTokens: 115,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
key: "2251799813710007",
|
|
115
|
+
started: "Jul 7, 2026 · 10:22",
|
|
116
|
+
agentNames: ["Extract invoice fields"],
|
|
117
|
+
inputTokens: 180,
|
|
118
|
+
outputTokens: 60,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: "2251799813710013",
|
|
122
|
+
started: "Jul 6, 2026 · 14:40",
|
|
123
|
+
agentNames: ["Extract invoice fields", "Approve invoice"],
|
|
124
|
+
inputTokens: 355,
|
|
125
|
+
outputTokens: 120,
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
key: "2251799813710019",
|
|
129
|
+
started: "Jul 6, 2026 · 13:58",
|
|
130
|
+
agentNames: ["Extract invoice fields", "Approve invoice"],
|
|
131
|
+
inputTokens: 330,
|
|
132
|
+
outputTokens: 108,
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
agents: [
|
|
136
|
+
{
|
|
137
|
+
name: "Extract invoice fields",
|
|
138
|
+
model: "gpt-4o-mini",
|
|
139
|
+
tokenTrend: buildTrend(178000, 0.7),
|
|
140
|
+
totalTokens: 178000,
|
|
141
|
+
runs: 2910,
|
|
142
|
+
medianResponseMs: 720,
|
|
143
|
+
modelCalls: 2910,
|
|
144
|
+
toolCalls: 2910,
|
|
145
|
+
toolCallsByName: [{ tool: "ocr_extract", count: 2910 }],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "Approve invoice",
|
|
149
|
+
model: "gpt-4o",
|
|
150
|
+
tokenTrend: buildTrend(96000, 0.68),
|
|
151
|
+
totalTokens: 96000,
|
|
152
|
+
runs: 2910,
|
|
153
|
+
medianResponseMs: 980,
|
|
154
|
+
modelCalls: 2910,
|
|
155
|
+
toolCalls: 1850,
|
|
156
|
+
toolCallsByName: [{ tool: "policy_check", count: 1850 }],
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "Support ticket triage",
|
|
162
|
+
versions: [1],
|
|
163
|
+
latestVersion: 1,
|
|
164
|
+
instanceCount: 1680,
|
|
165
|
+
instances: [
|
|
166
|
+
{
|
|
167
|
+
key: "2251799813720004",
|
|
168
|
+
started: "Jul 7, 2026 · 11:02",
|
|
169
|
+
agentNames: ["Draft customer reply"],
|
|
170
|
+
inputTokens: 610,
|
|
171
|
+
outputTokens: 240,
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
key: "2251799813720010",
|
|
175
|
+
started: "Jul 7, 2026 · 10:48",
|
|
176
|
+
agentNames: ["Draft customer reply"],
|
|
177
|
+
inputTokens: 545,
|
|
178
|
+
outputTokens: 210,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
key: "2251799813720016",
|
|
182
|
+
started: "Jul 6, 2026 · 17:15",
|
|
183
|
+
agentNames: ["Draft customer reply"],
|
|
184
|
+
inputTokens: 590,
|
|
185
|
+
outputTokens: 225,
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
agents: [
|
|
189
|
+
{
|
|
190
|
+
name: "Draft customer reply",
|
|
191
|
+
model: "claude-sonnet-4.5",
|
|
192
|
+
tokenTrend: buildTrend(297000, 0.71),
|
|
193
|
+
totalTokens: 297000,
|
|
194
|
+
runs: 1680,
|
|
195
|
+
medianResponseMs: 1100,
|
|
196
|
+
modelCalls: 1680,
|
|
197
|
+
toolCalls: 2050,
|
|
198
|
+
toolCallsByName: [
|
|
199
|
+
{ tool: "kb_search", count: 1680 },
|
|
200
|
+
{ tool: "sentiment_check", count: 370 },
|
|
201
|
+
],
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
},
|
|
205
|
+
];
|
|
206
|
+
//# sourceMappingURL=mock-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-data.js","sourceRoot":"","sources":["../../../../src/examples/agent-control-plane-processes/mock-data.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,oEAAoE;AACpE,2EAA2E;AAC3E,yEAAyE;AA0CzE,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAE9E,SAAS,UAAU,CACjB,WAAmB,EACnB,UAAkB;IAElB,MAAM,UAAU,GAAG,WAAW,GAAG,CAAC,CAAC;IACnC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QAC3B,MAAM,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;QAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC,CAAC;QAC9C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC;QAC7C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAwB;IAC5C;QACE,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACnB,a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AE,IAAI;QACnB,SAAS,EAAE;YACT;gBACE,GAAG,EAAE,kBAAkB;gBACvB,OAAO,EAAE,qBAAqB;gBAC9B,UAAU,EAAE,CAAC,sBAAsB,CAAC;gBACpC,WAAW,EAAE,GAAG;gBAChB,YAAY,EAAE,GAAG;aAClB;YACD;gBACE,GAAG,EAAE,kBAAkB;gBACvB,OAAO,EAAE,qBAAqB;gBAC9B,UAAU,EAAE,CAAC,sBAAsB,CAAC;gBACpC,WAAW,EAAE,GAAG;gBAChB,YAAY,EAAE,GAAG;aAClB;YACD;gBACE,GAAG,EAAE,kBAAkB;gBACvB,OAAO,EAAE,qBAAqB;gBAC9B,UAAU,EAAE,CAAC,sBAAsB,CAAC;gBACpC,WAAW,EAAE,GAAG;gBAChB,YAAY,EAAE,GAAG;aAClB;SACF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,mBAAmB;gBAC1B,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC;gBACpC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,IAAI;gBACV,gBAAgB,EAAE,IAAI;gBACtB,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,IAAI;gBACf,eAAe,EAAE;oBACf,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;oBAClC,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,EAAE;iBACxC;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface SparklinePoint {
|
|
2
|
+
day: number;
|
|
3
|
+
count: number;
|
|
4
|
+
}
|
|
5
|
+
export interface RateSparklinePoint {
|
|
6
|
+
day: number;
|
|
7
|
+
rate: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const totalInstances: {
|
|
10
|
+
value: number;
|
|
11
|
+
deltaPct: number;
|
|
12
|
+
direction: "increase";
|
|
13
|
+
sparkline: SparklinePoint[];
|
|
14
|
+
};
|
|
15
|
+
export declare const incidentRate: {
|
|
16
|
+
value: number;
|
|
17
|
+
deltaPct: number;
|
|
18
|
+
direction: "increase";
|
|
19
|
+
sparkline: RateSparklinePoint[];
|
|
20
|
+
};
|
|
21
|
+
export interface TokenTrendPoint {
|
|
22
|
+
date: string;
|
|
23
|
+
input: number;
|
|
24
|
+
output: number;
|
|
25
|
+
}
|
|
26
|
+
export declare const tokenTrend: TokenTrendPoint[];
|
|
27
|
+
export interface ProcessInstanceRanking {
|
|
28
|
+
process: string;
|
|
29
|
+
instances: number;
|
|
30
|
+
}
|
|
31
|
+
export declare const topProcessesByInstances: ProcessInstanceRanking[];
|
|
32
|
+
export interface ProcessTokenRanking {
|
|
33
|
+
process: string;
|
|
34
|
+
tokens: number;
|
|
35
|
+
}
|
|
36
|
+
export declare const topProcessesByTokens: ProcessTokenRanking[];
|
|
37
|
+
//# sourceMappingURL=summary-mock-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summary-mock-data.d.ts","sourceRoot":"","sources":["../../../../src/examples/agent-control-plane-processes/summary-mock-data.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,cAAc;;;;eAOlB,cAAc,EAAE;CACxB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;eAOhB,kBAAkB,EAAE;CAC5B,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,UAAU,EAAE,eAAe,EAQvC,CAAC;AAEF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,uBAAuB,EAAE,sBAAsB,EAO3D,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,EAAE,mBAAmB,EAOrD,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// TODO: Replace with API calls to GET /v1/agent-control-plane/overview?range=7d
|
|
2
|
+
// (instances, incident rate, token trend, top-N rankings — all scoped to the
|
|
3
|
+
// selected date range and compared against the immediately preceding period
|
|
4
|
+
// of equal length).
|
|
5
|
+
//
|
|
6
|
+
// Backs the aggregate "Key metrics" / "Usage trends" / "Top processes"
|
|
7
|
+
// sections at the top of this page (merged in from the former standalone
|
|
8
|
+
// Overview page — kept as its own file since it's a separate, org-wide-scoped
|
|
9
|
+
// dataset from the process/agent-scoped one in mock-data.ts/derive.ts).
|
|
10
|
+
export const totalInstances = {
|
|
11
|
+
value: 12480,
|
|
12
|
+
deltaPct: 8.2,
|
|
13
|
+
direction: "increase",
|
|
14
|
+
sparkline: Array.from({ length: 7 }, (_, i) => ({
|
|
15
|
+
day: i + 1,
|
|
16
|
+
count: Math.round(1500 + 220 * Math.sin(i * 1.1) + i * 60),
|
|
17
|
+
})),
|
|
18
|
+
};
|
|
19
|
+
export const incidentRate = {
|
|
20
|
+
value: 3.2,
|
|
21
|
+
deltaPct: 0.6,
|
|
22
|
+
direction: "increase",
|
|
23
|
+
sparkline: Array.from({ length: 7 }, (_, i) => ({
|
|
24
|
+
day: i + 1,
|
|
25
|
+
rate: Math.round((2.4 + 0.5 * Math.sin(i * 0.9) + i * 0.12) * 10) / 10,
|
|
26
|
+
})),
|
|
27
|
+
};
|
|
28
|
+
export const tokenTrend = [
|
|
29
|
+
{ date: "Jul 1", input: 182000, output: 61000 },
|
|
30
|
+
{ date: "Jul 2", input: 194500, output: 64800 },
|
|
31
|
+
{ date: "Jul 3", input: 176200, output: 58900 },
|
|
32
|
+
{ date: "Jul 4", input: 203100, output: 69700 },
|
|
33
|
+
{ date: "Jul 5", input: 211800, output: 72400 },
|
|
34
|
+
{ date: "Jul 6", input: 198600, output: 66300 },
|
|
35
|
+
{ date: "Jul 7", input: 224900, output: 78100 },
|
|
36
|
+
];
|
|
37
|
+
export const topProcessesByInstances = [
|
|
38
|
+
{ process: "Order fulfillment", instances: 3840 },
|
|
39
|
+
{ process: "Invoice approval", instances: 2910 },
|
|
40
|
+
{ process: "Customer onboarding", instances: 2205 },
|
|
41
|
+
{ process: "Support ticket triage", instances: 1680 },
|
|
42
|
+
{ process: "Refund and reconciliation", instances: 970 },
|
|
43
|
+
{ process: "Contract renewal review", instances: 615 },
|
|
44
|
+
];
|
|
45
|
+
export const topProcessesByTokens = [
|
|
46
|
+
{ process: "Order fulfillment", tokens: 730000 },
|
|
47
|
+
{ process: "Support ticket triage", tokens: 297000 },
|
|
48
|
+
{ process: "Invoice approval", tokens: 274000 },
|
|
49
|
+
{ process: "Customer onboarding", tokens: 205000 },
|
|
50
|
+
{ process: "Refund and reconciliation", tokens: 142000 },
|
|
51
|
+
{ process: "Contract renewal review", tokens: 96000 },
|
|
52
|
+
];
|
|
53
|
+
//# sourceMappingURL=summary-mock-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summary-mock-data.js","sourceRoot":"","sources":["../../../../src/examples/agent-control-plane-processes/summary-mock-data.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,6EAA6E;AAC7E,4EAA4E;AAC5E,oBAAoB;AACpB,EAAE;AACF,uEAAuE;AACvE,yEAAyE;AACzE,8EAA8E;AAC9E,wEAAwE;AAYxE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,GAAG;IACb,SAAS,EAAE,UAAmB;IAC9B,SAAS,EAAE,KAAK,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AM,EAAE,MAAM,EAAE,KAAK,EAAE;IAC/C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;IAC/C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;CAChD,CAAC;AAOF,MAAM,CAAC,MAAM,uBAAuB,GAA6B;IAC/D,EAAE,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,IAAI,EAAE;IACjD,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,IAAI,EAAE;IAChD,EAAE,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,IAAI,EAAE;IACnD,EAAE,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,IAAI,EAAE;IACrD,EAAE,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,GAAG,EAAE;IACxD,EAAE,OAAO,EAAE,yBAAyB,EAAE,SAAS,EAAE,GAAG,EAAE;CACvD,CAAC;AAOF,MAAM,CAAC,MAAM,oBAAoB,GAA0B;IACzD,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE;IAChD,EAAE,OAAO,EAAE,uBAAuB,EAAE,MAAM,EAAE,MAAM,EAAE;IACpD,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,EAAE;IAC/C,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE;IAClD,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM,EAAE;IACxD,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,EAAE,KAAK,EAAE;CACtD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
interface DashboardSectionProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function DashboardSection({ title, description, children, }: DashboardSectionProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=DashboardSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardSection.d.ts","sourceRoot":"","sources":["../../../../src/examples/shared/DashboardSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,WAAW,EACX,QAAQ,GACT,EAAE,qBAAqB,qBAYvB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function DashboardSection({ title, description, children, }) {
|
|
3
|
+
return (_jsxs("section", { className: "space-y-4", children: [_jsxs("div", { className: "space-y-1", children: [_jsx("h2", { className: "text-lg font-medium text-foreground", children: title }), description ? (_jsx("p", { className: "text-sm text-muted-foreground", children: description })) : null] }), children] }));
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=DashboardSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardSection.js","sourceRoot":"","sources":["../../../../src/examples/shared/DashboardSection.tsx"],"names":[],"mappings":";AAQA,MAAM,UAAU,gBAAgB,CAAC,EAC/B,KAAK,EACL,WAAW,EACX,QAAQ,GACc;IACtB,OAAO,CACL,mBAAS,SAAS,EAAC,WAAW,aAC5B,eAAK,SAAS,EAAC,WAAW,aACxB,aAAI,SAAS,EAAC,qCAAqC,YAAE,KAAK,GAAM,EAC/D,WAAW,CAAC,CAAC,CAAC,CACb,YAAG,SAAS,EAAC,+BAA+B,YAAE,WAAW,GAAK,CAC/D,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,QAAQ,IACD,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePopover.d.ts","sourceRoot":"","sources":["../../../../src/examples/shared/DateRangePopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyB/B,wBAAgB,gBAAgB,sBAkF/B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { CalendarDays } from "lucide-react";
|
|
4
|
+
import { subMonths } from "date-fns";
|
|
5
|
+
import { Badge, Button, Popover, PopoverTrigger, PopoverContent, Calendar, } from "../../index.js";
|
|
6
|
+
import { formatDateRangeDisplay, STORYBOOK_TODAY } from "./date-range-utils.js";
|
|
7
|
+
const presets = [
|
|
8
|
+
{ label: "Today", value: "today" },
|
|
9
|
+
{ label: "Yesterday", value: "yesterday" },
|
|
10
|
+
{ label: "Last 7 days", value: "7d" },
|
|
11
|
+
{ label: "Last 30 days", value: "30d" },
|
|
12
|
+
{ label: "Last 90 days", value: "90d" },
|
|
13
|
+
];
|
|
14
|
+
const VISIBLE_MONTH_COUNT = 6;
|
|
15
|
+
export function DateRangePopover() {
|
|
16
|
+
const [activePreset, setActivePreset] = React.useState("7d");
|
|
17
|
+
const [customRange, setCustomRange] = React.useState();
|
|
18
|
+
const calendarScrollRef = React.useRef(null);
|
|
19
|
+
const { presetLabel, dateLabel, comparisonLabel } = formatDateRangeDisplay(activePreset, customRange);
|
|
20
|
+
return (_jsxs("div", { className: "flex flex-col items-end gap-1", children: [_jsxs(Popover, { onOpenChange: (open) => {
|
|
21
|
+
if (!open)
|
|
22
|
+
return;
|
|
23
|
+
requestAnimationFrame(() => {
|
|
24
|
+
const el = calendarScrollRef.current;
|
|
25
|
+
if (el)
|
|
26
|
+
el.scrollTop = el.scrollHeight;
|
|
27
|
+
});
|
|
28
|
+
}, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { variant: "secondary", className: "gap-2", children: [_jsx(CalendarDays, {}), presetLabel ? (_jsx(Badge, { variant: "neutral", className: "bg-neutral-background-medium", children: presetLabel })) : null, _jsx("span", { className: "font-normal text-foreground", children: dateLabel })] }) }), _jsxs(PopoverContent, { align: "end", className: "flex w-auto min-w-[420px] max-w-none flex-row gap-0 p-0", children: [_jsxs("div", { className: "flex w-44 shrink-0 flex-col gap-0.5 border-r border-border p-1.5", children: [presets.map((preset) => (_jsx(Button, { type: "button", variant: activePreset === preset.value ? "secondary" : "ghost", className: "w-full justify-start",
|
|
29
|
+
// TODO: wire to real date-range filtering; visual-only for now
|
|
30
|
+
onClick: () => setActivePreset(preset.value), children: preset.label }, preset.value))), _jsx(Button, { type: "button", variant: activePreset === "custom" ? "secondary" : "ghost", className: "w-full justify-start", onClick: () => setActivePreset("custom"), children: "Custom range" })] }), _jsx("div", { ref: calendarScrollRef, className: "max-h-80 min-w-0 flex-1 overflow-y-auto p-3", children: _jsx(Calendar, { mode: "range", numberOfMonths: VISIBLE_MONTH_COUNT, defaultMonth: subMonths(STORYBOOK_TODAY, VISIBLE_MONTH_COUNT - 1), selected: customRange, className: "p-0", classNames: { months: "flex flex-col gap-4" }, onSelect: (range) => {
|
|
31
|
+
setCustomRange(range);
|
|
32
|
+
setActivePreset("custom");
|
|
33
|
+
} }) })] })] }), _jsx("p", { className: "text-right text-xs text-neutral-foreground-subtle", children: comparisonLabel })] }));
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=DateRangePopover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePopover.js","sourceRoot":"","sources":["../../../../src/examples/shared/DateRangePopover.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM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Z,cAAc,EAAE,mBAAmB,EACnC,YAAY,EAAE,SAAS,CAAC,eAAe,EAAE,mBAAmB,GAAG,CAAC,CAAC,EACjE,QAAQ,EAAE,WAAW,EACrB,SAAS,EAAC,KAAK,EACf,UAAU,EAAE,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;wCAClB,cAAc,CAAC,KAAK,CAAC,CAAC;wCACtB,eAAe,CAAC,QAAQ,CAAC,CAAC;oCAC5B,CAAC,GACD,GACE,IACS,IACT,EACV,YAAG,SAAS,EAAC,mDAAmD,YAC7D,eAAe,GACd,IACA,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type SidebarNode } from "../../index.js";
|
|
2
|
+
export declare function agentControlPlaneNavFor(active: "processes" | "agents"): SidebarNode[];
|
|
3
|
+
export declare const agentControlPlaneBreadcrumb: import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=agent-control-plane-nav.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-control-plane-nav.d.ts","sourceRoot":"","sources":["../../../../src/examples/shared/agent-control-plane-nav.tsx"],"names":[],"mappings":"AAQA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,aAAa,CAAC;AAErB,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,WAAW,GAAG,QAAQ,GAC7B,WAAW,EAAE,CAmBf;AAED,eAAO,MAAM,2BAA2B,6BAUvC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { GitBranch, Bot, Building2, Cloud, LayoutDashboard, } from "lucide-react";
|
|
3
|
+
import { NavBreadcrumb, NavBreadcrumbItem, } from "../../index.js";
|
|
4
|
+
export function agentControlPlaneNavFor(active) {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
type: "item",
|
|
8
|
+
key: "processes",
|
|
9
|
+
label: "Processes",
|
|
10
|
+
icon: GitBranch,
|
|
11
|
+
isActive: active === "processes",
|
|
12
|
+
linkProps: { href: "#" },
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: "item",
|
|
16
|
+
key: "agents",
|
|
17
|
+
label: "Agents",
|
|
18
|
+
icon: Bot,
|
|
19
|
+
isActive: active === "agents",
|
|
20
|
+
linkProps: { href: "#" },
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
export const agentControlPlaneBreadcrumb = (_jsxs(NavBreadcrumb, { "aria-label": "Cluster and application", children: [_jsx(NavBreadcrumbItem, { icon: _jsx(Building2, {}), label: "Camundanzia Org" }), _jsx(NavBreadcrumbItem, { icon: _jsx(Cloud, {}), label: "eu-1-prod" }), _jsx(NavBreadcrumbItem, { icon: _jsx(LayoutDashboard, {}), label: "Agent Control Plane", active: true })] }));
|
|
25
|
+
//# sourceMappingURL=agent-control-plane-nav.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-control-plane-nav.js","sourceRoot":"","sources":["../../../../src/examples/shared/agent-control-plane-nav.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,GAAG,EACH,SAAS,EACT,KAAK,EACL,eAAe,GAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,aAAa,EACb,iBAAiB,GAElB,MAAM,aAAa,CAAC;AAErB,MAAM,UAAU,uBAAuB,CACrC,MAA8B;IAE9B,OAAO;QACL;YACE,IAAI,EAAE,MAAM;YACZ,GAAG,EAAE,WAAW;YAChB,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,MAAM,KAAK,WAAW;YAChC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;SACzB;QACD;YACE,IAAI,EAAE,MAAM;YACZ,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;YACf,IAAI,EAAE,GAAG;YACT,QAAQ,EAAE,MAAM,KAAK,QAAQ;YAC7B,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;SACzB;KACF,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,MAAC,aAAa,kBAAY,yBAAyB,aACjD,KAAC,iBAAiB,IAAC,IAAI,EAAE,KAAC,SAAS,KAAG,EAAE,KAAK,EAAC,iBAAiB,GAAG,EAClE,KAAC,iBAAiB,IAAC,IAAI,EAAE,KAAC,KAAK,KAAG,EAAE,KAAK,EAAC,WAAW,GAAG,EACxD,KAAC,iBAAiB,IAChB,IAAI,EAAE,KAAC,eAAe,KAAG,EACzB,KAAK,EAAC,qBAAqB,EAC3B,MAAM,SACN,IACY,CACjB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DateRange } from "react-day-picker";
|
|
2
|
+
/** Fixed anchor so Storybook date labels stay stable across runs. */
|
|
3
|
+
export declare const STORYBOOK_TODAY: Date;
|
|
4
|
+
export declare function formatDateRangeDisplay(preset: string, customRange: DateRange | undefined): {
|
|
5
|
+
primaryLabel: string;
|
|
6
|
+
comparisonLabel: string;
|
|
7
|
+
presetLabel?: string;
|
|
8
|
+
dateLabel: string;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=date-range-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range-utils.d.ts","sourceRoot":"","sources":["../../../../src/examples/shared/date-range-utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,eAAe,MAAoC,CAAC;AAqEjE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,SAAS,GAAG,SAAS,GACjC;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAeA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { format, subDays, startOfDay } from "date-fns";
|
|
2
|
+
/** Fixed anchor so Storybook date labels stay stable across runs. */
|
|
3
|
+
export const STORYBOOK_TODAY = startOfDay(new Date(2026, 6, 14));
|
|
4
|
+
function formatShortDate(date) {
|
|
5
|
+
return format(date, "MMM d, yyyy");
|
|
6
|
+
}
|
|
7
|
+
function formatRangeLabel(from, to) {
|
|
8
|
+
const sameYear = from.getFullYear() === to.getFullYear();
|
|
9
|
+
if (sameYear && from.getMonth() === to.getMonth()) {
|
|
10
|
+
return `${format(from, "MMM d")} – ${format(to, "d, yyyy")}`;
|
|
11
|
+
}
|
|
12
|
+
if (sameYear) {
|
|
13
|
+
return `${format(from, "MMM d")} – ${format(to, "MMM d, yyyy")}`;
|
|
14
|
+
}
|
|
15
|
+
return `${formatShortDate(from)} – ${formatShortDate(to)}`;
|
|
16
|
+
}
|
|
17
|
+
function presetDayCount(preset) {
|
|
18
|
+
switch (preset) {
|
|
19
|
+
case "today":
|
|
20
|
+
return 1;
|
|
21
|
+
case "yesterday":
|
|
22
|
+
return 1;
|
|
23
|
+
case "7d":
|
|
24
|
+
return 7;
|
|
25
|
+
case "30d":
|
|
26
|
+
return 30;
|
|
27
|
+
case "90d":
|
|
28
|
+
return 90;
|
|
29
|
+
default:
|
|
30
|
+
return 7;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function resolvePrimaryRange(preset, customRange) {
|
|
34
|
+
if (preset === "custom" && customRange?.from) {
|
|
35
|
+
const from = startOfDay(customRange.from);
|
|
36
|
+
const to = startOfDay(customRange.to ?? customRange.from);
|
|
37
|
+
return from <= to ? { from, to } : { from: to, to: from };
|
|
38
|
+
}
|
|
39
|
+
if (preset === "yesterday") {
|
|
40
|
+
const day = subDays(STORYBOOK_TODAY, 1);
|
|
41
|
+
return { from: day, to: day };
|
|
42
|
+
}
|
|
43
|
+
const days = presetDayCount(preset);
|
|
44
|
+
const to = STORYBOOK_TODAY;
|
|
45
|
+
const from = preset === "today" ? STORYBOOK_TODAY : subDays(to, days - 1);
|
|
46
|
+
return { from, to };
|
|
47
|
+
}
|
|
48
|
+
const presets = [
|
|
49
|
+
{ label: "Today", value: "today" },
|
|
50
|
+
{ label: "Yesterday", value: "yesterday" },
|
|
51
|
+
{ label: "Last 7 days", value: "7d" },
|
|
52
|
+
{ label: "Last 30 days", value: "30d" },
|
|
53
|
+
{ label: "Last 90 days", value: "90d" },
|
|
54
|
+
{ label: "Custom range", value: "custom" },
|
|
55
|
+
];
|
|
56
|
+
function presetLabel(preset) {
|
|
57
|
+
if (preset === "custom")
|
|
58
|
+
return undefined;
|
|
59
|
+
return presets.find((p) => p.value === preset)?.label;
|
|
60
|
+
}
|
|
61
|
+
export function formatDateRangeDisplay(preset, customRange) {
|
|
62
|
+
const { from, to } = resolvePrimaryRange(preset, customRange);
|
|
63
|
+
const spanDays = Math.round((to.getTime() - from.getTime()) / (1000 * 60 * 60 * 24)) + 1;
|
|
64
|
+
const comparisonTo = subDays(from, 1);
|
|
65
|
+
const comparisonFrom = subDays(comparisonTo, spanDays - 1);
|
|
66
|
+
const dateLabel = formatRangeLabel(from, to);
|
|
67
|
+
const namedPreset = presetLabel(preset);
|
|
68
|
+
return {
|
|
69
|
+
primaryLabel: dateLabel,
|
|
70
|
+
dateLabel,
|
|
71
|
+
presetLabel: namedPreset,
|
|
72
|
+
comparisonLabel: `Compared to ${formatRangeLabel(comparisonFrom, comparisonTo)}`,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=date-range-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range-utils.js","sourceRoot":"","sources":["../../../../src/examples/shared/date-range-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE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CAAC;AAEX,SAAS,WAAW,CAAC,MAAc;IACjC,IAAI,MAAM,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC1C,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,EAAE,KAAK,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,MAAc,EACd,WAAkC;IAOlC,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,mBAAmB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC9D,MAAM,QAAQ,GACZ,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;IAC1E,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACtC,MAAM,cAAc,GAAG,OAAO,CAAC,YAAY,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC;IAC3D,MAAM,SAAS,GAAG,gBAAgB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC7C,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAExC,OAAO;QACL,YAAY,EAAE,SAAS;QACvB,SAAS;QACT,WAAW,EAAE,WAAW;QACxB,eAAe,EAAE,eAAe,gBAAgB,CAAC,cAAc,EAAE,YAAY,CAAC,EAAE;KACjF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NavIcon } from "../components/ui/nav-icon.js";
|
|
2
|
+
/** The Camunda web applications a navigation surface can link to. */
|
|
3
|
+
export type CamundaAppKey = "operate" | "tasklist" | "optimize" | "admin" | "identity" | "modeler" | "console";
|
|
4
|
+
/**
|
|
5
|
+
* Icon per Camunda web application, for navigation surfaces that list them.
|
|
6
|
+
*
|
|
7
|
+
* Console's runtime hands out cluster applications as plain data with no icons, so without this
|
|
8
|
+
* every consumer hand-writes the same seven-entry mapping.
|
|
9
|
+
*
|
|
10
|
+
* `admin` and `identity` share a glyph on purpose: they are the same application under two
|
|
11
|
+
* names, renamed in 8.9.0-alpha5. Which of the two to display is version-dependent Console
|
|
12
|
+
* logic and stays with the consumer — this map never inspects a cluster.
|
|
13
|
+
*
|
|
14
|
+
* The map is an indirection, and that is the point: replacing these values with bespoke Camunda
|
|
15
|
+
* glyphs later is non-breaking, because consumers ask for `camundaAppIcons` rather than naming
|
|
16
|
+
* a glyph. Until then the lucide set is generic where Console shows product iconography today.
|
|
17
|
+
*/
|
|
18
|
+
export declare const camundaAppIcons: Record<CamundaAppKey, NavIcon>;
|
|
19
|
+
//# sourceMappingURL=camunda-app-icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camunda-app-icons.d.ts","sourceRoot":"","sources":["../../../src/icons/camunda-app-icons.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAGzD,qEAAqE;AACrE,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,UAAU,GACV,UAAU,GACV,OAAO,GACP,UAAU,GACV,SAAS,GACT,SAAS,CAAC;AAEd;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,CAQ1D,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ChartLine, LayoutGrid, ListChecks, Play, Settings, } from "lucide-react";
|
|
2
|
+
import { ModelerIcon } from "./custom/ModelerIcon.js";
|
|
3
|
+
/**
|
|
4
|
+
* Icon per Camunda web application, for navigation surfaces that list them.
|
|
5
|
+
*
|
|
6
|
+
* Console's runtime hands out cluster applications as plain data with no icons, so without this
|
|
7
|
+
* every consumer hand-writes the same seven-entry mapping.
|
|
8
|
+
*
|
|
9
|
+
* `admin` and `identity` share a glyph on purpose: they are the same application under two
|
|
10
|
+
* names, renamed in 8.9.0-alpha5. Which of the two to display is version-dependent Console
|
|
11
|
+
* logic and stays with the consumer — this map never inspects a cluster.
|
|
12
|
+
*
|
|
13
|
+
* The map is an indirection, and that is the point: replacing these values with bespoke Camunda
|
|
14
|
+
* glyphs later is non-breaking, because consumers ask for `camundaAppIcons` rather than naming
|
|
15
|
+
* a glyph. Until then the lucide set is generic where Console shows product iconography today.
|
|
16
|
+
*/
|
|
17
|
+
export const camundaAppIcons = {
|
|
18
|
+
operate: Play,
|
|
19
|
+
tasklist: ListChecks,
|
|
20
|
+
optimize: ChartLine,
|
|
21
|
+
admin: Settings,
|
|
22
|
+
identity: Settings,
|
|
23
|
+
modeler: ModelerIcon,
|
|
24
|
+
console: LayoutGrid,
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=camunda-app-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camunda-app-icons.js","sourceRoot":"","sources":["../../../src/icons/camunda-app-icons.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,GACT,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAYnD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmC;IAC7D,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,SAAS;IACnB,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,UAAU;CACpB,CAAC"}
|
|
@@ -15,4 +15,5 @@ export { IpAllowlistIcon } from "./custom/IpAllowlistIcon.js";
|
|
|
15
15
|
export { ModelerIcon } from "./custom/ModelerIcon.js";
|
|
16
16
|
export { ProcessApplicationIcon } from "./custom/ProcessApplicationIcon.js";
|
|
17
17
|
export { ProjectIcon } from "./custom/ProjectIcon.js";
|
|
18
|
+
export { camundaAppIcons, type CamundaAppKey } from "./camunda-app-icons.js";
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,YAAY,CAAC;AAIpB,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/src/icons/index.js
CHANGED
|
@@ -17,4 +17,5 @@ export { IpAllowlistIcon } from "./custom/IpAllowlistIcon.js";
|
|
|
17
17
|
export { ModelerIcon } from "./custom/ModelerIcon.js";
|
|
18
18
|
export { ProcessApplicationIcon } from "./custom/ProcessApplicationIcon.js";
|
|
19
19
|
export { ProjectIcon } from "./custom/ProjectIcon.js";
|
|
20
|
+
export { camundaAppIcons } from "./camunda-app-icons.js";
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGZ,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,mEAAmE;AACnE,2FAA2F;AAC3F,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
|
|
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