DigitalCommons / mykomap-monolith

A web application for mapping initiatives in the Solidarity Economy
0 stars 0 forks source link

[CWM] Add pagination to ResultsPanel #55

Open rogup opened 3 days ago

rogup commented 3 days ago

Description

We currently fetch all names matching a search to populate the ResultsPanel. This will probably become a performance issue if the dataset gets too big.

The search API supports pagination so we just need to implement this in the UI, maybe using this MUI component: https://mui.com/material-ui/react-pagination/#controlled-pagination

Acceptance Criteria

ColmDC commented 1 day ago

Has this been implemented, so we can close? @rogup

rogup commented 1 day ago

@ColmDC No, for now, I've just truncated the list to 200 so loading isn't too slow, and the user can't see past the first 200 items unless they refine their search https://github.com/DigitalCommons/mykomap-monolith/commit/f4b295f037f2b1d6434e9776d655e3331ed652ca