Skip to content

Publishing page: shift open/close windows (#869) - #900

Merged
mbhewitt merged 1 commit into
mainfrom
feat/shift-publishing
Nov 29, 2026
Merged

mbhewitt merged 1 commit into
mainfrom
feat/shift-publishing

Conversation

@mbhewitt

Copy link
Copy Markdown
Owner

Refs #869. Mew, 2026-11-29: "lets start with A and see if we need B. shift closes it is hidden."

  • Migration 036: op_shift_release gains shift_name_id (NULL means all on-playa shifts, as before) and close_at. With these, each release row becomes a publishing window.
  • Hiding: volunteers can't see or sign up for shifts a window covers before it opens (as before) or from its close time on (new PUBLISH_CLOSED_SQL, used by /api/shifts and checkShiftAdd). Admins still see those shifts, and sign-up only warns them (publish-closed).
  • Shift-type windows: a window for one shift type covers that type even if it's off-playa (meetings). An "all on-playa shifts" window still leaves meetings alone.
  • Announcement: names the shift type when the window is for one type.
  • New /publishing page (SuperAdmin, next to Dates in the menu):
    • shift windows with Shifts / Dated from / Opens / Closes, to add and remove,
    • a read-only list of every form's Opens and Closes, linking to each form's editor.
    • The Dates page now links to Publishing instead of hosting the release box.

Prod currently has no release rows, so nothing changes on deploy. New e2e test: a closed window hides the shift and blocks sign-up, a type window covers a meeting, the API rejects a close time before the open time, and GET returns the shift name and close time. Locally, 30 (4 tests) and 32 pass. Footer 2027.G.00900.C.

🤖 Generated with Claude Code

#869)

Mew 2026-11-29: "lets start with A ... shift closes it is hidden".
op_shift_release rows become windows: all on-playa shifts from a date (as
before) or one shift type (meetings included), with an optional close time.
Volunteers can't see or sign up before a window opens or after it closes;
admins still see them (sign-up warns). New /publishing page holds the
windows and lists every form's Opens/Closes; Dates links to it.
Migration 036. Footer 2027.G.00900.C.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mbhewitt
mbhewitt merged commit 260bc3d into main Nov 29, 2026
1 check passed
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