{
/** Full screen redraw: clear, write header, then board content. */
function fullDraw(): void {
process.stdout.write(`${ESC}[2J${ESC}[H`);
- process.stdout.write(renderHeaderLines(lastUpdated, secsLeft) + '\n');
+ process.stdout.write(renderHeaderLines(lastUpdated) + '\n');
process.stdout.write(boardContent);
}
diff --git a/www/app/components.jsx b/www/app/components.jsx
index 87ffdb8..29c62fb 100644
--- a/www/app/components.jsx
+++ b/www/app/components.jsx
@@ -143,18 +143,6 @@ export function ArrowRightIconExport() {
}
export function DashboardLive() {
- const [tick, setTick] = useState(0)
- const REFRESH_SECS = 60
- const REFRESH_WARNING_THRESHOLD = 10
-
- useEffect(() => {
- const interval = setInterval(() => setTick(t => t + 1), 1000)
- return () => clearInterval(interval)
- }, [])
-
- const secsLeft = Math.max(0, REFRESH_SECS - (tick % REFRESH_SECS))
- const countdown = secsLeft < REFRESH_SECS ? `${secsLeft}s` : '1m 0s'
-
const rows = [
{ icon: '?', name: 'atlas-api', state: 'stuck', msg: 'needs database credentials for staging', right: '', stateColor: 'text-ember' },
{ icon: '\u25d0', name: 'northstar', state: 'working', msg: 'refactoring auth middleware', right: '(8m)', stateColor: 'text-patina' },
@@ -181,8 +169,7 @@ export function DashboardLive() {
tend
- {' '}dashboard \u00b7 updated {timeStr} \u00b7 next refresh in{' '}
- {countdown}
+ {' '}dashboard \u00b7 updated {timeStr}
q to quit