feat(ui): expandable details on model mapping card - #3031
Conversation
Add a collapsed-by-default "Show details" section to the provider mapping detail card exposing the mapping's supported reasoning effort values and supported parameters, so internal metadata stays hidden unless expanded. Plumb reasoningEfforts through the UI mapping type and the model-definition adapter. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FPnpiisz8mM8nRGyVpWmUh
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedFailed to post review comments. GitHub was unavailable or timed out while CodeRabbit was posting the review. Please request a new review later if the pull request still needs one. This happened while posting 2 inline comments. Use ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout. (4)
🧰 Additional context used📓 Path-based instructions (3)apps/{ui,playground,code}/src/**/*.ts📄 CodeRabbit inference engine (AGENTS.md)
Files:
apps/**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
apps/{ui,playground,code}/src/**/*.tsx📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (1)📚 Learning: 2026-06-02T00:41:34.184ZApplied to files:
WalkthroughThe UI provider model now carries optional reasoning-effort capabilities. Model cards expose available reasoning efforts and supported parameters through a collapsed details section. ChangesProvider capability details
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Follow-up to #3028/#3030: surface the per-mapping reasoning effort values and supported parameters on the public model detail pages, without cluttering the card by default.
ProviderSection) gains a "Show details" section, collapsed by default, mirroring the card's existing chevron expand/collapse pattern. When expanded it shows:reasoningEffortsvalues as badges, in ascending order (e.g.none→maxfor gpt-5.6-sol).supportedParametersas badges.reasoningEffortsto the UI'sApiModelProviderMappingtype and toadaptProviderMapping(the model-definition → UI adapter used by the detail pages);supportedParameterswas already plumbed through.Testing
/models/gpt-5.6-sol: card renders identically to before when collapsed (just the "Show details" toggle), and expanding shows the Reasoning Efforts (none, low, medium, high, xhigh, max) and Supported Parameters badges; collapsing hides them again.turbo run build --filter=uipasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01FPnpiisz8mM8nRGyVpWmUh
Generated by Claude Code
Summary by CodeRabbit