laws-africa / peachjam

Project Peach Jam
https://agp.africanlii.org
GNU General Public License v3.0
2 stars 0 forks source link

Re-work legislation listing pages to support >10,000 works #1895

Closed longhotsummer closed 2 months ago

longhotsummer commented 3 months ago

The big challenge here is that we load all the information into the page at once. That's no longer sustainable.

Proposal

TLDR; paginate the legislation listing pages like we do other listing pages, and bring the filtering and sorting functionality to all listing pages

  1. change the legislation listing pages to be usual listing pages with pagination
  2. implement filtering (not search) and sorting for all listing views using normal django forms (and perhaps htmx)
  3. ensure that pocketlaw still works, or decide what needs to be disabled/hidden for pocketlaw (like filtering and sorting)

Things to ponder

longhotsummer commented 2 months ago

done!