feat(tui): PR バッジをアイコン+件数に畳み、ホバーで番号一覧を表示する#459
Merged
Conversation
サイドバー 2 行目で PR を `#442 #447 #451 #452` と全部展開していたため、 PR 列が幅を食って Agent 状態が `▶ runni…` のようにクリップされていた。 - PR バッジを PR アイコン(nerd font)+件数の 1 つに集約(pr_cell / pr_width)。 detail 行が縮み、running などのラベルがクリップされなくなる。 - 個々の PR 番号は切替・在席でその行にマウスを重ねるとポップアップ表示。 - 入力層に ?1003h(任意モーション追跡) と Input::Hover を追加。 - HomeState::pr_hover で対象を保持(変化時のみ再描画、キー入力でクリア)。 - sidebar_pr_hover_at / pr_hover_popup / widgets::overlay_at で行の脇に重ねる。 - URL を開くのは従来どおり没入中のクリック。役割分担を維持。 - document/design/05-home.md を更新。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts: # document/design/05-home.md
📊 Test Coverage
🎉✨ パーフェクト!全ファイル Lines カバレッジ 100% を達成しました 🏆🐰 |
kkyosuke
pushed a commit
that referenced
this pull request
Jun 28, 2026
PR #459(PR バッジをアイコン+件数に畳みホバーで番号一覧を表示)と本ブランチ (#457: PR は #N クリックのみ・行ダブルクリックでセッション切替)が同じサイドバー PR バッジの挙動を逆向きに変更していたため、ユーザー判断で次の方針に統合した: - 表示・ホバーは main(#459)の畳んだ <icon> <count> バッジ + 番号一覧ポップアップを採用。 - クリックは「バッジそのもの」をクリックしたときだけ全 PR を開く (sidebar_pr_links_at を列精密なヒットテスト sidebar_pr_badge_at 経由に変更)。 行の余白クリックは PR を開かず、#457 の行ダブルクリック→セッション切替に開放。 - ホバーは従来どおり行全体が対象 (sidebar_pr_worktree_at)。 - 没入ペインのポインタ形状(#460)とダブルクリック状態は加算的に共存。 - design/home の 03-sidebar.md / 04-keys.md を統合後の挙動に合わせて更新。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
サイドバー 2 行目で PR を
#442 #447 #451 #452のように全部展開していたため、PR 列が幅を食い、Agent 状態が▶ runni…のようにクリップされていた(添付スクショの症状)。表示するものが全部出ても綺麗に収まるよう調整する。変更内容
1. PR バッジをアイコン+件数に集約(クリップ解消)
pr_cell/pr_widthを、#N全展開から PR アイコン(nerd font)+件数(例: 4 本なら4、1 本でも1)に変更。PR 列が ~19 桁 → ~3 桁に縮み、▶ runningなどがクリップされなくなる。detail_colsの優先度(diff/PR を残し Agent をクリップ)はそのままでも、PR が小さくなったことで更新時刻 / ↑↓ / diff / PR / Agentが 36 桁の detail 行に収まる。2. ホバーで PR 番号一覧をポップアップ
#442 #447 …の番号一覧を小枠(タイトルPR)でその行の脇にポップアップ。別の行/空き領域へ動かす or キー入力で消える。ENABLE_MOUSEに?1003h(任意モーション追跡)とInput::Hoverを追加。term_reader::mouse_eventがボタンなしモーションをInput::Hoverとして返す。HomeState::pr_hover(変化時のみ再描画、キー入力でクリア)。sidebar_pr_hover_at(PR クリックと同じ判定を共有)/pr_hover_popup/widgets::overlay_at。3. ドキュメント
document/design/05-home.mdの PR バッジ節・2 行目クラスタ・モックアップ・マウスレポート(DECSET 1003)・実装ポインタを更新。テスト・確認方法
cargo fmt/cargo clippy --all-targets -- -D warnings/cargo test(2272 passed)。scripts/coverage.sh)。mouse_eventのモーション→Hover 解析、sidebar_pr_hover_at、pr_hover_popupの折り返し、overlay_at、render_frameのホバー時ポップアップ、event ループの Hover 処理。🤖 Generated with Claude Code