Files
cozystack/packages/system/dashboard/images/console
Myasnikov Daniil ecb2576239 feat(dashboard): start the order form from one server dry-run
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>
2026-11-26 14:20:06 +00:00
..

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 SPA
  • packages/k8s-client — fetch-based Kubernetes client with watch
  • packages/ui — shared UI components (Tailwind + Base UI)
  • packages/types — shared TypeScript types

Requirements

  • Node.js ≥ 20
  • pnpm ≥ 9
  • kubectl proxy for local development (proxies /api and /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).