Skip to content

feat(console): web skin skeleton — roster + 6-state polling (ADR-3 slice-1) - #6

Closed
brettchien wants to merge 1 commit into
mainfrom
feat/console-slice1
Closed

feat(console): web skin skeleton — roster + 6-state polling (ADR-3 slice-1)#6
brettchien wants to merge 1 commit into
mainfrom
feat/console-slice1

Conversation

@brettchien

Copy link
Copy Markdown
Contributor

First slice of the ADR-3 desktop console: the web skin.

Renders the deployment roster — each row's canonical 6-state badges + ready/desired/current — refreshed by polling a Source. Framework-light TypeScript (no UI framework) to keep it verifiable.

Why frontend-only this slice: the authoring runtime can't build the Tauri Rust backend (aws-sdk-ec2 > RAM) and is headless (no GUI to run a desktop app). So slice-1 is the part that is buildable + showable here; the Tauri shell + Rust deploy_list bridge to studio-cp is slice-2 (gated on PR #2 merge + a Tauri CI job).

Runs with no core: outside Tauri it uses MockSource fixtures — npm run dev, or npm run build then open dist/index.html (file://).

Verified locally:

  • tsc --noEmit (strict) clean
  • npm test — 8 vitest tests on the pure rosterHtml
  • npm run build — vite produces a standalone dist/

Contract: src/types.ts mirrors studio-cp's Deployment/InstancePhase/AgentState; the UI depends only on that shape, so swapping MockSourceTauriSource (→ SwiftUI later) doesn't touch rendering.

Draft — skeleton for review; visual is best seen by opening the build (I'm headless, can't screenshot).

…ice-1)

A framework-light TypeScript web console: renders the deployment roster with
each instance's canonical 6-state and ready/desired/current, refreshed by
polling a Source. MockSource (fixtures) drives the standalone/browser build;
TauriSource (desktop, slice-2) bridges to studio-cp via the Tauri global.

Verified locally: tsc --noEmit clean, 8 vitest tests (rosterHtml), vite build
produces a standalone dist/index.html. No core needed to run with mocks.
@brettchien

Copy link
Copy Markdown
Contributor Author

Superseded by #8 — slice-1 的 web skin(console/)已隨 #8 rebase 進 main(commit 98272b2),與此分支 byte-for-byte 一致。無獨立待合內容,關閉。branch feat/console-slice1 暫留,需要可再開。

@brettchien brettchien closed this Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant