perma icon indicating copy to clipboard operation
perma copied to clipboard

Filter/Sort/Found count bar for Your Perma Links

Open thisisdano opened this issue 8 years ago • 2 comments

Your Perma Links should have a filter/sort/found count bar (and a clear filters bar) similar to what we have for users.

screen shot 2015-09-28 at 1 00 33 pm

thisisdano avatar Sep 28 '15 17:09 thisisdano

Implementation notes: the user lists are generated and rendered quite differently than link lists are.

User lists are gathered as part of the Django view, then are passed through a Django paginator that is smart enough to only display/pull into memory the desired subset, while still being aware of the total count.

Link lists are pulled into the create page via javascript, 20 at a time, by AJAX calls to our API, and more links are loaded dynamically via a JS infinite scroll mechanism.

So, even if these sort and filter bars looks the same to the user, their implementation will be very different. Sorting and filtering of links will require:

  • extending the API to sort and filter as desired,
  • extending the API to return a "total" count along with every link list
  • writing javascript to appropriately call the API when filter/sort buttons are clicked, and optionally,
  • writing javascript using history.pushState to update the URL/browser history with the folder/filter/sort params on application and removal.

rebeccacremona avatar Jan 09 '17 18:01 rebeccacremona

for recordkeeping's sake: Brett Williams with Ontario Medical Association requested being "able to limit my searches to titles, descriptions, notes or the ‘Created By’ field. It would also be nice if users, (but especially registrar users) could see a page of Perma links created by themselves attached to the Registrar account." Becky replied that a richer sort/filter is on our roadmap

bjohnson747 avatar Mar 28 '18 17:03 bjohnson747