From 849dd2711914aeca57770189a2e22e26e274a62f Mon Sep 17 00:00:00 2001 From: Svrnty Date: Sun, 24 May 2026 12:19:17 -0400 Subject: [PATCH] feat(adwright panel): add cross-link button to BTE Command Center MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Header now shows ↗ BTE button next to the profile status pill. Click invokes window.SvrntyBTE.open() to surface the BTE overlay, satisfying the "Adwright pulls content from BTE panel" integration goal at the UX level. Asset-URL-level integration follows automatically once cycles contain BTE-rendered asset references (post Phase 8). Themed via existing CSS vars (--accent, --border2, --accent-bg, etc) — zero hardcoded colors. CONNECTION-MAP regenerated. Co-Authored-By: Claude Opus 4.7 (1M context) --- CONNECTION-MAP.md | 2 +- static/adwright.css | 18 ++++++++++++++++++ static/adwright.js | 6 ++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/CONNECTION-MAP.md b/CONNECTION-MAP.md index 09e2d80..2c08448 100644 --- a/CONNECTION-MAP.md +++ b/CONNECTION-MAP.md @@ -51,6 +51,6 @@ _None. Plugin uses only the public API._ ✓ | `static/bte.js` | 330 | `/api/command/requestPhotoshoot` | | `static/bte.js` | 369 | `/api/query/assetGrid` | | `static/bte.js` | 483 | `/api/command/rateAsset` | -| `static/adwright.js` | 478 | `/api/adwright/provision-creds` | +| `static/adwright.js` | 484 | `/api/adwright/provision-creds` | | `static/app.js` | 165 | `/api/vault/status` | diff --git a/static/adwright.css b/static/adwright.css index 5bc634a..7b73fb2 100644 --- a/static/adwright.css +++ b/static/adwright.css @@ -456,3 +456,21 @@ main.main:has(> .svrnty-aw-panel) > #mainChat { } .svrnty-aw-toast.svrnty-aw-toast-error { border-color: var(--error); color: var(--error); } .svrnty-aw-toast.svrnty-aw-toast-success { border-color: var(--success); color: var(--success); } + +/* Cross-panel link button (Adwright header → BTE overlay) */ +.svrnty-aw-bte-link { + margin-left: 12px; + padding: 4px 10px; + background: transparent; + border: 1px solid var(--border2); + border-radius: var(--radius-md); + font-size: 12px; + font-family: var(--font-ui); + color: var(--accent); + cursor: pointer; + transition: background 0.15s, border-color 0.15s; +} +.svrnty-aw-bte-link:hover { + background: var(--accent-bg); + border-color: var(--accent); +} diff --git a/static/adwright.js b/static/adwright.js index b472a6c..61c7bbb 100644 --- a/static/adwright.js +++ b/static/adwright.js @@ -109,6 +109,7 @@ '
' + '' + 'checking…' + + '' + '
' + '' + '
' + @@ -130,6 +131,11 @@ _activateTab(id); }); }); + // Cross-panel link to BTE Command Center. + const bteBtn = panel.querySelector("#svrntyAwOpenBte"); + if (bteBtn) bteBtn.addEventListener("click", () => { + if (window.SvrntyBTE && window.SvrntyBTE.open) window.SvrntyBTE.open(); + }); } function _activateTab(id) {