Skip to content

Update the landing page to the new design export - #118

Merged
aterga merged 1 commit into
mainfrom
claude/landing-privacy-terms
Aug 3, 2026
Merged

aterga merged 1 commit into
mainfrom
claude/landing-privacy-terms

Conversation

@MRmarioruci

@MRmarioruci MRmarioruci commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces the landing page at / with the latest self-contained bundle exported
from Claude Design. One file changes: src/assets/index.html.

The export cross-links to its sibling pages with relative ./<Name>.html hrefs;
these are rewritten to the server's existing routes, so no URLs change:

Export href Route
./Privacy Policy.html /privacy-policy
./Terms of Service.html /terms
./Support.html /support

Scope: legal pages deliberately excluded

An earlier revision of this branch also swapped /privacy-policy, /terms, and
/support for design-tool bundles. That has been reverted. Those pages carry
reviewed copy (privacy review #114, directory pages #109/#115) and the design
versions introduced unintended text changes.

Those three pages and src/main.rs are now byte-identical to main — they
keep their plain-HTML document body, their real <title>s, and their ~38 KB
combined 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

Known, pre-existing on main (not introduced here)

  • The landing page requires JavaScript to render and its <title> is
    Bundled Page (empty after the runtime executes). Both are already true of the
    landing page on main; worth fixing in the exporter, tracked separately.
  • /favicon.ico 404s on all routes.

@MRmarioruci
MRmarioruci marked this pull request as ready for review August 3, 2026 13:08
@MRmarioruci
MRmarioruci requested review from a team and Copilot August 3, 2026 13:08
@MRmarioruci
MRmarioruci requested a review from aterga August 3, 2026 13:11

@aterga aterga left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 .html links, 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 404 on /privacy-policy in one browser run that did not reproduce in a second; most likely /favicon.ico, which 404s on all routes (pre-existing on main, 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]>
@MRmarioruci
MRmarioruci force-pushed the claude/landing-privacy-terms branch from 4a57796 to 6bfa978 Compare August 3, 2026 14:45
@MRmarioruci MRmarioruci changed the title Serve landing, privacy, terms, and support from design bundles Update the landing page to the new design export Aug 3, 2026
@MRmarioruci

Copy link
Copy Markdown
Contributor Author

Thanks — took the interim you suggested: this PR is now the landing page only.

I reverted /privacy-policy, /terms, and /support (and src/main.rs) to be byte-identical to main, so they keep their plain-HTML body, real <title>s, and 38 KB combined size. Diff is src/assets/index.html alone.

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 ICP MCP Privacy Policy / Terms of Service / Support).

Still open, but pre-existing on main rather than new here: the landing page is JS-rendered and its <title> is Bundled Page (empty at runtime). Needs an exporter fix — happy to track separately. Favicon 404 is also pre-existing.

Also rebased on latest main (#116, #117).

@aterga
aterga merged commit 24dee2e into main Aug 3, 2026
7 checks passed
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.

2 participants