From c84132b8599c5ef3df0430ac641b3b90e6f81ac7 Mon Sep 17 00:00:00 2001 From: Carlos Costa Date: Sun, 15 Nov 2026 14:24:43 -0300 Subject: [PATCH] style(examples): refine DevOps and AI Gateway dashboard cards --- .../examples/AiGatewayDashboardExample.tsx | 90 ++++---- src/pages/examples/DevOpsDashboardExample.tsx | 207 +++++++++++------- 2 files changed, 166 insertions(+), 131 deletions(-) diff --git a/src/pages/examples/AiGatewayDashboardExample.tsx b/src/pages/examples/AiGatewayDashboardExample.tsx index 1625d87c..264407c7 100644 --- a/src/pages/examples/AiGatewayDashboardExample.tsx +++ b/src/pages/examples/AiGatewayDashboardExample.tsx @@ -34,7 +34,7 @@ import { SidebarSection, SidebarItem, } from '../../dashkit/Sidebar/Sidebar'; -import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '../../dashkit/Card'; +import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from '../../dashkit/Card'; import { StatsCard } from '../../dashkit/StatsCard/StatsCard'; import { AreaChart } from '../../dashkit/AreaChart/AreaChart'; import { ProgressBar } from '../../dashkit/ProgressBar/ProgressBar'; @@ -728,65 +728,63 @@ export const AiGatewayDashboardExample = () => { } action={ - + } > API Gateway Credentials Bearer token authentication and RPM throttles - +
{apiKeys.map((key) => ( -
-
-
- +
+
+
+ + {key.name}
-
-
- {key.name} - - - {key.status} - -
-
- - {key.prefix} - - {key.rpmLimit} - • - Created {key.created} -
+ + {key.prefix} + +
+
+
+ + {key.rpmLimit} + + Created {key.created}
+ } + onClick={() => { + navigator.clipboard?.writeText(key.prefix); + toast({ + title: 'Key Copied', + description: `${key.name} token prefix copied.`, + type: 'success', + }); + }} + />
-
))}
- -
- Automatic Key Rotation -
- - 90d Policy Enforced -
-
+ + Automatic Key Rotation + + + 90d Policy Enforced + + {/* SECURITY & GUARDRAILS AUDIT */} diff --git a/src/pages/examples/DevOpsDashboardExample.tsx b/src/pages/examples/DevOpsDashboardExample.tsx index 9f3bc5ee..52af4117 100644 --- a/src/pages/examples/DevOpsDashboardExample.tsx +++ b/src/pages/examples/DevOpsDashboardExample.tsx @@ -41,7 +41,7 @@ import { SidebarSection, SidebarItem, } from '../../dashkit/Sidebar/Sidebar'; -import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '../../dashkit/Card'; +import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter } from '../../dashkit/Card'; import { StatsCard } from '../../dashkit/StatsCard/StatsCard'; import { AreaChart } from '../../dashkit/AreaChart/AreaChart'; import { ProgressBar } from '../../dashkit/ProgressBar/ProgressBar'; @@ -804,73 +804,88 @@ export const DevOpsDashboardExample = () => { > Pipeline Stages - Build execution for commit 8f2d91a + Build execution for commit{' '} + + 8f2d91a + - + - - Lint & Typecheck - 14s -
- } - description={ -
- tsc -b && eslint . - passed -
- } - /> - - Automated Tests - 28s -
- } - description={ -
- vitest run (54 suites) - passed -
- } - /> - - Container Build - 45s -
- } - description={ -
- docker build (linux/amd64) - passed -
- } - /> - - Global Edge Sync - 12s -
- } - description={ -
- syncing 28 anycast PoPs - synced -
- } - /> + {[ + { + title: 'Lint & Typecheck', + detail: 'tsc -b && eslint .', + duration: '14s', + isCommand: true, + }, + { + title: 'Automated Tests', + detail: 'vitest run (54 suites)', + duration: '28s', + isCommand: true, + }, + { + title: 'Container Build', + detail: 'docker build (linux/amd64)', + duration: '45s', + isCommand: true, + }, + { + title: 'Global Edge Sync', + detail: 'syncing 28 anycast PoPs', + duration: '12s', + isCommand: false, + }, + ].map((stage) => ( + + {stage.title} + + {stage.duration} + + + } + description={ + + {stage.detail} + + } + /> + ))} + +
+
+ Duration breakdown + 1m 39s total +
+
+
+
+
+
+
+
+ + + + main + + + + 4 / 4 stages completed + + {/* 3. EDGE POINTS OF PRESENCE */} @@ -878,10 +893,12 @@ export const DevOpsDashboardExample = () => { } action={ -
- - 28 PoPs Active -
+ } > Edge Points of Presence @@ -896,21 +913,30 @@ export const DevOpsDashboardExample = () => { { code: 'NRT', region: 'Tokyo, Japan', latency: '41.8ms', traffic: '21%', pct: 21 }, { code: 'GRU', region: 'São Paulo, Brazil', latency: '27.9ms', traffic: '14%', pct: 14 }, ].map((pop) => ( -
-
+
+
{pop.region} - {pop.code} + + {pop.code} +
-
- {pop.traffic} traffic +
+ {pop.traffic} {pop.latency}
- +
))} + + Avg latency: 23.1ms + + + 100% edge health + + {/* 4. SECURITY & COMPLIANCE */} @@ -918,10 +944,12 @@ export const DevOpsDashboardExample = () => { } action={ -
- - Protected -
+ } > Security & Compliance @@ -960,9 +988,9 @@ export const DevOpsDashboardExample = () => { stat: '1 approval required', }, ].map((sec) => ( -
+
-
+
{sec.icon}
@@ -970,16 +998,25 @@ export const DevOpsDashboardExample = () => { {sec.detail}
-
-
- - {sec.status} -
- {sec.stat} +
+ + {sec.stat}
))} + + Last audit: 4m ago + + + All 4 checks passing + +