Skip to content

fix(serving): the 404 sits on the notice card and fills the page - #762

Merged
allisonmahmood merged 1 commit into
mainfrom
fix/618-404-notice-card
Oct 18, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
fix/618-404-notice-card

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

Closes #618

The HTML 404 was the last first-party page built from the older PatchPage-era pieces (.wrap.compact, .doc-head, .kicker). Only card pages get a full-height body, so its background stopped just below the content and left a flat band down the rest of the window. Its copy also said "Patch not found" on every unknown URL, though most mistyped first-party URLs reach it too.

How

  • renderNotFound now composes the shared notice card, the same brand, kicker, heading, text and action components the shell notices use. Both go through one renderNoticePage in shell.ts, so the 404 has no chrome of its own. The body fills the window, like every other card page.
  • The copy is option C from the mocks: "This page isn't available", what the reader can do about it, and one Go to Patchy link to /. That's Home for a colleague and the sign-in door for anyone else. The page is still one static response, so a patch from another company looks identical to a missing one.
  • Status, headers and CSP are unchanged. The way out is a plain link, which form-action 'none' allows.
  • I deleted the shell rules only the 404 used: .wrap, .wrap.compact, .doc-head, .head-line and .kicker (.pill keeps its shared rule). The only other files with these classes are standalone patch documents (examples/plan.html, the welcome patch reference, a brightline scenario file). Each one styles them itself, and patch documents never receive the shell's stylesheet.

Hit every surface

  • Served pages: ran the page through the ui-consistency spec. It composes htmlPage and the shared card, button and heading classes, adds no page CSS beyond the notice card's existing rule, and has no animation. No HTML policy change, so no fixtures.
  • Vocabulary and product shape: docs/product.md and the portal glossary already say error doors keep the card shell. That's now true of the 404, so they need no edit.
  • Wire contract, CLI, dev loop, migrations, company resources, reverse states and repo layout don't apply.

Screenshots

The signed-in desktop shots are pnpm dev shot [email protected] /patchy-dev/missing. dev shot always signs in at 1280×800, so I took the signed-out desktop and the 390×844 phones with the same Chromium through Playwright.

Desktop, signed in

After: the 404 on the notice card, signed in, 1280 wide

Before

Before: the old 404, signed in, background stops at 479 px

Desktop, signed out

After: the 404 on the notice card, signed out, 1280 wide

Before

Before: the old 404, signed out, background stops at 479 px

Phone, 390 × 844

Before After
Signed in Before, phone, signed in After, phone, signed in
Signed out Before, phone, signed out After, phone, signed out

Built by Claude Opus 5.5 in Claude Code, running in T3 Code; reviewed by GPT 6.1 Sol in Codex

@github-actions github-actions Bot added area:server Touches the server area area:core Touches the core area area:ui Portal and first-party browser pages, shared rendering and styles size:m 100-500 changed lines labels Oct 17, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review, round 1 (GPT 6.1 Sol, xhigh, in Codex): no findings. Sol checked every remaining use of the deleted classes, confirmed the shell notices render the same HTML as before, checked the page's full height on desktop and phone, and followed the Go to Patchy link under each route's existing CSP. The 14 rendering tests pass. VERDICT: RESOLVED.

The HTML 404 now composes the shared notice card through the same
renderNoticePage as the shell notices, so its background fills the
window like every other card page. Its copy fits any unknown address,
with one Go to Patchy link to /. Status, headers and CSP are unchanged.

The shell rules only the old 404 used (.wrap, .wrap.compact, .doc-head,
.head-line, .kicker) are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@allisonmahmood
allisonmahmood force-pushed the fix/618-404-notice-card branch from d860002 to 7be7953 Compare October 18, 2026 12:11
@allisonmahmood
allisonmahmood merged commit f77b1d4 into main Oct 18, 2026
13 checks passed
@allisonmahmood
allisonmahmood deleted the fix/618-404-notice-card branch October 18, 2026 12:20
allisonmahmood added a commit that referenced this pull request Oct 19, 2026
…ng Reconnecting (#783)

Release 14's What's new entry, written from \`7694bab\`. It covers
everything merged since release 13's \`through\` (\`c9b8fc4\`), and sets
the \`patchy\` release to \`0.14.0\` (\`packages/patchy/package.json\`
and \`CURRENT_RELEASE\`).

| Change | PRs |
| --- | --- |
| Improved: Tools with server code answer faster | #756, #764, #768,
#769, #771, #772, #773, #775, #778 |
| Improved: Your company's tools and pages open sooner | #759, #761,
#766, #770 |
| Fixed: Tools stop flashing Reconnecting while they load | #755, #776,
#780 |
| Improved: Publishing is quicker | #729 |
| Improved: New tools start with a tidy layout | #763 |
| Improved: Your usual is easier to scan | #721 |
| Fixed: A page that isn't there says what to do | #762 |
| Fixed: A logo Patchy can't read is refused, not a crash | #728 |
| Behind the scenes: richer logs for live data | #758 |

#720 is release 13's own entry, so it's left out.

Made by Claude Opus 5.5 via Claude Code.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core Touches the core area area:server Touches the server area area:ui Portal and first-party browser pages, shared rendering and styles size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(serving): the 404 page's background stops partway down the screen

1 participant