Skip to content

SSF-233 Pantry Confirm Delivery Email#194

Open
Juwang110 wants to merge 2 commits into
mainfrom
jw/ssf-233-pantry-confirm-delivery-email
Open

SSF-233 Pantry Confirm Delivery Email#194
Juwang110 wants to merge 2 commits into
mainfrom
jw/ssf-233-pantry-confirm-delivery-email

Conversation

@Juwang110

Copy link
Copy Markdown

ℹ️ Issue

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

📝 Description

I added a new Pantry Confirm Delivery Automated Email that reminds pantries to complete required actions on shipped orders. This is accompanied with a weekly cron job reminder.

✔️ Verification

Verified cron job and email sending works by having it send every 10 seconds.

🏕️ (Optional) Future Work / Notes

N/A

@jxuistrying jxuistrying self-requested a review June 13, 2026 21:02
@dburkhart07 dburkhart07 self-assigned this Jun 13, 2026
@Yurika-Kan Yurika-Kan requested a review from dburkhart07 June 20, 2026 23:02

@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.

few small things

.getMany();

if (orders.length === 0) {
this.logger.warn(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this isnt really something being wrong, can we just make it a logger.log instead?

match.status === OrderStatus.SHIPPED
) {
setSelectedActionOrder(match);
navigate(ROUTES.PANTRY_ORDER_MANAGEMENT, { replace: true });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

for most of our modals, i think we navigate only on closing, as opposed to opening them and then renavigating. can we follow that logic here?

if (!existingShippedOrder)
throw new Error('Missing existingShippedOrder test object');

const before = (await eligibleOrders()).length;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

what is the point of this before variable? can we not just check how many unconfirmed orders we have for this pantry after adding this secondOrder, and then just check the emails service is called for this one?

});
});

describe('sendConfirmDeliveryReminders', () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can we add a test somewhere that makes sure each of the orders we use to send an email for is SHIPPED?

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.

2 participants