Skip to content

feat: add new timeline categories and debug category tracking#727

Merged
lcottercertinia merged 7 commits intocertinia:mainfrom
lukecotter:feat-tl-new-categories
Feb 12, 2026
Merged

feat: add new timeline categories and debug category tracking#727
lcottercertinia merged 7 commits intocertinia:mainfrom
lukecotter:feat-tl-new-categories

Conversation

@lukecotter
Copy link
Contributor

@lukecotter lukecotter commented Feb 12, 2026

📝 PR Overview

Modernises the timeline category system by renaming categories to be clearer (MethodApex, System MethodSystem, Flow/WorkflowAutomation) and adds a new Callout category. Also introduces debugCategory on LogEvent to track the original Salesforce debug log category separately from the display category, and adds a Validation category.

🛠️ Changes made

  • Parser (apex-log-parser): Rename subCategorycategory, add debugCategory field, use LOG_CATEGORY constants instead of string literals, add Callout/Validation/Automation categories
  • Types: Replace LogSubCategory string union with LOG_CATEGORY const object and LogCategory type, add DEBUG_CATEGORY const for SF debug log categories
  • Timeline themes: Update color keys to match new category names (Apex, System, Automation, etc.)
  • Timeline components: Update ApexLogTimeline, BucketColorResolver, MinimapDensityQuery, RectangleManager, HitTestManager to use new category names
  • Settings/UI: Update Settings.ts and TimelineView.ts for new category names
  • Tests: Update all timeline tests to use new category names

🧩 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

resolves #98

✅ Tests added?

  • 👍 yes

📚 Docs updated?

  • 🙅 not needed

Anything else we need to know?

Breaking change: LogEvent.subCategory is renamed to LogEvent.category and the category string values have changed (MethodApex, System MethodSystem, Flow/WorkflowAutomation).

- apex (Apex Code), codeUnit, system (system, Apex Profiling, visualforce), automation (workflow, NBA, Data Access), dml, soql, callout, validation (hidden until supported in parser)

The old timeline does does not show the categories but here is the mapping
- Method (Apex Code, callout, validation), codeUnit, system (system, Apex Profiling, visualforce, validation), automation (workflow, NBA, Data Access), dml, soql

- Changed type imports from 'apex-log-parser' to use LogCategory instead of LogSubCategory across multiple files.
- Updated event creation functions to use the new category type.
- Refactored tests in TemporalSegmentTree to reflect the new category names and ensure consistency.
- Adjusted HitTestManager, MinimapDensityQuery, and Timeline services to accommodate the category changes.
- Modified color mapping and themes to align with the new category structure.
- Ensured all relevant areas in the codebase are updated to use the new category definitions, improving clarity and maintainability.
@lcottercertinia lcottercertinia merged commit fdf4fc2 into certinia:main Feb 12, 2026
5 checks passed
@lukecotter lukecotter deleted the feat-tl-new-categories branch February 12, 2026 16:24
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.

feat: align timeline key colours with SF log categories

2 participants

Comments