fix(apollo-react): ModelPicker cost badges read Discovery's real CostDetails; built-in delete confirmation#958
Conversation
…adges The gateway nests token costs as costDetails.flatCosts.inputTokenCost (cents per million tokens; tieredCosts for tiered pricing) — the picker read a flat inputTokenCost that never exists, so default cost badges never rendered. Types now match the DTO and defaultCostTier bins the nested value at 100/500 cents per million. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Deleting a configuration affects every consumer in the tenant, so the picker now shows a built-in confirmation dialog (naming the configuration) before invoking onDeleteModel. The dialog honors the shadow-DOM container/disablePortal plumbing; strings ship in all picker catalogs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency License Review
License distribution
Excluded packages
|
📊 Coverage + size by packagePer-package coverage and bundle size on this PR. New-line coverage = of the source lines this PR adds or changes, the % hit by tests.
"Coverage" is each package's own |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
role=alertdialog wired to its title/description ids, focus starts on the safe action, and the paper uses the picker's design tokens (background-raised/foreground vars, 10px radius, Apollo font) so it matches the dropdown panel and follows the host theme. Axe-clean on WCAG 2.1 A/AA. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Apollo Coded App preview deployments are ready.
|
Plain Dialog structure (secondary Cancel + contained destructive action, disableElevation) matching how products' own confirmation dialogs render under the Apollo MUI theme; alertdialog semantics and safe-action focus kept. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
What changed?
Two ModelPicker follow-ups to #949, found while integrating Agent Builder against 6.0.0:
1. Cost badges never rendered — the gateway nests token costs as
costDetails.flatCosts.inputTokenCost(cents per million tokens;tieredCosts[]for tiered pricing), but the picker'sDiscoveryModeltype anddefaultCostTierread a flatcostDetails.inputTokenCostthat no deployment serves. Types now match the DTO,defaultCostTierbins the nested value (first tier for tiered pricing) at 100/500 cents per million, and stories/tests use the real shape.2. Deleting a BYO configuration now asks first — a delete affects every consumer in the tenant, so the picker shows a built-in confirmation dialog (naming the configuration) before invoking
onDeleteModel. The dialog honors the shadow-DOMpopupContainer/disablePortalplumbing; strings added to all 14 picker catalogs (English fallback pending translation — added directly to the JSONs becauselingui extractcurrently fails on main with a pre-existing duplicate-default inautopilot-chat.error.multiple-files).Tests
79/79 in the component folder (delete test now exercises cancel + confirm); full package build green.
First consumer: UiPath/Agents#5858.
🤖 Generated with Claude Code