Skip to content

refactor: rename Manager classes and consolidate color handling#732

Merged
lcottercertinia merged 5 commits intocertinia:mainfrom
lukecotter:feat-timeline-rename
Feb 25, 2026
Merged

refactor: rename Manager classes and consolidate color handling#732
lcottercertinia merged 5 commits intocertinia:mainfrom
lukecotter:feat-timeline-rename

Conversation

@lukecotter
Copy link
Contributor

📝 PR Overview

Renames vague "Manager" classes throughout the timeline to use intent-revealing names, and consolidates duplicated color logic into shared utilities while decoupling timeline CSS colors from VS Code theme tokens.

🛠️ Changes made

  • Rename SelectionManagerSelectionNavigator, RectangleManagerRectangleCache, HitTestManagerHitDetector, MeasurementManagerMeasurementState, MinimapManagerMinimapViewport, SearchManagerEventMatcher, TimelineTooltipManagerFrameTooltipRenderer, MetricStripManagerMetricTierClassifier
  • Move common color logic (hex-to-RGB, alpha blending, highlight tinting) into ColorUtils
  • Extract reusable functions from renderers to reduce duplication (axis rendering, search bucket matching, marker processing)
  • Decouple timeline CSS color variables from VS Code theme tokens so colors are self-contained

🧩 Type of change (check all applicable)

  • 🐛 Bug fix - something not working as expected
  • ✨ New feature – adds new functionality
  • ♻️ Refactor - internal changes with no user impact
  • ⚡ Performance Improvement
  • 📝 Documentation - README or documentation site changes
  • 🔧 Chore - dev tooling, CI, config
  • 💥 Breaking change

🔗 Related Issues

None

✅ Tests added?

  • 👍 yes
  • 🙅 no, not needed
  • 🙋 no, I need help

📚 Docs updated?

  • 🔖 README.md
  • 🔖 CHANGELOG.md
  • 📖 help site
  • 🙅 not needed

Anything else we need to know?

56 files changed with a net reduction of ~95 lines. All existing tests updated to reference new class names.

… names

- RectangleManager with RectangleCache and update related components
- Updated SearchOrchestrator to use EventMatcher instead of SearchManager for search functionality.
- Refactored SelectionOrchestrator to utilize SelectionNavigator instead of SelectionManager for selection operations.
- Introduced EventMatcher class for generic event searching, decoupling from LogEvent-specific implementation.
- Updated various renderer components to reference PrecomputedRect from RectangleCache instead of RectangleManager.
- Enhanced tooltip utility documentation to reflect changes in tooltip rendering.
- Adjusted tree conversion logic to align with RectangleCache optimizations.
- Introduced EditorColors interface to encapsulate resolved color values for PixiJS renderers.
- Updated TimelineFlameChart to extract editor colors from CSS custom properties.
- Modified TimelineView to define new CSS variables for editor theming.
- Enhanced FlameChart, MeasureRangeRenderer, MinimapRenderer, and others to accept and utilize resolved color values.
- Refactored rendering logic in SearchHighlightRenderer and SelectionHighlightRenderer to use provided highlight colors.
- Updated tooltip styles to reference new CSS variables for consistent theming.
- Removed direct CSS variable extraction in favor of pre-resolved color values for performance improvements.
@lcottercertinia lcottercertinia merged commit e94a454 into certinia:main Feb 25, 2026
5 checks passed
@lukecotter lukecotter deleted the feat-timeline-rename branch February 25, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants