Skip to content

fix(web): hide collection status until the first round after restart - #12

Merged
qiansc merged 1 commit into
mainfrom
fix/collection-status-zero-time
Nov 4, 2026
Merged

qiansc merged 1 commit into
mainfrom
fix/collection-status-zero-time

Conversation

@qiansc

@qiansc qiansc commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Background

Before the first collection round after a restart, the status times are Go zero values (0001-01-01). The status page tested them for truthiness, so it showed a placeholder last-reclaim time.

Changes

The collection status line in operations-page.js uses the shared A.validTime check for last_run_at and last_reclaim_at. It stays hidden until the first round and omits the last-reclaim part when nothing has been reclaimed.

Risks

Display only.

Testing

node scripts/check-web.mjs passes.

🤖 Generated with Claude Code

The zero time (0001-01-01) is truthy, so the status line showed a
placeholder last-reclaim time; use the shared validTime check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qiansc
qiansc merged commit 1211866 into main Nov 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant