Skip to content

feat(regional): adopt resolveRegionalSnapshot() in server app /info - #782

Merged
itsbkm merged 10 commits into
mainfrom
feat/regional-server-app-surface
Sep 20, 2026
Merged

itsbkm merged 10 commits into
mainfrom
feat/regional-server-app-surface

Conversation

@itsbkm

@itsbkm itsbkm commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

What

Adopts resolveRegionalSnapshot() in the standalone server app's (:3003) /api/server-app/info endpoint — the first of the design note's two "initial surfaces."

main/server-app.ts previously resolved country/currency/symbol/position/fraction-digits inline, with its own duplicated currencyPosition() helper, and preferred the stored currency_symbol setting over the CLDR-derived value when present. That "stored symbol wins" behavior is exactly what docs/regional-snapshot.md explicitly rejects. This PR replaces that block with a single resolveRegionalSnapshot(settings) call, mapping RegionalNotConfiguredError to the existing 409 { error: 'regional_not_configured' } response (behavior unchanged for that case — it previously also 409'd when getCountryByCode couldn't resolve a country).

The frontend side of this surface (frontend/src/app/server-standalone/page.tsx) needed no changes — it already renders from regional?.country || '' / regional?.currency || '' with no INR fallback (fixed in #781).

Why this test change

tests/server-app-server-role.test.ts had COP and KWD fixtures that wrote a value into the currency_symbol setting and asserted that literal value came back as the symbol — for KWD it wrote the string 'KWD' and asserted the endpoint returned 'KWD' as the symbol. That was testing the override behavior the design rejects. Updated to assert the real CLDR narrow symbol ('د.ك.' for ar-KW, verified directly against Node's Intl) and added a case asserting 409 when no country is configured yet.

I also switched this test's settings mutations from UPDATE ... WHERE key = 'x' to an upsert (INSERT ... ON CONFLICT(key) DO UPDATE). This test bypasses the shared test harness (initDatabase() directly, not initTestDb()), so once #779 (seed removal) merges and seedInstallDefaults() stops inserting a country row, a plain UPDATE would silently no-op against a table with no matching row — breaking this test invisibly. The upsert works regardless of merge order.

Stack / merge order

Based on #781 (frontend fallback sweep), which is based on #780 (backend fallback sweep), based on #778 (resolver). Independent of #779 (seed removal) — no shared files touched, but #779 should merge before or alongside this for the reasons above.

Verification

  • npx tsc --noEmit clean
  • npx eslint main/server-app.ts — 9 pre-existing warnings, unchanged (confirmed via git stash A/B)
  • npm run build clean
  • npm run test:server-app-server-role, test:currency, test:country-localization, test:issue-266-currency-symbol-print, test:first-run all pass

Compliance grep

grep -rn "|| 'IN'\|?? 'IN'\||| 'INR'\|?? 'INR'\||| '₹'\|?? '₹'\||| 'Asia/Kolkata'\|?? 'Asia/Kolkata'\|getCountryByCode('IN')" main/server-app.ts frontend/src/app/server-standalone

returns nothing.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved regional settings handling for server app information.
    • Returns a clear regional_not_configured response when country or currency settings are incomplete.
    • Currency symbols now reflect standardized regional formatting.

itsbkm and others added 4 commits September 19, 2026 00:13
Adds the backend resolver from docs/regional-snapshot.md: given a
store's settings, it derives currency symbol, prefix/suffix position,
fraction digits, number separators, and default timezone from the
country/currency pair via Intl/ISO/IANA conventions, throwing
RegionalNotConfiguredError when no country is resolvable rather than
substituting one.

Relocates the locale-preference validation helpers (previously
private to main/routes/settings.ts) into main/countries.ts and
exports them, so the resolver reuses the same per-country option
validation instead of duplicating it — settings.ts now imports them.

Purely additive: no existing seed, wizard, or route behavior changes
in this PR. Removing the India defaults at seedInstallDefaults() and
the setup wizard is deferred to the next PR, which also needs a
central test-harness fix — 107 of 120 test files never go through
/setup/initialize and rely on that seed for a working country.

tests/regional-snapshot.test.ts covers the contract-test matrix from
the design note (USD/COP/EUR/KWD/IRR/INR archetypes, missing/unknown
country, and timezone fallback), wired into npm run test:currency.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
PR 3 of the regional-snapshot sequence (docs/regional-snapshot.md):
sweeps every remaining `|| 'IN'` / `?? 'INR'` / `?? '₹'` / `|| 'Asia/
Kolkata'` fallback out of main/ and shared/, following the "required
parameter, TypeScript drives the caller fixes" approach for the core
functions this depends on (resolveTenantCurrency, formatCurrencyForTenant,
formatNumberForTenant, formatDateForTenant, the print encoders'
options.currencySymbol/currency), and a lower-risk direct fallback
deletion everywhere else once each downstream consumer was confirmed
to already degrade gracefully on an empty/missing value (verified
function-by-function, not assumed).

Two deliberate, documented exceptions, not overlooked:
- main/db.ts migrations v23/v24 keep their 'IN' fallback — one-time
  best-effort cleanup of pre-existing customer phone records on an
  upgrading install, most of which predate multi-country support.
  Historical data heuristic, not a live store's regional identity.
- Login (buildLocalTenant) and the Settings page (businessShape) now
  degrade to empty string rather than throw on a missing regional
  field — unreachable for an authenticated, post-setup store, but a
  login/Settings failure would be far worse than briefly-wrong
  formatting if the invariant were ever violated.

Everywhere else (route handlers building tax/phone/print context,
services/refund.ts, services/tax.ts, services/cloud-sync.ts,
server-app.ts's /info endpoint) either reuses resolveTenantCurrency's
throw or returns 409 { error: 'regional_not_configured' } directly,
matching the design note's contract.

Found and fixed two real, previously-masked bugs while verifying this
against the full test suite (not just the files touched):
- main/printers/thermal.ts had two placeholder "business truly
  unknown" objects (used when no business info is supplied at all,
  e.g. a synthetic preview) missing currency/country entirely — gave
  them an explicit neutral currency: 'USD' rather than let them throw
  or silently resolve to India.
- tests/e2e-argentina-flow.test.ts's "legacy India demo" regression
  scenario called seedSetupProfile(db, 'demo', 'finedine', 'IN') —
  'IN' landed in the *language* parameter slot, not country (which
  was actually omitted and only produced correct-looking Indian demo
  data because the old fallback defaulted it to India regardless).
  Fixed to pass ('en', 'IN') explicitly.

Also relocated two duplicated country→currency resolution helpers
(services/refund.ts, services/tax.ts) to call the shared
resolveTenantCurrency instead of re-implementing the same lookup with
their own 'IN'/'INR' literals.

Verified: npx tsc --noEmit clean; npx eslint main/ shows 0 errors and
the exact same 1003 pre-existing `any` warnings as before this change
(confirmed via git stash comparison, no increase); full npm test
(166+ chained scripts, 13,811 log lines) passes end-to-end.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
PR 3b of the regional-snapshot sequence (docs/regional-snapshot.md),
stacked on #780 (backend sweep) — the frontend sweep. Removes the
~59 remaining `|| 'IN'` / `?? 'INR'` fallback sites across hooks,
pages, and print encoders (frontend/src), following the same approach
as #780: core functions the frontend depends on (formatCurrencyForTenant,
formatNumberForTenant, formatDateForTenant, resolveTenantCurrency,
getCurrencyUnitAdapter, and the frontend's own phone.ts helpers) get
required params; everywhere else gets the fallback deleted once its
downstream consumer is confirmed to degrade gracefully.

Excluded: frontend/src/app/setup/page.tsx's one site — already fixed
in #779 (the wizard PR); touching it here would conflict.

A real crash bug found and fixed while verifying this: `countryName('')`
throws (Intl.DisplayNames.of() rejects an empty region code) — I'm the
one who made this reachable by removing the guaranteed-non-empty 'IN'
fallback ahead of it in five call sites (the "invalid phone" toast
across customers/tables pages and the three customer modals). Added a
try/catch to countryName() itself in main/countries.ts rather than
patching each call site, since it's a shared low-level utility and any
future caller would hit the same crash.

Two additional cleanups in the same spirit, not literal `'INR'`/`'IN'`
tokens but the same category:
- Two `dialCodeFor(...) || '+91'` sites (tables and customers pages) —
  dialCodeFor() already returns '' gracefully on empty input, so the
  outer India-dial-code fallback was redundant and India-specific.
- print-test/page.tsx's synthetic test tenant only overrode `timezone`
  from the real signed-in tenant, leaving country/currency hard-coded
  to the 'IN'/'INR' synthetic defaults — a non-Indian merchant testing
  their printer would see a rupee-denominated test receipt regardless
  of their actual store. Now overrides all three from the real tenant.

Verified: frontend `npx tsc --noEmit` clean; `npx eslint src/` shows
0 errors and the identical 4 pre-existing warnings before/after
(confirmed via git stash A/B); `npm run build:frontend` succeeds;
full npm test (166+ chained scripts, 13,811 log lines) passes clean
end-to-end on the first run. Also fixed two real TS2554 (wrong arg
count) errors in tests/phone.test.ts surfaced by frontend/src/lib/
phone.ts's now-required defaultCountry parameters — found via a
targeted tsc -p tests/tsconfig.json check, since ts-node's
--transpile-only (what npm test actually uses) silently skips type
errors.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
main/server-app.ts's /api/server-app/info endpoint resolved country,
currency, symbol, position, and fraction digits inline and preferred
the stored currency_symbol setting over the CLDR-derived value. Route
it through the shared resolver instead, so the server app renders the
same regional identity as every other adopting surface and the stored
symbol override ("stored symbol wins") that the design explicitly
rejected can no longer take effect.

Updates tests/server-app-server-role.test.ts's COP/KWD fixtures to
assert the real CLDR symbol for KWD (was asserting a literal stored
override) and adds a 409 case for a store with no country configured.

Docs: docs/regional-snapshot.md, "Initial surfaces (exactly two)" #1.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: FreeOpenSourcePOS/FloCafe/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: df6add33-7480-4d8c-add4-7d02d3c9a0a1

📥 Commits

Reviewing files that changed from the base of the PR and between b51d3dc and ba0ebec.

📒 Files selected for processing (2)
  • main/server-app.ts
  • tests/server-app-server-role.test.ts

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The Server App info route now uses resolveRegionalSnapshot for regional fields. It returns 409 regional_not_configured when the country is unset. Tests cover this response and the CLDR-derived KWD symbol.

Changes

Regional snapshot integration

Layer / File(s) Summary
Use regional snapshot in info route
main/server-app.ts
The route uses resolveRegionalSnapshot(settings) for regional values. It returns 409 regional_not_configured for RegionalNotConfiguredError and uses snapshot-derived currency fields.
Validate regional response behavior
tests/server-app-server-role.test.ts
Tests cover an empty country setting and expect the CLDR-derived KWD symbol د.ك..

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: adopting resolveRegionalSnapshot() in the server app /info endpoint.
Description check ✅ Passed The description clearly explains the change, rationale, scope, compatibility considerations, test updates, merge order, and verification results. It does not reproduce every template heading, but it p…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

@itoqa

itoqa Bot commented Sep 18, 2026

Copy link
Copy Markdown

Ito QA test results
Commit: b197792: 17 test cases ran, 17 passed ✅.

Summary

Coverage spans customer phone normalization and migration safety, regional and currency configuration, stale or missing setting fallbacks, dependent-record preservation, request-order handling, and settings persistence. It exercises happy paths, invalid and boundary inputs, retry and upgrade behavior, cross-record data integrity, and user-facing regional and formatting flows.

Safe to merge — the run found no regressions, new failures, or previously flagged failures attributable to this PR, and all exercised behaviors passed. No merge-blocking risk is indicated; overall risk is low.

Tests run by Ito

View full run

Result Severity Type Description
✅ — General A blank phone was saved without phone details, while the same French number was accepted and saved in international format after France was selected.
✅ — General Duplicate customers with the same normalized phone are merged, and orders, bills, held orders, and loyalty records keep their customer links.
✅ — General The upgrade completed successfully on two separate local runs. Valid phone data was normalized, invalid data was kept, and both runs passed database integrity checks.
✅ — General The older request correctly returned a setup error, while the newer request returned the current Colombia and COP values. The older response did not replace the newer store data.
✅ — Currency The local POS loaded after Colombia and COP were configured. The displayed dollar sign is also the valid Colombian peso symbol; the Indian sample product names came from the English Demo seed, not from a currency or country fallback.
✅ — Migration The database upgrade completed successfully. A parseable phone was normalized with its country code, an unparseable phone was kept in its original form and logged, and database integrity checks passed.
✅ — Migration The migration kept the malformed historical phone unchanged and reported one unparseable record.
✅ — Phone A French customer phone number was accepted and saved as +33612345678 with calling code +33.
✅ — Phone A national-format phone number was rejected when the tenant country was invalid, and no customer was added.
✅ — Regional The Server App returned the configured United States and US dollar settings, and menu prices appeared in dollars.
✅ — Regional Requests made with an empty country and with ZZ both return a regional configuration error. The app does not show Indian currency or other Indian regional values.
✅ — Rev The server information page returned the configured US country and correctly filled in USD, the dollar sign, prefix placement, and two decimal places after the currency setting was cleared.
✅ — Server The Server App returned the configured Colombia and COP values, including the currency format and enabled KDS flag.
✅ — Server When no country is configured, the Server App returns a 409 error with the regional_not_configured code.
✅ — Server The Server App returned Kuwait's KWD symbol from its regional data instead of the stored stale symbol.
✅ — Settings The supported Iran display preferences were saved, returned unchanged, and shown correctly on the Settings page.
✅ — Settings Saving US/USD settings without locale preferences returned neutral values, and the Settings dashboard loaded normally without an error.

Tip

Reply with @itoqa to send us feedback on this test run.

@itsbkm
itsbkm changed the base branch from main to fix/regional-fallback-sweep-frontend September 19, 2026 08:48
itsbkm and others added 4 commits September 20, 2026 03:11
…lback sweep

Ito QA (high severity, reproduced): resolveTenantCurrency checked an
explicit currency BEFORE validating the country, so a syntactically-
valid-but-bogus currency (e.g. 'ZZZ') masked an unresolvable country
('ZZ') and the function never threw. A bill could be created and taxed
under completely invalid regional settings, and a later corrected
retry reused that same bad bill. Reordered to validate the country
first — an explicit currency override is still honored for a real
country (e.g. a US store priced in KES), but a bogus country now
always throws RegionalNotConfiguredError regardless of currency.

Also gave RegionalNotConfiguredError a `statusCode = 409` so it maps
correctly through the ~40 existing `error.statusCode || 500` route
catch blocks without each needing its own instanceof check, and fixed
the one bills.ts catch block (POST /generate, the exact endpoint Ito
QA reproduced against) that hardcoded 500 instead of using that
pattern.

CodeRabbit (5 findings, same root cause): order/bill numbering
(main/db.ts), cash closures, reports, and refunds all resolved a
missing timezone to '' and let the date-math helpers silently fall
back to UTC. At a tenant-local day/month/financial-year boundary that
produces the wrong period segment, sequence bucket, closure total, or
refund-window decision — a real correctness bug, not just a display
one. All four now reject with RegionalNotConfiguredError before any
date math runs. The printer test-page route gets the same treatment
via an explicit 409 (not a thrown error, since CodeRabbit noted this
route's catch block converts errors to a generic 500).

CodeRabbit (1 finding): parsePhoneE164 required defaultCountry even
for a number already in full E.164 form, which libphonenumber-js
parses correctly regardless of defaultCountry — so the pre-login
support-ticket route (no resolvable tenant country) rejected valid
international phone numbers. Now only national-format input requires
a resolvable country.

Found while verifying the resolver reorder: two synthetic "business
truly unknown" placeholders in main/printers/thermal.ts relied on the
OLD currency-first short-circuit (explicit currency: 'USD', no
country) to avoid ever reaching the country check. The reorder broke
this — reproduced via tests/printer-fallback-and-popup-verification.ts
throwing RegionalNotConfiguredError. Fixed by giving both placeholders
a matching country: 'US' alongside their currency.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
# Conflicts:
#	main/countries.ts
#	tests/regional-snapshot.test.ts
# Conflicts:
#	frontend/src/app/(dashboard)/orders/page.tsx
@itsbkm
itsbkm changed the base branch from fix/regional-fallback-sweep-frontend to main September 19, 2026 22:07
@itoqa

itoqa Bot commented Sep 20, 2026

Copy link
Copy Markdown

Ito QA test results
Ito Diff Report — b197792 → 074a8a9: 18 test cases ran, 18 passing ✅.

Diff Summary

The run covered core order and receipt behavior, customer phone handling, regional settings, migrations, reporting time boundaries, and server configuration errors. Coverage included normal business flows, edge cases such as missing or invalid regional data and duplicate receipt sends, data-integrity safeguards, and key order-screen rendering and actions.

Safe to merge — the exercised behavior is healthy with no PR-attributable regressions, new failures, or previously flagged failures. The remaining untested areas are coverage gaps rather than merge blockers.

Tests run by Ito

View full run

Result State Severity Type Description
✅ Passing — General The order list and detail views showed the correct receipt status for each paid split bill. An unpaid sibling bill did not change its order's status.
✅ Passing — General The order list and all four order details kept a null receipt status for the correct orders. Missing records, manual or incoming messages, an order without a phone number, and an unpaid neighboring order did not change another order's result.
✅ Passing — General When the same paid receipt was sent twice at once, one request succeeded and the other was rejected. After refresh, the order still showed one sent receipt and no duplicate receipt record.
✅ Passing — Migration The old database upgraded to the latest version without crashing. The missing country column was restored, the historical phone cleanup ran, and the database passed its integrity checks.
✅ Passing — Migration The database upgrade completed without errors, and both integrity checks passed. The supplied old database had no customer rows, so the phone normalization and duplicate-link checks were not needed to explain a product failure.
✅ Passing — Ordercard The Orders screen showed an expanded order with its number, status, unpaid payment state, customer control, item details, totals, Checkout, Add Item, and Cancel actions.
✅ Passing — Orders The order list and order details both showed a sent receipt for paid bill 7181001.
✅ Passing — Phone The number was accepted because this store was set up with India as its country. A national number is expected to work when the store has a country to use for parsing.
✅ Passing — Phone Entering +919876543210 without choosing a country kept the full number and found Aarav Sharma.
✅ Passing — Preferences The settings response returned the saved US locale preferences unchanged.
✅ Passing — Preferences The settings response changed unsupported stored locale values to neutral defaults: rial, locale digits, and locale calendar.
✅ Passing — Regional The configured US store loaded with United States, USD, and America/New_York settings. The regional resolver also derives the locale, number formatting, currency display, timezone, and preferences without applying an India or other default fallback.
✅ Passing — Regional The application rejected both an empty country and the unknown country code ZZ. It returned the regional-not-configured response and did not replace either value with India or INR.
✅ Passing — Server The Server App returned CO and COP with the CLDR-derived dollar symbol before the amount, even though an old symbol override was stored.
✅ Passing — Server The Server App reports a configuration error when the tenant has no country. It returns HTTP 409 with the regional_not_configured error code.
✅ Passing — Timezone The report for April 22, 2026 included the two orders and two bills inside the store's Los Angeles date, totaling 55. Records just outside that local date were excluded.
✅ Passing — Timezone When the store has no timezone, the reports request returns HTTP 409 with a clear regional settings error instead of using UTC or server time.
✅ Passing — Whatsapp Sending a paid bill receipt stored the correct phone, message, bill link, and receipt label. The paid order then showed that the receipt was sent.
⏸️ Skipped — General A blank phone was saved without phone details, while the same French number was accepted and saved in international format after France was selected.
⏸️ Skipped — General Duplicate customers with the same normalized phone are merged, and orders, bills, held orders, and loyalty records keep their customer links.
⏸️ Skipped — General The upgrade completed successfully on two separate local runs. Valid phone data was normalized, invalid data was kept, and both runs passed database integrity checks.
⏸️ Skipped — General The older request correctly returned a setup error, while the newer request returned the current Colombia and COP values. The older response did not replace the newer store data.
⏸️ Skipped — Currency The local POS loaded after Colombia and COP were configured. The displayed dollar sign is also the valid Colombian peso symbol; the Indian sample product names came from the English Demo seed, not from a currency or country fallback.
⏸️ Skipped — Migration The database upgrade completed successfully. A parseable phone was normalized with its country code, an unparseable phone was kept in its original form and logged, and database integrity checks passed.
⏸️ Skipped — Migration The migration kept the malformed historical phone unchanged and reported one unparseable record.
⏸️ Skipped — Phone A French customer phone number was accepted and saved as +33612345678 with calling code +33.
⏸️ Skipped — Phone A national-format phone number was rejected when the tenant country was invalid, and no customer was added.
⏸️ Skipped — Regional The Server App returned the configured United States and US dollar settings, and menu prices appeared in dollars.
⏸️ Skipped — Regional Requests made with an empty country and with ZZ both return a regional configuration error. The app does not show Indian currency or other Indian regional values.
⏸️ Skipped — Rev The server information page returned the configured US country and correctly filled in USD, the dollar sign, prefix placement, and two decimal places after the currency setting was cleared.
⏸️ Skipped — Server The Server App returned the configured Colombia and COP values, including the currency format and enabled KDS flag.
⏸️ Skipped — Server When no country is configured, the Server App returns a 409 error with the regional_not_configured code.
⏸️ Skipped — Server The Server App returned Kuwait's KWD symbol from its regional data instead of the stored stale symbol.
⏸️ Skipped — Settings The supported Iran display preferences were saved, returned unchanged, and shown correctly on the Settings page.
⏸️ Skipped — Settings Saving US/USD settings without locale preferences returned neutral values, and the Settings dashboard loaded normally without an error.

Tip

Reply with @itoqa to send us feedback on this test run.

@itsbkm
itsbkm merged commit efb5371 into main Sep 20, 2026
15 checks passed
@itsbkm
itsbkm deleted the feat/regional-server-app-surface branch September 20, 2026 13:49
@itoqa

itoqa Bot commented Sep 20, 2026

Copy link
Copy Markdown

Ito QA test results
Ito Diff Report — 074a8a9 → ba0ebec: 12 test cases ran, 12 passing ✅.

Diff Summary

Coverage spans setup and regional-configuration behavior, including valid flows, invalid and missing country/timezone inputs, concurrent setup attempts, legacy and fresh stores, and downstream POS, dashboard, printer, and order-processing behavior. The exercised paths include both normal business flows and adversarial edge cases, with overall behavior consistent and no application regressions identified.

Safe to merge — the exercised behaviors show no PR-attributable regressions, new failures, or previously flagged failures; all reported checks passed. Remaining untested areas are coverage gaps rather than merge blockers.

Tests run by Ito

View full run

Result State Severity Type Description
✅ Passing — General Empty, unknown, and object country values all returned the country validation error. No owner or regional settings were created.
✅ Passing — General The POS and dashboard showed US dollar values, and the printer menu showed no fallback values. The cash movement dialog showed a missing-timezone message because an earlier check had removed the timezone from the shared local store.
✅ Passing — General A store with its general settings intact but no regional settings returned a clear configuration error. It did not invent India, INR, Asia/Kolkata, or UTC values.
✅ Passing — General The setup wizard stayed on the country step when no country was selected. A direct setup request was rejected with HTTP 400, and no owner or regional settings were created.
✅ Passing — General Two setup requests sent at the same time produced one owner and one complete regional configuration. The other request was rejected because setup was already complete.
✅ Passing — Regional A fresh store does not use India or UTC defaults when regional settings are missing. The correct server-app endpoint returns a regional configuration error until setup is complete.
✅ Passing — Setup Creating the owner account succeeded and saved CAD with the Canada profile timezone, America/Toronto. The extra regional snapshot check used the main app port instead of the standalone Server App port, so that follow-up request returned 404 even though setup completed correctly.
✅ Passing — Setup Setup created the first owner and kept the selected US country, USD currency, and America/Vancouver timezone.
✅ Passing — Setup The setup request returned a 400 error for the invalid timezone, and no owner or regional settings were saved.
✅ Passing — Setup The setup wizard stayed on the country step and showed the message to choose a country when Continue was clicked with no country selected. Setup was not submitted.
✅ Passing — Stores The configured store created and paid for a coffee order using US dollars, then cleared the cart.
✅ Passing — Stores When the store had no timezone, confirming a paid order returned the expected conflict and showed a clear error instead of using UTC. No order or bill was created.
⏸️ Skipped — General The order list and detail views showed the correct receipt status for each paid split bill. An unpaid sibling bill did not change its order's status.
⏸️ Skipped — General The order list and all four order details kept a null receipt status for the correct orders. Missing records, manual or incoming messages, an order without a phone number, and an unpaid neighboring order did not change another order's result.
⏸️ Skipped — General When the same paid receipt was sent twice at once, one request succeeded and the other was rejected. After refresh, the order still showed one sent receipt and no duplicate receipt record.
⏸️ Skipped — Migration The old database upgraded to the latest version without crashing. The missing country column was restored, the historical phone cleanup ran, and the database passed its integrity checks.
⏸️ Skipped — Migration The database upgrade completed without errors, and both integrity checks passed. The supplied old database had no customer rows, so the phone normalization and duplicate-link checks were not needed to explain a product failure.
⏸️ Skipped — Ordercard The Orders screen showed an expanded order with its number, status, unpaid payment state, customer control, item details, totals, Checkout, Add Item, and Cancel actions.
⏸️ Skipped — Orders The order list and order details both showed a sent receipt for paid bill 7181001.
⏸️ Skipped — Phone The number was accepted because this store was set up with India as its country. A national number is expected to work when the store has a country to use for parsing.
⏸️ Skipped — Phone Entering +919876543210 without choosing a country kept the full number and found Aarav Sharma.
⏸️ Skipped — Preferences The settings response returned the saved US locale preferences unchanged.
⏸️ Skipped — Preferences The settings response changed unsupported stored locale values to neutral defaults: rial, locale digits, and locale calendar.
⏸️ Skipped — Regional The configured US store loaded with United States, USD, and America/New_York settings. The regional resolver also derives the locale, number formatting, currency display, timezone, and preferences without applying an India or other default fallback.
⏸️ Skipped — Regional The application rejected both an empty country and the unknown country code ZZ. It returned the regional-not-configured response and did not replace either value with India or INR.
⏸️ Skipped — Server The Server App returned CO and COP with the CLDR-derived dollar symbol before the amount, even though an old symbol override was stored.
⏸️ Skipped — Server The Server App reports a configuration error when the tenant has no country. It returns HTTP 409 with the regional_not_configured error code.
⏸️ Skipped — Timezone The report for April 22, 2026 included the two orders and two bills inside the store's Los Angeles date, totaling 55. Records just outside that local date were excluded.
⏸️ Skipped — Timezone When the store has no timezone, the reports request returns HTTP 409 with a clear regional settings error instead of using UTC or server time.
⏸️ Skipped — Whatsapp Sending a paid bill receipt stored the correct phone, message, bill link, and receipt label. The paid order then showed that the receipt was sent.

Tip

Reply with @itoqa to send us feedback on this test run.

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