Open batpad opened 1 year ago
@jenningsanderson is this around making the list of users searchable? On the org page or the team page or both?
@vgeorge to start looking into adding react-table as a solution for search, sort, filtering, etc.
Based on discussion:
For users, we will try and use the display_name
key in the profile, which should be populated with the user's OSM username.
This relates to #298
@vgeorge @kamicut can you add any notes about handling the OSM usernames in the database, any concerns, etc. - at this point, let us not worry about the case where a user changes their name in OSM. Hopefully this approach of storing the OSM usernames in the database can help with search, as well as reduce the need / dependency on OSM for the id -> username lookup.
Speaking to @kamicut, this is a bit more complex since we currently don't store display_names for users that are not signed up for OSM Teams (i.e. users can exist just as ids that are part of teams).
@kamicut - would you be able to outline your solution / how you're thinking about this a bit here?
Status update: we added pagination of staff and members to organizations pages and cache for username fetching from OpenStreetMap.
My suggested next steps for completing this ticket are:
team/:id
) (we need to implement paginate
param to /api/teams/:id
route are suggested hereperPage
parameter to all paginated routessearch
param in staff/members API routessort
param in staff/members API routes
@LanesGood - there is a desire to make the table on the team detail page "searchable and sortable". Could you help outline here what that might involve UX wise and we can discuss how this fits / how best to proceed.
cc @jenningsanderson @kamicut @vgeorge