### Problem

Currently, we use a custom `PaginationMethods` module, which sorts and filters 
data using IDs. Sorting by other attributes (e.g., created_at or updated_at) 
does not work correctly, and implementing sorting with these attributes would 
require changes to `PaginationMethods`. Additionally, the Notes page does not 
currently use Turbo, but refactoring it to support sorting with pagination 
would allow seamless integration of this feature.

### Description

`PaginationMethods` could be modified module to handle sorting on attributes 
other than IDs, integrated with Turbo for pagination. This would allow us to 
add sorting to tables across the site. As an example, this feature could later 
be extended to the Notes page, where adding Turbo pagination would enhance the 
user experience with sortable columns and icons next to headers.

I am eager to do some research and explore the best approach for this. Would 
appreciate any suggestions or ideas on how to proceed.

### Screenshots

On UI end integrating this into tables could look something like this(we would 
just add the sorting icons):
<img width="775" alt="Screenshot 2024-10-13 at 16 21 36" 
src="https://github.com/user-attachments/assets/ca4cddfc-8060-437a-b49a-4eebdb56b554";>


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5259
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to