Repository navigation
feat(atlas): close-out reminders + Ready to publish after sign-off - #367
Merged
Merged
Conversation
- /api/closeout/reminders (Bearer DIGEST_TOKEN, DIGEST_ORG): emails the PM of each open, emailed close-out expiring within 7 days, once (reminded_at claimed before send, released on failure). ?dry=1 lists without sending. Runs as a second step of weekly-digest.yml; the step logs counts only. - Weekly digest: one line per program lead, by name, for submitted close-outs. - New approval kind 'publish': latest close-out approved, hidden/internal, no publish blockers. Publish uses the project PATCH (server gate + team check); Not now persists publish_dismissed_at until the next approved close-out. - Migration 009_closeout_followups (+ rollback, schema.sql, lazy DDL). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0152aazG7AAEF6rWPWCedVgY
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
The digest text now names program leads, and this repo's Actions logs are public. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0152aazG7AAEF6rWPWCedVgY
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.
Two follow-ups to the semester close-out (#364).
1. Reminders
POST /api/closeout/reminders: BearerDIGEST_TOKENwith a constant-time compare, and the team comes fromDIGEST_ORG(config, never the request). It emails the PM of every close-out that is stillopen, was emailed, and has a link expiring within 7 days. Each request gets at most one reminder:reminded_atis claimed before the send, so overlapping runs can't double-mail, and the claim is released only for sends that failed.?dry=1lists who would be emailed and sends nothing.weekly-digest.yml(no new cron or secret; the URL is derived fromDIGEST_URL). The step logs counts only, because the body lists PM emails and Actions logs on this repo are public.2. Ready to publish
publish: the latest close-out is approved, visibility ishiddenorinternal, and the project passespublishBlockers(mirrored in SQL likedraft)./admin/approvalsgets one-click Publish, which goes throughPATCH /api/projects/[id]so the server-side publish gate and team scoping apply, plus Not now, which stampspublish_dismissed_aton that close-out row. The next approved close-out is a new row, so it prompts again.publishandcloseout.Migration
009_closeout_followups.sql(+ rollback) adds two nullable timestamps toupload_requests. It is also added lazily inensureUploadRequestsTable, andschema.sqlis updated by hand. Not applied.Decisions to check
restrictedprojects are excluded from Ready to publish (a deliberate closed choice).hiddenproject with an approved close-out shows both as adraftrow and apublishrow.last_emailed_to), matching the nudge rule.Tests
vitest covers the lead-name mapping and digest lines (fictional data) and the reminder email template.
tsc --noEmitis clean and the full vitest run passes (261).🤖 Generated with Claude Code
https://claude.ai/code/session_0152aazG7AAEF6rWPWCedVgY