feat: volunteers list view (flat table) #476#500
Conversation
ReviewOverview: Adds a flat table/list view to the volunteer search page, toggled by the existing tab switcher. Uses the Bugs1. The PR changes the translation key references from: t("dashboard.volunteers.filters.engagement.new")to: t("dashboard.volunteers.filters.engagement.vol-new")But 2.
3. Pagination limit is wrong for the list view
Minor4. Redundant import in
import type { createEngagementStatusLabelMap, createStatusLabelMap } from "...";Looking ahead — opportunity and agent list viewsSince the same pattern will apply to opportunities and agents, a few things to standardise now rather than repeat three times:
SummaryTwo blockers before merging:
The overall structure and reuse of Hans's table components is correct. Fix the above and this is ready. |
Follow-upDisregard the earlier suggestion to drop the
@ivannissimrch please clarify on both issues exactly what is needed from the BE so the columns can be wired up once the endpoints are ready. The two blockers from the original review still stand:
|
|
Thank you for the review. I want to provide a quick note on the engagement keys: vol-new, vol-active, vol-inactive, vol-unresponsive, vol-available, and vol-temp-unavailable are actually present in both translations.json files (lines 363-368). PR #475 renamed the old keys to these new vol-* names and updated the filter consumers but missed updating the createEngagementStatusLabelMap. That's why the function was calling deleted keys, returning raw strings, and resulting in broken text in my table. I'm going with your option 1 anyway: I'll add the old keys back to translations and revert my function change. I'll start working on the rest of the changes as soon as I can. |
9e3294f to
a743fa5
Compare
|
I committed new changes
Also I discovered during testing that BE returns I'm planning a follow-up PR this weekend with the bigger architectural items (generic EntityTableList , EntityTableRow and viewMode prop refactor) before starting #477. |
2951fd2 to
c438217
Compare
Description
Adds the flat table list view for the volunteers search page (
/dashboard/volunteers).Reuses the team's shared
core/common/Tableprimitives, same pattern asCommunicationTracker.tsx.Related Issues
Closes #476
Changes
VolunteerTableList.tsxandVolunteerTableRow.tsx, usescore/common/TableVolunteerListController.tsx: rendersVolunteerTableListfor the List tabVolunteers.tsx: "TABLE VIEW"/"MAP VIEW" to "List"/"Cards" (EN + DE)ApiVolunteerGetListcreateEngagementStatusLabelMapkeys were out of sync after Fix: Volunteers dashboard: selecting "Temporarily Unavailable" in the Engagement filter returns 0 results #430 #475 PRScreenshots / Demos
Checklist