Replace Bot Status tab with the VEGA status page

The Status tab embeds status.userevolt.app (VEGA) in an iframe that loads
on first open, with a VEGA-coloured top bar. Old /yuukabot links go to
/status. Removes the Firebase bot dashboard (yuukabot.js/css).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
esefandClaude Opus 5.5 committed 2026-10-10 15:20:26 +03:00
1 parent 26b97923e2
commit 59d226f283
5 files changed
+49 -323

No files matched your search

+10 -2
View File
@@ -8,9 +8,10 @@ document.addEventListener('DOMContentLoaded', () => {
function pathToTab(path) {
const slug = path.replace(/^\/+|\/+$/g, '') || 'about';
const valid = ['about', 'gallery', 'bucketlist', 'yuukabot', 'calendar', 'services'];
const valid = ['about', 'gallery', 'bucketlist', 'status', 'calendar', 'services'];
// old links
if (slug === 'ahmet') return 'bucketlist';
if (slug === 'yuukabot') return 'status';
return valid.includes(slug) ? slug : 'about';
}
@@ -24,7 +25,7 @@ document.addEventListener('DOMContentLoaded', () => {
const tabVideos = {
calendar: calVideo,
bucketlist: bucketlistVideo,
yuukabot: botVideo,
status: botVideo,
services: botVideo
};
@@ -45,6 +46,7 @@ document.addEventListener('DOMContentLoaded', () => {
if (topLine) {
topLine.classList.toggle('cal-theme', tabId === 'calendar');
topLine.classList.toggle('bucketlist-theme', tabId === 'bucketlist');
topLine.classList.toggle('status-theme', tabId === 'status');
}
}
@@ -56,6 +58,12 @@ document.addEventListener('DOMContentLoaded', () => {
if (target) target.style.display = 'block';
setBgForTab(tabId);
// VEGA polls every 2s, so only load it once someone opens the tab
const statusFrame = document.getElementById('status-frame');
if (tabId === 'status' && statusFrame && !statusFrame.src) {
statusFrame.src = 'https://status.userevolt.app/';
}
// tab name next to the hamburger on mobile
const btn = document.getElementById(tabId + '-btn');
if (navCurrent && btn) navCurrent.textContent = btn.textContent;