mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 07:03:45 +09:00
The form took its defaults from the schema in the browser, which cannot see the installation defaults the API now applies on create, so it could show values the created application would not have. The page sends one dry-run create when it opens and fills the form and the YAML editor from the spec the server returns. There are no further previews while the user edits. A preview that fails, or gets no answer within 8 seconds, opens the form without installation values and shows a notice with Retry. Deploy still works then, because the real create applies the defaults itself. After a failed preview a dropdown stays empty instead of selecting the cluster's default option: a value the user did not choose would be sent and win over the platform default the API applies to omitted fields. A cleared plain text field leaves its key out, as it did before, so clearing a field still resets it. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
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).