Skip to content

Filter scholarship recipients by whether they filled out the survey - #3141

Open
maebeale wants to merge 7 commits into
mainfrom
maebeale/scholarship-recipient-survey-filter
Open

maebeale wants to merge 7 commits into
mainfrom
maebeale/scholarship-recipient-survey-filter

Conversation

@maebeale

@maebeale maebeale commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 shared status filter on three pages + scholarship scopes now follow transfers

Staff can now find scholarship recipients who have or haven't filled out their survey, so they can follow up — from the scholarships list, an event's registrants roster, or the bulk email picker.

  • Roster + bulk email — two new options in the shared Scholarship dropdown: "Survey filled out" / "Survey not filled out".
  • Scholarships list — new Status filter reusing those options, plus a Survey column.
    • Drops "All recipients" / "No scholarship" — every row is already an award (Scholarship::STATUS_FILTER_OPTIONS).
    • Scholarship#matches_status? mirrors EventRegistration.scholarship_status per award.
  • Source — the registration's post_survey_completed_at stamp (survey submit or admin "Mark received").
  • Not filled out = survey open to them — reuses recipient_survey_available? (agreement signed + survey open).
    • Can't be SQL, so the scope loads candidates and checks in Ruby (RECIPIENT_SURVEY_PRELOADS).
  • Transfers — a registration holds any award earlier in its transfer chain, however many hops.
    • The scholarship_status scopes share EventRegistration.holding_scholarship_ids (walks the chain, one query per hop).
    • Scholarship#award_registration walks the chain too; the last registration still holding money wins.
    • Also lifts the scholarship report's "registrants attended" count for recipients who transferred and attended.

🤖 Generated with Claude Code

@maebeale
maebeale marked this pull request as ready for review December 4, 2026 12:56
maebeale and others added 7 commits December 4, 2026 07:59
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Staff follow up with recipients who haven't filled out the post-training
scholarship survey, and had no way to list them across trainings. The
index reads the same registration stamp the survey writes, from the
registration the award's dollars count toward, so transfers resolve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Staff remind recipients who owe the survey by email, so the filter belongs
on the shared registrants/bulk-email filter bar too. Not filled out lists
only recipients whose survey is open to them, since the rest can't act yet.
The scholarships filter row is narrowed to fit on one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One vocabulary for scholarship status across the roster, bulk email, and
the scholarships list, so staff can also find unsigned agreements and open
tasks across trainings. Options that only make sense per registration (all
recipients, no scholarship) are left off a list where every row is an award.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A recipient who transfers keeps the award on the original registration, so
the roster's Scholarship filter missed them at the training they actually
attend, including the new survey options. The filter scopes now read the
award from the registration it transferred from too, matching
EventRegistration#effective_scholarships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A recipient can transfer more than once, and the award stays on the first
registration. The filter scopes and the scholarships list now walk every
hop, so the survey and status filters find them at their latest training.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/scholarship-recipient-survey-filter branch from 06ff8a8 to 7332f85 Compare December 4, 2026 13:00
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