Repository navigation
Landing: show real generated maps as examples - #29
Merged
Merged
Conversation
Adds a "Maps from real talks" section after the YouTube section, showing four mind maps that were actually produced by the live /yt/transform flow. The landing page claimed the YouTube feature worked but showed nothing it had made. The sources are committed in apps/editor/src/examples/ rather than fetched from the API at render time, for three reasons: the landing page must not depend on the API being up to draw itself, robots.txt disallows /svg so a crawler would never see an API-served thumbnail, and a source in the repo is reviewable before it goes public. The model's curly quotes, en dashes and non-breaking hyphens are normalised to ASCII on the way in, and a test keeps them that way. Card previews are trimmed to depth 1 (previewSource). A full map renders about 1500x4300, an aspect near 0.35, so fitted into a card wider than it is tall its labels come out a few pixels high and the card reads as texture rather than as a diagram. Trimming leaves 6 to 9 nodes at aspects 0.96 to 1.73. Same trick, and the same reason, as MOBILE_DEMO_SOURCE. Links are built from SHARE_BASE rather than a literal domain, matching shortenShareUrl, so forks and zone config win. A build without VITE_SHARE_BASE renders the cards unlinked rather than dead. The video credit is a sibling of the card link, not nested inside it, because an <a> inside an <a> is invalid. Verified: all four /s/ links return 200; a build with VITE_SHARE_BASE emits the expected hrefs and zero nested anchors; no horizontal overflow at 390px, so this does not repeat the sideways scroll .landing-roadmap-canvas falls back to. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The landing page claimed the YouTube feature worked but showed nothing it had produced. This adds a Maps from real talks section after the YouTube section, with four maps generated by the live
/yt/transformflow and left exactly as they came out./s/XrSa97dgHck/s/h2CfqBUw6P4/s/5-v5XwE6o50/s/khh1OA8U9xgDesign decisions
Sources are committed, not fetched.
apps/editor/src/examples/*.mmdholds the full generated source. Three reasons: the landing page must not depend on the API being up to draw itself,robots.txtdisallows/svgso a crawler would never see an API-served thumbnail, and a source in the repo is reviewable before it goes public. The model emits curly quotes, en dashes and non-breaking hyphens; those are normalised to ASCII and a test keeps them that way.Previews are trimmed to depth 1 (
previewSource). A full map renders about 1500x4300, an aspect near 0.35. Fitted into a card wider than it is tall, its labels come out a few pixels high and the card reads as texture rather than as a diagram. Trimming leaves 6 to 9 nodes at aspects 0.96 to 1.73. Same trick, and the same reason, asMOBILE_DEMO_SOURCE. The card links to the full map and a caption says so.Links come from
SHARE_BASE, not a literal domain, matchingshortenShareUrlso forks and zone config win. A build withoutVITE_SHARE_BASErenders the cards unlinked rather than dead. The video credit is a sibling of the card link, not nested inside it, since<a>inside<a>is invalid HTML.Verification
/s/links return 200 live, so no dead cards.VITE_SHARE_BASEemits the four expected?view=maphrefs, the four YouTube links, and zero nested anchors.document.scrollWidthequals the viewport: no horizontal overflow, so this does not repeat the sideways scroll.landing-roadmap-canvasfalls back to.tsc --noEmitclean,pnpm buildclean.flex:1and re-checked.Notes for review
dangerouslySetInnerHTMLis the same pattern the existing demo and roadmap sections use; the input is SVG rendered at build time from sources in this repo.getvideotranscript; details are in the local../getvideotranscript-bugs.md.Not included
The prerendered
/examples/<slug>/pages and generated sitemap. That is the part that puts new URLs into Search Console; this manifest is the data source it will read.🤖 Generated with Claude Code