mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 20:56:02 +09:00
Move the console SPA source into the monorepo at packages/system/dashboard/images/console so the UI versions and ships in lockstep with the platform, removing the cross-repo digest-bump PRs and the version drift between the two repositories. Snapshot of cozystack/cozystack-ui main at 8ef45a4; full history remains in that repository (to be archived). The Makefile now builds the console image from this in-tree context instead of cloning the external repo at build time: dropped clone-console/clean-console and the CONSOLE_REPO/CONSOLE_BRANCH variables; the built digest is still pinned into values.yaml by update-values-console. .helmignore already excludes images/*/* so the source never enters the Helm chart. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
945 B
945 B
cozystack-ui
Cozystack Marketplace and Console UI — a pure SPA that talks directly to the
Kubernetes API. No BFF, no controller-generated configuration: all UI entities
are discovered dynamically from ApplicationDefinitions in the cluster.
Structure
apps/console— React + Vite SPApackages/k8s-client— fetch-based Kubernetes client with watchpackages/ui— shared UI components (Tailwind + Base UI)packages/types— shared TypeScript types
Requirements
- Node.js ≥ 20
- pnpm ≥ 9
kubectl proxyfor local development (proxies/apiand/apis)
Development
pnpm install
# in one terminal:
kubectl proxy --port 8001
# in another terminal:
pnpm dev
The app becomes available at http://localhost:3001/.
Build
pnpm build
The console is built into apps/console/dist/.
Test
pnpm test
Runs the workspace test suites (vitest + jsdom for the console).