Skip to content

Commit 77effcc

Browse files
serpentbladeclaude
andcommitted
fix(vr): pin FullCalendarAllSlots calendar view to end wall-clock flake
The full-calendar-slots VR spec (all 6 targets) began failing at line 106 (`slot-event` count 0) on 2026-07-01 with no change to the demo, wrapper, or spec — a false-attributed regression. Root cause: FullCalendarAllSlotsDemo seeded events on a fixed date (2026-06-15) but passed no `initialDate`, so FullCalendar defaulted its view to the current month. Once real "today" left June 2026, the seed events fell off-view, zero event cells rendered, and the `event` portal-slot (eventContent) never fired. Pin `initialDate: '2026-06-15'` in the passthrough `:options` so the seeded month is always in view, making the behavioral run truly wall-clock-independent (pinning the event DATE alone was insufficient). Verified: react + svelte VR cells now pass; target-independent by construction. No packages/* changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lxeam8c3XSttraCZPxufKM
1 parent 89fa5ca commit 77effcc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

examples/demos/FullCalendarAllSlotsDemo.rozie

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ import listPlugin from '@fullcalendar/list'
8383
// All seed events land on a SINGLE pinned day (2026-06-15) so that — with the
8484
// passthrough dayMaxEvents: 2 — the day overflows past 2 and the engine renders
8585
// a `.fc-more-link` (which routes through the moreLink portal-slot). Fixed ISO
86-
// strings keep the behavioral run stable (no live clock).
86+
// strings AND a pinned passthrough `initialDate: '2026-06-15'` (see the :options
87+
// binding below) keep the run wall-clock-independent: pinning the DATE alone was
88+
// not enough — without initialDate FullCalendar defaults to the current month,
89+
// so once real "today" left June 2026 the seed events fell off-view, no event
90+
// cells rendered, and the `event` portal-slot (eventContent) never fired.
8791
const sampleEvents = () => {
8892
return [
8993
{ id: 'as-1', title: 'Standup', start: '2026-06-15' },
@@ -156,7 +160,7 @@ const remount = () => { $data.calendarMounted = true }
156160
:height="480"
157161
:selectable="true"
158162
:editable="true"
159-
:options="{ weekNumbers: true, dayMaxEvents: 2, businessHours: { startTime: '09:00', endTime: '17:00' }, plugins: [listPlugin] }"
163+
:options="{ initialDate: '2026-06-15', weekNumbers: true, dayMaxEvents: 2, businessHours: { startTime: '09:00', endTime: '17:00' }, plugins: [listPlugin] }"
160164
@eventMouseEnter="onEventMouseEnter"
161165
@eventMouseLeave="onEventMouseLeave"
162166
@unselect="onUnselect"

0 commit comments

Comments
 (0)