Skip to content

Open a team month calendar by double-clicking the day's date - #154

Open
wayx112 wants to merge 3 commits into
Team6083:mainfrom
wayx112:feat/month-calendar
Open

wayx112 wants to merge 3 commits into
Team6083:mainfrom
wayx112:feat/month-calendar

Conversation

@wayx112

@wayx112 wayx112 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Builds on #153 (it uses the dialog's day moving). Only the last two commits (e888c5b, 9e1a076) are new here; please merge after #153.

Summary

To see how many people answered for other days, you had to step through them one at a time. Clicking the day's date now opens a team calendar for the month: on the home page section, in the day dialog's header, and on the attendance page's day card.

           Team calendar
     <   November 2026   >
  M    T    W    T    F    S    S
                         (event)      <- team events slot (empty for now)
                           14   15
                          4-4-2       <- will come - if needed - can't come
  • Counts: under each date, how many answered will come, if needed and can't come, in the same green, blue and red as the home page's groups. Days nobody answered stay blank. The full sentence is in the cell's tooltip and aria-label.
  • Team events: a line above each date is kept for them (events prop on TeamMonthCalendar). There is no data source yet, so it is empty.
  • Picking a day goes back to that day's list, and the page behind follows. On the attendance page, a day in another week opens that week with the day selected (/attendance?day=), asking first if there are unsaved answers.
  • Data: one query per month (getMonthCounts, signed-in only), loaded again only when the month changes.

Evidence

On a local preview:

click the section's date             dialog opens on the team calendar; back goes to the day's list
click the dialog's date              switches to the calendar
attendance page, click the card's date   calendar; 11/19 selects it in the week; 11/06 opens that week on 11/06
pick 11/12                           list for 11/12; the section behind shows 11/12
phone width (375 px)                 7 columns fit, no horizontal scroll
Test Files  25 passed (25)
     Tests  334 passed (334)

New test: getMonthCounts counts per day and leaves out other months and unanswered days. tsc --noEmit, ESLint on the changed files and npm run build pass.

Merge danger

Door: two-way. Display plus one read-only query; no schema change.

Blast radius: the home page's availability section, the attendance page's day card, and their day dialogs.

🤖 Generated with Claude Code

wayx112 and others added 3 commits November 16, 2026 07:57
The availability dialog on the home page showed one day; to see another you had to close it, use the arrows
behind it and open it again. Its header now has the same arrows around the date, with Today on the right, and the
section's own arrows are hidden while it is open. Moving between days keeps the dialog open: the content isn't
remounted, the Today button stays in place (hidden on today), and the list stays mounted while the next day loads,
so the search box doesn't take focus each time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
To see how a whole month is filling in you had to step through it a day at a time. Double-clicking the date, on
the home page's availability section or in its day dialog, now opens a team calendar in the dialog: each day shows
how many answered will come - if needed - can't come below the date, in their colours, and has a line above the
date kept for team events (none yet). Picking a day goes to its list. The counts come from one query per month.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A double-click on the date was easy to miss, and the attendance page's day card had no way to open the calendar at all. The date is now a button on the home section, in the day dialog's header and on the attendance page's day card. Picking a day in this week selects it there; a day in another week opens that week with the day selected (`/attendance?day=`), asking first if there are unsaved answers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant