Compare commits

..

13 Commits

Author SHA1 Message Date
josh 1e3d50719e Merge pull request 'Revitalize backend: working cloud saves, logout, and account UX' (#13) from feature/auth-invites into main
CI / build-and-push (push) Successful in 59s
Reviewed-on: #13
2026-04-28 19:34:37 -04:00
josh 5d30d1f4a1 Make dev menu (Ctrl+D) always available without localStorage gate
CI / build-and-push (push) Successful in 36s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-28 12:29:46 -04:00
josh ce2cab3404 Merge pull request 'Fix admin seed, open username/email changes, invite refresh & revocation' (#11) from feature/auth-invites into main
CI / build-and-push (push) Successful in 51s
Reviewed-on: #11
2026-04-27 22:28:23 -04:00
josh 035d4f0385 Merge pull request 'Rename AI Tycoon to Token Empire across entire codebase' (#10) from feature/auth-invites into main
Balance Check / balance-simulation (push) Successful in 41s
Balance Check / multi-run-balance (push) Successful in 14m22s
CI / build-and-push (push) Successful in 1m23s
Reviewed-on: #10
2026-04-27 21:08:36 -04:00
josh 5e4007160c Merge pull request 'Fix empty VITE_API_URL falling back to localhost in production' (#9) from feature/auth-invites into main
CI / build-and-push (push) Successful in 36s
Reviewed-on: #9
2026-04-27 20:51:19 -04:00
josh eca244f9d4 Merge pull request 'Fix double /api prefix causing invite gate bypass and broken API calls' (#8) from feature/auth-invites into main
CI / build-and-push (push) Successful in 37s
Reviewed-on: #8
2026-04-27 20:47:40 -04:00
josh 95b43dceec Merge pull request 'Fix health check 404: add /api/health route, remove nginx /health proxy' (#7) from feature/auth-invites into main
CI / build-and-push (push) Successful in 1m13s
Reviewed-on: #7
2026-04-27 20:29:51 -04:00
josh 01d9703aec Merge pull request 'Improve API error messages: show HTTP status, catch network errors' (#6) from feature/auth-invites into main
CI / build-and-push (push) Successful in 37s
Reviewed-on: #6
2026-04-27 20:14:13 -04:00
josh 8e5dca471e Merge pull request 'Add nginx reverse proxy for /api and /health to backend server' (#5) from feature/auth-invites into main
CI / build-and-push (push) Successful in 1m4s
Reviewed-on: #5
2026-04-27 20:00:16 -04:00
josh cc27c00991 Merge pull request 'Add backend health check, fetch timeouts, stale token cleanup, and error screen' (#4) from feature/auth-invites into main
CI / build-and-push (push) Successful in 39s
Reviewed-on: #4
2026-04-27 19:56:53 -04:00
josh c0965cb7d7 Merge pull request 'Add auto-migration on server startup' (#3) from feature/auth-invites into main
CI / build-and-push (push) Successful in 45s
Reviewed-on: #3
2026-04-27 19:43:38 -04:00
josh 5f7b728463 Merge pull request 'Fix Docker production build: move tsx to dependencies, reinstall in production stage' (#2) from feature/auth-invites into main
CI / build-and-push (push) Successful in 1m19s
Reviewed-on: #2
2026-04-27 19:34:39 -04:00
josh b0c552562a Merge pull request 'Add auth system with invite-only registration and admin roles' (#1) from feature/auth-invites into main
CI / build-and-push (push) Successful in 1m21s
Reviewed-on: #1
2026-04-27 19:26:15 -04:00
+2 -5
View File
@@ -18,16 +18,13 @@ export function DevMenu() {
const [isOpen, setIsOpen] = useState(false); const [isOpen, setIsOpen] = useState(false);
const [activeTab, setActiveTab] = useState<Tab>('resources'); const [activeTab, setActiveTab] = useState<Tab>('resources');
const isEnabled = import.meta.env.DEV || localStorage.getItem('token-empire-dev-menu') === 'true';
useEffect(() => { useEffect(() => {
if (!isEnabled) return;
const handler = () => setIsOpen((o) => !o); const handler = () => setIsOpen((o) => !o);
window.addEventListener('toggle-dev-menu', handler); window.addEventListener('toggle-dev-menu', handler);
return () => window.removeEventListener('toggle-dev-menu', handler); return () => window.removeEventListener('toggle-dev-menu', handler);
}, [isEnabled]); }, []);
if (!isEnabled || !isOpen) return null; if (!isOpen) return null;
return ( return (
<div className="fixed bottom-4 right-4 z-50 w-[440px] max-h-[520px] flex flex-col bg-surface-900 border border-surface-700 rounded-lg shadow-2xl"> <div className="fixed bottom-4 right-4 z-50 w-[440px] max-h-[520px] flex flex-col bg-surface-900 border border-surface-700 rounded-lg shadow-2xl">