LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 23, 2026, 3:53 AM
updatedAtNov 23, 2026, 6:57 AM
githubUrlhttps://github.com/neomjs/neo/issues/22069
authorneo-opus-ada
commentsCount0
parentIssue21329
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 6:57 AM

The calendar example opens on the team's working day

neo-opus-ada
neo-opus-ada commented on Nov 23, 2026, 3:53 AM

Context

Emmy's stock camera run for the cover backfill (#21942, comment) found that Calendar opens on "week at midnight, two all-day strips and empty early hours". She left the default opening to the Calendar owner. That owner is #21329, whose predicate reads "Calendar opens on today's team week at desktop and phone size".

This ticket is not incidental: it closes that predicate's gap, and it unblocks the Calendar's light cover in #21942's batch.

Measured on dev e058be6bb2, headless Chromium, no input, both themes:

  • 960 × 540 (the camera's viewport): the week view shows 12 AM to 7 AM, with the two all-day bars and no timed event.
  • 1440 × 900: the first nine hours of the grid are empty night. The meetings start below them.
  • Nothing is scrolled at either size (scrollTop is 0 on every element).
  • The team week has 35 events. Its 33 timed ones run from 09:30 to 16:30 local time.

The published cover devmode/calendar-14.jpg shows Tuesday to Friday from 9 AM, because the calendar capture recipe scrolls there. The card promises a working week, and the click lands on the night.

The Problem

A visitor's first frame is an empty grid. The cover cannot be paired honestly either: a landing capture shows midnight, and the recipe frame shows hours the landing never shows.

The Architectural Reality

  • Neo.calendar.view.MainContainerStateProvider holds data.startTime: '00:00' and data.endTime: '24:00'. The week component and its time axis bind both (src/calendar/view/week/Component.mjs bind, TimeAxisComponent.mjs).
  • Neo.component.Abstract#modelData: "Override specific stateProvider data properties. This will merge the content." It merges deeply, because state.Provider#data_ uses merge: 'deep'. It applies when the provider is created, before the first render.
  • Sibling: apps/webdesktop/view/apps/Calendar.mjs calls setData({endTime: '19:00', startTime: '08:00'}) for the same team week, "on the working hours so the week's meetings are in view".
  • The settings panel (src/calendar/view/settings/GeneralContainer.mjs) keeps both values editable.

Design authority: "The recipes are frozen: an example that needs a state for its cover shows it on landing, set in its own code." (@summary of buildScripts.docs.captureExamples), and #21329's predicate, "Calendar opens on today's team week at desktop and phone size".

The Fix

  1. examples/calendar/basic/MainContainer.mjs: the Calendar item gets modelData: {endTime: '19:00', startTime: '08:00'}, the web desktop's hours.
  2. buildScripts/docs/captureExamples.json: the calendar recipe goes, so the camera captures the landing frame.
  3. A browser test of the opening, red on dev.

Acceptance Criteria

  • AC-1: With no input, the example opens with 8 AM as the week view's first hour at 960 × 540 and 1440 × 900, in both themes, and the 09:30 stand-up is in view (browser test, red on dev).
  • AC-2: At 390 × 844 the day view opens on the same hours.
  • AC-3: The settings panel's start and end fields read 08:00 and 19:00, and changing them still changes the range.
  • AC-4: The calendar capture recipe is gone, and the calendar example specs pass.
  • AC-5: The pull request shows the landing frames at 960 × 540, dark and light, beside the current cover at card width, with a disposition: the pair goes to Pages under #21942, or the reason it does not.

Out of Scope

  • The Forms records form-app, form-validation and field-with-prefix, whose landing frames read weaker than their recipe covers. Their dispositions go on #21942.
  • An initial scroll position as an engine feature, and the provider's default range, which other apps use.
  • The year and birthdays calendar examples.

Avoided Traps

  • Scrolling after mount. The first frame still lands at midnight and races the camera's settle.
  • Keeping the recipe. The cover would go on promising hours that the landing does not show.

Related

Parent #21329 · #21942 (the cover pair) · #21335 (the team week) · #21551 (the recipe cover) · #21140

Live latest-open + closed sweep: latest 20 open, plus open and closed searches ("calendar working hours opening", "calendar example startTime", "calendar example opens", "calendar working hours"; Out of Scope read on #21335) at 2026-11-23T02:56Z. No equivalent. 48 open (orange band): no open ticket owns the example's opening, and parent #21329 owns its predicate. A2A claim sweep: the 30 newest messages (01:56Z to 02:52Z), no claim on the calendar. MC sweep: "calendar example opens at midnight, empty early hours, team meetings below the fold", no prior decision. Own-assignment sweep: #21329 and #21041, neither overlapping.

Origin Session ID: 1563f974-0d41-4096-a8cf-0a5cd5a12533

Retrieval Hint: "calendar example opens at midnight, working hours modelData startTime endTime, frozen cover recipe"

⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code