From 12ff274a12c0e8314df9f0af9eea94fa3c177615 Mon Sep 17 00:00:00 2001 From: "Orca (ecs-claude)" Date: Thu, 13 Aug 2026 22:29:44 +0800 Subject: [PATCH] feat(desktop): Runtime identity/context panel (ADR #19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- console/index.html | 1 + console/src/fixtures.ts | 24 ++++++++++- console/src/main.ts | 17 +++++++- console/src/render.test.ts | 59 ++++++++++++++++++++++++-- console/src/render.ts | 58 +++++++++++++++++++++++++- console/src/source.ts | 21 ++++++++-- console/src/styles.css | 85 ++++++++++++++++++++++++++++++++++++++ console/src/types.ts | 25 +++++++++++ src-tauri/src/lib.rs | 29 +++++++++++++ 9 files changed, 309 insertions(+), 10 deletions(-) diff --git a/console/index.html b/console/index.html index 1ae331d..a737b15 100644 --- a/console/index.html +++ b/console/index.html @@ -18,6 +18,7 @@
+