Skip to content

Workshop: schedule key milestones, driver practice and a month view; shop bosses; Part sorter hidden - #190

Merged
jkleiber merged 4 commits into
mainfrom
workshop/calendar-milestones-shop-boss
Nov 22, 2026
Merged

jkleiber merged 4 commits into
mainfrom
workshop/calendar-milestones-shop-boss

Conversation

@jkleiber

@jkleiber jkleiber commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Workshop schedule changes:

Key milestones on the schedule

  • The calendar's all-day row is renamed from "Events" to "Key dates". As well as the competition events (from GreyScout, read-only as before), it holds key milestones that leads and admins add, such as a robot reveal or bag and tag.
  • Milestones are teal with a lighter fill and always sort after the competition events, so the events stay the most visible thing in the row.
  • Leads add one by dragging across the Key dates row or with Add milestone. They drag one to move it or stretch it over more days, and tap it to change its name or notes or remove it. Milestones also show in Coming up.
  • They're stored in a new WorkshopKeyDate table (title, first and last day, notes). Leads and admins write, and everyone with Workshop access reads. They're separate from ticket milestones on the Milestones page.
  • Sessions can't be dragged into the all-day row, and milestones can't be dragged into the time grid.

Shop boss

  • Each session has a new WorkshopSession.shop_boss column.
  • On the session page it's in a new details sidebar laid out like the ticket page's, alongside When, Plan progress and Checklists signed off. Leads click it to get the same single-person search box as a ticket's Owner field, and the change saves straight away. The session page now uses the wider column the sidebar needs.
  • The session dialog can set it too, including through "this and following" for a series. A new session starts with whoever ran the latest one.
  • It also shows on My tasks (next session) and in Coming up.
  • Data: the migration sets every existing session's shop boss to Allen Bailey, found by name in User. If it doesn't find exactly one Allen Bailey, it leaves them empty and prints a notice.

Driver practice, month view, calendar size

  • Session types: a session is a shop session (orange) or driver practice (blue), picked in the session dialog like Preflight's schedule item kinds. It's shown in Coming up and the session sidebar. Only shop sessions count as shop time: sessions and hours left before an event, burnup forecasts, the next session on My tasks, and the sessions a ticket can be added to. A plan carries over from the previous shop session, skipping driver practice, and driver practice starts with an empty plan (workshop_seed_session_plan is replaced in the same migration).
  • Month view: each day shows its highlights, most important first: competition events, then key milestones, then sessions, with "+n more" when a day is full. A lead who taps an empty day gets a choice of key milestone, shop session or driver practice for that day (sessions start at 6 to 9pm). Tapping a day that already has something does nothing, and dragging across days adds a key milestone. Week numbers down the side, and each day's number, open that week.
  • Week view on every screen: Month, Week and 3 days are in the toolbar on phones too.
  • Calendar size: the calendar runs from 7am to midnight inside a fixed height (640px, or 560px on a phone), scrolled to 3pm, instead of growing to fit the whole day.
  • @fullcalendar/daygrid is now listed in Workshop's own dependencies. It was already installed, as a dependency of timegrid.

Part sorter hidden

Its nav link is removed and its route is commented out, so /part-sorter goes to My tasks. The page, model and WASM files are kept.

Migration

supabase/migrations/20261119120000_workshop_key_dates_and_shop_boss.sql, also added to prod.sql. It needs supabase db push --linked after merging. Until then, the Sessions calendar can't load key dates and the shop boss can't be saved.

