Repository navigation
feat(ui): complete Setup, Auth, and Settings RTL layout for Persian - #337
Merged
Merged
Conversation
Refs #241 Apply the shared RTL/LTR direction foundation to the Setup wizard, the auth screens (login/recover), and the Settings screens and dialogs so they render correctly once the document is dir="rtl": - Convert physical left/right Tailwind utilities to logical (ms/me/ps/pe/start/end/text-start/text-end/border-s/border-e) across setup, auth, settings page, and settings components. - Flip directional back/forward arrows with the shared .rtl-flip class. - Make Settings toggles mirror in RTL via the rtl: variant. - Isolate naturally-LTR values (URLs, emails, pairing codes, version strings, tax IDs, phones, timezone/currency codes, technical identifiers) in Ltr islands, and set dir="ltr" on technical inputs. Adds tests/rtl-setup-auth-settings.test.ts (static direction-utility guard + Ltr polymorphic render checks) registered in npm test, and a Playwright e2e spec asserting rendered dir=rtl/ltr, LTR islands, and no horizontal overflow. Persian stays hidden from user language selectors.
18 tasks done
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.
Intent
Complete the Setup, Auth, and Settings RTL layout work for Persian (Batch D of issue #241): convert the Setup wizard, auth screens (login/recover), the Settings page, and Settings dialogs/components from physical left/right Tailwind utilities to logical utilities (ms/me/ps/pe/start/end/text-start/text-end/border-s/border-e), flip directional back/forward arrows with the shared .rtl-flip class, make Settings toggles mirror in RTL via the rtl: Tailwind variant, isolate naturally-LTR values (URLs, emails, pairing codes, version strings, tax IDs, phone numbers, timezone/currency codes, technical identifiers) in Ltr islands, set dir=ltr on technical inputs, and add regression coverage (static direction-utility test + Playwright e2e asserting rendered dir=rtl/ltr, LTR islands, and no horizontal overflow). Persian must remain hidden from user language selectors; en/es/pt rendering must be unchanged.
What Changed
ms-*,me-*,ps-*,pe-*,text-start,text-end,start-*,end-*)..rtl-flipto directional navigation arrows, isolated technical values (URLs, emails, IP addresses, pairing codes, version strings, and tax rule identifiers) inside<Ltr>component islands, and addeddir="ltr"to technical input fields.tests/rtl-setup-auth-settings.test.tsvianpm run test:rtl-setup-auth-settingsand Playwright E2E test coverage infrontend/e2e/rtl-setup-auth-settings.spec.tsasserting rendered RTL layout mirroring, LTR isolation, and absence of horizontal overflow.Risk Assessment
✅ Low: The changes systematically convert physical layout utilities to logical Tailwind utilities across Setup, Auth, and Settings surfaces with proper LTR isolation, mirrored toggle states, flipped directional arrows, and regression test suites.
Testing
Exercised static direction-utility validation, component rendering tests, and Playwright end-to-end browser tests across the Setup wizard, Login, Password Recovery, and Settings screens in both Persian (RTL) and English (LTR). Confirmed mirrored layouts, .rtl-flip directional arrows, LTR input isolation, mirrored Settings toggles, exclusion of Persian from user language selectors, and lack of horizontal overflow in RTL, capturing 13 visual screenshot artifacts.
/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/auth-login-ltr-en.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/auth-login-rtl-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/auth-recover-ltr-en.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/auth-recover-rtl-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/setup-step1-ltr-en.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/setup-step1-rtl-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/setup-step2-master-pin-rtl-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/setup-step3-owner-account-rtl-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/settings-store-ltr-en.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/settings-store-rtl-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/settings-account-rtl-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/settings-taxes-rtl-fa.png)/var/folders/y_/1ltcxtwj0zd_w1dg9jv4jl580000gn/T/no-mistakes-evidence/01M06TFQ2DPQQE7CME0SCKM8Y3/settings-health-check-dialog-rtl-fa.png)Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
tests/rtl-setup-auth-settings.test.ts:143- Step 3 in tests/rtl-setup-auth-settings.test.ts uses source-content-only assertions (regex matchingimport { Ltr }and counting<Ltroccurrences in settings/page.tsx and TaxConfigurationPanel.tsx) rather than executing an interface. Rendered LTR isolation behavior is already exercised end-to-end in frontend/e2e/rtl-setup-auth-settings.spec.ts.🔧 Fix: remove source-content-only assertions from RTL settings test
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
npm run test:rtl-setup-auth-settingsnpm run test:rtl-foundationnpm run test:translationsnpx cross-env NEXT_BUILD_MODE=desktop npm run build(frontend static build)npx playwright test e2e/rtl-setup-auth-settings.spec.ts(Playwright end-to-end tests for Setup, Login, Recover, and Settings)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.