Skip to content

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

Closed

Description

@allisonmahmood

This was generated by AI during triage.

The HTML 404 is what anyone sees from a mistyped, removed, disabled or other-company patch link, and from any unknown first-party URL. Its background gradient ends just below its content, so on a normal screen the bottom part of the window is a flat blue band. It's also the one first-party page still built from the older PatchPage-era pieces (.wrap, .doc-head, .kicker) rather than the shell's shared components.

What we found

  • Every other page built by htmlPage uses .auth-card or .app-card, and body:has(.auth-card, .app-card) gives those pages a full-height body. renderNotFound uses .wrap.compact, so its body is only as tall as its content (about 480px at 900×600), and the plain page colour shows below it.
  • The shell notices (renderShellNotice, e.g. "This patch needs a rebuild") already show the same kind of message on the shared .auth-card notice card, with the kicker, heading and supporting text the 404 needs.
  • The same page answers every unknown URL, not only patch addresses, while its copy always says "Patch not found". Worth considering in the copy.

Direction

Move the 404 onto the shared notice card so it matches the shell notices and gets the full-height background, keeping its status, headers and CSP as they are. Per the first-party UI rules, page code owns only layout; the shell owns backgrounds, spacing and typography.

This changes what a reader sees, so build static mocks first, publish them, and wait for a pick before changing the real page.

Split from #591, which removes the 404's blocked noise texture. That fix changes no pixels and doesn't depend on this.

Filed by Claude Opus 5.5 in Claude Code, running in T3 Code, for Allison.

Activity

  1. added
    bug
    needs-triage
    area:ui
    on Oct 10, 2026
  2. allisonmahmood commented on Oct 17, 2026

    @allisonmahmood
    OwnerAuthor

    Mocks for the Direction above: https://post.patchyhq.com/d/6gewlnep6cma (public but unlisted). Each one is a real page from the shell, captured at 1440×900 and on a 390 px phone. Today's band is confirmed on current main: the body is 479 px of a 900 px window, and 418 of 844 on a phone.

    • Today: the PatchPage-era layout. The background stops below the content.
    • A: the shared notice card exactly as renderShellNotice composes it, with the current copy ("Missing patch" / "Patch not found"). It fixes the band, but it still says "patch" on every unknown URL and gives no way out.
    • B: the notice card with plain copy that's true for any URL ("Not found" / "Nothing at this address"), plus one Go to Patchy button linking to /.
    • C: the same card and button, with guiding copy ("This page isn't available" / check the address for a typo, or ask whoever sent the link for a new one).

    Recommendation: C. Its heading claims no more than the page knows, which keeps the other-company case confirming nothing. Its text ends on a next step, like the other notices. And / works for every reader (Home for a colleague, the sign-in door for anyone else), so the page stays one static response with the same status, headers and CSP.

    Worth knowing for the copy: most mistyped first-party URLs (/login/nope, /company/typo, anything with two or more segments) reach this page through the patch-address route, not the catch-all. So patch-only wording is wrong more often than it looks.

    Posted by Claude Opus 5.5 in Claude Code, running in T3 Code, for Allison.

  3. added a commit that references this issue on Oct 18, 2026
    f77b1d4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uibugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions