Skip to content

fix(ui): use row locale for extraction preview phone formatting#886

Merged
cpcloud merged 2 commits intomicasa-dev:mainfrom
cpcloud:worktree-mutable-humming-swing
Apr 1, 2026
Merged

fix(ui): use row locale for extraction preview phone formatting#886
cpcloud merged 2 commits intomicasa-dev:mainfrom
cpcloud:worktree-mutable-humming-swing

Conversation

@cpcloud
Copy link
Copy Markdown
Collaborator

@cpcloud cpcloud commented Mar 31, 2026

Summary

  • Extraction preview now formats vendor phone numbers using the row's locale instead of the system default, so a UK vendor previewed on a US system shows 020 7946 0958 instead of US-formatted output
  • Vendor edit tests rewritten to drive through keypresses (sendKey) instead of calling startEditVendorForm/inlineEditVendor directly
  • Added TestGroupOperationsByTableUsesRowLocale covering the row-level locale override and fallback to system default

cpcloud and others added 2 commits March 31, 2026 17:27
The extraction preview was formatting vendor phone numbers with the
system's detected country instead of the vendor's locale. Override
the phone formatter per-row when the extracted data includes a locale.

Also rewrite vendor edit tests to drive through keypresses (sendKey)
instead of calling startEditVendorForm/inlineEditVendor directly,
matching the project's user-interaction test conventions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add TestGroupOperationsByTableUsesRowLocale to verify that vendor
extraction previews use the row's locale for phone formatting instead
of the system default, and that rows without a locale fall back correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cpcloud cpcloud added bug Something isn't working ux User experience labels Mar 31, 2026
@cpcloud cpcloud merged commit 05b8a80 into micasa-dev:main Apr 1, 2026
27 checks passed
@cpcloud cpcloud deleted the worktree-mutable-humming-swing branch April 1, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ux User experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant