RightPanel¶
Purpose¶
Owns the right-side editor panel composition root for Snap Studio Pro.
This territory creates right-side panels, wires dependencies, owns tab collections, and routes drawing based on the selected tab.
Owns¶
- Right panel construction
- Right panel dependency wiring
- Tab-specific panel collections
- Right-side draw routing
- Local panel lifecycle cleanup
- Right panel list drawing
- WIP tab drawing support
- Tab header helpers
Does NOT Own¶
- Feature implementation
- Capture execution internals
- Export processing internals
- Preview rendering internals
- Rendering pipeline implementation
- Prefab repository behaviour
Allowed Dependencies¶
RightPanel may depend on:
- Panel implementations
- Feature services/controllers
- Preview facades
- Rendering abstractions
- Models/settings
- Infrastructure services
- Shared panel utilities
RightPanel should avoid depending on:
- low-level rendering implementation details
- pipeline internals where avoidable
- hidden global service locators
Notes¶
RightPanel is intentionally explicit.
It acts as a local composition root for the right-side editor UI rather than using reflection, runtime scanning, service locators, or dependency injection containers.
A long dependency list here is acceptable because this class wires UI territory together.
The boundary is that RightPanel should construct and route panels, not own the behaviour those panels execute.
Future Candidates¶
- Keep RightPanel readable and regioned.
- Avoid making RightPanel clever.
- Continue moving registration-only concerns into Composition helpers.
- Keep draw routing simple and obvious.