Skip to content

Review of 25 Nov: site, Pathway Browser and embed fixes - #1090

Merged
adamjohnwright merged 5 commits into
mainfrom
review25/site
Nov 25, 2026
Merged

adamjohnwright merged 5 commits into
mainfrom
review25/site

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Fixes from the 25 Nov review, slices C1 and C2 (site, Pathway Browser, embed, e2e), and from the review of these fixes. Each code fix has a test seen failing without it, unless noted.

  • Tab title (page-title.ts): the route's title is set on arriving at a page, not at every navigation. A second search, or a selection the Pathway Browser keeps in the address, had overwritten the title the page gave itself with the route's generic one (unit test with the router). The Pathway Browser now takes a pathway's name off itself when none is on show, since the router no longer resets it (one line; no new test).
  • index.html spellings (serve-prod.js): the deployment is named in index.html however the name is spelled. The static files decode and normalise a path, so //index.html or /%69ndex.html had reached the page without the deployment's line. Only reachable on a direct connection: nginx normalises first.
  • Embed fonts (diagram-fonts.ts, the loader): the diagram reads its font faces once the font stylesheets the loader added have loaded, within the same 2 s wait. On a partner's page a diagram could otherwise be ready before any face was declared, and be framed in a fallback font. The loader asks for Roboto Mono too, as the site does.
  • Report download:
    • A report cut off as it arrives now fails, instead of leaving "Making your report…" and a button that refuses.
    • A 503 read as "this deployment cannot check a person" still offers Try again, since a proxy's 503 can come without Retry-After too.
  • Gateway test: its stand-in pdf-export sends the headers pdf-export sends.

🤖 Generated with Claude Code

adamjohnwright and others added 5 commits November 25, 2026 12:55
…lled

- The route's title is set on arriving at a page, not at every
  navigation: a second search, or a selection the Pathway Browser keeps
  in the address, overwrote the title the page had given itself with the
  route's generic one.
- serve-prod names the deployment in index.html however the name is
  spelled: the static files decode and normalise a path, so //index.html
  or /%69ndex.html reached the page without the deployment's line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…failures

- The embed's diagram reads its font faces once the font stylesheets its
  loader added have loaded (within the same two-second wait): on a
  partner's page they could arrive after the diagram was ready, leaving
  no face to wait for and the diagram framed in a fallback font. The
  loader asks for Roboto Mono too, as the site does.
- A report cut off as it arrives fails, instead of leaving the line
  saying it is being made and the button refusing.
- A 503 read as "this deployment cannot check a person" still offers
  Try again: a proxy's 503 can come without Retry-After too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eview of 25 Nov)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ow (review of the site fixes)

The router no longer resets the title while the page stays, so the page
takes the name off itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 19fe6f1 into main Nov 25, 2026
9 checks passed
@adamjohnwright
adamjohnwright deleted the review25/site branch November 25, 2026 14:24
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