Edgewall Software
Modify

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 Ryan J Ollos)

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 Ryan J Ollos, 10 years ago

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.

comment:2 by Ryan J Ollos, 10 years ago

Description: modified (diff)

comment:3 by anonymous, 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".

Last edited 10 years ago by Ryan J Ollos (previous) (diff)

comment:4 by Ryan J Ollos, 10 years ago

Status: newassigned

comment:5 by Ryan J Ollos, 10 years ago

Milestone: 1.1.3next-dev-1.1.x
Owner: Ryan J Ollos removed
Status: assignednew

comment:6 by walty <walty8@…>, 9 years ago

just to be sure, we are talking about the tables inside the admin page, is that correct?

comment:7 by Ryan J Ollos, 9 years ago

Yes, such as the table below Manage Components on the /admin/ticket/components page.

comment:8 by anonymous, 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?

in reply to:  8 comment:9 by walty <walty8@…>, 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.

in reply to:  8 comment:10 by Ryan J Ollos, 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 Ryan J Ollos, 9 years ago

TODO Update deprecation notice at AdminEnumListPlugin when this ticket is concluded.

comment:12 by Ryan J Ollos, 9 years ago

Milestone: next-dev-1.1.xnext-dev-1.3.x

comment:13 by Ryan J Ollos, 5 years ago

Milestone: next-dev-1.3.xnext-dev-1.5.x

Milestone renamed

comment:14 by Ryan J Ollos, 5 years ago

Milestone: next-dev-1.5.xnext-major-releases

comment:15 by figaro, 3 years ago

Keywords: sortable added

Match keyword with #8949.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.