Conversation
ツールバーにトグルボタンを追加し、ONにするとファイル/フォルダ名に 相対パスのツールチップを表示。設定はZustandで永続化。 Closes #21
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR adds a tooltip feature to the file explorer that displays relative file paths on hover. Users can toggle the feature on/off via a toolbar button, with the preference persisted across sessions. The feature integrates tooltip UI components with Zustand store state management. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant FileTreeToolbar
participant FileExplorerStore as File Explorer<br/>Store
participant FileTreeItem
User->>FileTreeToolbar: Click toggle button
FileTreeToolbar->>FileExplorerStore: toggleFileTooltips()
FileExplorerStore->>FileExplorerStore: Set showFileTooltips = !showFileTooltips
FileExplorerStore-->>FileTreeItem: State updated (showFileTooltips)
alt Tooltips enabled
User->>FileTreeItem: Hover over file/folder name
FileTreeItem->>FileTreeItem: Render with Tooltip wrapper
FileTreeItem-->>User: Display relative path in tooltip
else Tooltips disabled
User->>FileTreeItem: Hover over file/folder name
FileTreeItem-->>User: No tooltip shown
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ 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
Changes
file-explorer.ts:showFileTooltips設定とtoggleFileTooltipsアクション追加FileTreeToolbar.tsx: ツールチップ表示トグルボタン追加FileTreeItem.tsx:showFileTooltipsON時にファイル名をTooltipでラップCloses #21
Test plan
Summary by CodeRabbit