Repository navigation
Update the landing page to the new design export - #118
Conversation
aterga
left a comment
There was a problem hiding this comment.
Reviewed by building the branch, serving it, and comparing the rendered output against the pages on main. The design work looks good and the legal text is faithfully preserved — that was my main worry and it checks out. Three issues below, the first of which I would treat as blocking for these three pages specifically, because their URLs are what we register with the Anthropic and OpenAI directories.
What I verified as correct
I fuzzy-matched every prose sentence of the reviewed /privacy-policy and /terms (from main) against the new bundles. Everything substantive survived:
- Effective date August 3, 2026; Germany / AWS Frankfurt hosting; legitimate-interest bases (4 occurrences, unchanged); the two-step revocation windows (≤5 min, ≤1 h); FDPIC and the EU supervisory-authority route;
[email protected];id.ai/manage/settings. - The retention table is intact — it is now a JS data array rather than a
<table>, but every value is there (volatile-memory rows, the 10,000-registration cap, two-minute codes, 30-day ceiling, three-month logs, the dashboard health report). /terms: the Art. 100 CO gross-negligence carve-out, Swiss law, Zürich, non-custodial, the irreversibility clause — all present.- No em-dashes in the document prose (the 14 in the raw file are all inside the runtime/CSS), and zero
[NEEDS INPUT]markers. - Every cross-page link resolves to a real route (
/,/privacy-policy,/terms,/support) — no dead.htmllinks, confirmed both by parsing and by clicking through a rendered browser session.
1. The legal pages are now JavaScript-only (blocking, in my view)
Every word of the policy is gzip+base64 inside a <script>. What a non-JS client gets:
$ curl -s http://127.0.0.1:8137/privacy-policy | wc -c
1673810
# readable text with scripts stripped:
"Bundled Page This page requires JavaScript to display. § PRIVACY Unpacking..."
On main the same URL returns the policy as plain HTML. This matters more here than for the landing page:
- Both directories fetch and scan these URLs as part of review, and OpenAI's reviewer checks them on web and mobile.
- A privacy policy that only exists behind a client-side runtime is a weak position under GDPR/FADP accessibility expectations — this is the one artifact I would least want to make script-dependent.
I am not asking to revert the design. JS for theming, nav, and layout is fine; I would just like the document body of the three legal pages to be real HTML in the response, so the text is there whether or not the runtime executes.
2. Page titles regressed, and are empty at runtime
The source sets <title>Bundled Page</title> on all four pages, replacing:
| Page | main |
This PR |
|---|---|---|
/privacy-policy |
ICP MCP Privacy Policy |
Bundled Page |
/terms |
ICP MCP Terms of Service |
Bundled Page |
/support |
ICP MCP Support |
Bundled Page |
And after the runtime executes, page.title() in Chromium returns "" on all four — so the browser tab, bookmarks, share cards, and any scraper reading the title get nothing at all. (The landing page already had Bundled Page on main, so only the three legal pages regress, but the empty-at-runtime behaviour affects all four and is worth fixing in the exporter.)
3. Size: ~5 MB added
The three legal pages go from 38 KB combined to 4.97 MB (1.6 MB each), all compiled into the binary via include_str! and shipped on every page view. Not a blocker, but worth a sanity check that the inlined fonts/images are actually all needed per page — all four bundles carry the same ~860 KB runtime blob.
Notes on the testing section
- "byte-identical to the source assets" is true of the bytes served, but it does not tell us whether the rendered text still matches the reviewed original — that is the property that matters for these pages, and it is the one I checked above. Happy to share the extraction script.
- "no console errors": I saw a console
404on/privacy-policyin one browser run that did not reproduce in a second; most likely/favicon.ico, which 404s on all routes (pre-existing onmain, not caused by this PR).
Timing
Whatever we decide, it needs to be settled before the next release-* tag — that tag is what the OpenAI portal will scan, and the scan reads the live production pages.
If reworking the export to emit static document markup is a big lift, a reasonable interim is to merge the landing page now and hold the three legal pages until after the directory submissions clear; main already serves acceptable versions of them.
Generated by Claude Code
Replace the landing page at `/` with the latest self-contained bundle exported from Claude Design. Its cross-page links are rewritten from the export's relative `./<Name>.html` hrefs to the server's existing routes (`/privacy-policy`, `/terms`, `/support`), so no URLs change. The privacy, terms, and support pages are deliberately left as they are on main: their text is reviewed copy (privacy review #114, directory pages #109/#115) and is not sourced from the design tool. Co-Authored-By: Claude Opus 4.8 <[email protected]>
4a57796 to
6bfa978
Compare
|
Thanks — took the interim you suggested: this PR is now the landing page only. I reverted That closes 1 (legal pages are plain HTML again), 3 (~5 MB no longer added), and the legal-page half of 2 (titles back to Still open, but pre-existing on |
Summary
Replaces the landing page at
/with the latest self-contained bundle exportedfrom Claude Design. One file changes:
src/assets/index.html.The export cross-links to its sibling pages with relative
./<Name>.htmlhrefs;these are rewritten to the server's existing routes, so no URLs change:
./Privacy Policy.html/privacy-policy./Terms of Service.html/terms./Support.html/supportScope: legal pages deliberately excluded
An earlier revision of this branch also swapped
/privacy-policy,/terms, and/supportfor design-tool bundles. That has been reverted. Those pages carryreviewed copy (privacy review #114, directory pages #109/#115) and the design
versions introduced unintended text changes.
Those three pages and
src/main.rsare now byte-identical tomain— theykeep their plain-HTML document body, their real
<title>s, and their ~38 KBcombined size. This is the split @aterga recommended in review: land the landing
page now, hold the legal pages until after the directory submissions clear.
Testing
cargo build --bin imcp2— clean.200 text/html:/— design bundle (1,695,885 b); footer links resolve to/privacy-policy,/terms,/support; zero dead.htmllinks./privacy-policy(23,526 b),/terms(9,027 b),/support(5,539 b) —unchanged from
main, wordmark substituted, reviewed text served as plainHTML with titles
ICP MCP Privacy Policy/Terms of Service/Support.main(includes Use Internet Identity's access-level wording in the runtime messages #116, Mark canister create/top-up as destructive: they spend user funds #117); diff vsmainissrc/assets/index.htmlonly.Known, pre-existing on
main(not introduced here)<title>isBundled Page(empty after the runtime executes). Both are already true of thelanding page on
main; worth fixing in the exporter, tracked separately./favicon.ico404s on all routes.