[Merged] Migrated UID Viewer from bottom‑panel dock to editor tool#1252
Conversation
WalkthroughThis PR refactors the UID Viewer from a dock-based container to a tool window with Window base class. EditorNode instantiates UIDViewer during initialization and wires a new Tools menu shortcut to call ChangesUID Viewer Tool Window Refactor
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 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 unit tests (beta)
⚔️ Resolve merge conflicts
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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@editor/file_system/uid_viewer.cpp`:
- Around line 266-273: The reopen logic should also check actual window
visibility: update UIDViewer::_open_tool to treat the tool as "not open" when
it's not visible (use is_visible_in_tree() or equivalent) so that Tools → UID
Viewer will call popup_centered() again; implement: if (!is_open ||
!is_visible_in_tree()) then (if !is_open connect close_requested to
&_on_tool_closed), call popup_centered() and set is_open = true, otherwise call
grab_focus(); reference UIDViewer::_open_tool, is_open, popup_centered(),
grab_focus(), and _on_tool_closed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: ae91719f-0a86-403d-a02b-b822c4fca889
📒 Files selected for processing (4)
editor/editor_node.cppeditor/editor_node.heditor/file_system/uid_viewer.cppeditor/file_system/uid_viewer.h
This change migrates
UIDViewerfrom the legacy bottom‑panel dock into a standalone Editor Tool window. The tool is now instantiated and managed directly byEditorNodewith a new Tools‑menu entry and proper open/close lifecycle handling.The UI has been reorganized into a dedicated window container, signals have been rewired to the new class and the old
UIDViewerDockimplementation has been removed. File locations were updated to live undereditor/file_systemand the tool now integrates cleanly with the editor’s windowing and scaling systems.Summary by CodeRabbit