Skip to content

fix: ApiDetailPage tabular-nums - #819

Open
giftlu09-lang wants to merge 1 commit into
CalloraOrg:mainfrom
giftlu09-lang:task/apidetailpage-tabular-v7
Open

fix: ApiDetailPage tabular-nums#819
giftlu09-lang wants to merge 1 commit into
CalloraOrg:mainfrom
giftlu09-lang:task/apidetailpage-tabular-v7

Conversation

@giftlu09-lang

Copy link
Copy Markdown

Apply font-variant-numeric: tabular-nums to all numeric displays on ApiDetailPage so digits use fixed-width glyphs and the layout does not shift as values update (Issue #466, GrantFox FWC26 Stellar Wave).

Changes

src/styles/typography.css

  • Wrap all rules in @layer typography for correct cascade ordering.
  • Add defensive container rules for .stat-card__value, .api-detail-plan-price, and .api-detail-calculator-total__amount so every numeric descendant is covered even without an explicit class.

src/pages/ApiDetailPage.tsx

  • Performance Metrics (Overview tab): add tabular-nums + stat-card__value to the value
    inside each stat card (Total Requests, Latency P95, System Uptime).
  • Pricing tab / Standard plan: add tabular-nums to .api-detail-plan-price.
  • Cost Calculator: add tabular-nums + api-detail-calculator-total__amount to the Estimated Monthly Total amount element.
  • Pre-existing tabular-nums on hero price panel, hero meta price, and calculator monthly-volume span are left unchanged.

src/pages/ApiDetailPage.test.tsx

  • Add describe('tabular-nums numeric display (Issue Add tabular-nums on ApiDetailPage amounts (v7) #466)') with 13 tests covering all numeric elements: hero price panel, hero meta price, three performance metrics, standard plan price, monthly volume span, estimated total, and a slider-interaction regression test.

No new runtime dependencies. No breaking changes. All 13 new tests pass; pre-existing test count and failures are unchanged.

closes #466

Apply font-variant-numeric: tabular-nums to all numeric displays on
ApiDetailPage so digits use fixed-width glyphs and the layout does not
shift as values update (Issue CalloraOrg#466, GrantFox FWC26 Stellar Wave).

Changes
-------
src/styles/typography.css
  - Wrap all rules in @layer typography for correct cascade ordering.
  - Add defensive container rules for .stat-card__value,
    .api-detail-plan-price, and .api-detail-calculator-total__amount so
    every numeric descendant is covered even without an explicit class.

src/pages/ApiDetailPage.tsx
  - Performance Metrics (Overview tab): add tabular-nums + stat-card__value
    to the value <div> inside each stat card (Total Requests, Latency P95,
    System Uptime).
  - Pricing tab / Standard plan: add tabular-nums to .api-detail-plan-price.
  - Cost Calculator: add tabular-nums + api-detail-calculator-total__amount
    to the Estimated Monthly Total amount element.
  - Pre-existing tabular-nums on hero price panel, hero meta price, and
    calculator monthly-volume span are left unchanged.

src/pages/ApiDetailPage.test.tsx
  - Add describe('tabular-nums numeric display (Issue CalloraOrg#466)') with 13 tests
    covering all numeric elements: hero price panel, hero meta price, three
    performance metrics, standard plan price, monthly volume span, estimated
    total, and a slider-interaction regression test.

No new runtime dependencies. No breaking changes. All 13 new tests pass;
pre-existing test count and failures are unchanged.
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@giftlu09-lang Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add tabular-nums on ApiDetailPage amounts (v7)

1 participant