You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create countries table in backend with API endpoints #20
Create a countries table in the backend database with API endpoints. This moves the countries data from a static frontend list to a backend-driven system.
Part of epic:#18 Blocked by:#19 (Phase 1 — phone input fix)
Scope
SQLite migration: create countries table
Seed with 31 countries from countries.ts
API routes: GET /api/countries, GET /api/countries/:code
Update frontend to fetch from API (keep countries.ts as offline fallback)
Countries remain a static TypeScript bundle (frontend/src/lib/countries.ts + main/countries.ts), built at import time from libphonenumber-js + Intl.DisplayNames. 35 supported countries with locale, currency, timezone, dial codes.
Rationale: ISO country data is effectively immutable. A DB table + API endpoint adds latency and maintenance burden with no benefit for a single-tenant cafe POS. Static bundle is faster (zero network calls), type-safe, and trivially updatable via code change.
Reopen if: multi-tenant admin UI needs to manage supported countries at runtime.
Activity
khaira777 commentedon Jul 6, 2026
Part of epic #18 — Internationalization
feat(i18n): country profiles, language-first wizard, Argentina IVA
feat(i18n): country profiles, language-first wizard, Argentina IVA
khaira777 commentedon Jul 18, 2026
Closing as won't fix.
Countries remain a static TypeScript bundle (frontend/src/lib/countries.ts + main/countries.ts), built at import time from libphonenumber-js + Intl.DisplayNames. 35 supported countries with locale, currency, timezone, dial codes.
Rationale: ISO country data is effectively immutable. A DB table + API endpoint adds latency and maintenance burden with no benefit for a single-tenant cafe POS. Static bundle is faster (zero network calls), type-safe, and trivially updatable via code change.
Reopen if: multi-tenant admin UI needs to manage supported countries at runtime.
fix(tax): remap every override entity on manual category changes; ali…