it begins

This commit is contained in:
legop3
2026-04-28 14:02:14 -04:00
parent 9b59718a37
commit 13e9ebc909
11 changed files with 536 additions and 501 deletions
@@ -0,0 +1,24 @@
// Top-level mini summary app shell with hard-refresh timer and alerts.
import { useEffect } from 'react';
import AlertFeed from '../../components/AlertFeed.jsx';
import MiniSummaryContent from './MiniSummaryContent.jsx';
import { HARD_REFRESH_MS } from './constants.js';
export default function MiniSummaryAppRoot() {
useEffect(() => {
if (typeof window === 'undefined') return undefined;
const timer = setTimeout(() => {
const url = new URL(window.location.href);
url.searchParams.set('refresh', Date.now().toString());
window.location.replace(url.toString());
}, HARD_REFRESH_MS);
return () => clearTimeout(timer);
}, []);
return (
<>
<MiniSummaryContent />
<AlertFeed scale={3} />
</>
);
}