Testing

  • npm run type-check:workshop and npm run build:workshop pass.
  • Ran the migration on the local Postgres container inside a transaction that was rolled back, with stand-ins for the tables and functions it needs:
    • With one Allen Bailey, every existing session got him as boss.
    • With two, sessions were left empty and the notice was printed.
    • The table rejects a milestone whose last day is before its first.
    • Plan carry-over: with shop A (an open ticket), driver practice B and then shop C, seeding C carried A's ticket over and B's plan stayed empty. A session type other than shop or driver practice is rejected.
  • Not tested: none of this has been tried in the running app or in a browser (calendar drag and drop, the month view and its add-to-a-day and open-a-week clicks, the milestone dialog, the sidebar editor, the session dialog's type and shop boss fields), because the shared database doesn't have the migration yet. It's worth trying once it's applied.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LJzJWyBnyRCr7gfKKB3nNB

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
greybots-workshop Ready Ready Preview Nov 21, 2026 8:10pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
greybots-hub Skipped Skipped Nov 21, 2026 8:10pm UTC
greyscout Skipped Skipped Nov 21, 2026 8:10pm UTC
preflight Skipped Skipped Nov 21, 2026 8:10pm UTC

…n, and the Part sorter hidden

Key milestones. The calendar's all-day row (now "Key dates") also holds
dates leads and admins mark, such as a robot reveal: a day or a run of days
with a name and notes, in a new WorkshopKeyDate table. They're teal with a
lighter fill and always sit after the competition events, so the events
stay the most visible thing in the row. Leads drag across the row (or use
Add milestone) to add one, drag one to move it, and tap it to change or
remove it. They also show in Coming up. They're separate from ticket
milestones.

Shop boss. Each session has a shop_boss. It's in a new details sidebar on
the session page, laid out like the ticket page's, where leads click it to
change it (it saves straight away, like a ticket's owner). The session
dialog sets it too, through "this and following" for a series, and a new
session starts with whoever ran the latest one. It also shows on My tasks
and in Coming up. The migration gives every existing session Allen Bailey,
matched by name; if there isn't exactly one, it leaves them empty and says
so.

Part sorter. Hidden for now: its route is commented out and its nav link
removed, so /part-sorter goes to My tasks. The page and model are kept.

Schema: 20261119120000_workshop_key_dates_and_shop_boss.sql, also in prod.sql.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJzJWyBnyRCr7gfKKB3nNB
@jkleiber jkleiber changed the title Workshop: key milestones on the schedule, a shop boss for each session, and the Part sorter hidden Workshop: schedule key milestones, driver practice and a month view; shop bosses; Part sorter hidden Nov 20, 2026
jkleiber and others added 2 commits November 19, 2026 22:08
…ling calendar

Sessions now have a type, a shop session or driver practice, picked in the
session dialog (like Preflight's schedule item kinds) and coloured on the
calendar: shop orange, driver practice blue. Only shop sessions count as
shop time (sessions and hours left before an event, burnup forecasts, the
next session on My tasks, the sessions a ticket can be added to). Plans
carry over from the previous shop session, skipping driver practice, which
starts empty (workshop_seed_session_plan, in the same unapplied migration).

The calendar runs 7am to midnight inside a fixed height, scrolled to the
afternoon, instead of growing to fit the whole day. A month view shows each
day's highlights, most important first: competition events, then key
milestones, then sessions, with "+n more" when a day is full.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJzJWyBnyRCr7gfKKB3nNB
… week from the month view

The Week view was missing from the toolbar on phone-width screens; it's now
there everywhere, next to Month and 3 days.

In the month view, a lead tapping a day with nothing on it gets a choice of
key milestone, shop session (6 to 9pm to start), or driver practice for that
day. Dragging across days still adds a key milestone, and tapping a day that
already has something does nothing. Week numbers down the side, and each
day's number, open that week, so getting to a week months away is a few
clicks from Month.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJzJWyBnyRCr7gfKKB3nNB
@vercel
vercel Bot temporarily deployed to Preview – greybots-hub November 21, 2026 20:09 Inactive
@vercel
vercel Bot temporarily deployed to Preview – preflight November 21, 2026 20:09 Inactive
@vercel
vercel Bot temporarily deployed to Preview – greyscout November 21, 2026 20:09 Inactive
@jkleiber
jkleiber merged commit 9184f8c into main Nov 22, 2026
12 checks passed
@jkleiber
jkleiber deleted the workshop/calendar-milestones-shop-boss branch November 22, 2026 05:04

This branch was previously deployed

3 inactive deployments
Preview – preflight — 9d09940d Deployed Nov 21, 2026 by vercel[bot]
Preview – greybots-hub — 9d09940d Deployed Nov 21, 2026 by vercel[bot]
Preview – greyscout — 9d09940d Deployed Nov 21, 2026 by vercel[bot]
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