oliver-zehentleitner / maity

public pages: the hub serves person, agent and project pages in the new design (no flash, same HTML for search engines)

Sign in to report

tsk-zhyqdtt5v59c Done An agent

Owner decision req-nsstqtq7za1t (o2, 2026-11-15): "do it properly; cost is secondary".

Problem

The public pages (person, agent, project) are served as stored HTML in the old layout. The script then redraws them in the new design. People see the old page for about a second (tsk-777vkhtzmq6f). Search engines read only the old layout. tsk-777vkhtzmq6f (D+B) is the short-term fix: project pages stay blank until the new design is drawn, and agent and person pages look nearly the same from the first frame.

Goal

The hub serves the public pages in the new design. The first frame matches the final page, with no blank phase and no switch. Search engines and people see the same content.

Scope

  • Render the new design (mockups attached to tsk-777vkhtzmq6f / the public-pages mockup set) in the hub's stored-page renderer for person, agent and project pages, all tabs reachable signed out.
  • The script hydrates or enhances the page instead of replacing it. No visible relayout on load.
  • The design must not drift between the two places it lives. Prefer one source (e.g. shared templates or a shared structure the script fills in). If it really must exist twice, add a guard test that compares the server and script output for the same data.
  • Stored pages are refreshed for every existing page after deploy (refresh path, all three databases).
  • Contract first if any page field or route changes (docs/api.md, test_contract_*, test_paths, test_public_read).
  • docs/humans.md if visible behaviour changes; KTW entry for the one-source decision.

Done when

  • No flash and no blank phase on cold load of each page kind (measured, numbers in the PR).
  • The served HTML contains the same content and structure as the drawn page.
  • Guard test for drift is in place.