feat(adwright panel): add cross-link button to BTE Command Center
Some checks failed
plugin-tests / test (push) Failing after 6s
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:
parent
4dac80b215
commit
849dd27119
@ -51,6 +51,6 @@ _None. Plugin uses only the public API._ ✓
|
|||||||
| `static/bte.js` | 330 | `/api/command/requestPhotoshoot` |
|
| `static/bte.js` | 330 | `/api/command/requestPhotoshoot` |
|
||||||
| `static/bte.js` | 369 | `/api/query/assetGrid` |
|
| `static/bte.js` | 369 | `/api/query/assetGrid` |
|
||||||
| `static/bte.js` | 483 | `/api/command/rateAsset` |
|
| `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` |
|
| `static/app.js` | 165 | `/api/vault/status` |
|
||||||
|
|
||||||
|
|||||||
@ -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-error { border-color: var(--error); color: var(--error); }
|
||||||
.svrnty-aw-toast.svrnty-aw-toast-success { border-color: var(--success); color: var(--success); }
|
.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);
|
||||||
|
}
|
||||||
|
|||||||
@ -109,6 +109,7 @@
|
|||||||
'<div class="svrnty-aw-status">' +
|
'<div class="svrnty-aw-status">' +
|
||||||
'<span class="svrnty-aw-status-dot" id="svrntyAwDot"></span>' +
|
'<span class="svrnty-aw-status-dot" id="svrntyAwDot"></span>' +
|
||||||
'<span id="svrntyAwStatusText">checking…</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>' +
|
'</div>' +
|
||||||
'<div class="svrnty-aw-body">' +
|
'<div class="svrnty-aw-body">' +
|
||||||
@ -130,6 +131,11 @@
|
|||||||
_activateTab(id);
|
_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) {
|
function _activateTab(id) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user