Start pipeline steps from the page, with live progress (#18) #65
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
epic:E1-foundation
epic:E2-correct-metrics
epic:E3-fast-jobs
epic:E4-cli
epic:E5-web-ui
epic:E6-history
good first issue
help wanted
invalid
question
sprint-tracking
story
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/screener!65
Loading…
Reference in a new issue
No description provided.
Delete branch "18-jobs-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude: Closes #18
A Pipeline panel above the rankings: each step's latest run (status, done / total and message with a progress bar, started, finished, a failed run's error), a Run button per step, and Run the whole pipeline.
How it works
POST /api/jobs{ steps, restart? }.web.tsruns it asbun cli.ts <steps>(--restartfor Start over), so a run from the page is the same run as one from the terminal: same job rows, conflict checks and checkpoints./api/jobs/events(server-sent events) reads each step's latestjobsrow every second and sends it when something changed. Because it reads the table, runs started from the CLI show up too.POST /api/jobsneedsOrigin: http://127.0.0.1:<port>(orlocalhost). If Origin is missing or belongs to another site, the request gets 403. The check is against the server's own address, not theHostheader, so DNS rebinding doesn't get through.src/steps.tsnow holds the step order, labels, and which steps resume, shared by the CLI, server and page.Definition of Done
127.0.0.1:3077:bun cli.ts refresh --fullfrom a terminal showed live in the panel ("169 / 1,360 · Downloading SEC companyfacts"). After Ctrl-C it read Interrupted. Run then offered Resume it / Start over, and Start over ran a new refresh (job 17,resumesnull).https://evil.example→ 403,http://evil.example:3077with that Host → 403, the page's origin → reaches validation.bun testpasses: 328 tests. New: the jobs API and event stream (test/server.test.ts), the panel in happy-dom (test/app.test.ts),web/jobs.ts(test/jobs-panel.test.ts),stopIndex(test/table.test.ts).bun checkis clean andbun fmt --checkpasses on changed files.questionissues and linked here: #64 (when the whole pipeline finds several interrupted steps, the page asks once for all of them; the interactive CLI asks per step).Notes
web.tslogs a nonzero exit code.🤖 Generated with Claude Code
Code review
No issues found. Checked for bugs and CLAUDE.md compliance.
🤖 Generated with Claude Code