feat(desktop): Runtime identity/context panel (ADR #19) - #24
Closed
brettchien wants to merge 1 commit into
Closed
Conversation
Surfaces "who am I managing this cluster as, against what account" in the Studio desktop skin — the visible panel the ADR's read model was built for. - src-tauri: `runtime_context` bridge command (mirrors deploy_list) → oab-mcp's runtime_context tool. - console: `RuntimeContext` view-model + Source method (Tauri + Mock); a pure `identityHtml` renderer showing principal / account / region / source / binding, with a role-vs-static-user kind badge and an IdentityMismatch highlight when the resolved principal fails the binding's expected_principal. Fetched once on boot; browser build uses a fixture. 6 new render tests. Verified locally: tsc --noEmit clean, vitest 14/14, vite build OK. The Rust bridge compiles via desktop.yml (compile-linux). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Author
|
Merged to |
smallgun01
pushed a commit
to smallgun01/studio
that referenced
this pull request
Aug 13, 2026
…nabdev#24) Surfaces "who am I managing this cluster as, against what account" in the Studio desktop skin — the visible panel the ADR's read model was built for. - src-tauri: `runtime_context` bridge command (mirrors deploy_list) → oab-mcp's runtime_context tool. - console: `RuntimeContext` view-model + Source method (Tauri + Mock); a pure `identityHtml` renderer showing principal / account / region / source / binding, with a role-vs-static-user kind badge and an IdentityMismatch highlight when the resolved principal fails the binding's expected_principal. Fetched once on boot; browser build uses a fixture. 6 new render tests. Verified locally: tsc --noEmit clean, vitest 14/14, vite build OK. The Rust bridge compiles via desktop.yml (compile-linux). Co-authored-by: Orca (ecs-claude) <orca@ecs.local> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Drafted by Orca (
ecs-claude) — flagging authorship (shared GitHub identity).The desktop panel the ADR #19 read model was built for — surfaces "who am I managing this cluster as, against what account?" in the Studio skin. Follows the merged CP/MCP slices (#20/#21/#23).
What:
src-tauri— aruntime_contextbridge command (mirrorsdeploy_list) that calls the bundledoab-mcpsidecar'sruntime_contexttool.console—RuntimeContextview-model + aSourcemethod (Tauri bridge + Mock fixture); a pureidentityHtmlrenderer showing principal / account / region / source / binding, a role-vs-static-user kind badge, and an IdentityMismatch highlight (red left-border +⚠ … expected <arn>) when the resolved principal fails the binding'sexpected_principal. Fetched once on boot (identity changes rarely; each call is a live STS lookup server-side); the browser build renders from a fixture.Effect: today's
deploy_listincident would render as a red panel —user/brett.chien(kinduser) in916371022086,identity mismatch — expected …:role/openab-orca-task-role.Verification (local, since desktop CI runs
tsc && vite buildbut not vitest):tsc --noEmitclean ·vitest14/14 (6 new identity tests) ·vite buildOK.deploy_list;desktop.ymlcompile-linuxcompiles it.Screenshots to follow once a desktop build is bundled. Relates to #19.
🤖 Generated with Claude Code