Skip to content

fix(site/src): show cost units below fields and use two columns until md - #32135

Merged
tracyjohnsonux merged 2 commits into
mainfrom
tracy/des-22177-use-two-column-cost-inputs-at-narrower
Nov 13, 2026
Merged

tracyjohnsonux merged 2 commits into
mainfrom
tracy/des-22177-use-two-column-cost-inputs-at-narrower

Conversation

@tracyjohnsonux

@tracyjohnsonux tracyjohnsonux commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

On the model settings page, the cost estimate fields stayed four columns down to sm, and the inline USD/1M tokens addon squeezed the price input until it overlapped or disappeared.

  • Move the unit to helper text below each field (USD per 1M tokens), linked with aria-describedby.
  • Use two columns below md (768px) and four columns at md and up.
  • Add a CostEstimateTwoColumns story at the phone viewport so Pixel captures the two-column layout.

Fixes DES-22177

Verification and review notes
  • Checked layout in Storybook with Playwright: two columns at 700px, four columns at 768px, 900px, and 1280px (inputs are 113px wide at 768px). On main at 900px, the price inputs collapse to zero width.
  • pnpm check, pnpm lint, pnpm lint:types, and pnpm test:storybook for ModelForm.stories.tsx (40 passed).
  • Ran frontend-deep-review. Fixed: removed an assertion from the new story's play and dropped a comment that restated the story. Not changed: the new story uses aiModelPrices(...).queryKey like the three cost estimate stories next to it, because adding a key helper to api/queries is out of scope.
  • No docs describe this UI, so no docs changes.
image

Generated by Coder Agents on behalf of @tracyjohnsonux.

@linear-code

linear-code Bot commented Nov 12, 2026

Copy link
Copy Markdown

DES-22177

@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 21:44 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 21:44 — with GitHub Actions Inactive
@tracyjohnsonux tracyjohnsonux changed the title fix(site/src): show cost units below fields and use two columns until lg fix(site/src): show cost units below fields and use two columns until md Nov 12, 2026
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 22:15 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 22:15 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 12, 2026 23:16 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux merged commit ab325b5 into main Nov 13, 2026
35 checks passed
@tracyjohnsonux
tracyjohnsonux deleted the tracy/des-22177-use-two-column-cost-inputs-at-narrower branch November 13, 2026 02:11
@tracyjohnsonux
tracyjohnsonux temporarily deployed to main November 13, 2026 02:11 — with GitHub Actions Inactive
@tracyjohnsonux
tracyjohnsonux temporarily deployed to docs-preview November 13, 2026 02:11 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 13, 2026

This branch was previously deployed

2 inactive deployments
docs-preview — 8d0bb0a6 Deployed Nov 13, 2026 by tracyjohnsonux via cleanup #18
main — 8d0bb0a6 Deployed Nov 13, 2026 by tracyjohnsonux via cla #255626
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants