Opened 10 years ago
Last modified 3 years ago
#11683 new enhancement
Dynamic table sorting in Admin tables
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | next-major-releases |
Component: | admin/web | Version: | |
Severity: | normal | Keywords: | sortable |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Allow the Components, Milestones, Repositories and Versions (and possible Enum) tables to be sorted. This was mentioned in #10994. For inspiration, see th:#10876 and th:TableSorterPlugin.
Attachments (0)
Change History (15)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Description: | modified (diff) |
---|
comment:3 by , 10 years ago
There's been some interest in the idea over in add sortable tables to wiki. There is a list of related tickets included as well, in addition to a plugin by "psuter".
comment:4 by , 10 years ago
Status: | new → assigned |
---|
comment:5 by , 10 years ago
Milestone: | 1.1.3 → next-dev-1.1.x |
---|---|
Owner: | removed |
Status: | assigned → new |
comment:6 by , 9 years ago
just to be sure, we are talking about the tables inside the admin page, is that correct?
comment:7 by , 9 years ago
Yes, such as the table below Manage Components on the /admin/ticket/components
page.
follow-ups: 9 10 comment:8 by , 9 years ago
while it seems easier to be accomplished using jquery plugin, the tickets explicitly want the feature even if the javascript is disabled, in which case I need to set up some (general) query string in the current admin page URL.
And while setting up the query string, should I consider the case there are multiple tables in the page? Currently each page should contain one table only, but I am not sure if I need to generalize to that case as well.
I wonder if there are some similar pages I could reference to? Or it's something not implemented before?
comment:9 by , 9 years ago
Replying to anonymous:
while it seems easier to be accomplished using jquery plugin, the tickets explicitly want the feature even if the javascript is disabled, in which case I need to set up some (general) query string in the current admin page URL.
And while setting up the query string, should I consider the case there are multiple tables in the page? Currently each page should contain one table only, but I am not sure if I need to generalize to that case as well.
I wonder if there are some similar pages I could reference to? Or it's something not implemented before?
sorry that I forgot to set up the username in this computer before sending the comment.
comment:10 by , 9 years ago
Replying to anonymous:
while it seems easier to be accomplished using jquery plugin, the tickets explicitly want the feature even if the javascript is disabled,
I think we can just implement it in jQuery. It's a progressive enhancement, so there's no harm to users that don't have JavaScript enabled. Anyway, Trac will likely soon move away from requiring no-JavaScript fallbacks.
And while setting up the query string, should I consider the case there are multiple tables in the page?
You could just handle the existing cases for now, and if a case of multiple tables per page arises we can deal with it at that time.
I wonder if there are some similar pages I could reference to? Or it's something not implemented before?
Table sorting using page reload is implemented on the Query page.
comment:11 by , 9 years ago
TODO Update deprecation notice at AdminEnumListPlugin when this ticket is concluded.
comment:12 by , 9 years ago
Milestone: | next-dev-1.1.x → next-dev-1.3.x |
---|
comment:14 by , 5 years ago
Milestone: | next-dev-1.5.x → next-major-releases |
---|
We could also consider first implementing sorting that requires a page refresh, like the Query results page, allowing the dynamic sorting functionality to replace it when JavaScript is enabled. It may not be worth the extra effort though.