feat(dashboard): add Recent Events widget for v2 system

- Add registerRecentEventsWidget() in infoBoxWidgets.js
- Implement notebook-style UI with rings, bullet points, and editable events
- Support max 3 events with + placeholders for new entries
- Parse 'Recent Events: event1, event2, event3' format from infoBox
- Register widget in dashboardIntegration.js
- Add to default layout Scene tab (row 4-5, below location)
- Integrate with tracker system:
  - Add to WIDGET_TO_TAB_MAP (maps to tab-scene)
  - Add to shouldWidgetBeRemoved() rules
  - Add to detectConfigChanges() for re-addition support
- Completes v2 widget migration - all tracker features now have widgets
This commit is contained in:
Lucas 'Paperboy' Rose-Winters
2025-11-02 16:21:56 +11:00
parent bf44949624
commit 95f4ae1848
4 changed files with 273 additions and 7 deletions
+14 -2
View File
@@ -143,12 +143,24 @@ export function generateDefaultDashboard() {
h: 2,
config: {}
},
// Row 4-6: Present Characters (full width, will expand with auto-layout)
// Row 4-5: Recent Events (notebook style, full width)
{
id: 'widget-recentevents',
type: 'recentEvents',
x: 0,
y: 4,
w: 2,
h: 2,
config: {
maxEvents: 3
}
},
// Row 6-8: Present Characters (full width, will expand with auto-layout)
{
id: 'widget-presentchars',
type: 'presentCharacters',
x: 0,
y: 4,
y: 6,
w: 2,
h: 3,
config: {