Skip to content

Show "Page not found" in the tab on bench's 404 pages - #200

Merged
lwwmanning merged 1 commit into
mainfrom
wm/bench-404-title
Nov 7, 2026
Merged

lwwmanning merged 1 commit into
mainfrom
wm/bench-404-title

Conversation

@lwwmanning

Copy link
Copy Markdown
Contributor

On bench, a missing page showed the tab title "Benchmarks | Vortex". It must show "Page not found | Vortex", as the site does.

The server sent the correct title. After the page loaded, the client set the route's own title. The catch-all route had no title, and the chart route had none for an unknown chart, so the tab used the layout's title.

This PR:

  • Puts the 404 metadata in one module, src/bench/lib/not-found-metadata.ts.
  • Uses it in not-found.tsx, the catch-all route, and the chart route.
  • Adds a smoke test for the title after hydration on both routes.

The bench tests (909) and the smoke tests (192) pass on a local server.

🤖 Generated with Claude Code

The server sent a bench 404 with the title "Page not found | Vortex".
After hydration, the client set the route's own title instead. The
catch-all route had no metadata, and the chart route returned none for
an unknown chart, so the tab showed the layout's "Benchmarks | Vortex".

Both routes now export the 404's metadata, from one module that
not-found.tsx also uses. A smoke test checks the title on both routes
after hydration.

Signed-off-by: Will Manning <will@willmanning.io>
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
vortex.dev Ready Ready Preview Nov 7, 2026 3:12am UTC

Request Review

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

🔦 Lighthouse audit

URL Perf A11y Best practices SEO
/ 🟢 100 🟢 100 🟢 100 🟢 100
/bench 🟢 100 🟢 100 🟢 100 🟢 100
/bench/chart/ct.eyJrIjoiQ29tcHJlc3Npb25UaW1lIiwiZGF0YXNldCI6ImFyYWRlIiwiZGF0YXNldF92YXJpYW50IjpudWxsfQ 🟢 100 🟢 100 🟢 100 🟢 100
/blog 🟢 100 🟢 100 🟢 100 🟢 100
/blog/btrblocks-compressor 🟢 100 🟢 100 🟢 100 🟢 100

Run 42332910628 · 2026-11-07 03:14 UTC

@lwwmanning
lwwmanning marked this pull request as ready for review November 7, 2026 08:16
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T08:22:59.701341Z 1e6d7e0 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@lwwmanning

Copy link
Copy Markdown
Contributor Author

@codex plz 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: 1e6d7e0769

ℹ️ 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".

@lwwmanning
lwwmanning merged commit 971bed5 into main Nov 7, 2026
20 checks passed
@lwwmanning
lwwmanning deleted the wm/bench-404-title branch November 7, 2026 08:23

This branch was successfully deployed

1 active deployment
Preview — 1e6d7e07 Deployed Nov 7, 2026 by vercel[bot]
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