Skip to content

Add numbered Calibration dashboard pagination#41

Open
snissn wants to merge 1 commit into
mainfrom
codex/calibration-dashboard-numbered-pagination
Open

Add numbered Calibration dashboard pagination#41
snissn wants to merge 1 commit into
mainfrom
codex/calibration-dashboard-numbered-pagination

Conversation

@snissn

@snissn snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Replace the dashboard footer's First/Next-only controls with a standard Previous, numbered pages, and Next paginator.
  • Keep cursor/offset-backed page jumps honest by using server-returned cursors and pagination.nextOffset, including when the Worker clamps page size below a UI selection.
  • Guard against stale double-click pagination by disabling pager controls during in-flight page loads and ignoring pager actions until the active request finishes.
  • Default the file status filter to Committed so the public demo first page shows completed files by default.
  • Document the dashboard paginator behavior. Token Host source is unchanged because it provides pagination metadata/direct reads, not the rendered dashboard controls.

Scope

Calibration Worker admin dashboard UI, docs, and HTML regression coverage only. No registry contract, seeder, or Token Host wrapper behavior changes.

Validation

Latest local validation on e0f74ea:

  • node --check src/worker/calibration-demo.mjs
  • node --test test/calibration-worker.test.mjs (15 tests)
  • pnpm test:node (120 tests)
  • pnpm lint
  • pnpm ops:validate (ok: true, tracked secret findings 0)
  • pnpm ops:smoke -- --iterations 3 (ok: true)
  • pnpm worker:dry-run (Wrangler 4.107.0, total upload 845.22 KiB / gzip 169.48 KiB)
  • pnpm test (120 Node tests + 29 Forge tests)
  • git diff --check

GitHub CI: test passed on latest head e0f74ea in run 28816555108.

Deployment / Live Verification

Deployed to https://foc-platform-calibration-demo.snissn.workers.dev with Worker version d92abd1c-cb72-475d-b2c2-708e3a066613.

Live checks confirmed:

  • /admin contains the default Committed filter, numbered page buttons, server pagination.nextOffset handling, and in-flight pager guard code.
  • /api/admin/files?live=true&status=Committed&limit=10 returns 10 committed rows, object IDs 97 through 88, with hasNextPage=true.
  • A default-sized full scan of /api/admin/files?live=true&limit=10 returns 97 rows across 10 pages: 57 Committed, 40 Expired historical rows.

Performance

No benchmark required. This is a small static dashboard UI change; Worker dry-run and live deploy succeeded.

AI Review / Merge Status

Internal deep review completed. Codex findings were fixed and resolved: server-returned offset jumps and stale in-flight pagination. Latest-head Codex review on e0f74ea reported no major issues. Latest-head @copilot review and @coderabbitai review were requested; Copilot acknowledged with eyes, and no submitted CodeRabbit findings were observed. Merge state is CLEAN; readiness-only handoff, not merged by agent.

@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@codex review

@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@copilot review

@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 562b737e05

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/worker/calibration-demo.mjs Outdated
@snissn
snissn force-pushed the codex/calibration-dashboard-numbered-pagination branch from 562b737 to be38974 Compare July 6, 2026 19:01
@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: be38974e6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/worker/calibration-demo.mjs
@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@copilot review

@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@snissn
snissn force-pushed the codex/calibration-dashboard-numbered-pagination branch from be38974 to e0f74ea Compare July 6, 2026 19:09
@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@copilot review

@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@snissn

snissn commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: e0f74ea0d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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