Repository navigation
docs: add regional snapshot design (Phase 3) - #777
Merged
Merged
Conversation
Defines one backend resolveRegionalSnapshot(settings) so currency symbol/position/fraction-digits, number separators, and default timezone are all derived from the country/currency chosen at signup via Intl/ISO/IANA conventions, with no default country and no per-store override anywhere. Records the underlying product decision in business-decisions.md and indexes the note in docs/README.md. Supersedes PR #697; prerequisite for the fresh #693 reimplementation. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: FreeOpenSourcePOS/FloCafe/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The COP contract-test value used an ordinary space; Intl actually renders a non-breaking space (U+00A0) between symbol and amount there. Also splits step (1) of the implementation order: removing seedInstallDefaults()'s writes needs its own PR with a central test-harness fix, since 107 of 120 test files never go through /setup/initialize and rely entirely on that seed for a working country before their own test body runs. Found while starting PR 1; the resolver itself stays purely additive. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This was referenced Sep 18, 2026
This was referenced Sep 21, 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.
Summary
docs/regional-snapshot.md(ACTIVE DESIGN): one backendresolveRegionalSnapshot(settings)that derives currency symbol/position/fraction-digits, number separators, and default timezone from the country/currency chosen at signup, usingIntl/ISO 4217/IANA conventions — no default country, no hard-coded symbol, no per-store override.docs/business-decisions.md("Regional settings come from signup, never from a fallback"), with a grep any agent can run to catch a reintroduced fallback.docs/README.md.Scope
Documentation only. No code changes — this is the design PR 1 (resolver + contract tests) implements against. Supersedes PR #697; prerequisite for the fresh #693 reimplementation.
Verification
Commands run:
git diff --check— cleandocs/README.md— all resolveIntl/dayBoundsInTimezonevalue quoted in the contract-test table verified against actual Node output on 2026-09-18Results: all pass.
Compatibility & data safety
Summary by CodeRabbit