@astryxdesign/lab 0.7.6-canary.f73623d → 0.7.6-canary.f77aaf2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CommentPin/CommentPin.js +1 -1
- package/dist/Comments/CommentComposer.d.ts.map +1 -1
- package/dist/Comments/CommentComposer.js +12 -4
- package/dist/MobilePowerSearch/MobilePowerSearch.d.ts +3 -6
- package/dist/MobilePowerSearch/MobilePowerSearch.d.ts.map +1 -1
- package/dist/MobilePowerSearch/MobilePowerSearch.js +12 -76
- package/dist/MobileTokenizer/MobileTokenizer.d.ts +10 -7
- package/dist/MobileTokenizer/MobileTokenizer.d.ts.map +1 -1
- package/dist/MobileTokenizer/MobileTokenizer.js +191 -114
- package/dist/internal/MobileSheetConfirmation.d.ts +12 -0
- package/dist/internal/MobileSheetConfirmation.d.ts.map +1 -0
- package/dist/internal/MobileSheetConfirmation.js +88 -0
- package/dist/internal/useDismissSearchOnTouchDrag.d.ts +21 -0
- package/dist/internal/useDismissSearchOnTouchDrag.d.ts.map +1 -0
- package/dist/internal/useDismissSearchOnTouchDrag.js +43 -0
- package/package.json +4 -4
- package/src/CommentPin/CommentPin.tsx +1 -1
- package/src/Comments/CommentComposer.test.tsx +56 -0
- package/src/Comments/CommentComposer.tsx +18 -13
- package/src/MobilePowerSearch/MobilePowerSearch.doc.mjs +1 -1
- package/src/MobilePowerSearch/MobilePowerSearch.test.tsx +7 -2
- package/src/MobilePowerSearch/MobilePowerSearch.tsx +16 -83
- package/src/MobileTokenizer/MobileTokenizer.doc.mjs +3 -3
- package/src/MobileTokenizer/MobileTokenizer.test.tsx +287 -31
- package/src/MobileTokenizer/MobileTokenizer.tsx +242 -137
- package/src/Schedule/__tests__/ScheduleTimeDirection.a11y.chromium.spec.ts +4 -0
- package/src/TransferList/TransferList.doc.mjs +1 -1
- package/src/internal/MobileSheetConfirmation.test.tsx +68 -0
- package/src/internal/MobileSheetConfirmation.tsx +97 -0
- package/src/internal/useDismissSearchOnTouchDrag.test.tsx +94 -0
- package/src/internal/useDismissSearchOnTouchDrag.ts +57 -0
- package/src/CommentPin/CommentPin.spec.md +0 -319
- package/src/Schedule/Schedule.spec.md +0 -590
|
@@ -1,590 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
schema_version: 3
|
|
3
|
-
template_version: 7
|
|
4
|
-
kind: component
|
|
5
|
-
id: component:Schedule
|
|
6
|
-
authority: current
|
|
7
|
-
archive_reason: null
|
|
8
|
-
superseded_by: null
|
|
9
|
-
approved_by: cixzhang
|
|
10
|
-
approved_at: 2026-10-06
|
|
11
|
-
owners: [cixzhang]
|
|
12
|
-
review_triggers:
|
|
13
|
-
[public-api, behavior, layout, scrolling, layering, accessibility]
|
|
14
|
-
verified_by:
|
|
15
|
-
[
|
|
16
|
-
packages/lab/src/Schedule/Schedule.test.tsx,
|
|
17
|
-
packages/lab/src/Schedule/TimeGridView.test.tsx,
|
|
18
|
-
packages/lab/src/Schedule/timeGridLayout.test.ts,
|
|
19
|
-
packages/lab/src/Schedule/monthLayout.test.ts,
|
|
20
|
-
packages/lab/src/Schedule/__tests__/ScheduleTimeGridGeometry.a11y.chromium.spec.ts,
|
|
21
|
-
packages/lab/src/Schedule/__tests__/ScheduleTimeGridOverlap.a11y.chromium.spec.ts,
|
|
22
|
-
packages/lab/src/Schedule/__tests__/ScheduleTimeGridInitialPosition.a11y.chromium.spec.ts,
|
|
23
|
-
packages/lab/src/Schedule/__tests__/ScheduleEventPopover.a11y.chromium.spec.ts,
|
|
24
|
-
packages/lab/src/Schedule/__tests__/ScheduleMonthOverflow.a11y.chromium.spec.ts,
|
|
25
|
-
packages/lab/src/Schedule/__tests__/ScheduleMonthChip.a11y.chromium.spec.ts,
|
|
26
|
-
packages/lab/src/Schedule/__tests__/ScheduleMonthEventPopover.a11y.chromium.spec.ts,
|
|
27
|
-
packages/lab/src/Schedule/__tests__/ScheduleTimeGridLongSpan.a11y.chromium.spec.ts,
|
|
28
|
-
apps/storybook/stories/Schedule.stories.tsx,
|
|
29
|
-
scripts/check-knowledge.mjs,
|
|
30
|
-
]
|
|
31
|
-
modules: []
|
|
32
|
-
families: []
|
|
33
|
-
design_specs: []
|
|
34
|
-
architecture:
|
|
35
|
-
[
|
|
36
|
-
architecture:public-component-api,
|
|
37
|
-
architecture:react-component-runtime,
|
|
38
|
-
architecture:component-theming-surface,
|
|
39
|
-
]
|
|
40
|
-
contributing: []
|
|
41
|
-
system_specs: [spec:AST-002/DEC-1, spec:AST-025/DEC-1, spec:AST-027/DEC-1]
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
# Schedule component contract
|
|
45
|
-
|
|
46
|
-
<!-- Describe the system, not the project: present tense, what it does. No proposals, history, pull requests, or research in the record; see docs/contributing/spec-writing.md and report its rubric results in the pull request. -->
|
|
47
|
-
|
|
48
|
-
## Contract at a glance
|
|
49
|
-
|
|
50
|
-
| Area | Contract |
|
|
51
|
-
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
52
|
-
| Public contract | One additive option on the week, day, and month view factories: `renderPopover?: (event: CalendarEvent) => ReactNode` on `createScheduleWeeklyView`, `createScheduleDayView`, and `createScheduleMonthlyView`. `Schedule` props, `ScheduleContextValue`, and the list view gain nothing; the month view's overflow control and day popover are view-owned and take no option. |
|
|
53
|
-
| Behavior | In the week and day views one viewport owns both scroll axes; the day header, all-day row, and hour gutter are sticky items of the same grid as the day columns (FR1–FR3). A range that contains today opens once, one hour before now, and never moves the person's own scroll afterwards (FR4–FR6). Simultaneous events share the column side by side in a deterministic, isolated layout; nothing is covered or dropped (FR7–FR10). A timed event of 24 hours or more is a span in the all-day row, not blocks in the columns (FR21). With `renderPopover`, each painted event with content is a native button the view renders, and the view opens one popover it owns with that content; without it, the views stay read-only (FR11–FR14). In the month view a week row paints at most three levels of chips; a busy day trades its third level for a "+N more" button that opens the view's one popover listing the whole day, so no event is dropped or painted outside its row (FR15–FR17). Month chips lead with the title (FR18). With `renderPopover`, month chips are buttons in the cell where they start and open the month view's one popover, which a busy day's list hands an event to in the same gesture (FR19–FR20). |
|
|
54
|
-
| End-user impact | Pointer users open an event's details from the event itself; keyboard users reach and scroll the grid, open an event with Enter or Space, read its details in a dialog, and return to the event on Escape; screen-reader users get named event buttons in day groups that announce their popup, expanded state, and controlled dialog; people with classic scrollbars or narrow windows see one aligned header, gutter, and body; a week opened in the afternoon shows the afternoon; a meeting that lasts days reads as one span across them instead of filling and narrowing their columns; a busy month day shows how many events it hides and lists them all on press, and month chips name the event before its time. |
|
|
55
|
-
| Builder impact | Optional: build the week, day, or month view with `renderPopover` and return the details content for an event. No migration; read-only callers change nothing. |
|
|
56
|
-
| Compatibility/readiness | Additive within the experimental `@astryxdesign/lab` surface. Read-only markup is preserved apart from the keyboard-reachable viewport that `spec:AST-025` already requires, the month view's table structure, and its "+N more" button on a busy day. |
|
|
57
|
-
| Review checks | Reject an activation prop or callback on `Schedule` or in the context value, trigger props or open state exposed to the caller, a Popover prop passed through the view option (padding, placement, width, controlled state, dismissal), a close or controls argument to `renderPopover`, a popover instance per event, a button that opens nothing, a render prop that replaces the event's painted content, a rank/priority/`isShared` field, an `initialScroll` prop, a second scroll container inside the time grid, JavaScript scrollbar-width constants, inter-block `z-index` or any page-level stacking band, focusable nodes inside the hidden read-only grid, a scroll that re-runs on data refresh or theme change, a timed event of 24 hours or more painted as blocks in the day columns, a month chip painted outside its week row, a month event neither painted nor counted, a month week row that grows, a "+N more" that is not a native button or opens nothing, a second month popover, a month `grid` role, `aria-readonly`, or arrow-key promise, a month chip whose time precedes or truncates its title, a month event button outside its start cell or a second accessible copy of a month event, a nested popover for an event chosen from a day's list, and a caller option for month overflow. |
|
|
58
|
-
| Governing rules | `spec:AST-002` FR1–FR4, FR10 (admission and independently correct states); `spec:AST-025` FR2, FR12, FR14, FR15, FR18 (one explicit owner, keyboard access, chaining, native scrollbars, deterministic nesting); `spec:AST-027` FR1–FR6 (local stacking inside an isolation owner); `component:Popover` (the dialog surface, its padding, dismissal, and focus behaviour). |
|
|
59
|
-
|
|
60
|
-
This table is a review projection; the body below is authoritative.
|
|
61
|
-
|
|
62
|
-
## Intent
|
|
63
|
-
|
|
64
|
-
Schedule renders events from a caller-owned source as a month grid, a week or
|
|
65
|
-
day time grid, or a list, for the range around a controlled date. It owns
|
|
66
|
-
timezone-aware date math, range paging through header plugins, async loading
|
|
67
|
-
with a suspended fallback, and the layout of events inside each view. The time
|
|
68
|
-
grid is the view where geometry carries meaning: an event's vertical extent is
|
|
69
|
-
its duration, its horizontal share of a day column is how many things happen
|
|
70
|
-
at once, and the viewport's scroll position is which part of the day a person
|
|
71
|
-
is looking at. This record settles those three geometric contracts and the
|
|
72
|
-
one interaction the time-grid views offer on events: a popover the view owns,
|
|
73
|
-
with content the caller supplies. The month view gives every week row one
|
|
74
|
-
height; the record settles how a busy day fits into it without losing an
|
|
75
|
-
event, and the month view offers the same event popover as the time grid.
|
|
76
|
-
Interaction is a property of a view, not of Schedule.
|
|
77
|
-
|
|
78
|
-
## Compatibility and migration
|
|
79
|
-
|
|
80
|
-
- Released default preserved: not yet released as stable; the component ships
|
|
81
|
-
in the experimental `@astryxdesign/lab` package.
|
|
82
|
-
- Compatibility class: additive. The time-grid view option `renderPopover`
|
|
83
|
-
is optional and absent by default. The time grid's default behaviour changes
|
|
84
|
-
in four ways that no caller can observe through API: initial scroll
|
|
85
|
-
position when the range contains today, side-by-side placement of
|
|
86
|
-
simultaneous events, one scroll owner with sticky header, all-day row,
|
|
87
|
-
and gutter, and timed events of 24 hours or more as spans in the all-day
|
|
88
|
-
row. The month view's default changes in three ways: its accessible
|
|
89
|
-
structure is a table rather than a read-only grid, a day with more
|
|
90
|
-
events than three levels shows two chips and a "+N more" button, and a
|
|
91
|
-
chip shows its title before its time.
|
|
92
|
-
- Controlled/uncontrolled behavior: unchanged. `date` stays fully controlled
|
|
93
|
-
through `onChangeDate`; Schedule holds no selection state.
|
|
94
|
-
- Migration decision: none required (DEC-1 through DEC-6 are additive or
|
|
95
|
-
internal).
|
|
96
|
-
|
|
97
|
-
Consumer migration instructions belong in consumer docs and release notes.
|
|
98
|
-
|
|
99
|
-
## Ownership boundary
|
|
100
|
-
|
|
101
|
-
**Owns**
|
|
102
|
-
|
|
103
|
-
- Resolving the rendered range from `view` and `date`, filtering and sorting
|
|
104
|
-
the event source to that range, and suspending while a loader is pending.
|
|
105
|
-
- The time-grid geometry: the single scroll viewport, sticky header, all-day
|
|
106
|
-
row and hour gutter, hour slots, the now-line, and the placement of timed and
|
|
107
|
-
all-day events inside their day columns, including how simultaneous events
|
|
108
|
-
share a column and which timed events are spans in the all-day row.
|
|
109
|
-
- The initial scroll position of the time-grid viewport for each rendered
|
|
110
|
-
range, and remembering a person's scroll offset for that range across the
|
|
111
|
-
suspended fallback and the loaded content.
|
|
112
|
-
- The event popover in the week and day views: when the view is built with
|
|
113
|
-
`renderPopover`, each painted event block with content is a native button
|
|
114
|
-
the view renders — its position, paint, content, accessible name, DOM order,
|
|
115
|
-
local focus raise, and popup attributes — and the view owns the one Popover
|
|
116
|
-
those buttons open: its instance, which event is open, its anchor, its
|
|
117
|
-
dialog name, its standard surface and padding, and when it closes.
|
|
118
|
-
- The hidden read-only grid that announces the time grid's structure to
|
|
119
|
-
assistive technology when the view has no `renderPopover`.
|
|
120
|
-
- The month view's table structure and event layout: its headers and cell
|
|
121
|
-
names, chip levels in each week row, the cap of three levels, the "+N more"
|
|
122
|
-
count on a busy day, and the one popover that shows a busy day's events or,
|
|
123
|
-
with `renderPopover`, one event's content — its instance, what is open, its
|
|
124
|
-
anchor, its dialog name, its standard surface and padding, and when it
|
|
125
|
-
closes.
|
|
126
|
-
|
|
127
|
-
**Does not own / non-goals**
|
|
128
|
-
|
|
129
|
-
- The popover's content: what an event's details say, their loading and
|
|
130
|
-
errors, and any actions or links inside them — owned by the product callsite
|
|
131
|
-
through `renderPopover`. The callsite never receives trigger props, open
|
|
132
|
-
state, or the popover instance.
|
|
133
|
-
- Any interaction other than the event popover of the week, day, and month
|
|
134
|
-
views and the month view's day popover — navigation, menus, editing,
|
|
135
|
-
selection, drag — not Schedule concepts in this record.
|
|
136
|
-
- Event interaction in the list view and in custom views — each view owns its
|
|
137
|
-
own interaction contract; Schedule and its context carry no activation
|
|
138
|
-
callback for any view.
|
|
139
|
-
- Dialog semantics, dismissal, focus movement, and surface padding of the
|
|
140
|
-
popovers themselves — owned by `component:Popover`; the time grid and the
|
|
141
|
-
month view compose that component with its defaults and expose none of its
|
|
142
|
-
props.
|
|
143
|
-
- Event creation, moving, resizing, or drag — not Schedule concepts.
|
|
144
|
-
- A ranking or priority between simultaneous events; no event is preferred
|
|
145
|
-
over another in layout.
|
|
146
|
-
- The paging controls and view switcher — owned by the header plugins.
|
|
147
|
-
- Cross-surface stacking of anything that floats above the page — owned by
|
|
148
|
-
`architecture:layer-runtime`; Schedule paints nothing in the top layer.
|
|
149
|
-
- Keyboard scrolling mechanics, scroll chaining, and native scrollbar
|
|
150
|
-
presentation — owned by `spec:AST-025`; Schedule participates through the
|
|
151
|
-
shared scroll hook.
|
|
152
|
-
|
|
153
|
-
## Public concepts
|
|
154
|
-
|
|
155
|
-
Consumer prop syntax and examples remain in `Schedule.doc.mjs`.
|
|
156
|
-
|
|
157
|
-
| Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior |
|
|
158
|
-
| ---------------- | --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | -------------------- | ---------------- | ------------------------------------------------------------------- |
|
|
159
|
-
| view | month, week, day, list, or a caller-built view object | which layout renders the range and how the range expands around `date` | always | required | `component:Schedule` | experimental Lab | type-level only |
|
|
160
|
-
| event source | static array, async loader | where events for the rendered range come from; a loader suspends until it resolves | always | required | `component:Schedule` | experimental Lab | type-level only |
|
|
161
|
-
| categories | label and one of ten colors | how an event's `category` string resolves to a color and an announced name | always | `[]`; unmatched names render blue | `component:Schedule` | experimental Lab | an unknown color is a type error |
|
|
162
|
-
| focus date | any instant | the day treated as today for highlighting; it does not drive the initial scroll, which follows the clock | month, week, day | now at mount | `component:Schedule` | experimental Lab | n/a |
|
|
163
|
-
| hour window | `minHour` 0–23, `maxHour` 1–24, `hourHeight` pixels | which hours the time grid draws and how tall one hour is | week, day | 0, 24, 100 | `component:Schedule` | experimental Lab | out-of-range hours are clamped; `maxHour` is forced above `minHour` |
|
|
164
|
-
| event popover | view option present with content, present with `null` for an event, absent | whether the week, day, and month views open a view-owned popover from an event, with the content the caller returns for that event, or paint the event read-only | week and day event blocks, timed and all-day; month chips and the rows of a day's list; the list view has no interaction option in this record | absent | `component:Schedule` | experimental Lab | `null` or `undefined` content leaves that event read-only |
|
|
165
|
-
| initial position | today in range, today not in range | where the time-grid viewport opens for a rendered range | week, day | one hour before now, or the window start | `component:Schedule` | experimental Lab | derived; not caller-settable |
|
|
166
|
-
| overlap column | one column per concurrently painted event inside an overlap cluster | how simultaneous events share a day column | week, day timed events | equal columns, expanded into free neighbours | `component:Schedule` | experimental Lab | derived; not caller-settable |
|
|
167
|
-
| month levels | up to three levels of chips per week row; a day that needs more shows two chips and "+N more" | how many chips a month week row paints and what stands in for the rest | month | three levels | `component:Schedule` | experimental Lab | derived; not caller-settable |
|
|
168
|
-
| day popover | closed, open for one day | the view-owned popover that lists every event of one busy month day | month days with "+N more" | closed | `component:Schedule` | experimental Lab | derived; not caller-settable |
|
|
169
|
-
|
|
170
|
-
## Behavioral and layout contract
|
|
171
|
-
|
|
172
|
-
Each requirement names its basis so observed code is not mistaken for an
|
|
173
|
-
intentional decision.
|
|
174
|
-
|
|
175
|
-
| ID | Invariant | Basis | Review state |
|
|
176
|
-
| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------ |
|
|
177
|
-
| FR1 | The time grid MUST have exactly one scroll container, which owns both the block and inline axes. The day header cells, the all-day row, the hour gutter, the corner, and the day columns MUST be items of one CSS grid inside that container, so header and body columns share tracks by construction. No descendant MUST establish a second scroll container on either axis. | DEC-4; `spec:AST-025` FR2, FR18 | settled |
|
|
178
|
-
| FR2 | The header cells and the all-day row MUST stay pinned to the block-start edge of the viewport while it scrolls; the hour gutter and the corner MUST stay pinned to the inline-start edge. Pinning uses `position: sticky` with logical insets, so it mirrors under right-to-left direction without direction-specific code. | DEC-4 | settled |
|
|
179
|
-
| FR3 | Under any scrollbar presentation (overlay, classic, forced-visible), at any viewport width and zoom, and in either direction, each header cell's inline-start and inline-end edges MUST lie within 1 CSS pixel of its day column's edges, including after the viewport is scrolled on the inline axis. The viewport reserves its block-axis scrollbar space with `scrollbar-gutter: stable`. The time grid MUST NOT read or hard-code scrollbar dimensions in script, and MUST NOT widen the page. | DEC-4; `spec:AST-025` FR15 | settled |
|
|
180
|
-
| FR4 | When a rendered range's days include today in the schedule's timezone, the viewport MUST open with its scroll offset at the now-line's offset within the day column minus one `hourHeight`, clamped to `[0, scrollHeight − clientHeight]`. When the range does not include today, it MUST open at offset 0, the configured `minHour`. Positioning is instant, never animated. | DEC-3 | settled |
|
|
181
|
-
| FR5 | FR4 runs once per range key — the range's start and end instants, the timezone, and the hour window (`minHour`, `maxHour`, `hourHeight`), never an object identity — on that key's first layout. Event data arriving or refreshing, clock ticks, resizes, theme or direction changes, re-renders, and a caller rebuilding its view object MUST NOT move the viewport. Paging to another range or switching to a view with a different range or hour window is a new key and positions again. | DEC-3 | settled |
|
|
182
|
-
| FR6 | The viewport's scroll offset for the current range key MUST survive the suspended fallback being replaced by loaded content: when the content viewport mounts for a key whose offset was already recorded, it restores that offset instead of running FR4. The memory lives above the suspense boundary, is keyed by FR5's range key, and holds at most the current key. | DEC-3; `architecture:react-component-runtime` resource lifetime rule | settled |
|
|
183
|
-
| FR7 | Timed events in one day column are grouped into overlap clusters: two events are in the same cluster when their visible minutes intersect, directly or through a chain of intersecting events. Events are ordered by visible start ascending, visible end descending, then `id` ascending; each takes the first column in its cluster whose last occupant ends at or before its start. The result MUST be identical for any input order of the same events. | DEC-2 | settled |
|
|
184
|
-
| FR8 | Every event in a cluster MUST be laid out side by side: its inline-start offset is its column index over the cluster's column count, and its inline size spans its own column plus every following column that no later-starting event of the cluster occupies during its minutes. Two painted blocks in one day column MUST NOT overlap by more than 1 CSS pixel on the inline axis, no block MUST be fully covered, and no event MUST be dropped. A block's minimum visible duration remains fifteen minutes. | DEC-2 | settled |
|
|
185
|
-
| FR9 | Blocks carry no `z-index` relative to one another. The day column, the all-day surface, and the time-grid viewport are `isolation: isolate` owners; the now-line, a focused block, and a hovered block may rise with a local positive `z-index` inside their column only. No Schedule value participates in page-level stacking. | `spec:AST-027` FR1–FR6 | settled |
|
|
186
|
-
| FR10 | Narrow columns stay legible by subtraction, not by hiding events: the title keeps a single ellipsized line, and the time line is hidden through a container query when the block is narrower than the time label needs. Nothing about an event's position depends on its text. | DEC-2 | settled |
|
|
187
|
-
| FR11 | When a week or day view is built with `renderPopover`, the view calls it during render for each painted event block — timed blocks and all-day pills — with the caller's `CalendarEvent`. A block whose content is not `null` or `undefined` is a native `<button type="button">` the view renders: its grid position and paint, its content, its accessible name (AR2), and its popup attributes `aria-haspopup="dialog"`, `aria-expanded`, and `aria-controls` (AR3). Click, tap, Enter, and Space toggle that event's popover. A block whose content is `null` or `undefined` is painted as in the read-only view and exposed as static text inside its day group; it is never a button. A timed event shorter than 24 hours that crosses midnight paints one block, and so one button, per day; a timed event of 24 hours or more is one all-day span per range (FR21). The DOM order of event buttons is all-day segments in range order, then each day column's timed events in FR7 order, independent of their painted column. The buttons are the time grid's accessible representation in this mode: the hidden read-only grid is not rendered beside them. | DEC-1; `spec:AST-002` FR1–FR4 | settled |
|
|
188
|
-
| FR12 | The time grid owns exactly one popover instance, rendered through `component:Popover` with that component's defaults — dialog role, modal, auto-focus, hidden fallback close, Escape dismiss, light dismiss, standard surface and padding — and named by the open event's `title`. At most one event is open at a time; opening another event closes the first and opens the second in the same gesture. The popover closes when it is dismissed, when its event is no longer painted (removed from the source, paged out of range, or the view is swapped), and its `aria-expanded` reflects the open event and no other. The content is `renderPopover(event)` for the open event only; it re-renders with the event object for the same `id` while that event stays in range. | DEC-1; DEC-5; `component:Popover` | settled |
|
|
189
|
-
| FR13 | Without `renderPopover`, event blocks remain non-interactive, painted decoration, and the hidden read-only grid remains the only accessible representation of events in the time grid. The only focusable element inside the time grid is the scroll viewport, and only while it overflows (AR1). | DEC-1; `spec:AST-002` FR10 | settled |
|
|
190
|
-
| FR14 | `renderPopover` is an option of the week, day, and month view factories and of no other view; the week and day views share the time-grid event anatomy, and the month view applies the same option to its chips (FR19–FR20). The list view renders events read-only and exposes no interaction option in this record; a future interaction contract for it is its own record change and may differ. `Schedule` and `ScheduleContextValue` carry no activation callback. The option exposes no trigger props, open state, popover instance, or Popover presentation props, and takes no close or controls argument; each view presents the popover as a popover at every pointer type and width. | DEC-1; DEC-5 | settled |
|
|
191
|
-
| FR15 | The month view paints each event as one chip per week it covers, spanning its days in that week. Chips in a week row take levels: events are ordered by first day ascending, then all-day and multi-day events before single-day timed events, then events covering more days first, then earlier start, then title, then `id`, so a busy day keeps its earliest events; in each week it covers, an event takes the lowest level that is free on every day it covers there. The result MUST be identical for any input order of the same events. A week row paints at most three levels, keeps its height, and MUST NOT paint a chip outside its row. The month surface is an `isolation: isolate` owner; chips and a focused "+N more" rise with a local positive `z-index` inside it only. | DEC-6; `spec:AST-027` FR1–FR6 | settled |
|
|
192
|
-
| FR16 | Every event of a day MUST be either painted as a chip on that day or counted by that day's "+N more"; no event is dropped. When any event covering a day sits at level four or higher, that day's third level holds "+N more" instead of a chip, and N is the number of that day's events at level three or higher. A chip whose span crosses such a day is painted on its other days and counted on that one. | DEC-6 | settled |
|
|
193
|
-
| FR17 | "+N more" is a native `<button type="button">` inside its day's cell. Click, tap, Enter, and Space toggle the month view's one popover for that day, rendered through `component:Popover` with that component's defaults and named by the day's full date. The popover lists every event of that day in start order, each with its time range or "All day" and its title, marked with its category colour and muted once past; those events are read-only. At most one day is open at a time; activating another day's "+N more" closes the first and opens the second in the same gesture. The popover closes when it is dismissed and when its "+N more" is no longer rendered — the day no longer needs more than three levels, the range is paged, or the view is swapped — and `aria-expanded` reflects the open day and no other. | DEC-6; `component:Popover` | settled |
|
|
194
|
-
| FR18 | A month chip shows the event's title first. A timed event's start time follows the title on the same line only when the whole title and the time fit in the chip; otherwise the chip shows the title alone, ellipsized. An all-day chip shows its title only. | DD5 | settled |
|
|
195
|
-
| FR19 | When the month view is built with `renderPopover`, the view calls it during render for each painted chip with the caller's `CalendarEvent`. A chip whose content is not `null` or `undefined` is a native `<button type="button">` the view renders inside the cell of the chip's first day in its week and paints across the chip's days, with its accessible name (AR8) and the popup attributes `aria-haspopup="dialog"`, `aria-expanded`, and `aria-controls`; click, tap, Enter, and Space toggle that event's popover. A chip whose content is `null` or `undefined` is painted as in the read-only month and exposed as static text in the same cell; it is never a button. A multi-day event paints one chip, and so one button, per week it covers. In this mode the cells' hidden event lists are not rendered: each cell exposes, in level order, the chips that start in it and, for each painted chip that started on an earlier day of its week, a static, non-focusable mention of that event; then its "+N more". Each painted event has one button, and no day it covers reads as free. | DEC-7; DEC-1 | settled |
|
|
196
|
-
| FR20 | The month view owns exactly one popover, the one FR17 opens for a busy day. It shows a day's list or one event's `renderPopover` content, never both, through `component:Popover` with that component's defaults, named by the full date for a day and by the event's `title` for an event. Opening another event or day closes the open one and opens the next in the same gesture. With `renderPopover`, each row of a day's list whose event has content is a native button; activating it closes the list and opens that event's content in the same gesture, anchored to the day's "+N more", and focus returns to that "+N more" on close. A row whose event has no content stays read-only. The popover closes when it is dismissed and when its trigger is no longer rendered — the chip leaves the range or its levels, the day's "+N more" goes away, the range is paged, or the view is swapped — and each trigger's `aria-expanded` reflects what is open and nothing else. The content is `renderPopover(event)` for the open event only and re-renders with the event object of the same `id`. | DEC-7; DEC-5; `component:Popover` | settled |
|
|
197
|
-
| FR21 | In the week and day views a timed event that lasts 24 hours or more, measured from its start to its end instant, is painted as a span in the all-day row across the days it touches within the range and takes a level there with the date-only events; it is never painted as blocks in the day columns and takes no part in their overlap clusters (FR7). Its pill shows the title first, then its start and end times on the same line only when the whole title and the times fit; otherwise the title alone, ellipsized. The hidden read-only grid lists it in the all-day cells of those days and in no hour cell. A timed event shorter than 24 hours stays in the day columns, one block per day it touches. | DEC-8 | settled |
|
|
198
|
-
|
|
199
|
-
### Allowed variation
|
|
200
|
-
|
|
201
|
-
- **AV1 — Hour window and density.** Callers choose `minHour`, `maxHour`, and
|
|
202
|
-
`hourHeight`; FR4's lead scales with `hourHeight`, and FR3's alignment holds
|
|
203
|
-
for any window.
|
|
204
|
-
- **AV2 — Container height.** The time grid is 640px tall by default and
|
|
205
|
-
shrinks to a shorter Schedule root; the viewport is whatever remains below
|
|
206
|
-
the frame header, and FR4's clamp follows the measured height.
|
|
207
|
-
- **AV3 — Column minimum.** Day columns are at least 140px wide and share the
|
|
208
|
-
remaining width equally; narrower viewports scroll on the inline axis under
|
|
209
|
-
FR1 rather than squeezing columns.
|
|
210
|
-
- **AV4 — Cluster width.** Blocks in a cluster split the column equally; a
|
|
211
|
-
block that can expand into free columns does, so widths differ within one
|
|
212
|
-
cluster without changing anyone's order.
|
|
213
|
-
- **AV5 — Event button styling.** A focused or hovered event button may rise
|
|
214
|
-
and show the focus ring inside its column; themes vary the ring through the
|
|
215
|
-
shared focus tokens. The open event's button carries `aria-expanded="true"`,
|
|
216
|
-
so a theme may style the open state from the rendered attribute.
|
|
217
|
-
- **AV6 — Month chip time.** Whether a month chip's time fits beside its whole
|
|
218
|
-
title follows the rendered text, so it varies with locale, the theme's type
|
|
219
|
-
scale, and column width.
|
|
220
|
-
|
|
221
|
-
### Representative states
|
|
222
|
-
|
|
223
|
-
| State | Required invariant | Allowed variation |
|
|
224
|
-
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
|
|
225
|
-
| Week, today in range, afternoon | opens with the hour before now at the top of the column area; now-line visible | hour window, hour height, container height |
|
|
226
|
-
| Week, today in range, near midnight | opens at the maximum offset; now-line visible | same |
|
|
227
|
-
| Week, today not in range | opens at offset 0 | same |
|
|
228
|
-
| Loader resolves after the person scrolled | offset unchanged | loader latency |
|
|
229
|
-
| Clock tick, resize, theme change, data refresh | offset unchanged | any |
|
|
230
|
-
| Two identical events (same title and minutes) | two equal half-width blocks; order by `id` | column width |
|
|
231
|
-
| Three and five simultaneous events | three thirds, five fifths; every block ≥ 1 pixel visible and uncovered; time line hidden where it no longer fits | column width |
|
|
232
|
-
| Chain A–B–C where A and C do not meet | A and C share a column, B beside them | which of A/C expands |
|
|
233
|
-
| Long event containing a short one | both visible side by side for the overlap; the long one keeps its full height | widths |
|
|
234
|
-
| A 48-hour timed event in a week | one span in the all-day row across the days it touches; no block in those columns, so the day's other events keep their full width | which level it takes |
|
|
235
|
-
| A 10 PM–2 AM timed event | one block on each of the two days | none |
|
|
236
|
-
| Midnight to midnight on a 23-hour daylight-saving day | blocks in that day's column: 23 hours is under the threshold | none |
|
|
237
|
-
| Midnight to midnight on a 25-hour daylight-saving day | one span in the all-day row | none |
|
|
238
|
-
| Classic 15px scrollbar, 1280px wide | header/body edges within 1px for every column | scrollbar width |
|
|
239
|
-
| 760px wide, scrolled 160px on the inline axis | header moves with the columns; gutter and corner stay; one inline scroller; page does not widen | scroll amount |
|
|
240
|
-
| Right-to-left direction | FR3 holds with columns and pins mirrored | locale |
|
|
241
|
-
| `renderPopover`, keyboard | Tab reaches the viewport, then each event button in DOM order; Enter or Space opens the popover, focus moves into it, the button reads `aria-expanded="true"`; Escape closes it, focus returns to the same button, `aria-expanded="false"`; ring visible | ring tokens |
|
|
242
|
-
| `renderPopover` absent | no button; hidden read-only grid announces events; viewport is the single tab stop while it overflows | none |
|
|
243
|
-
| `renderPopover`, screen reader | day groups of named buttons and the all-day group; each button announces `aria-haspopup="dialog"` and its expanded state and controls the open dialog, which is named by the event title; no hidden read-only grid, so nothing is announced twice | none |
|
|
244
|
-
| `renderPopover`, one event open, another activated | the first closes and its button reads `aria-expanded="false"`; the second opens and its button reads `aria-expanded="true"`; one dialog exists | none |
|
|
245
|
-
| `renderPopover`, one event open, that event removed or paged out | the popover closes; the block and its button unmount; no orphan dialog remains and nothing else in the grid moves | none |
|
|
246
|
-
| `renderPopover` returns `null` for an event | that block is painted as read-only and exposed as static text inside its day group; no button, no popup attributes | none |
|
|
247
|
-
| `renderPopover`, light dismiss | clicking the grid outside the dialog closes it; the button reads `aria-expanded="false"` and keeps focus if it had it | none |
|
|
248
|
-
| Month, a day with three events | three chips; no "+N more" | none |
|
|
249
|
-
| Month, a day with five events, one of them a three-day event on level three | two chips and "+3 more" on that day; the three-day chip paints on its other days | which events take levels one and two |
|
|
250
|
-
| Month, "+N more" activated by keyboard | a dialog named by the full date lists all five events; Escape closes it and focus returns to the "+N more" button | none |
|
|
251
|
-
| Month, a day open, a refresh leaves that day three events | the popover closes, focus moves to that day's cell, and no dialog remains | none |
|
|
252
|
-
| Month chip, long title in a 112px column | the title alone, ellipsized; no time | column width |
|
|
253
|
-
| Month chip, short title in a wide column | the title, then the start time | locale |
|
|
254
|
-
| Month, `renderPopover`, a chip pressed | its button reads `aria-expanded="true"`; one dialog named by the event title holds the caller's content; Escape returns focus to the chip | none |
|
|
255
|
-
| Month, `renderPopover`, a busy day's list, a row pressed | the list closes and that event's dialog opens in the same gesture, anchored to the day's "+N more"; Escape returns focus to the "+N more" | none |
|
|
256
|
-
| Month, `renderPopover` returns `null` for an event | its chip is static text in its start cell and its row in a day's list is not a button | none |
|
|
257
|
-
| Month, `renderPopover`, screen reader | each cell lists the buttons of the chips that start in it and a static mention of each chip that continues into it, then its "+N more"; no hidden list repeats them | none |
|
|
258
|
-
|
|
259
|
-
### Transformation and precedence order
|
|
260
|
-
|
|
261
|
-
- **ORD1 — Timed layout.** Clip each event to the visible hour window → enforce
|
|
262
|
-
the fifteen-minute minimum → sort (start asc, end desc, `id` asc) → assign
|
|
263
|
-
clusters → assign columns first-fit → expand each block into following free
|
|
264
|
-
columns → convert to percentages of the column's minutes and width.
|
|
265
|
-
- **ORD2 — Initial position.** On a range key's first layout: a remembered
|
|
266
|
-
offset for that key is restored; otherwise FR4 computes the offset from the
|
|
267
|
-
now-line and clamps it; the offset is assigned synchronously before paint.
|
|
268
|
-
A person's later scroll overwrites the remembered offset; nothing else does.
|
|
269
|
-
- **ORD3 — Pinning.** Sticky header cells paint above the columns, the gutter
|
|
270
|
-
above the columns, and the corner above both, all as local order inside the
|
|
271
|
-
isolated viewport.
|
|
272
|
-
- **ORD4 — Month layout.** Order events (first day, all-day and multi-day first,
|
|
273
|
-
covering more days first, earlier start, title, `id`) → in that order, give
|
|
274
|
-
each event in each week it covers the lowest level free on all its days there
|
|
275
|
-
→ for each day with an event on level four or higher, give its third level to
|
|
276
|
-
"+N more" and count that day's events on level three or higher → paint the
|
|
277
|
-
remaining chips, cutting a span around the days where it is counted.
|
|
278
|
-
|
|
279
|
-
### Performance and resources
|
|
280
|
-
|
|
281
|
-
- **PR1 — One measurement per range.** FR4 measures the viewport once per
|
|
282
|
-
range key in a layout effect; no `ResizeObserver`, interval, or scroll-driven
|
|
283
|
-
re-render is added for positioning. Remembering the offset uses one passive
|
|
284
|
-
scroll listener on the viewport for its lifetime.
|
|
285
|
-
- **PR2 — Pure layout.** Cluster and column assignment is a pure function of
|
|
286
|
-
the day's events and the hour window, with no DOM reads, and runs during
|
|
287
|
-
render.
|
|
288
|
-
- **PR3 — Shared observers.** Keyboard ownership and overflow state come from
|
|
289
|
-
the shared scroll hook; Schedule adds no observers of its own.
|
|
290
|
-
- **PR4 — Pure month layout.** Level assignment and the "+N more" counts are a
|
|
291
|
-
pure function of the range's events and days, with no DOM reads, and run
|
|
292
|
-
during render.
|
|
293
|
-
- **PR5 — Chip fit in CSS.** Whether a month chip's time fits beside its title
|
|
294
|
-
is decided by layout, never measured in script.
|
|
295
|
-
|
|
296
|
-
## Accessibility contract
|
|
297
|
-
|
|
298
|
-
- **AR1 — Reachable viewport.** The time-grid viewport is the keyboard scroll
|
|
299
|
-
owner under `spec:AST-025` FR12: it is in the tab order only while an axis
|
|
300
|
-
overflows, exposes `role="region"` named by the rendered range title
|
|
301
|
-
followed by "time grid", and native Arrow and Page keys scroll it. Its
|
|
302
|
-
keyboard focus ring is a pointer-transparent overlay painted after the
|
|
303
|
-
viewport, inside the edge the frame clips at, so every edge of the ring
|
|
304
|
-
shows above the pinned header and gutter. Losing overflow does not move
|
|
305
|
-
focus.
|
|
306
|
-
- **AR2 — Named event buttons.** With `renderPopover`, each button's
|
|
307
|
-
accessible name is the event's title, its time range (or "all day"), its
|
|
308
|
-
category label, and the full date, in that order: the visible text leads
|
|
309
|
-
the name, and the day is added because a button is reached on its own
|
|
310
|
-
rather than inside a dated cell. The time range of a span of 24 hours or
|
|
311
|
-
more carries the dates of its start and its end. In the hidden read-only
|
|
312
|
-
grid, each all-day cell names such a span by its title, its category label,
|
|
313
|
-
and its start and end with their dates.
|
|
314
|
-
- **AR3 — Visible focus and popup semantics.** A focused event button shows
|
|
315
|
-
the shared focus ring entirely within its day column; it rises above
|
|
316
|
-
neighbouring blocks locally so the ring is never clipped by a later sibling.
|
|
317
|
-
Each event button carries `aria-haspopup="dialog"`, `aria-expanded` that is
|
|
318
|
-
true only while its event is open, and `aria-controls` naming the view's
|
|
319
|
-
popover. The popover is a modal dialog named by the event title; focus moves
|
|
320
|
-
into it on open and returns to the button that opened it on close, following
|
|
321
|
-
the dialog pattern.
|
|
322
|
-
- **AR4 — Decorative parts stay silent.** Header cells, hour labels, hour
|
|
323
|
-
slots, the all-day cell grid, and the now-line are hidden from assistive
|
|
324
|
-
technology individually; the painted viewport itself is exposed so that its
|
|
325
|
-
tab stop and, with `renderPopover`, its buttons are reachable. With
|
|
326
|
-
`renderPopover`, day columns group their buttons and static blocks under
|
|
327
|
-
`role="group"` named with the full date and the all-day row under
|
|
328
|
-
`role="group"` named "All-day events"; without it, the columns and the
|
|
329
|
-
all-day row are hidden whole.
|
|
330
|
-
- **AR5 — Read-only grid preserved.** Without `renderPopover`, the hidden
|
|
331
|
-
read-only `grid` with `aria-readonly`, column headers per day, row headers
|
|
332
|
-
per hour, and cells that list each event's accessible label is the time
|
|
333
|
-
grid's accessible representation, and it contains no focusable element.
|
|
334
|
-
- **AR6 — Direction and motion.** Pinning, column order, and block offsets use
|
|
335
|
-
logical properties and mirror under right-to-left direction. Initial
|
|
336
|
-
positioning is instant, so reduced-motion preferences have nothing to
|
|
337
|
-
suppress.
|
|
338
|
-
- **AR7 — Month table and "+N more".** The month view is a table, not an
|
|
339
|
-
interactive grid: it is named by the month title, the weekdays are its
|
|
340
|
-
column headers, each week row has a row header naming its dates, and each
|
|
341
|
-
cell is named by its full date. A corner column header heads the
|
|
342
|
-
row-header column, so every row has the same columns and each day cell's
|
|
343
|
-
column header is its weekday. The table makes no arrow-key navigation
|
|
344
|
-
promise; a day's "+N more" is an ordinary Tab stop in reading order. The
|
|
345
|
-
button's accessible name is the count and the full date ("2 more events,
|
|
346
|
-
Tuesday, October 6, 2026"; one hidden event reads "1 more event, …"). It
|
|
347
|
-
carries `aria-haspopup="dialog"`, `aria-expanded` that is true only while
|
|
348
|
-
its day is open, and `aria-controls` naming the view's popover, and it shows
|
|
349
|
-
the shared focus ring in full. The popover is a modal dialog named by the
|
|
350
|
-
full date; focus moves into it on open and returns to the button on close.
|
|
351
|
-
When the button is no longer rendered, focus moves to the day's cell, which
|
|
352
|
-
takes programmatic focus without entering the Tab order and shows the
|
|
353
|
-
shared focus ring. The cell's hidden event list keeps naming every event of
|
|
354
|
-
the day, so a screen-reader user hears the whole day without opening it.
|
|
355
|
-
- **AR8 — Month event buttons.** With `renderPopover`, a chip button's
|
|
356
|
-
accessible name is the event's title, its time range (or "all day"), its
|
|
357
|
-
category label, and its day — the full date, or for a chip across several
|
|
358
|
-
days its date range — in that order. A row button in a day's list is named
|
|
359
|
-
the same way with the full date. A cell that a chip covers after its first
|
|
360
|
-
day in the week names that event as static text that never takes focus: its
|
|
361
|
-
title, its time range (or "all day"), its category label, and "since" the
|
|
362
|
-
full date the chip started. A focused month event button shows the shared
|
|
363
|
-
focus ring in full and rises above neighbouring chips locally.
|
|
364
|
-
|
|
365
|
-
## Design relationships
|
|
366
|
-
|
|
367
|
-
| Anatomy or state | Design requirement | Representation authority | Hierarchy role | Component contract |
|
|
368
|
-
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------ | -------------- | ---------------------- |
|
|
369
|
-
| Day header | Names each column and stays visible while the day scrolls. | prescribed | supporting | FR1–FR3 |
|
|
370
|
-
| Hour gutter | Labels the hour lines and stays visible while columns scroll on the inline axis. | prescribed | supporting | FR1–FR3 |
|
|
371
|
-
| All-day row | Stacks all-day spans and timed events of 24 hours or more in levels below the header and stays visible while the day scrolls. | prescribed | supporting | FR1–FR2, FR21 |
|
|
372
|
-
| Event block | Shows title and time in the category color; shares the column with concurrent events; with `renderPopover` it is the button that opens the event popover. | prescribed | prominent | FR7–FR12, AR2–AR3 |
|
|
373
|
-
| Event popover | Shows the caller's content for one event on Popover's standard surface and padding, anchored to the event's button. | prescribed | prominent | FR11–FR12, AR3 |
|
|
374
|
-
| Now-line | Marks the current minute on today's column, above blocks, inside the column. | prescribed | supporting | FR4, FR9 |
|
|
375
|
-
| Month chip | Shows the title first, then the start time when both fit; spans its days within a week on its level, in the category colour; with `renderPopover` it is the button that opens the event popover. | prescribed | prominent | FR15, FR16, FR18, FR19 |
|
|
376
|
-
| "+N more" | Stands in for a busy day's third chip, counts that day's unpainted events, and opens the day popover. | prescribed | supporting | FR16, FR17, AR7 |
|
|
377
|
-
| Day popover | Lists every event of one day on Popover's standard surface and padding, anchored to the day's "+N more". | prescribed | supporting | FR17, AR7 |
|
|
378
|
-
|
|
379
|
-
The component implements design requirements without copying their rationale.
|
|
380
|
-
An `unsettled` representation remains a human decision; principles do not let an
|
|
381
|
-
agent invent the answer.
|
|
382
|
-
|
|
383
|
-
### Design decisions
|
|
384
|
-
|
|
385
|
-
<!-- design-decisions:v1 -->
|
|
386
|
-
|
|
387
|
-
| ID | Decision | Intent or reason | Applies to | Allowed variation |
|
|
388
|
-
| --- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------- | ----------------------------- |
|
|
389
|
-
| DD1 | One `hourHeight` of lead above now | The person sees what just happened and most of what is next without the now-line sitting on the top edge. | week, day | scales with `hourHeight` |
|
|
390
|
-
| DD2 | Equal cluster columns with rightward expansion | Concurrent events read as concurrent; width is the only axis that changes and every event stays fully perceivable. | week, day | expansion into free columns |
|
|
391
|
-
| DD3 | Time line collapses before the title does | The title identifies the event; the time is already implied by the block's vertical position. | narrow blocks | the container-query threshold |
|
|
392
|
-
| DD4 | The popover keeps Popover's standard padding | Event details read as one of the system's popovers; content is semantic and never wraps itself to supply padding. | event popover | none in this record |
|
|
393
|
-
| DD5 | Month chips put the title first | The title identifies the event; in a month cell the time is the detail a narrow chip drops first. | month chips | whether the time fits |
|
|
394
|
-
| DD6 | A busy day trades its third chip for a count | Weeks keep one height so the month still reads as a grid; the count says how much is hidden and opens the whole day. | month view | none |
|
|
395
|
-
| DD7 | An event that lasts a day or more reads as a span | A multi-day meeting is one thing across days; as blocks it would fill whole columns and narrow every other event of those days. | week, day | none |
|
|
396
|
-
|
|
397
|
-
## Family and system relationships
|
|
398
|
-
|
|
399
|
-
- `spec:AST-002` owns public-API admission. `renderPopover` is caller-owned
|
|
400
|
-
content the view cannot derive (what an event's details say); its absence
|
|
401
|
-
is a complete read-only state (FR13), so both states are independently
|
|
402
|
-
correct. No trigger props, state, or presentation vocabulary is introduced.
|
|
403
|
-
- `component:Popover` owns the dialog surface the time grid and the month
|
|
404
|
-
view open: role, name, modality, auto-focus, fallback close, Escape and
|
|
405
|
-
light dismiss, focus return, surface, and padding. Both views compose it
|
|
406
|
-
with its defaults and expose none of its props.
|
|
407
|
-
- `spec:AST-025` owns scroll-container behaviour. The time-grid viewport
|
|
408
|
-
integrates the shared hook on existing structure rather than wrapping it;
|
|
409
|
-
keyboard access, chaining, and native scrollbars follow that record.
|
|
410
|
-
- `spec:AST-027` owns local stacking. FR9 and FR15 place every Schedule
|
|
411
|
-
`z-index` inside an isolation owner and route nothing through page-level
|
|
412
|
-
bands.
|
|
413
|
-
- `architecture:public-component-api` owns stable admission and compatibility;
|
|
414
|
-
Schedule remains experimental in Lab.
|
|
415
|
-
- `architecture:react-component-runtime` owns effect and resource lifetime;
|
|
416
|
-
FR5–FR6 and PR1 record Schedule's positioning effect and scroll memory.
|
|
417
|
-
- `architecture:component-theming-surface` owns target qualification; this
|
|
418
|
-
record adds no theme target.
|
|
419
|
-
|
|
420
|
-
## Verification map
|
|
421
|
-
|
|
422
|
-
| Contract | Verification | Representative states | Mutation or failure expectation | Audit section |
|
|
423
|
-
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
|
|
424
|
-
| FR1–FR3 | `ScheduleTimeGridGeometry.a11y.chromium.spec.ts` (classic scrollbars, 760px inline scroll, RTL, keyboard reach, focus ring) | fixed-height week with 15px scrollbar; narrow week scrolled 160px; RTL | A second scroller, a header outside the viewport, or a non-sticky gutter drifts header or labels past 1px. | `audit:Schedule/layout` |
|
|
425
|
-
| FR4–FR6 | `TimeGridView.test.tsx` positioning suite with mocked geometry; `ScheduleTimeGridInitialPosition.a11y.chromium.spec.ts` with an installed clock | 15:00 week, 13:00 day, 23:50 day (clamp), range without today, tick/theme/resize after a manual scroll | Opening at 0 with today in range, re-running on a tick, or losing the offset across the suspense swap fails. | `audit:Schedule/behavior` |
|
|
426
|
-
| FR7–FR10 | `timeGridLayout.test.ts` pure-function suite; `ScheduleTimeGridOverlap.a11y.chromium.spec.ts` | tie, three, five, chain, containment, reversed input order, fifteen-minute block | Any inter-block overlap above 1px, a dropped event, an input-order-dependent result, or a missing `isolation: isolate` fails. | `audit:Schedule/layout` |
|
|
427
|
-
| FR11–FR14 | `Schedule.test.tsx` popover suite; `ScheduleEventPopover.a11y.chromium.spec.ts` against the `EventPopover` story | option absent, present, `null` for one event; open, Escape, light dismiss, switch, removal, paging; month and list unchanged | A button without the option, a button for a `null` event, two open popovers, a stale `aria-expanded`, an orphan dialog after removal, focus not returning, or focus inside the hidden grid fails. | `audit:Schedule/public-api` |
|
|
428
|
-
| AR1, AR4–AR5 | `ScheduleTimeGridGeometry` keyboard-reach case; `Schedule.test.tsx` hidden-grid suite; scoped axe audit of the read-only and popover stories | overflowing and fitting viewports; read-only week | An unreachable viewport, a focusable node inside `aria-hidden`, or a changed read-only grid fails. | `audit:Schedule/accessibility` |
|
|
429
|
-
| AR2–AR3, AR6 | `Schedule.test.tsx` name and popup-attribute assertions; `ScheduleEventPopover` focus-ring pixels, focus-return, and RTL cases | `EventPopover` story focused by keyboard, open and closed, LTR and RTL | A name missing the date or category, a clipped ring, a missing `aria-haspopup`, a dialog without the event title as its name, or an unmirrored pin fails. | `audit:Schedule/accessibility` |
|
|
430
|
-
| FR15–FR16 | `monthLayout.test.ts` pure-function suite; `ScheduleMonthOverflow.a11y.chromium.spec.ts` | three events; five events with a three-day span on level three; titles out of start order; reversed input order; an empty week | A chip below its row, an event neither painted nor counted, a single-day timed event hidden while a later one that day shows, an order-dependent result, a growing row, or no `isolation: isolate` fails. | `audit:Schedule/layout` |
|
|
431
|
-
| FR17, AR7 | `Schedule.test.tsx` month suite; `ScheduleMonthOverflow.a11y.chromium.spec.ts` | open by click and by keyboard, Escape, light dismiss, switch days, page away; LTR and RTL; light and dark | A control that is not a button, a name without the count or the date, two dialogs, a stale `aria-expanded`, focus not returning, a clipped focus ring, or a dialog left open after paging fails. | `audit:Schedule/accessibility` |
|
|
432
|
-
| AR7 structure | `Schedule.test.tsx` month table suite; `ScheduleMonthOverflow.a11y.chromium.spec.ts` accessibility-tree and Tab-order readings | quiet and busy months; Tab from the pager through the scroll container to each "+N more" in reading order; screen-reader names of headers, cells, and buttons; the Sunday cell's column header read as Sunday | A `grid` role or `aria-readonly`, a missing column, row, or corner header, a cell whose column header is not its weekday, a cell named without its full date, or a "+N more" outside the Tab order fails. | `audit:Schedule/accessibility` |
|
|
433
|
-
| FR17 close rule | `Schedule.test.tsx` month suite; `ScheduleMonthOverflow.a11y.chromium.spec.ts` refresh case | a day opened by keyboard, then a refresh leaves it three events; a day open, then the range paged | A dialog left open, a stale `aria-expanded`, focus left on the page body while the day's cell is still rendered, a cell in the Tab order, or a focused cell without the shared focus ring fails. | `audit:Schedule/behavior` |
|
|
434
|
-
| FR18 | `ScheduleMonthChip.a11y.chromium.spec.ts` | long title at 800px, short title at 1280px, all-day chip, RTL | A time painted before the title, a time that truncates the title, or a time on an all-day chip fails. | `audit:Schedule/layout` |
|
|
435
|
-
| FR19 covered days | `Schedule.test.tsx` month popover suite; `ScheduleMonthEventPopover.a11y.chromium.spec.ts` | a three-day span read on each day it covers, by keyboard and by the accessibility tree; a span that began the week before | A covered day with no mention of its event, a mention that is a button or takes focus, or a second button for the same chip fails. | `audit:Schedule/public-api` |
|
|
436
|
-
| FR19–FR20, AR8 | `Schedule.test.tsx` month popover suite; `ScheduleMonthEventPopover.a11y.chromium.spec.ts` | option absent, present, `null` for one event; open by click, tap, and keyboard; Escape, light dismiss, switch between events and days, a row in a busy day's list, removal, paging; LTR and RTL | A month button without the option, a button for a `null` event, a button outside its start cell, a hidden list beside the buttons, two dialogs, a stale `aria-expanded`, a nested dialog, focus not returning to the chip or the "+N more", or a clipped ring fails. | `audit:Schedule/public-api` |
|
|
437
|
-
| FR21 | `TimeGridView.test.tsx` long-span suite; `ScheduleTimeGridLongSpan.a11y.chromium.spec.ts` | 48-hour event across a week; exactly 24 hours; 23 hours 59 minutes; 10 PM–2 AM; midnight to midnight on a 23-hour and on a 25-hour daylight-saving day; a long title and a short title; with and without `renderPopover`; LTR and RTL | A long event painted as column blocks or splitting a cluster, a short overnight event moved to the all-day row, a span whose edges miss its day columns by more than 1px, a span pill whose times precede or truncate its title, an hour cell that lists a long event, or a name without its start and end dates fails. | `audit:Schedule/layout` |
|
|
438
|
-
|
|
439
|
-
## Decision log
|
|
440
|
-
|
|
441
|
-
<!-- Record the boundary or requirement, not how it was reached. A rejected alternative is at most one line here, kept only when it is consequential and likely to recur. -->
|
|
442
|
-
|
|
443
|
-
### DEC-1 — The time-grid views own an event popover; callers supply its content
|
|
444
|
-
|
|
445
|
-
**Reference:** `component:Schedule/DEC-1`
|
|
446
|
-
**Decider:** cixzhang, 2026-10-04
|
|
447
|
-
|
|
448
|
-
Interaction belongs to a view, because what an event is and how it is reached
|
|
449
|
-
differ between a time grid, a month cell, a list row, and a custom view.
|
|
450
|
-
Schedule and its context carry no activation callback. The week and day views
|
|
451
|
-
share one option, `renderPopover(event)`, and own everything around it: the
|
|
452
|
-
native event button and its popup attributes, the single Popover instance,
|
|
453
|
-
which event is open, the anchor, the dialog name, dismissal, focus return, and
|
|
454
|
-
closing when the event leaves the grid. The caller returns content for an
|
|
455
|
-
event, or `null` to leave that event read-only, and receives nothing else.
|
|
456
|
-
Absent the option, the grid is read-only. Month and list views have no
|
|
457
|
-
interaction option here; each adopts its own in its own record change.
|
|
458
|
-
|
|
459
|
-
Rejected: an activation callback on Schedule or in the context — one model
|
|
460
|
-
cannot fit every view, and a callback beside view-owned ARIA can disagree.
|
|
461
|
-
Rejected: composing a caller-owned surface around the view's trigger — the
|
|
462
|
-
view cannot know what it is composed with, and two owners write one button.
|
|
463
|
-
Rejected: a render prop that replaces the event's content — it moves colour,
|
|
464
|
-
past dimming, and time formatting into every product.
|
|
465
|
-
|
|
466
|
-
### DEC-2 — Simultaneous events share the column side by side
|
|
467
|
-
|
|
468
|
-
**Reference:** `component:Schedule/DEC-2`
|
|
469
|
-
**Decider:** cixzhang, 2026-10-04
|
|
470
|
-
|
|
471
|
-
Concurrency is shown by width, never by paint order: an overlap cluster splits
|
|
472
|
-
its column into equal tracks, a block expands into following free tracks, and
|
|
473
|
-
no block is ever covered, so there is no rank to expose and no `z-index` between
|
|
474
|
-
blocks. Order inside a cluster is fixed by start, length, and `id`, which makes
|
|
475
|
-
the layout a function of the data alone.
|
|
476
|
-
|
|
477
|
-
Rejected: a cascade with each later level inset and raised above the previous
|
|
478
|
-
one, because the later block hides the earlier one's title and the order
|
|
479
|
-
depends on input order.
|
|
480
|
-
|
|
481
|
-
### DEC-3 — A range containing today opens one hour before now, once
|
|
482
|
-
|
|
483
|
-
**Reference:** `component:Schedule/DEC-3`
|
|
484
|
-
**Decider:** cixzhang, 2026-10-04
|
|
485
|
-
|
|
486
|
-
The viewport opens where the person's attention is: the hour before now at the
|
|
487
|
-
top, clamped to the grid. It does this exactly once for each range a person
|
|
488
|
-
opens and then leaves the scroll alone, including across the suspended
|
|
489
|
-
fallback, so neither a late loader nor a clock tick can move what they are
|
|
490
|
-
reading. The component derives this from the clock and the range, so no prop
|
|
491
|
-
selects it.
|
|
492
|
-
|
|
493
|
-
Rejected: an `initialScroll` prop, because no caller-owned distinction between
|
|
494
|
-
two otherwise identical schedules has been shown.
|
|
495
|
-
|
|
496
|
-
### DEC-4 — One scroll owner with sticky header, all-day row, and gutter
|
|
497
|
-
|
|
498
|
-
**Reference:** `component:Schedule/DEC-4`
|
|
499
|
-
**Decider:** cixzhang, 2026-10-04
|
|
500
|
-
|
|
501
|
-
Header, all-day row, gutter, and columns are items of one grid inside one
|
|
502
|
-
viewport, pinned with `position: sticky`, so their tracks are the same tracks
|
|
503
|
-
and a scrollbar, a zoom level, or an inline scroll cannot separate them. The
|
|
504
|
-
viewport reserves its scrollbar gutter and is the keyboard scroll owner.
|
|
505
|
-
|
|
506
|
-
Rejected: a header outside the viewport kept aligned by scroll synchronisation
|
|
507
|
-
or a scripted scrollbar-width constant, because it drifts under every
|
|
508
|
-
scrollbar presentation it was not measured on.
|
|
509
|
-
|
|
510
|
-
### DEC-5 — The event popover is a standard Popover with no presentation options
|
|
511
|
-
|
|
512
|
-
**Reference:** `component:Schedule/DEC-5`
|
|
513
|
-
**Decider:** cixzhang, 2026-10-04
|
|
514
|
-
|
|
515
|
-
The event popover is `component:Popover` with its defaults: dialog role named
|
|
516
|
-
by the event title, modal, auto-focus, fallback close, Escape and light
|
|
517
|
-
dismiss, standard surface and padding. The view option exposes no Popover
|
|
518
|
-
prop — no padding, placement, width, dismissal, or controlled state — and no
|
|
519
|
-
close or controls argument, so content stays semantic and the view can change
|
|
520
|
-
how it presents the popover without changing the option. The popover is
|
|
521
|
-
presented as a popover at every pointer type and width.
|
|
522
|
-
|
|
523
|
-
Rejected: a padding or full-bleed escape — a future need is a separate
|
|
524
|
-
presentation decision on this record.
|
|
525
|
-
Rejected: a configuration object beside the content function — no second
|
|
526
|
-
inseparable option exists.
|
|
527
|
-
|
|
528
|
-
### DEC-6 — A busy month day shows a count that opens the whole day
|
|
529
|
-
|
|
530
|
-
**Reference:** `component:Schedule/DEC-6`
|
|
531
|
-
**Decider:** cixzhang, 2026-10-06
|
|
532
|
-
|
|
533
|
-
Every month week row keeps one height and paints at most three levels of
|
|
534
|
-
chips. When a day needs more, its third level becomes a "+N more" button that
|
|
535
|
-
counts the events not painted there and opens the view's one popover, which
|
|
536
|
-
lists every event of that day. No event is dropped and nothing paints outside
|
|
537
|
-
its row; the hidden per-cell list keeps the whole day for assistive
|
|
538
|
-
technology. The layout is derived from the data, so no prop selects it.
|
|
539
|
-
|
|
540
|
-
Rejected: rows that grow to fit — weeks of different heights stop reading as
|
|
541
|
-
one grid and push later weeks out of view.
|
|
542
|
-
Rejected: a count that opens nothing — the hidden events stay out of reach for
|
|
543
|
-
sighted people.
|
|
544
|
-
Rejected: a "+N more" that switches to the day view — it needs an activation
|
|
545
|
-
callback on Schedule, which DEC-1 keeps out.
|
|
546
|
-
|
|
547
|
-
### DEC-7 — The month view offers the time grid's event popover
|
|
548
|
-
|
|
549
|
-
**Reference:** `component:Schedule/DEC-7`
|
|
550
|
-
**Decider:** cixzhang, 2026-10-06
|
|
551
|
-
|
|
552
|
-
The month view takes the same `renderPopover` option as the week and day
|
|
553
|
-
views and owns the same kind of popover: one instance, opened from a native
|
|
554
|
-
button the view renders, named by the event title, with the caller's content
|
|
555
|
-
and nothing else. A chip button lives in the cell where the chip starts, so
|
|
556
|
-
the month keeps one table structure in both modes, and the buttons replace
|
|
557
|
-
the cells' hidden lists so each event is announced once. The day popover is
|
|
558
|
-
that same instance: a busy day's list hands an event to it in one gesture,
|
|
559
|
-
and focus comes back to the day's "+N more". Pressing that "+N more" while
|
|
560
|
-
one of its events is open shows the day's list again in the same gesture;
|
|
561
|
-
that return is intended, and the popover keeps no back step of its own.
|
|
562
|
-
|
|
563
|
-
Rejected: groups in place of the table when the option is present — the
|
|
564
|
-
month keeps one accessible structure.
|
|
565
|
-
Rejected: a second popover over the day's list — two modal dialogs stack focus
|
|
566
|
-
traps and dismissals.
|
|
567
|
-
|
|
568
|
-
### DEC-8 — A timed event of 24 hours or more is an all-day span
|
|
569
|
-
|
|
570
|
-
**Reference:** `component:Schedule/DEC-8`
|
|
571
|
-
**Decider:** cixzhang, 2026-10-06
|
|
572
|
-
|
|
573
|
-
In the week and day views a timed event that lasts 24 hours or more is a span
|
|
574
|
-
in the all-day row, like a date-only event, rather than a block in each day
|
|
575
|
-
column. A block that tall tells the person nothing the span does not, and it
|
|
576
|
-
would take a track of every overlap cluster on those days. The threshold is
|
|
577
|
-
measured on the event's own instants, so it does not depend on the hour
|
|
578
|
-
window or the timezone's day length.
|
|
579
|
-
|
|
580
|
-
Rejected: moving every event that crosses midnight to the all-day row — a
|
|
581
|
-
late meeting that ends after midnight belongs in the hours it occupies.
|
|
582
|
-
|
|
583
|
-
## Open questions
|
|
584
|
-
|
|
585
|
-
None.
|
|
586
|
-
|
|
587
|
-
## Content boundary
|
|
588
|
-
|
|
589
|
-
This file does not duplicate consumer prop tables/examples, current audit
|
|
590
|
-
results, implementation steps, or family/system rules. It links to their owners.
|