Edgewall Software

Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#11835 closed enhancement (fixed)

cosmetic improvements for ticket changelog — at Version 20

Reported by: Christian Boos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.2
Component: ticket system Version: 1.1dev
Severity: minor Keywords:
Cc: leho@… Branch:
Release Notes:

Restyled the ticket changelog. Added a Show comments preference.

API Changes:

Usernames are wrapped in a span with class trac-author-user.

Internal Changes:

Description

I'd like to propose a few cosmetic improvements for the ticket view, mainly for the #changelog:

  • leaner threaded mode
  • have the inline buttons (reply, edit, delete) appear on hover (cf. r13333)
  • highlight the author if it matches the user
  • better identify the property changes and emphasize the new values
  • add a show/hide control for the comments themselves (i.e. only showing the changes)

Change History (22)

comment:1 by Christian Boos, 9 years ago

See changes in cboos.git@t11835-ticket-changelog-facelift (below in chronological order):

by Ryan J Ollos, 9 years ago

Attachment: 20141117T2020.png added

comment:2 by Ryan J Ollos, 9 years ago

I definitely like:

  • Hiding the editor buttons until hover.
  • Property changes emphasis.
  • The addition of some styling for spans returned by Chrome.authorinfo.

I'll need to consider for a while:

  • The small yellow panel for property changes.
  • Hiding change comments (see another comment below).

Some small things to consider:

  • Removing some border radius from #ticketchange .changes
    border-bottom-right-radius: 0.4em;
    
  • In the threaded view (above) it would be nice if the li.child border swept smoothly into the ul.changes border creating a 1px wide border on the overlap rather than combining to form a 2px wide border.
  • The trac-ticket-buttons should push the comment:N in the h3 to the left, but only when hovering over the comment above it?
  • I like the border around trac-author-user, but it always feels odd to me when two borders intersect. The border from trac-author-user looks to be hidden under the h3's border.
  • Maybe the class name trac-author-self would be more clear for devs than trac-author-user? I'm unsure.
  • The view when Show change comments is checked view feels odd to me initially (one refinement for later would be to make this unchecked by default). Rather than hiding changing comments, I might be wanting to collapse them all, and then expand only the one or ones that I'm interested in.

comment:3 by Christian Boos, 9 years ago

Thanks for the comments! I'll try to integrate your feedback in the next iteration of the branch.

A few precisions:

  • for the hovering, I tried to avoid moving content (using visibility: hidden instead of display: none), which works well in the full view, but leads to strange effects you see above when you hide the comments; so I'll reconsider or find another positioning
  • I also thought about trac-author-self, but if this is appeals to the dev, it could maybe a bit obscure for the admin; anyway, it should be clear that by "user" we mean the currently logged in user (e.g. #150)
  • for the Show change comments it's just a bug, the comments should be of course shown by default (Show comments would be clear enough); collapsing/expanding them would be nice, yes

comment:4 by lkraav <leho@…>, 9 years ago

Cc: leho@… added

comment:5 by Christian Boos, 9 years ago

Ok, one step further, same branch cboos.git@t11835-ticket-changelog-facelift (below in chronological order):

comment:6 by Christian Boos, 9 years ago

Next iteration, same branch cboos.git@t11835-ticket-changelog-facelift (below in chronological order):

by Ryan J Ollos, 9 years ago

Attachment: 20141130T0422.png added

comment:7 by Ryan J Ollos, 9 years ago

It is looking good. Some minor comments:

  • Having the Reply / Edit buttons appear below the .trac-change-panel feels odd, but I'm not sure how else to deal with that. If left there, we should probably have slightly more spacing between the panel border and the button borders.
  • Should the Reply button in the Description region autohide as well?
  • The main drawback I see to the .trac-change-panel is that images will get pushed down the page when they overlap the panel, but I like the styling of the panel. The position of the image probably won't be an issue for most cases.
  • Unrelated to your changes, but the users in the ticket property changes for the CC field aren't wrapped in a span with one of the trac-author classes (I recall thinking about this while working on #11145).
  • One small issue when editing comments is that the wikitoolbar no longer sits above the textarea:

I'll do some more testing soon.

in reply to:  7 comment:8 by Christian Boos, 9 years ago

Replying to rjollos:

It is looking good. Some minor comments:

  • Having the Reply / Edit buttons appear below the .trac-change-panel feels odd, but I'm not sure how else to deal with that. If left there, we should probably have slightly more spacing between the panel border and the button borders.

Well, I went with some back and forth, above, below… The problem of putting the controls above is that the property changes box may feel too detached from the change title to which it belongs to, i.e. it might look closer to the next change title. I tried to mitigate this in the last changeset, please see how it works for you.

  • Should the Reply button in the Description region autohide as well?

I don't think so. The main reason for hiding the buttons for the comments is their duplication. For the ticket box, the controls appear once, at different places and don't give this feeling of redundancy, I think. There are more reasons: with the related #10948 changes, I'll have the Modify link replaced by the "Edit" button, and this one should not be hidden. Having some hidden and some others not in the ticket box will be confusing.

  • The main drawback I see to the .trac-change-panel is that images will get pushed down the page when they overlap the panel, but I like the styling of the panel. The position of the image probably won't be an issue for most cases.

Well, OK, but I also think it's not a big deal. You'll always have the possibility to move some text before the image if it really looks too ugly with the image first.

  • Unrelated to your changes, but the users in the ticket property changes for the CC field aren't wrapped in a span with one of the trac-author classes (I recall thinking about this while working on #11145).

Noted.

One small issue when editing comments is that the wikitoolbar no longer sits above the textarea: […]

Easy to fix with a clear: right.

See [d25959ab/cboos.git].

Last edited 9 years ago by Christian Boos (previous) (diff)

comment:9 by Ryan J Ollos, 9 years ago

Milestone: 1.1.31.1.4

comment:10 by Ryan J Ollos, 9 years ago

Milestone: 1.1.41.1.5

comment:11 by Ryan J Ollos, 9 years ago

Milestone: 1.1.51.1.6

Retargeting tickets that I think won't be completed for 1.1.5, but please move back if I'm incorrect.

comment:12 by Ryan J Ollos, 9 years ago

Milestone: 1.1.6next-dev-1.1.x

comment:13 by Ryan J Ollos, 9 years ago

I've rebased these changes against the current trunk. I'll post the changes after rebasing again when #7339 is committed.

comment:14 by Ryan J Ollos, 9 years ago

Changes rebased in log:rjollos.git:t11835-ticket-changelog-facelift.1. Additional review and testing is needed.

comment:15 by Ryan J Ollos, 8 years ago

Changes rebased in log:rjollos.git:t11835-ticket-changelog-facelift.2. Any thoughts on the changes?

comment:16 by Christian Boos, 8 years ago

Yes, thanks a lot for reviving this! (Sorry for not having found the time to do it myself…)

comment:17 by Ryan J Ollos, 8 years ago

Milestone: next-dev-1.1.x1.2

The changes look good to me. I'll be doing more testing and will wait at least a few days for feedback before pushing.

comment:18 by Ryan J Ollos, 8 years ago

Owner: changed from Christian Boos to Ryan J Ollos
Status: newassigned

comment:19 by Ryan J Ollos, 8 years ago

Committed to trunk in [14393:14394]. I always seem to make an error pushing from Git to SVN! Also, changes broke tests, which I thought I had run. I will fix the issues shortly.

comment:20 by Ryan J Ollos, 8 years ago

API Changes: modified (diff)
Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Tests fixed in [14395].

Note: See TracTickets for help on using tickets.