Skip to content

feat(login): remove username step from playground login#386

Merged
UtkarshBhardwaj007 merged 1 commit into
mainfrom
feat/remove-username
Jun 14, 2026
Merged

feat(login): remove username step from playground login#386
UtkarshBhardwaj007 merged 1 commit into
mainfrom
feat/remove-username

Conversation

@UtkarshBhardwaj007

Copy link
Copy Markdown
Member

What

Removes the playground-registry username feature from playground login. The flow no longer prompts users to claim a handle (the "Earn 25 XP" step) and no longer displays a username in the shared header breadcrumb.

Why

Product decision: usernames are being dropped entirely. Nothing username-related should appear in the playground login TUI or its setup steps.

Changes

  • Delete UsernamePrompt.tsx, usernameNotice.ts, and the entire src/utils/username.ts module (and their tests) — once the prompt is gone the module has zero remaining consumers.
  • LoginScreen.tsx — remove the username state, its handler, the <UsernamePrompt> render block, and the username prop on <Header>. Account-setup failure now lands on "setup complete (with errors)" by construction (the old setUsername(null) unblock is no longer needed).
  • completion.ts — drop usernameComplete from the login-completion predicate.
  • Header.tsx / headerLayout.ts — remove the username breadcrumb piece and its truncation handling from the shared header; subtitle is now the sole shrinkable piece. The shared header used by every other command is otherwise unchanged.
  • Clean up dangling references in code comments and two now-stale CLAUDE.md invariants that named the deleted module.

Verification

  • pnpm format:check
  • pnpm lint:license
  • pnpm typecheck
  • pnpm test ✅ (84 files / 916 tests)

A repo-wide grep confirms no username references remain in src/, e2e/, or CLAUDE.md. (CHANGELOG history, the cdm.json contract ABI, and the unrelated Sentry-dashboard author field are intentionally left untouched.)

Drop the playground-registry username feature from `playground login`:
the flow no longer prompts users to claim a handle (the "Earn 25 XP"
step) and no longer displays a username in the shared header breadcrumb.

- Delete UsernamePrompt, usernameNotice, and the entire utils/username
  module (no remaining consumers once the prompt is gone).
- LoginScreen: remove username state, handler, render block, and the
  Header username prop. Account-setup failure now lands on "setup
  complete (with errors)" by construction.
- completion.ts: drop usernameComplete from the completion predicate.
- Header/headerLayout: remove the username breadcrumb piece; subtitle is
  now the sole shrinkable piece. The shared header is otherwise intact.
- Clean up dangling references in comments and CLAUDE.md invariants.
@UtkarshBhardwaj007 UtkarshBhardwaj007 merged commit a224c7f into main Jun 14, 2026
18 of 20 checks passed
@UtkarshBhardwaj007 UtkarshBhardwaj007 deleted the feat/remove-username branch June 14, 2026 13:09
@github-actions

Copy link
Copy Markdown
Contributor

E2E Test Pass · ❌ FAIL

Tag: e2e-ci-pr · Branch: feat/remove-username · Commit: 9ed17c9 · Run logs

Cell Result Time
pr-install ✅ PASS 0m50s
pr-deploy-frontend ✅ PASS 11m48s
pr-login-session ✅ PASS 1m56s
pr-preflight ❌ FAIL 6m02s
pr-deploy-cdm ✅ PASS 4m44s
pr-mod ✅ PASS 1m59s
pr-deploy-foundry ✅ PASS 0m53s
${{ matrix.cell }} ⏭️ SKIP 0m-1s
${{ matrix.cell }} ⏭️ SKIP 0m-1s
❌ Failed tests (1)
  • e2e/cli/build.test.ts › dot build &gt; exits non-zero when no build strategy can be detected
    expected '\n✖ No package.json found in /tmp/dot…' to contain 'No build strategy detected'

Sentry traces: view spans for this run

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.

1 participant