Skip to content

Split running jobs out of History, collapse History - #13

Merged
7174Andy merged 1 commit into
mainfrom
running-section
Aug 2, 2026
Merged

Split running jobs out of History, collapse History#13
7174Andy merged 1 commit into
mainfrom
running-section

Conversation

@7174Andy

@7174Andy 7174Andy commented Aug 2, 2026

Copy link
Copy Markdown
Owner

What

The dashboard had two sections: Pending and History — and History held both live runs and finished ones, always expanded.

Now three:

  • Scheduledpending
  • Runningprocessing, or triggered with no GitHub conclusion yet
  • History — terminal runs, in a <details> collapsed by default

How

scheduleBucket(status, runConclusion) in types/schedule.ts returns exactly one of scheduled | running | history, so the sections are a partition — nothing shows twice or disappears. isActive (the poll gate) now derives from those buckets instead of restating the "still moving" rule in a second place; that duplication was why running jobs sat in History.

The disclosure uses the native <details>/<summary> marker — no state, no custom chevron.

Notes

  • "Pending" header renamed to "Scheduled", matching the badge text it already rendered.
  • lib/crypto.ts has an unrelated uncommitted change in the working tree; deliberately left out of this branch.

Verification

tsc --noEmit clean, eslint clean, vitest run 84/84 pass. Not exercised in a browser.

🤖 Generated with Claude Code

History mixed live runs with finished ones and always rendered in full.
Three sections now: Scheduled, Running, and a collapsed-by-default
History, bucketed by scheduleBucket() so each schedule lands in exactly
one. The polling predicate derives from the same buckets instead of
re-encoding the "still moving" rule separately.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gitcron Ready Ready Preview Aug 2, 2026 2:43am

@7174Andy
7174Andy merged commit e83ea2d into main Aug 2, 2026
5 checks passed
@7174Andy
7174Andy deleted the running-section branch August 2, 2026 02:46
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