Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move table sorting function to column header #308

Merged
merged 3 commits into from
Aug 25, 2023

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Aug 24, 2023

CleanShot 2023-08-24 at 15 48 23@2x

Replaces the Sort dropdowns on the /all, /my and /drafts routes with interactive table headers. Currently only the "Created" column is sortable but the long-term goal is for all table headers to be interactive.

The Table::SortableHeader has a larger API than we're currently using (e.g., ability to render a button instead of an anchor, the ability to pass in a custom sort function) in anticipation of new functionality we're prototyping. When those functions are implemented, test coverage will expand.

Also cleans up some type errors on the Pagination components.

@jeffdaley jeffdaley marked this pull request as ready for review August 24, 2023 19:51
@jeffdaley jeffdaley requested a review from a team as a code owner August 24, 2023 19:51
@jeffdaley jeffdaley merged commit 282626a into main Aug 25, 2023
1 check passed
@jeffdaley jeffdaley deleted the jeffdaley/maybe-sortable-column-headers branch August 25, 2023 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants