Repository navigation
Add the /vs comparison hub and Tryit vs Brilliant on one dynamic route - #605
Merged
Merged
Conversation
- Replace the five static /vs/<rival> wrappers with one vs/[rival] page. It lists every locale and slug in generateStaticParams and returns a real 404 for unknown slugs in both metadata and the page. - Keep the comparison list in one import-free slug list (comparison-slugs.ts). The route, sitemap, footer, hub and llms.txt all read it, and the compiler requires one spec per slug. - Add /vs: every comparison's own short verdict on broadsheet cards, with play and pricing CTAs and CollectionPage/ItemList JSON-LD. - Add /vs/brilliant. Brilliant facts come from brilliant.org, its Premium page and its Help Center, read 18 Nov 2026. No Brilliant price is quoted because it varies by plan and offer. Tryit prices come from the catalogue. - Comparison pages gain a "Compare" breadcrumb and a BreadcrumbList node. - The footer gets a Compare column with "All comparisons" (6 locales; en-GB and zh-TW inherit), and llms.txt lists /vs and /vs/brilliant.
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.
https://tryit.fun/vsreturns 404 today. This PR fixes that, adds a Tryit vs Brilliant page aimed at "brilliant alternative" and "daily logic puzzles like Brilliant" searches, and folds the five copy-paste/vs/<rival>route files into one dynamic route.What players and search engines get
/vshub in all 8 locale URLs. It uses the broadsheet look from Redesign Tryit as a tactile daily puzzle broadsheet #604: the masthead rule, then a printed card per comparison. Each card shows the board of the closest Tryit game (for example "Like Wordle? Try Five") and that comparison's own two-line verdict, so the hub never states anything its pages don't. It also has play and pricing CTAs (entry_surface=seo_vs-hub), a short "How we compare" section andCollectionPage+ItemListJSON-LD./vs/brilliant. Brilliant gets credit for structured courses from fractions to calculus and Python, the Koji tutor, and school accreditation. Tryit wins on 19 daily puzzles on one page, any 3 free in the browser with no account, app or placement quiz, and the 3-Day Pass. Pairings use the real roster: Cage Sudoku, Crowns, Arithmo, Path, Slides and Cipher. CTAs useentry_surface=seo_vs-brilliant, the sameseo_vs-<slug>pattern as the other five pages. The visible FAQ andFAQPagecome from the same list, and a test checks they match item for item./vs, plus aBreadcrumbListnode./vsand/vs/brilliant.Brilliant facts (read 18 November 2026, Brilliant's own pages only)
config/commercial/catalogue.json.Less code
vs/[rival]/page.tsxusesgenerateStaticParamsover 8 locales × 6 slugs and callsnotFound()for unknown slugs in bothgenerateMetadataand the page.comparison-slugs.ts(no imports) is now the one comparison list. The route, sitemap, footer, hub and llms.txt all read it, andCOMPARISON_SPECSmustsatisfies Record<ComparisonSlug, …>. A new rival is now one spec, one footer label and one slug. Before, it took a new route file plus hand edits to the sitemap, footer JSX and llms.txt.Checks
comparison-routes.test.tschecks all 6 rivals × 8 locales: title, description, canonical, hreflang cluster, OG URL, one h1, both entry CTAs, the breadcrumb link, and the JSON-LD types. It also checks thatnonexistent,unknown-rival, mis-cased and empty slugs 404, and covers the hub's metadata in 8 locales, its links, CTAs and ItemList.comparison-landing.test.ts(FAQ ⇄FAQPageitem for item, the breadcrumb trail, Brilliant pairing categories, no Brilliant price quoted), the SEO route table, and llms.txt.creating the build machine: transport: request deadline exceeded), so CI is the first full run of typecheck and unit tests. A runtime smoke run of the specs, route table and llms.txt passed locally, and the existing llms.txt lines are byte-identical.