fix(desktop): TODOボタンのインジケーターをステータス別に表示#231
Conversation
Running / Queued / Failed / Paused を色分けされた独立したバッジとして 並べて表示し、Manager を開かなくても各ステータスの件数を把握できる ようにする。配色は TodoManager の StatusDot と揃えた。 Closes #230
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 30 minutes and 37 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 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 |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
PR #219 で追加された `waiting` ステータス (ScheduleWakeup で一時停止中) が本 PR の新インジケーターで拾えていないため、queued バケットに追加する。 scheduler が waitingUntil 経過後に自動で queued に戻す挙動から、slot を 占有している扱いとして queued と同じバッジで集計する。
概要
apps/desktopの PresetsBar にある TODO ボタンのインジケーターを、ステータスごとに色分けされた独立したバッジとして並べて表示するように改善しました。Closes #230
背景 / 課題
これまではインジケーターが
preparing/running/verifying) をまとめた数字+Nで併記という構成で、実行中・待機中・失敗などの件数をパッと見で識別しづらい状態でした。特に
failed/escalated/pausedのような「ユーザー介入を要するステータス」は TODO ボタン上では一切可視化されておらず、Manager を開くまで気付けませんでした。変更内容
TodoButton.tsxのみ更新preparing/running/verifying): amber + ping アニメqueued): primary (青)failed/escalated): rose (赤)paused): muted (グレー)TodoManager.tsxのStatusDotと揃えたtitle(tooltip) に各ステータスの件数を日本語で表示.filter()から 1 回のuseMemo+ switch に変更 (微小な最適化)スクリーンショット (想定)
```
[≡ TODO] ● 2 ● 1 ● 1
amber blue rose
(実行) (待機) (失敗)
```
動作確認
bun run lint:fix通過bun run typecheck通過Test plan