Repository navigation
Landing page: the agent-native positioning, in the reader's language without React #418 (#8) - #64
Merged
Merged
Conversation
The landing described Nexus as an internal software factory (90/10, handover, "nền tảng nội bộ"). It now says what the README says, in the same layout: agents edit a typed, versioned, permissioned model; people review, publish and roll back. Sections: the loop (propose, apply and publish, use), what is different (review one change; draft, publish, roll back; safe by construction; MCP; measured AI with the README's numbers only; one command), try it (demo login, README, write-up). The copy moves into lib/i18n as a landing.* block in vi.ts and en.ts. The server renders Vietnamese, so the locale is read through useSyncExternalStore with a Vietnamese server snapshot: hydration matches the server HTML (no React #418), then the page re-renders in the reader's language. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Verifier round 1 on #64: - "Safe by construction" contradicted ADR 0005 and SECURITY.md (isolation is a convention plus tests). The card is now "Tenant and row access, tested as a non-admin" and says that in its body. - "not 2,000 lines of code" was an unmeasured number: "not a code diff". - Measured AI: the date, the attempts per model, MCP one run per task, and "one recorded demo run" instead of "model runs are recorded". - The loop's rollback line follows the README: newer schema re-hidden, attribute edits not reverted, applied-at-once changes undone one by one with Revert. - MCP title means the same in both languages; "DÙNG THỬ"; no em dash in the OpenGraph alt. The copy test now also fails on "by construction" and on the number. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng (#8) The landing kept its own useSyncExternalStore hook beside #58's useLocaleReady. lib/i18n now exports useHydratedLocale (Vietnamese on the server and through hydration, then getLocale), sharing useLocaleReady's noSubscription; useLocaleReady stays for AuthShell, which renders nothing until hydration. The hydration test runs the three ways a reader gets English: a saved preference, ?lang=en, an English browser. The README's English-catalog count includes the landing keys: 1,012 of 6,868. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #58, CI replays a Vietnamese and an English recording, so the measured-AI card speaks of recorded runs in the plural. The rollback limits move from the loop's third step into the versions card, which keeps the step short. Co-Authored-By: Claude Opus 5.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.
Closes #8
What changed
The landing page (
/,components/screens/Landing.tsx) described Nexus as an internal software factory ("nhà máy nội bộ", "90/10", "Bàn giao", "nền tảng nội bộ, không phải SaaS"). It now states the README's positioning, in the same layout and components:/login) and the source on GitHub.(marketing)/page.tsxtitle and description follow.Numbers on the page are only the README's, with its qualifiers: two recorded demo runs (vi and en, since #58) replayed in CI; builder-bench measured on 2026-10-17, 20 requests, pass@1 0.85 for claude-haiku-5-5 (60 attempts) and for claude-opus-5-5 (one attempt per case); MCP tool-use eval 5 of 5, one run per task with claude-opus-5-5. No harness-eval number.
Language and React #418
The copy lives in
lib/i18nas alanding.*block invi.tsanden.ts(38 keys, Vietnamese first, English for every key). The README's English-catalog count now includes them: 1,012 of 6,868.The server cannot know the reader's language and renders Vietnamese.
lib/i18nnow exportsuseHydratedLocale(): Vietnamese on the server and through hydration, so the hydrated text matches the server HTML, thengetLocale()right after. It sharesuseLocaleReady'snoSubscription;useLocaleReadystays for AuthShell, which renders nothing until hydration. The landing must show its text before hydration (no-JS, crawlers), so it uses the new hook. With #58 merged, a saved preference,?lang=enand an English browser all switch it.Round 2 (verifier round 1)
lib/i18nas above.Evidence
Screenshots:
node shots.mjs(scratch script withui-shots.mjs's checks, page errors and horizontal overflow, plus console hydration errors, prefers-reduced-motion so every Reveal section shows; the landing is anonymous, no API needed). Four readers: Vietnamese default, saved English preference,?lang=en, English browser; 1440 and 390.8bc1b94):/private/tmp/claude-501/landing/before/root-vi-1440.png,root-vi-390.png.next build+next start):/private/tmp/claude-501/landing/round2-prod/root-{vi,en-pref,en-query,en-browser}-{1440,390}.pngandreport.json:shots=8 bad=0, 0 page errors (a production #418 would surface as one), 0 overflow; h1 Vietnamese forvi, English for the three English readers. Server HTML holds the Vietnamese h1 and title.getLocale()directly, asuseT()does):pageErrors=1on every English reader, "Hydration failed because the server rendered text didn't match the client"./login; links point at the repo,#readmeand the write-up (both 200).Test
components/screens/Landing.test.tsx(7): Vietnamese by default with the four links; English for a reader who chose English; server render (Vietnamese) hydrated for a saved preference,?lang=enand an English browser with no recoverable error and no hydration log, then English; everylanding.*key has English; no factory framing, "by construction", unmeasured number or em dash. Mutation:useHydratedLocalewithgetLocaleas its server snapshot turns the three hydration cases red (Tests 3 failed | 4 passed (7)), green when restored.Gates
From
nexus-web/after the merge (node_modules symlinked, not committed):Not done
/about(AboutScreen.tsx, "nhà máy 8 bước") andlib/help-content.tsstill describe the internal factory; not the landing page, so left for another issue.🤖 Generated with Claude Code