Repository navigation
fix(auth): sign-in, password reset and MFA set-up work at phone width - #29136
Merged
Merged
Conversation
Below the sm breakpoint every auth control is a 44 px touch target, the sign-in and forgot-password fields use 16 px text so iOS does not zoom on focus, and the remediation overlay scrolls so the authenticator step keeps its heading and Verify button reachable with the keyboard up. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSjgRwjHh1CopZ7aDU
Contributor
Author
|
domain:ui#1 · zhuangjianguo · session_01QsR2jUJ19MstFvFhjgiYTu 席位核对 · ACCEPT · 2026-11-02T08:24ZHead-sha:
|
This was referenced Nov 2, 2026
This was referenced Nov 2, 2026
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.
Fixes #29080
Clause-②: no
Metadata-protocol: none
Part of #29040: the Auth flow child of the phone-width audit. Claim 6571286397, surface amendment 6571574347.
维护者速读
sm断点以下)的登录、忘记密码、重置密码页和强制改密/MFA 遮罩:所有控件改为至少 44 px 的触控目标,登录与忘记密码的输入框字号改为 16 px,遮罩改为可滚动。桌面尺寸不变。sm:收回,桌面 1280 px 实测尺寸与之前一致。回滚即 revert 本 PR。ui/packages/app-shell/src/console/RemediationOverlay.tsx(遮罩改为外层滚动、内层min-h-full居中);ui/packages/auth/src/authStyles.tsx(共享输入框与主按钮类);ui/packages/auth/src/LoginForm.tsx(显示密码按钮在手机上 44 px)。/login,所有输入框和按钮高 44 px,点输入框不放大;桌面打开同一页,外观与之前相同。What changes
Below the
smbreakpoint only:AUTH_INPUT_CLASSandAUTH_PRIMARY_BUTTON_CLASSgainmin-h-[44px] sm:min-h-0. The forms' secondary controls (text buttons, the "Get code" button, the SSO button, "Forgot password?", "Back to sign in") take the same floor through a module-internalAUTH_TOUCH_TARGET_CLASS, not exported from the package entry. The show-password toggle issize-11(sm:size-7) with the field's right padding widened to match. On the Console pages: the dev-admin chip, the Privacy and Terms links, the "Powered by ObjectStack" link, the reset-password fields and button, and the locale button (grown by a child selector inAuthFooter, soLocaleSwitcheritself is untouched). Links inside a sentence ("Sign up", "Sign in", "Request a new link") keep their size under WCAG 2.5.5's inline exception.AUTH_INPUT_CLASSistext-base sm:text-sm, so the sign-in and forgot-password fields are 16 px on a phone and WebKit no longer zooms the page on focus. (The reset page and the overlay already use the 16 px componentsInput.)fixed inset-0 flex items-centerwith no overflow. The overlay is nowoverflow-y-autoand centres its card inside amin-h-fullcolumn, so a card taller than the screen keeps its top and its submit reachable. Belowsmits buttons, inputs and the backup-codes summary are 44 px.No shared layout file (ConsoleLayout, AppShell, UnifiedSidebar, LocaleSwitcher) is touched. No export, prop or key is added, so the declarations are
Clause-②: noandMetadata-protocol: none, as claimed.Run record
Tree
6b3ba82c(origin/main), fullturbo run build,objectstack dev --seed-admin --freshfor app-showcase and app-crm, the Console fromui/apps/consolesource through Vite, Playwright Chromium withisMobile+hasTouch. MFA was driven for real:PUT /api/settings/authwithmfa_required: trueandmfa_grace_period_days: 0, so data reads answer403 MFA_REQUIREDand the Console raises its overlay; enrollment was completed with a TOTP computed from the served secret.Keyboard model: the layout viewport shrinks by the keyboard (336 px at 812, 346 px at 844, the WebView adjustResize case), each field is focused and scrolled into view, and the field and its submit button must sit in what is left. Showcase and CRM gave the same answer on every row.
Desktop check after the fix, 1280 px: email and password fields 342x40 at 14 px, Sign In 342x40, toggle 28x28, dev chip 28 tall, locale 32x32, the sizes main draws.
Screenshots before and after each fix, and the raw results, are in the project folder
issue-29080/(not on GitHub, as the card asks). The register page under the examples'invite_onlyposture shows no form, so it was measured only for its links.Tests
ui/packages/auth/src/__tests__/phoneTouchTargets-29080.test.tsx: every input and button ofLoginForm(with SSO and phone OTP on) andForgotPasswordFormcarries the phone floor, the fields carrytext-base sm:text-sm, the toggle issize-11 sm:size-7.ui/packages/app-shell/src/console/__tests__/RemediationOverlay.phoneScroll-29080.test.tsx: the overlay isoverflow-y-autoand notitems-center, its column ismin-h-full, its card carries the phone floor.flex items-center justify-centerwithout overflow, the overlay test fails (1 failed); the input class back toh-10 ... text-sm, the auth test fails (2 failed).ablation-replace.mjsrestored each file to its HEAD blob with an emptygit diff HEAD.Suites and type-check
pnpm --dir ui exec vitest run packages/auth/plus the 42 console and app-shell test files that name the touched pages and the overlay: Test Files 82 passed, Tests 572 passed.turbo run type-check --filter=@object-ui/auth --filter=@object-ui/app-shell --filter=@object-ui/console: 73 tasks successful.Acceptance notes
twoFactorRedirectand the Console stays on /login with no code field and no message, at any width. It is filed as Console sign-in: a TOTP-enrolled user who signs in with a password gets twoFactorRedirect and the login page just stays, with no code field and no message #29105.Verification
All local readings at head
1f2e4483. CI's check-runs carry every family CI runs; they are not re-run here.node scripts/pm/dispatch-gates.mjs --ran: 34 derived, 34 run, 0 NOT-MEASURED, every exit 0 (check-changeset-no-major,check-adr-0087-registration,check-closing-keyword-parityandcheck-partof-closing-keywordread this body).node scripts/check-sdui-manifest.mjs: exit 0, no component config changed.pnpm --dir ui exec vitest run scripts/: 169 files passed, 2 skipped (4900 tests).pnpm --dir ui check:new-line-citations: 0 new citations.pnpm check:type-check-debt: exit 0.!in the title and no(narrowing)arm.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jSjgRwjHh1CopZ7aDU