fix: Review Stacks のスクロール連動をホバーからクリックに変更 (#281)#282
Merged
Conversation
ホバーするだけで他カラムが自動スクロールするのが操作中つらかったため、 スクロール連動はクリック時のみ発火するよう変更。ホバー時のハイライトと ディミングは従来どおり残す。 - SelectedContext を追加し scroll を選択(クリック)駆動に分離 - HoverSourceColumnContext は selection の発生源カラムを保持するよう変更 - tick で同一 PR 連打時も再スクロールを許可
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 Walkthroughウォークスルー
変更内容
シーケンス図sequenceDiagram
actor User
participant PRBlock
participant team-stacks-chart
participant SelectedContext
participant useScrollIntoColumn
rect rgba(100, 150, 200, 0.5)
Note over User,useScrollIntoColumn: 旧動作: ホバー時スクロール(問題あり)
User->>PRBlock: onMouseEnter
PRBlock->>team-stacks-chart: ホバー状態を通知
team-stacks-chart->>useScrollIntoColumn: スクロール実行
useScrollIntoColumn->>team-stacks-chart: スクロール完了
end
rect rgba(100, 200, 150, 0.5)
Note over User,useScrollIntoColumn: 新動作: クリック時スクロール
User->>PRBlock: onClick
PRBlock->>SelectedContext: 選択状態を更新 (tick++)
SelectedContext->>team-stacks-chart: 選択通知+tick更新
team-stacks-chart->>useScrollIntoColumn: tick依存でスクロール実行
useScrollIntoColumn->>team-stacks-chart: スクロール完了
end
User->>PRBlock: onMouseEnter
PRBlock->>team-stacks-chart: ホバー状態(ハイライトのみ)
team-stacks-chart->>team-stacks-chart: 関連行をハイライト(スクロール無し)
推定レビュー工数🎯 3 (中程度) | ⏱️ ~20 分 ウサギの詩
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
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.
Summary
Closes #281
Test plan
/$orgSlug/workloadで PR にホバー → ハイライトのみ、スクロールしないSummary by CodeRabbit
リリースノート