Line

ui/client/features/project-gate/controllers/ProjectGateController

Cockpit client (features), v0.9. Source: ui/client/features/project-gate/controllers/ProjectGateController.tsx.

Functions#

ProjectGateController()#

ProjectGateController(__namedParameters): Element

Defined in: ui/client/features/project-gate/controllers/ProjectGateController.tsx:23

Wraps a route that needs a valid Construct project (Dashboard, Wizard, Pages Editor) and blocks it behind a project-selection/init screen instead of letting it render against a directory that has no architecture.yml above it. Every gated feature's own controller imports this one from project-gate's public API (index.ts) and wraps its content with it — the real, checked (SLICE-002) cross-feature dependency the migration in #71 asked for.

#365: with no project open it shows the "Open a project" screen; the folder picker is another feature's controller (directory-browser), composed here as a slot, scoped by the server to the workspace.

Props#

Prop Type Required Default Description
children ReactNode Yes —

Returns#

Element