cornellh4i / lagos-volunteers

Lagos Food Bank Volunteer Management System
https://lagos-volunteers.vercel.app
MIT License
13 stars 6 forks source link

Refactor & Fix all pagination, sorting and searching on tables #260

Closed akinfelami closed 4 months ago

akinfelami commented 4 months ago

Summary

Closes #187 Closes #250

Okay this is pretty big. But I refactored ALL the components that used a table to use the new logic for pagination. This implementation works. Pagination, sorting, searching on ANY table. It is also preserves history between components. I believe it addresses all the edge cases we were worried about but please test to crosscheck!

This is also huge because it closes

Testing

Check every component that uses a table and click through. I suggest:

Just some ideas on ways to test.

Notes

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lagos-volunteers ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2024 11:48pm
jasozh commented 4 months ago

Bugs fixed:

Current bugs

image image

jasozh commented 4 months ago

NOTE: this is bugged cause GridSlots doesn't exist until data grid v7.0 (we only have 6.0 and it seems like there's dependency issues with upgrading)

This is breaking next build so commenting out


        // loadingOverlay: LinearProgress as GridSlots["loadingOverlay"],