Skip to content

fix: respect server app regional settings - #705

Merged
itsbkm merged 2 commits into
mainfrom
codex/fix-server-app-regional
Sep 10, 2026
Merged

itsbkm merged 2 commits into
mainfrom
codex/fix-server-app-regional

Conversation

@itsbkm

@itsbkm itsbkm commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make Server App info return country, currency, symbol, placement, and ISO fraction digits from current settings at request time
  • format standalone menu and draft totals with the existing tenant currency formatter instead of fixed two decimals
  • normalize standalone customer phones with the configured store country instead of India
  • cover COP zero-decimal and KWD three-decimal behavior

No migration, stored field, dependency, or client-side regional cache is added.

Verification

  • npm run build
  • npm run build:frontend
  • npm run lint (baseline: 1013 backend warnings, 5 frontend warnings; zero errors)
  • npm run test:currency
  • npm run test:server-app-server-role
  • npm run test:rtl-kds-server-whatsapp
  • git diff --check

@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: c4e1a171-0d0c-4423-915e-9748d90a7143

📥 Commits

Reviewing files that changed from the base of the PR and between f422b3d and 483e838.

📒 Files selected for processing (4)
  • frontend/src/app/server-standalone/page.tsx
  • main/server-app.ts
  • tests/currency.test.ts
  • tests/server-app-server-role.test.ts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR makes the standalone Server App use current tenant regional settings for currency display and customer phone handling.

  • Exposes resolved country, currency, symbol, placement, and fraction digits through the Server App info endpoint.
  • Formats menu prices and draft totals with the tenant-aware currency formatter.
  • Uses the configured store country for client-side phone normalization while retaining backend-authoritative normalization.
  • Adds coverage for COP and KWD currency precision and Server App regional metadata.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
frontend/src/app/server-standalone/page.tsx Applies tenant-aware currency formatting and avoids applying an incorrect country fallback when regional metadata is unavailable.
main/server-app.ts Resolves and returns current regional currency metadata from persisted settings at request time.
tests/currency.test.ts Adds coverage for zero- and three-decimal currency formatting.
tests/server-app-server-role.test.ts Verifies that the Server App info endpoint reflects updated COP and KWD settings.

Reviews (2): Last reviewed commit: "fix: avoid regional phone fallback on me..." | Re-trigger Greptile

@itsbkm
itsbkm merged commit ace1ea0 into main Sep 10, 2026
15 checks passed
@itsbkm
itsbkm deleted the codex/fix-server-app-regional branch September 10, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant