mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +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).
27 lines
752 B
JSON
27 lines
752 B
JSON
{
|
|
"name": "cd",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"description": "Hanzo CD — the dedicated deploy dashboard served at cd.hanzo.ai (a @hanzo/gitops + @hanzo/canvas SPA over /v1/deploy). Replaces the ArgoCD UI fork.",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"typecheck": "tsc --noEmit -p tsconfig.app.json",
|
|
"preview": "vite preview --port 4173"
|
|
},
|
|
"dependencies": {
|
|
"@hanzo/canvas": "workspace:*",
|
|
"@hanzo/gitops": "workspace:*",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.3",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.1.4"
|
|
}
|
|
}
|