mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 20:07:34 +00:00
Replace the ArgoCD React fork (deploy/ui, webpack argo-cd-ui) with a focused, mobile-first CD dashboard built on the shared Hanzo component packages over the native cloud CD plane (/v1/deploy). Its job stays: see every operator App CR with stats · sync · health · resource tree · logs · sync/rollback. - Vite + React 19 STATIC SPA → dist/ (index.html + login.html + CNAME + assets), published to the existing s3://cdn/cd static plane cd.hanzo.ai already serves (ingress staticFiles/spaMode; /v1/deploy peeled to cloud). No ingress/backend change. - @hanzo/gitops (framework-free ArgoCD-replacement views): GitopsAppList for the fleet; GitopsSyncPanel + GitopsAppTree + GitopsNodeInfo + GitopsRollbackDialog composed for the app detail (lazy per-node /resource + /logs). Resolved via Vite path alias off the built dist so it builds without a full monorepo install. - src/lib/adapt.ts maps the real /v1/deploy DTOs into the @hanzo/gitops view-models, reusing the package's foldHealth/foldSync (strips [-_] so the hyphenated 'out-of-sync' folds to OutOfSync, not Unknown). - Auth: the admin-console PKCE login.html (ported) → hanzo_iam_token cookie the cloud binary validates (SuperAdmin gate); same-origin credentialed /v1/deploy. - Lean self-contained topbar (Geist, small mark, env scope) in the interim; the @hanzo/ui-shadcn shared shell + @hanzo/canvas map are registry-install-gated follow-ons (the map already ships green in hanzoai/console). - Verify: tsc 0; vitest 8/8 (adapter + the sync-fold fix); playwright render + mobile (no horizontal body scroll at 390).
18 lines
958 B
HTML
18 lines
958 B
HTML
<!doctype html>
|
|
<html lang="en" data-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
<title>Hanzo CD</title>
|
|
<link
|
|
rel="icon"
|
|
type="image/svg+xml"
|
|
href="data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='64' height='64' rx='8' fill='%23000'/%3E%3Cg transform='translate(8,8) scale(0.716)'%3E%3Cpath d='M22.21 67V44.6369H0V67H22.21Z' fill='%23fff'/%3E%3Cpath d='M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z' fill='%23fff'/%3E%3Cpath d='M22.21 0H0V22.3184H22.21V0Z' fill='%23fff'/%3E%3Cpath d='M66.7198 0H44.5098V22.3184H66.7198V0Z' fill='%23fff'/%3E%3Cpath d='M66.7198 67V44.6369H44.5098V67H66.7198Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E"
|
|
/>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|