Skip to content

Format quote result values with shared helpers#169

Open
jamilahmadzai wants to merge 1 commit into
StableRoute-Org:mainfrom
jamilahmadzai:codex/stableroute-141-quote-format
Open

Format quote result values with shared helpers#169
jamilahmadzai wants to merge 1 commit into
StableRoute-Org:mainfrom
jamilahmadzai:codex/stableroute-141-quote-format

Conversation

@jamilahmadzai

Copy link
Copy Markdown

Closes #141

Bounty: GrantFox OSS campaign for issue #141

Summary

  • Format returned quote amounts with the shared formatStroops helper when the base-unit value can be parsed safely.
  • Format numeric estimated rates with the shared formatNumber helper.
  • Preserve raw backend values in title attributes and fall back to raw strings when formatting would be unsafe or invalid.
  • Keep the request payload/API contract unchanged and document the base-unit display behavior.

Tests

  • npm test -- src/app/quote/page.test.tsx --runInBand
  • npm test -- --runInBand
  • npm run lint
  • npm run build
  • git diff --check

Notes

The quote status region remains role="status" with aria-live="polite"; only the displayed amount/rate text and raw-value titles changed.

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.

Format the quote amount and estimated rate with the shared format helpers

1 participant