fix(gigs): stabilize budget number formatting#369
Conversation
Greptile SummaryThis PR pins all
Confidence Score: 5/5Safe to merge — changes are narrowly scoped to locale pinning with no behavioural change for users already on en-US environments. All four changed sites receive the same one-line locale pin. The USD path in GigCard and the detail page already flowed through No files require special attention — all changes are isolated to the Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Budget amount + paymentCoin] --> B{isSats?\nSATS / LN / BTC}
B -- yes --> C["val.toLocaleString('en-US') + ' sats'"]
B -- no --> D{formatBudgetAmount\nor fmt in component?}
D -- formatBudgetAmount --> E["amount.toLocaleString('en-US', {min:0, max:2}) → $X"]
D -- GigCard / page fmt --> F["formatCurrency(val) → Intl.NumberFormat('en-US') → $X"]
C --> G[Display string]
E --> G
F --> G
G --> H[GigCard UI]
G --> I[Gig Detail Page UI]
Reviews (1): Last reviewed commit: "fix(gigs): stabilize budget number forma..." | Re-trigger Greptile |
Summary
en-USrather than the host localePaid task
https://ugig.net/gigs/abd6b2a0-e728-48cf-a46f-f99e419ed94e
Verification
pnpm exec vitest run src/types/budget-display.test.ts src/components/gigs/GigCardSats.test.tsxpnpm exec eslint src/types/index.ts src/components/gigs/GigCard.tsx 'src/app/gigs/[id]/page.tsx' src/components/gigs/GigCardSats.test.tsxgit diff --check