Repository navigation
Show a styled page for addresses that don't exist - #62
Conversation
Unknown addresses showed Next's default 404 page. Now they get the site header and footer, "Page not found" with the address asked for, the scan form and a link home, still with a 404 status. Closes #61 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Product review: Styled not-found page for addresses that don't exist✅ Delivers ticket #61 — 4 of 5 outcomes What was promised
Proof Tests worked out by Drippa from ticket #61, the pull request description and the code change — none written by hand. Test it yourself (6 steps)Page change — click through it on this pull request's preview. Before you start
DetailsUnknown addresses such as /pricing now show a page in the site's own theme instead of the plain default one. It has the site header, the footer that every page shares, the heading "Page not found", the requested address in monospace, the smaller scan form and a "Back to the home page" link. The 404 status relies on the framework's standard handling of not-found pages, which matches what the author reports from a production build. Test coverage: 🔍 Checked: 🎫 Linked to drippa-ai/stackprobe#61 — compared diff against ticket Updated by Drippa • 2026-10-08 17:21 UTC Comment |
|
@drippa-ai review |
1 similar comment
|
@drippa-ai review |
Product review: Styled page for addresses that don't exist✅ Delivers ticket #61 — 3 of 5 outcomes What was promised
▶ Watch the walkthrough (0:48) 2 of 6 checks passed · 1 failed · 3 couldn't be tested on the preview
Tests worked out by Drippa from ticket #61, the pull request description and the code change — none written by hand. What Drippa tested (6 steps)Page change — click through it on this pull request's preview.
DetailsOpening an address that doesn't exist now shows a page in the stackprobe theme instead of the plain default 404. It has the site header and footer, the heading "Page not found", the address that was asked for in monospace, the small scan form and a "Back to the home page" link. The footer comes from the shared site layout, and the address is read in the browser. Test coverage: 🔍 Checked: 🎫 Linked to drippa-ai/stackprobe#61 — compared diff against ticket Updated by Drippa • 2026-10-08 18:13 UTC Comment |
Closes #61
Covers all five "Done when" lines of #61.
What changes
app/not-found.tsx: the site header and footer, the heading "Page not found", "There's no page at<address>", the compact scan form, and "Back to the home page". Next serves it with status 404 for any unknown address.app/requested-path.tsx: shows the requested address in mono. The not-found page isn't given the path on the server, so it reads it in the browser withusePathname.globals.css, built from tokens only.UI review
/pricingand/a/b/creturn 404./pricingand a very long address in light and dark, at 390 px and 1280 px, plus reduced motion: matches the theme, the long address wraps, nothing scrolls sideways.pnpm lint,pnpm typecheck,pnpm testpass.🤖 Generated with Claude Code