Skip to content

SSF-219 New Donation Form Required Fields Backend Updates#190

Merged
Juwang110 merged 7 commits into
mainfrom
jw/ssf-219-new-donation-form-backend-updates
Jun 23, 2026
Merged

SSF-219 New Donation Form Required Fields Backend Updates#190
Juwang110 merged 7 commits into
mainfrom
jw/ssf-219-new-donation-form-backend-updates

Conversation

@Juwang110

Copy link
Copy Markdown

ℹ️ Issue

Closes https://vidushimisra.atlassian.net/browse/SSF-219

📝 Description

Made it so oz. per item, donation value, and food rescue are required not nullable fields in backend dtos and updated tests.

Frontend: Minor visual changes to reflect these required fields (details in ticket)

✔️ Verification

Verified frontend design and tests passed in backend.

🏕️ (Optional) Future Work / Notes

N/A

@dburkhart07 dburkhart07 self-assigned this Jun 14, 2026

@dburkhart07 dburkhart07 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good, just missed a few spots.

Here are a few others that I think we can make sure we update the fact that these are now required in a few other spots in the backend:

  1. donationItems entity
  2. manufacturer service getFmDonations function
  3. donation-details-dto
  4. We also need to write a migration to reflect these changes in the DB

Comment thread apps/frontend/src/types/types.ts Outdated
Comment thread apps/frontend/src/types/types.ts Outdated
Comment thread apps/frontend/src/components/forms/fmCompleteRequiredActionsModal.tsx Outdated
Comment thread apps/frontend/src/components/forms/fmCompleteRequiredActionsModal.tsx Outdated
Comment thread apps/frontend/src/components/forms/fmCompleteRequiredActionsModal.tsx Outdated
Comment thread apps/frontend/src/components/forms/fmCompleteRequiredActionsModal.tsx Outdated
@Yurika-Kan Yurika-Kan self-requested a review June 20, 2026 22:56
@Yurika-Kan Yurika-Kan self-assigned this Jun 20, 2026

@Yurika-Kan Yurika-Kan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. This is awesome. Thanks Justin!

@Yurika-Kan Yurika-Kan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

actually, could you update the confirm item details page since it is a similar ui?

can we match the required fields logic by having asterisks for the fields & grayed out submit button functionality when some fields are empty. let's ensure there are no workaround ways to submit "partial" donation items with empty required fields!

reword:
Please fill out the missing fields information to record donation details.
to:
Please confirm the following information to record donation details.
Please do not include shipping/delivery costs in Food Donation Value.

add (Fair Market Value of Food Only) to Donation Value

Image

@dburkhart07 dburkhart07 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

one small thing!! tysm justin <3333

Comment thread apps/frontend/src/components/forms/newDonationFormModal.tsx

@Yurika-Kan Yurika-Kan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

approving - one small thing but LGTMMMM

@Juwang110 Juwang110 merged commit 55332e5 into main Jun 23, 2026
4 checks passed
@Juwang110 Juwang110 deleted the jw/ssf-219-new-donation-form-backend-updates branch June 23, 2026 14:42
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.

3 participants