Surface prerender_html jobs in the local indexing dashboard#5448
Merged
habdelra merged 4 commits intoJul 9, 2026
Merged
Conversation
The dashboard now renders prerender_html jobs everywhere index jobs appear: the pending-jobs query includes the prerender_html job type, and the active view groups a realm's jobs into one card — a section per running pass (index first, prerender after, with its own progress bar) and a compact ✓ line for a pass that already finished, so a realm reads as one story: index ✓, prerender 40/93. Prerender sections carry their own label and bar color, and skip the calculating state since their URL set arrives fully computed in the job args. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the realm-server’s local _indexing-dashboard so it surfaces prerender_html jobs alongside indexing jobs, using the existing indexing event sink snapshot for active/history display and expanding the pending-jobs query to include queued prerender work.
Changes:
- Include
prerender_htmlin the pending jobs query so it shows up in Pending / Recent Completed (and_indexing-status). - Update dashboard rendering to group active jobs per realm into a single card with separate sections (index first, prerender second), plus an optional ✓ “finished pass” line sourced from history.
- Add QUnit rendering tests covering prerender labeling/styling, calculating-state rules, grouping/ordering, and pending/history rows.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/realm-server/worker-manager.ts | Expands pending jobs SQL filter to include prerender_html so queued prerender jobs appear on the dashboard and status endpoint. |
| packages/realm-server/handlers/handle-indexing-dashboard.ts | Refactors active rendering to support prerender sections, grouping per-realm cards, finished-pass ✓ lines, and prerender styling. |
| packages/realm-server/tests/indexing-dashboard-test.ts | Adds new unit tests for dashboard HTML rendering behavior across index/prerender scenarios. |
| packages/realm-server/tests/index.ts | Registers the new dashboard test file in the realm-server test suite. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
A finished prerender under a running index pass belongs to the previous run, and a checkmark there would read as if this run's HTML were already done, so the history fallback applies only to the index category. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
habdelra
changed the base branch from
cs-11811-prerender-split-per-file-progress-reporting-for
to
main
July 9, 2026 14:49
backspace
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerender jobs on the local indexing dashboard
The local
_indexing-dashboardnow showsprerender_htmljobs everywhere indexing jobs appear, reading the same progress source indexing jobs use — the indexing event sink fed by the worker progress stream — with no new plumbing.prerender_htmljob type, so queued prerender jobs appear in the Pending table, and finished ones land in the history table under the queue's job-type spelling. The_indexing-statusJSON endpoint picks up the same rows.With no prerender jobs in play, the dashboard renders exactly as before.
Stacked on #5442, which makes prerender jobs emit this progress stream.
Preview
Index pass finished, prerender pass running — the ticket's "index ✓, prerender 40/93" treatment:
Both passes in flight for one realm, a second realm still calculating, and a queued prerender job in Pending:
Tests
New dashboard-rendering tests cover: the prerender label and real totals (no calculating state, even at a zero total), the calculating state still showing for zero-total index passes, per-realm grouping with the index section ordered first, the ✓ line for a finished pass (and it not leaking in from another realm's history), separate cards for separate realms, and prerender rows in the Pending and Recent Completed tables.
🤖 Generated with Claude Code