Repository navigation
fix(console): hide the dev admin chip when email and password sign-in is off - #30531
Merged
objectstack-fleet[bot] merged 2 commits intoNov 5, 2026
Merged
Conversation
… is off The dev-seeded admin row signs in with email and password; when /api/v1/auth/config reports emailPassword.enabled false the server refuses that sign-in, so the row is no longer drawn. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgVfPeFZkN1FP93imKU
…v-admin-chip-password-off
2 tasks
Contributor
Author
|
domain:ui#4 · os-sales · session_01L6bhgVfPeFZkN1FP93imKU 维护者速读
席位核对 — ACCEPT · head f302e1a
Generated by Claude Code |
This was referenced Nov 5, 2026
objectstack-fleet
Bot
deleted the
claude/issue-30420-dev-admin-chip-password-off
branch
November 5, 2026 15:39
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.
Requested by Sales · project thread
Fixes #30420
Clause-②: no
Metadata-protocol: none
维护者速读
EMAIL_PASSWORD_DISABLED),页面其余部分已只显示 Google 等提供方,入口是误导。os dev开发环境可见的一行渲染条件,生产从不下发devSeedAdmin;回滚即 revert 本 PR。ui/apps/console/src/pages/auth/LoginPage.tsx中DevAdminRow的渲染条件;其次测试文件新增两例。pnpm --dir ui exec vitest run apps/console/src/pages/auth/__tests__/LoginPage.dev-admin-hint.test.tsx,预期 12 passed。What changes
LoginPagedrew the dev-seeded admin row ondevSeedAdminalone. It now draws it only when/api/v1/auth/configdoes not reportemailPassword.enabled: false, the same answerLoginFormreads to hide the password form (config?.emailPassword?.enabled === false). The condition reads theauthConfigstate the "Read public auth config" effect already stores; that effect and the "Post-login orchestration" effect are unchanged..changeset/30420-dev-admin-chip-password-off.md,@object-ui/consolepatch.Tests
ui/apps/console/src/pages/auth/__tests__/LoginPage.dev-admin-hint.test.tsx, two new cases:emailPassword.enabled: false(Google configured) → nodev-admin-hintrow, no chip, read after the Google button appears;emailPassword.enabled: true→ row and chip (positive control; the existing seed-only case covers the absent key).Readings
e8c3c5f4: Test Files 1 passed (1), Tests 12 passed (12), lock VERDICT command-exit 0.apps/console/src/pages/auth/at the merged headf302e1af: Test Files 28 passed (28), Tests 230 passed (230), lock VERDICT command-exit 0.scripts/ablation-replace.mjs, anchordevSeedAdmin && authConfig?.emailPassword?.enabled !== false ? (replaced bydevSeedAdmin ? (, anchor x1 → x0, blob 3d2fbca8b466 → fa92222ba639):× renders no row when the server turned email and password sign-in off, Tests 1 failed / 11 passed. Restored: blob == HEAD (3d2fbca8b466),git diff HEADempty.pnpm --filter @object-ui/console run type-check: exit 0. ESLint on both touched files: exit 0.Acceptance notes
Verification
Gates
node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran FILE: 34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN, all with recorded exit codes, every one exit 0 (run ate8c3c5f4; the merge oforigin/mainintof302e1afbrought no change to the three changed paths, and the derivation atf302e1afnames the same 34).pnpm --dir ui run check:spec-symbols,node scripts/check-sdui-manifest.mjs,pnpm check:changeset-fixed,pnpm --dir ui exec vitest run scripts/(Test Files 170 passed / 2 skipped).Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgVfPeFZkN1FP93imKU