Edgewall Software
Modify

Opened 9 years ago

Last modified 8 years ago

#12212 new enhancement

Order timeline filters alphabetically by label

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: next-major-releases
Component: timeline Version:
Severity: normal Keywords: bitesized
Cc: Branch:
Release Notes:

Timeline filters are sorted alphabetically by label.

API Changes:
Internal Changes:

Description

The timeline filters seems to have a random ordering, determined by order in which the extensions points are discovered. It would be nice to have a predictable ordering and it seems logical to order alphabetically by label.

Attachments (1)

20151001T172850.png (9.1 KB ) - added by Jun Omae 9 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Ryan J Ollos, 9 years ago

Milestone: next-major-releases1.2
Owner: set to Ryan J Ollos
Release Notes: modified (diff)
Status: newassigned

Proposed changes:

  • trac/timeline/templates/timeline.html

    diff --git a/trac/timeline/templates/timeline.html b/trac/timeline/templates/timeline.html
    index 4ebb4de..a8f3263 100644
    a b  
    3232        <label>by author <input type="text" size="16" name="authors" value="$authors" /></label>
    3333       </div>
    3434       <fieldset>
    35         <label py:for="filter in filters">
     35        <label py:for="filter in sorted(filters, key=lambda d: d['label'])">
    3636          <input type="checkbox" name="${filter.name}"
    3737                 checked="${filter.enabled or None}"/> ${filter.label}
    3838        </label>

by Jun Omae, 9 years ago

Attachment: 20151001T172850.png added

comment:2 by Jun Omae, 9 years ago

The patch would break position of repositories in the filters. In addition, I don't think it would be good to CJK users.

Last edited 9 years ago by Jun Omae (previous) (diff)

comment:3 by Ryan J Ollos, 8 years ago

Milestone: 1.2next-major-releases
Owner: Ryan J Ollos removed
Status: assignednew

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.