Skip to content

SSF-207 Deep-linking for view orders and view assigned pantries#176

Open
Juwang110 wants to merge 1 commit into
mainfrom
jw/ssf-207-view-orders-and-pantries-functionality
Open

SSF-207 Deep-linking for view orders and view assigned pantries#176
Juwang110 wants to merge 1 commit into
mainfrom
jw/ssf-207-view-orders-and-pantries-functionality

Conversation

@Juwang110
Copy link
Copy Markdown

ℹ️ Issue

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

📝 Description

Various changes:

  • Implemented View Orders deeplinking used in Admin Pantry Management and Volunteer View Assigned Pantries to open up Admin Order Management and Volunteer Order Management respectively with seeded filter to clicked pantry
  • Implemented View Assigned Pantries deeplinking used in Admin Volunteer Management to open the Pantry Management Page pre-filtered to the clicked volunteer’s pantry/pantries
  • Minor auth gate changes and design ones following ticket

✔️ Verification

Verified deeplink functionality and design matched figma

🏕️ (Optional) Future Work / Notes

N/A

@Yurika-Kan Yurika-Kan self-requested a review May 20, 2026 02:50
Copy link
Copy Markdown

@dburkhart07 dburkhart07 left a comment

Choose a reason for hiding this comment

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

looks really great, everything seems to work. just some discussion points worth having i think

const assignedPantries = await ApiClient.getVolunteerPantries(
Number(volunteerIdFromUrl),
);
if (cancelled) return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just curious what the point of this cancelled variable is? We havent used this for any of our deeplinks yet, so why is this one different?

</Badge>
</Table.Cell>
<Table.Cell textAlign="right">
<Link
Copy link
Copy Markdown

@dburkhart07 dburkhart07 May 20, 2026

Choose a reason for hiding this comment

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

I wonder if we should disable this entirely if there are no orders for the pantry, as opposed to displaying it and navigating these but doing nothing (same would apply for the volunteer assigned pantries page too). thoughts?

}));
}

navigate(ROUTES.ADMIN_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.

One issue i forsee happening is that, if we navigate to a page with these filters set and then press the back arrow, all of our progress will go away (e.g.: i go into volunteer management, click on a volunteer's assigned pantries, click on view orders for one of those pantries, then back to volunteer's assigned pantries, the filter is reset). is this tradeoff better than just keeping the url there and not deleting it, in addition to keeping the filter checked? i feel like if these deeplinks are being clicked on, the user would likely not be looking to add more pantries to the filter

@Yurika-Kan curious to get your thoughts on this.

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