feat(adwright panel): add cross-link button to BTE Command Center
Some checks failed
plugin-tests / test (push) Failing after 6s

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) <noreply@anthropic.com>
This commit is contained in:
Svrnty 2026-05-24 12:19:17 -04:00
parent 4dac80b215
commit 849dd27119
3 changed files with 25 additions and 1 deletions

View File

@ -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` |

View File

@ -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);
}

View File

@ -109,6 +109,7 @@
'<div class="svrnty-aw-status">' +
'<span class="svrnty-aw-status-dot" id="svrntyAwDot"></span>' +
'<span id="svrntyAwStatusText">checking…</span>' +
'<button class="svrnty-aw-bte-link" id="svrntyAwOpenBte" title="Open BTE Command Center (creative studio)">↗ BTE</button>' +
'</div>' +
'</div>' +
'<div class="svrnty-aw-body">' +
@ -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) {