Skip to content

HOLD: Show allocated/amount-due stats on grant-funded scholarship edit#1860

Draft
maebeale wants to merge 1 commit into
mainfrom
maebeale/zagreb-v2
Draft

HOLD: Show allocated/amount-due stats on grant-funded scholarship edit#1860
maebeale wants to merge 1 commit into
mainfrom
maebeale/zagreb-v2

Conversation

@maebeale

Copy link
Copy Markdown
Collaborator

Closes [link an issue or remove this line]

What is the goal of this PR and why is this important?

  • Grant-funded scholarships (awarded from a grant, with no event registration) had no at-a-glance budget stats on their edit page — only event-funded scholarships showed the cost summary cards.
  • This surfaces the pending award split across Allocated and Amount due so staff can see disbursement status before saving, mirroring the event flow.

How did you approach the change?

  • Added a 3-card stat grid (Scholarship amount / Allocated / Amount due) to the grant-funded branch of scholarships/_form, reusing the event card styling.
  • Extended scholarship_preview_controller with a grantFunded path so the cards live-update as the amount and the "Tasks completed" toggle change; allocated counts once tasks are completed, the remainder is shown as due.
  • Rebased onto main, which had substantially redesigned the scholarship form (new controller API, grant section split out); reconciled the feature onto the new structure.

Anything else to add?

  • Marked HOLD pending product confirmation on the grant-funded semantics: here "Allocated" is gated on tasks_completed (allocated once tasks are done, otherwise due). On the event side, main no longer gates allocation on tasks_completed — the toggle is informational. Want to confirm the grant-funded labels/behavior before marking ready.

Grant-funded scholarships had no event, so they lost the at-a-glance
budget stats that event-funded scholarships show. Surface the pending
scholarship amount split across "Allocated" and "Amount due" so staff
can see disbursement status without saving, mirroring the event flow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
renderGrantSplit(amountCents) {
if (!this.grantFundedValue) return

const completed = this.hasCompletedTarget && this.completedTarget.checked

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 From Claude: HOLD point — for grant-funded scholarships I gate "Allocated" on tasks_completed (allocated once tasks are done, otherwise still due). The event side on main no longer gates allocation on this toggle, so the two flows differ. Want product confirmation before marking ready.

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