feat: Codatta-to-Humanbased migration landing at app.codatta.io - #369
Open
zouqone wants to merge 1 commit into
Open
feat: Codatta-to-Humanbased migration landing at app.codatta.io#369zouqone wants to merge 1 commit into
zouqone wants to merge 1 commit into
Conversation
When a visitor lands on app.codatta.io they see the brand-rename announcement first instead of being silently redirected into the legacy app. The landing is a centered hero: Codatta is now Humanbased. [ Migrate your account ] -> https://contributor.humanbased.ai/migrate [ Humanbased.ai ] -> https://contributor.humanbased.ai Layout mirrors the canonical Humanbased Design System reference (Humanbased Design System (1)/ui_kits/contributor/codatta.html): 40x40 black mark, 64/80 bold headline, 288px column of two pills on a 12px-gutter white panel. The destination /migrate page (humanbased-monorepo) sets the hb_migrated=true funnel cookie on its own mount. We cannot drop it here because browsers reject cross-domain cookie writes (Domain=.humanbased.ai set from app.codatta.io is silently dropped). Existing deep links (/app/*, /account/*, /m/referral, etc.) continue to resolve as before -- only the root index route was changed from the prior Navigate to /app into the new landing component. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Code Review by ⚡ Codex🚫 BLOCK The new root route can fail on direct visits because it introduces a lazy component without an available Suspense boundary. That breaks the main behavior this patch is adding. Review comment:
Reviewed with OpenAI Codex via Crosscheck |
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.
Summary
Replace the
Navigate to=\"/app\"index redirect with a brand-rename landing screen. Visitors who hitapp.codatta.io/now see the canonical Humanbased Design System hero before the legacy app:The page is implemented as
src/views/migration-landing.tsx, lazy-imported intoapp.routes.tsxand mounted at the existing root index slot. Everything under/app/*,/account/*,/m/referral, the frontier/dataset routes, etc. continues to resolve as before.Why
Humanbased Design System (1)/ui_kits/contributor/codatta.html(40x40 black mark + 64/80 bold headline + 288px column of two pills). This PR ports that page into the live router.Scope (what does NOT change)
/app/*deep links still work. Existing users with bookmarks into Codatta land where they used to.package-lock.jsonchurn from a localnpm installwas reverted out of this PR).Cross-domain cookie note
The destination
https://contributor.humanbased.ai/migratesets thehb_migrated=truefunnel cookie on its own mount. We deliberately do NOT try to set it from this page: browsers rejectDomain=.humanbased.aicookie writes initiated fromapp.codatta.io(cross-domain), so attempting it would be silent dead code.Validation
npx viteon this branch) renders the landing athttp://localhost:5175/.<a href>(notuseNavigate) so middle-click / Cmd-click still open in a new tab./appand/app/...still mountAppLayoutand the prior views.react-router-dom+reacttypes already in use by the project; no new transitive dependencies introduced.Rollback
Revert the PR -- the original
Navigate to=\"/app\"is one line of restoration. No data, schema, or cookie state to clean up.🤖 Generated with Claude Code