Updates mock event data and adds logging
Updates mock event data to reflect future dates for testing purposes. Adds console logging in various managers to aid in debugging and understanding the event loading and rendering process. Specifically, logs the number of loaded events, the first and last event details, and information about event rendering and time axis creation. Also, adds execution permission for PowerShell scripts in the .claude settings.
This commit is contained in:
parent
c510994ca2
commit
f29613e55f
7 changed files with 66 additions and 73 deletions
|
|
@ -19,6 +19,7 @@ export class EventRenderer {
|
|||
this.eventBus.on(EventTypes.EVENTS_LOADED, (event: Event) => {
|
||||
const customEvent = event as CustomEvent;
|
||||
const { events } = customEvent.detail;
|
||||
console.log('EventRenderer: Received EVENTS_LOADED with', events.length, 'events');
|
||||
// Store events but don't render yet - wait for grid to be ready
|
||||
this.pendingEvents = events;
|
||||
this.tryRenderEvents();
|
||||
|
|
@ -39,8 +40,10 @@ export class EventRenderer {
|
|||
|
||||
private tryRenderEvents(): void {
|
||||
// Only render if we have both events and grid is ready
|
||||
console.log('EventRenderer: tryRenderEvents called, pending events:', this.pendingEvents.length);
|
||||
if (this.pendingEvents.length > 0) {
|
||||
const dayColumns = document.querySelectorAll('swp-day-column');
|
||||
console.log('EventRenderer: Found', dayColumns.length, 'day columns');
|
||||
if (dayColumns.length > 0) {
|
||||
this.renderEvents(this.pendingEvents);
|
||||
this.pendingEvents = []; // Clear pending events after rendering
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue