feat(apps): stepped creation wizard, branch previews, and app-creation fixes
This session (frontend focus):
- Rebuild /apps/new as a 4-step wizard (Basics → Configure → Trigger → Review):
WizardRail, SourceKindPicker card grid, AppManifest review, per-step validation,
ConfirmDialog-based unsaved-changes guard.
- Extract lib/workload/sourceForms.ts (single source of truth for source_config)
+ {Image,Compose,Static,Dockerfile}SourceForm + StaticDiscoveryWizard; fold the
/apps/[id] edit form onto the same components (removes the duplication). Add
vitest + sourceForms unit tests.
- Branch preview environments UI: /chain is_preview/preview_branch + a Preview
environments panel on /apps/[id] (per-branch URLs, ConfirmDialog teardown, armed
state); RegistryImagePicker on the registry trigger and the image source.
- Fixes: image-inspect 404 -> admin-gated POST /api/discovery/image/inspect;
conflict-panel blur flicker; friendly localized discovery errors; CPU/Memory
label hints; dashboard + /apps "Total workloads" count only source_kind workloads
(drop stale trigger_kind gate); NPM cert/access-list name cache; EntityPicker
empty-list guard.
- Update CLAUDE.md frontend conventions + add a Build & Test section.
Also captures pre-existing in-progress platform work (not from this session):
workload notifications, Prometheus metrics export, store lockfile, health probes,
backup hardening, and related store/webhook/scheduler changes.
This commit is contained in:
@@ -27,6 +27,13 @@ const (
|
||||
|
||||
// EventStackStatus is emitted when a compose stack status changes.
|
||||
EventStackStatus EventType = "stack_status"
|
||||
|
||||
// EventBuildLog is emitted for each line of a streaming image build.
|
||||
// Per-line events are ephemeral (not persisted to the event_log) — they
|
||||
// exist to drive a live tail UI during the slow "building" phase of a
|
||||
// dockerfile-source deploy. Subscribers should filter by WorkloadID
|
||||
// because every dockerfile deploy on the box publishes on the same bus.
|
||||
EventBuildLog EventType = "build_log"
|
||||
)
|
||||
|
||||
// Event is a single event published on the bus.
|
||||
@@ -77,6 +84,14 @@ type StaticSiteStatusPayload struct {
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
// BuildLogPayload is the payload for EventBuildLog events. One event
|
||||
// per non-empty line read off the daemon's NDJSON build stream.
|
||||
type BuildLogPayload struct {
|
||||
WorkloadID string `json:"workload_id"`
|
||||
Line string `json:"line"`
|
||||
Stream string `json:"stream,omitempty"`
|
||||
}
|
||||
|
||||
// StackStatusPayload is the payload for EventStackStatus events.
|
||||
type StackStatusPayload struct {
|
||||
StackID string `json:"stack_id"`
|
||||
|
||||
Reference in New Issue
Block a user