You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/pluggableWidgets/calendar-web/openspec/changes/add-calendar-year-view/proposal.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Users need a year-at-a-glance view to see events across all 12 months simultaneo
7
7
- Add **Year View** to the Calendar widget, available in both Standard and Custom view modes
8
8
- Render a 12-month grid (4×3 layout) showing all months of the selected year
9
9
- Display event indicators (dots) on days that have events, without showing full event details
10
-
- Enable day-cell click navigation: clicking any day switches to day view for that date
10
+
- Enable day-cell click navigation: clicking a day switches to an author-configured target view (day/week/work_week/month/agenda, default day) for that date, constrained to enabled views — if the target isn't enabled, day cells are non-interactive and clicking does nothing (no view is force-registered on the author's behalf)
11
11
- Add "Year" button to toolbar for view switching
12
12
- Support previous/next year navigation and "today" button to jump to current year
Copy file name to clipboardExpand all lines: packages/pluggableWidgets/calendar-web/openspec/changes/add-calendar-year-view/specs/calendar-view-switching/spec.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,8 @@ When switching to or from year view, the calendar SHALL maintain appropriate dat
49
49
50
50
#### Scenario: Switching from year view after clicking a day
51
51
52
-
-**WHEN** user clicks a day in year view (which navigates to dayview)
53
-
-**THEN**day view displays the clicked date
52
+
-**WHEN** user clicks a day in year view AND the configured day-click target view is enabled
53
+
-**THEN**the configured target view displays the clicked date
54
54
55
55
#### Scenario: Switching from year view via toolbar button
Copy file name to clipboardExpand all lines: packages/pluggableWidgets/calendar-web/openspec/changes/add-calendar-year-view/specs/calendar-year-view/spec.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,24 +72,29 @@ Days with events SHALL display a single dot indicator, regardless of the number
72
72
-**WHEN** an event is marked as all-day
73
73
-**THEN** the event is considered to occur on each calendar day from start date to end date (inclusive) and dots are displayed accordingly
74
74
75
-
### Requirement: Day click navigates to day view
75
+
### Requirement: Day click navigates to the configured target view
76
76
77
-
Clicking a day cell SHALL navigate the calendar to dayview for the selected date.
77
+
Clicking a day cell SHALL navigate the calendar to the author-configured day-click target view (via the `yearDayClickView` property) for the selected date, PROVIDED that target view is enabled. The target choices are day, week, work_week, month, and agenda; the default is day. If the configured target view is not among the calendar's enabled views, day-click SHALL be disabled: day cells are rendered as non-interactive (no button role, tab stop, click, or keyboard handler) while retaining their aria-label, and no navigation occurs.
78
78
79
79
#### Scenario: User clicks a day in the current month
80
80
81
-
-**WHEN** user clicks a day cell representing a date in the current month
82
-
-**THEN** the calendar switches to day view AND displays the selected date
81
+
-**WHEN**the configured target view is enabled AND user clicks a day cell representing a date in the current month
82
+
-**THEN** the calendar switches to the configured target view AND displays the selected date
83
83
84
84
#### Scenario: User clicks a leading day from previous month
85
85
86
-
-**WHEN** user clicks a gray day cell from the previous month
87
-
-**THEN** the calendar switches to day view AND displays the selected date from the previous month
86
+
-**WHEN**the configured target view is enabled AND user clicks a gray day cell from the previous month
87
+
-**THEN** the calendar switches to the configured target view AND displays the selected date from the previous month
88
88
89
89
#### Scenario: User clicks a trailing day from next month
90
90
91
-
-**WHEN** user clicks a gray day cell from the next month
92
-
-**THEN** the calendar switches to day view AND displays the selected date from the next month
91
+
-**WHEN** the configured target view is enabled AND user clicks a gray day cell from the next month
92
+
-**THEN** the calendar switches to the configured target view AND displays the selected date from the next month
93
+
94
+
#### Scenario: Configured target view is not enabled
95
+
96
+
-**WHEN** the configured day-click target view is not one of the calendar's enabled views
97
+
-**THEN** day cells are non-interactive AND clicking a day does nothing (no view registered on the author's behalf)
93
98
94
99
### Requirement: Today indicator highlights current day
95
100
@@ -169,8 +174,8 @@ Day cells SHALL be keyboard-accessible for users who navigate without a mouse.
169
174
170
175
#### Scenario: Enter or Space key activates day cell
171
176
172
-
-**WHEN** user presses Enter or Space while a day cell is focused
173
-
-**THEN** the calendar navigates to day view for that date (same as clicking)
177
+
-**WHEN**the configured target view is enabled AND user presses Enter or Space while a day cell is focused
178
+
-**THEN** the calendar navigates to the configured target view for that date (same as clicking)
0 commit comments