Repository navigation
Scheduler picker last-served data and leader gap alert - #548
Merged
Merged
Conversation
- GET /doing/assignments/picker/:positionId returns when each team member last served before the plan and what else they serve that day (two batched queries, church-scoped, gated by PlanAuth.canEditPosition). - New reminder recipientMode "leaderGaps" on plan-type reminders: N days before, leaders of the plan's ministry group get one message listing unfilled positions and unconfirmed people, with a link to the plan; nothing sends without gaps.
jzongker-churchapps
force-pushed
the
feat/scheduler-picker-gap-alert
branch
from
November 24, 2026 00:50
6c4c4fa to
8d47b65
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GET /doing/assignments/picker/:positionId: last-served date (before this plan, declines excluded) for each member of the position's team, plus their other assignments that day. Two batched queries, church-scoped, gated byPlanAuth.canEditPosition(the check that saves from the picker).loadLastServedgains optionalpersonIds/before; auto-schedule's call is unchanged.recipientMode: "leaderGaps"(existing string column, no schema change), handled inPlanReminderAdapter: sends one push/email listing unfilled positions and unconfirmed people, with a link to the plan in B1Admin. Nothing sends when there are no gaps. It sends once per plan per reminder through the existing occurrence key and sent log.plan.ministryId,groupMembers.leader = 1), the same peoplenotifyLeadersOfResponsealready notifies.recipientModetorenderMessage/buildEmails, andrenderMessagemay now be async.Approved by Jeremy in the 2026-11-23 scheduling triage (106/38/116, 77/82)
Sibling: ChurchApps/B1Admin#963. Merge this Api PR first.
🤖 Generated with Claude Code