fix(gui): expose all combo strategies in selector - #3373
Conversation
Carried from #3335 onto current dev. Independent of the other carried fixes, so it ships as its own PR rather than a stack layer. Co-authored-by: x3M3x <amroeid1999@gmail.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthrough
ChangesCombo strategy selector
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The combo selector now exposes all five configured strategies and removes the disabled fallback state for saved configurations. No concrete current-head merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Linked Issues checkExplanation The PR satisfies issue
✨ Finishing Touches 💡 1📝 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 389ca6a8a7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ["failover", "cws.strategy.failover"], | ||
| ["round-robin", "cws.strategy.roundRobin"], | ||
| ] as const).map(([id, key]) => ( | ||
| {COMBO_STRATEGIES.map((id) => ( |
There was a problem hiding this comment.
Make the expanded strategy selector responsive
When the dashboard is used on a narrow viewport, rendering all five strategies here makes the selector wider than its container: .cwi-strategy-seg is a non-wrapping inline-flex, every button has min-width: 88px, and the add modal can shrink to 94vw, so the control requires at least 454px before accounting for longer translated labels. This causes horizontal overflow in both the add modal and detail panel, making strategies difficult to reach on mobile; allow the buttons to wrap/use a responsive grid, or switch to a compact select at narrow widths.
Useful? React with 👍 / 👎.
리뷰 · 우선순위 73 / 80이 PR은 콤보 워크스페이스의 전략 선택기를, 실제로 런타임이 아는 다섯 가지 전략과 맞춰 줍니다. 지금 고치는 방식은 단순합니다. 하드코드 두 줄과 disabled 폴백 버튼을 지우고, 원본은 @x3M3x 의 #3335입니다. 이 PR은 그 수정을 현재 CSS 쪽은 라인 24-50 (
원본 #3335 - 이 carry가 머지되면 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Summary
Carried from #3335 by @x3M3x onto current
dev, with the author'sCo-authored-bytrailer on the commit.The combo workspace selector hardcoded two strategies while the canonical GUI set in
gui/src/combo-workspace-data.tshas five. A combo already saved with any of the other three rendered as a disabled fallback radio — the user could see their own setting but not choose it. The selector now renders the canonical list directly.Before, for comparison:
Closes #3335
Verification
RED without the fix: with
value="random", current code emits three radios (two normal plus one disabled fallback) where the test requires five enabled ones.Worth a reviewer's eye: five buttons at
min-width: 88pxin a non-wrapping container need roughly 454px, and the modal can be narrower. Not a blocker for exposing the strategies, but a mobile visual check is warranted.Checklist
Co-authored-by: x3M3x amroeid1999@gmail.com
Summary by CodeRabbit
Bug Fixes
Tests