Repository navigation
feat(calendar): our own Month and Week, naming each class - #538
Conversation
Each calendar entry leads with the class's name, then its time in the visitor's own
format and the town it is in, read off the address city and recased when typed in
capitals. "Online" is written out.
- Phone month list: Schedule-X's rows are drawn by our own renderers, as a plain list
under a day heading ("Thursday 12 Nov", then "Today · 4 classes" on a quieter line).
- Desktop month box: its time and town, with the class name on hover. Week and list
write the name, then where.
- Schedule-X's own "+ N events" and "No events" come from SahajCloud's calendar.more
and calendar.none in every language, through a hook the Schedule-X patch adds to its
translator.
- Every day with classes gets one solid dot, plain text on the tints in both themes,
and the clocks line moves above the grid.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…loud Syncs the snapshot with production, which now serves calendar.day_count, calendar.more and calendar.none (sydevs/SahajCloud#1301), plus production's own recasing of countries.place_title. The words table moves into its own module so a spec can read it through a real i18next instance, as the day heading's does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
…as Schedule-X lists the day The heading's custom properties restyled the whole grid on every date change in every view (about 20 ms in a long list), so only the month agenda sets them. The count now includes a class that runs past midnight from the day before, as Schedule-X's list does. Rows hold their height before our renderers fill them, and the grid remounts on a language switch so Schedule-X's words follow it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | f8b9db6 | Nov 27 2026, 11:44 PM |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Item rows, no Share button Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ls the page; the Week's empty states use FallbackPanel Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lour and chip; varied story classes; the full widget's box fits a phone preview Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The session for review-pr did not finish after 3 attempts. I have stopped retrying. A mention ( 🤖 sydevs dispatcher |
- Sync the translation snapshot: Copy number and the share Email label now read `event.actions.copy_number` and `share.email` (sydevs/SahajCloud#1304), and the three keys sydevs/SahajCloud#1306 dropped leave RETIRING_KEYS. Keys published ahead of #538 and #542 join PENDING_KEYS. - tests/browser/skeleton.spec.ts measures the sign-up form, filters and calendar. It caught three header mismatches, now fixed: the sign-up form's reassurance line, the filters' close-button row, and the calendar's own controls in place of a Back-and-title header. Co-authored-by: Claude Opus 5.5 <[email protected]>
…nded day headings; today as a pill Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e in the class card's primary chip, in-person in secondary Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…last class it stands for Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # CHANGELOG.md # src/config/translations.en.json # src/config/translations.test.ts # src/views/CalendarView/CalendarView.tsx
The calendar's own rules (chosen and cleared filters, the week a day opens, the view in the address, an entry's day and time) move into lib/shape and are read by both views; one cameFrom guards the list/calendar step back; the Week's feed expansion is keyed on the filters' string form; only a closable Chip takes the 44px touch floor; the phone grid's day buttons carry data-vaul-no-drag and the focus ring, and stop at today; the CSS gate proves its rem detector still reads the build. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e our own calendar Co-Authored-By: Claude Opus 5.5 <[email protected]>
… they stand for Co-Authored-By: Claude Opus 5.5 <[email protected]>
The skeleton spec skips a list inside a grid cell, so the boxes keep their list semantics and the panel's rows still compare like with like. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Week no longer borrows the dates filter for its seven days, so dates stays an ordinary filter in both views and survives Month → Week → Month. That drops the masking around it: chosenCalendarFilters, clearedCalendarFilters, weekFilters, keepDates and hideDates. Also folds use-calendar-view.ts into CalendarView, reads an entry's wall clock with fromFormat, and inlines placeOf. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Dropping Schedule-X, its patch and temporal-polyfill for ~400 lines of our own Month and Week is the right trade: the library needed a patch for our words and a Temporal binding that must not touch the host's globals. It nets −930 lines. The contract side is right — the rem caveat leaves docs/embedding.md, the rem gate now covers every sheet, and no origin, CSP or permission moves.
Where it is bigger than the problem is the Week's dates. In the shared filters.dateRange they cost nine pieces to make five files ignore a filter that is not one; a week param of its own removes all of them. Beside that, the two Month grids are one grid written twice — which is why the today-pill colour bug needs fixing twice.
Findings
- should-fix — the Week's days ride in the shared filters (FilterView.tsx:67)
- should-fix — today in a neighbouring month's grid gets a grey pill (MonthView.tsx:105)
- should-fix — the two Month grids are one grid (MonthView.tsx:77)
- should-fix — a hook file for one consumer (use-calendar-view.ts:13)
- should-fix —
EntryList.tsxexports onlyDayClasses(EntryList.tsx:17) - consider — Month → Week discards the month in view (CalendarView.tsx:106)
- consider —
countednames three things, and pairs withlive(EntryList.tsx:21)
What was checked
Read whole on the branch: shape/calendar.ts, CalendarView, MonthView, WeekList, EntryList, use-calendar-view, lib/time.ts, Chip, ListItem, shared.tsx, assert-css-scoped.mjs and its spec, the four changed docs. Ladder walked over the luxon reuse (no new dependency), Info.getStartOfWeek and Intl.formatRange. Streamliner: 61 pieces, 46 kept, 8 raised, 5 held. Every new calendar.* key resolves in translations.en.json; calendarWindow and the dropped resolveCalendarView agree with AGENTS.md.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
|
Built all seven adversarial-review findings; none rebutted.
Base merged clean. Lean gate ✓, browser lane ✓ 39. No CSP or origin moves; 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
I could not merge the relay here, so this is the step left for you.
🤖 sydevs dispatcher |
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is
Brings in #520–#551. Resolutions: - ShareView stays deleted (#540); the inline split's class views are the class and its sign-up, and the aside under the map takes the actions, then Register, in #540's order. - The calendar's width reads #538's `isCalendarFullWidth` off the URL; #466's `calendarFillsWidth` goes with Schedule-X. - MapControls and Mapbox take both `settings` and #542's `filterMenus`; MapLayer passes the floating filter buttons, and DrawerStack claims them only for a sheeted stack. - The root view's new title (#531) is a place's, so inline it gives way to the page heading. - Main's Event "Layout" control is dropped: the Expanded form shows the phone sheet. - The panel stays 384px, including FilterMenus' cap; translations re-synced from production. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
temporal-polyfillare gone; the calendar is our own Month and a Week list.?week=<day>, so Dates stays an ordinary filter in both views.Change outline
Files — the calendar is ours
Schedule-X and everything that adapted it leave; three small views replace them.
Types —
CalendarEntryand the viewAn entry carries the class name and where it is; the view is a URL word.
Components — CalendarView
The header owns navigation; the body picks the view off the URL.
CalendarView src/views/CalendarView/CalendarView.tsx CalendarHeader Back · FilterButton (filters, the place excluded) · ExpandSheetButton + DrawerTitle the place's name (regionsQuery + regionRoute), else "Calendar" + ToggleGroup Month | Week | List # List: dismiss() when we came from it (cameFrom), else navigate to the place + arrows + label "Next 7 days" | formatDateRange | formatMonth; arrows stop at today CalendarBody + one query on every date # neither view's arrows nor a dates filter refetches + times note only when an online class is on screen + view === 'week' ? <WeekList> : <MonthView isWide> - <CalendarMount> Schedule-XFlow — switching view
One URL write moves the view and the Week's day together, keeping the drawer's depth.
Behaviour — shared pieces touched
Contract —
docs/embedding.mdandCHANGELOG.mdThe view rides inside
atlas, so a host writes no new parameter; the rem caveat goes with Schedule-X.Preview
Test results
PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH, perdocs/testing.md)pnpm size✓ (standalone 1.2 KiB under budget)Manual verification
Notes for reviewer
see_calendar,see_list,share_title,none_in_window,none_match_filters,clear_filters) and listed inRETIRING_KEYS; a SahajCloud retire PR follows.weekparam is the only one a host can observe.Detail
ul/li) so the skeleton spec's row geometry compares like with like.?week=rather than thedatesfilter also means a dates filter now narrows the Week, which the empty state's "next class" button already leads out of.aria-label, and luxon caches the formatter.🤖 Generated with Claude Code