#11835 closed enhancement (fixed)
cosmetic improvements for ticket changelog
Reported by: | Christian Boos | Owned by: | Christian Boos |
---|---|---|---|
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 |
||
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)
Attachments (2)
Change History (41)
comment:1 by , 10 years ago
by , 10 years ago
Attachment: | 20141117T2020.png added |
---|
comment:2 by , 10 years ago
I definitely like:
- Hiding the editor buttons until hover.
- Property changes emphasis.
- The addition of some styling for
span
s returned byChrome.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 theul.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 thecomment:N
in theh3
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 fromtrac-author-user
looks to be hidden under theh3
's border. - Maybe the class name
trac-author-self
would be more clear for devs thantrac-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 , 10 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 ofdisplay: 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 , 10 years ago
Cc: | added |
---|
comment:5 by , 10 years ago
Ok, one step further, same branch cboos.git@t11835-ticket-changelog-facelift (below in chronological order):
- [973a42b0/cboos.git] (#11835): fix Show change comments checkbox
- [a95ba619/cboos.git] (#11835): improve the visual appearance of the property changes.
- [0adf23c3/cboos.git] (#11835): try floating left the property change boxes.
- [012fec24/cboos.git] (#11835): make sure the boxed author info doesn't touch bottom borders.
- [c6297dbc/cboos.git] (#11835): make sure that comment buttons are always reachable.
comment:6 by , 10 years ago
Next iteration, same branch cboos.git@t11835-ticket-changelog-facelift (below in chronological order):
- [09483e25/cboos.git] bugfix checked → :checked
- [90d5716b/cboos.git] (#11835): the direction of the vertical arrows now corresponds to the changelog order
- [6eb45534/cboos.git] (#11835): move small yellow boxes on the right
- [7a827e08/cboos.git] (#11835): a few changes on global style
- [3a036145/cboos.git] (#11835): the change controls are always visible if neither the comments nor the property changes are shown
by , 10 years ago
Attachment: | 20141130T0422.png added |
---|
follow-up: 8 comment:7 by , 10 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 thetrac-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.
comment:8 by , 10 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 thetrac-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].
comment:9 by , 10 years ago
Milestone: | 1.1.3 → 1.1.4 |
---|
comment:10 by , 10 years ago
Milestone: | 1.1.4 → 1.1.5 |
---|
comment:11 by , 10 years ago
Milestone: | 1.1.5 → 1.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 , 9 years ago
Milestone: | 1.1.6 → next-dev-1.1.x |
---|
comment:13 by , 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 , 9 years ago
Changes rebased in log:rjollos.git:t11835-ticket-changelog-facelift.1. Additional review and testing is needed.
comment:15 by , 9 years ago
Changes rebased in log:rjollos.git:t11835-ticket-changelog-facelift.2. Any thoughts on the changes?
comment:16 by , 9 years ago
Yes, thanks a lot for reviving this! (Sorry for not having found the time to do it myself…)
comment:17 by , 9 years ago
Milestone: | next-dev-1.1.x → 1.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 , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:19 by , 9 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 , 9 years ago
API Changes: | modified (diff) |
---|---|
Release Notes: | modified (diff) |
Resolution: | → fixed |
Status: | assigned → closed |
Tests fixed in [14395].
comment:21 by , 9 years ago
Owner: | changed from | to
---|
comment:22 by , 9 years ago
DONE <pre> blocks in comments would benefit from a clear:right
, see e.g. ticket:10562#comment:7
comment:23 by , 9 years ago
Reporter and owner links are rendered with username, not user's full name. Before [14393], the full names was used. That is intentional?
comment:24 by , 9 years ago
That must be a regression. Probably the changes weren't rebased correctly. I'll fix it.
comment:25 by , 9 years ago
Regression fixed in [14456].
How about the following change to address comment:22?
-
trac/htdocs/css/ticket.css
diff --git a/trac/htdocs/css/ticket.css b/trac/htdocs/css/ticket.css index ce4fbd2..68fa823 100644
a b ul.children > li.child { 144 144 border-radius: .8em; 145 145 } 146 146 #changelog ul.children h3 { margin-right: .4em } 147 #changelog pre.wiki, #changelog div.code { clear: right } 147 148 148 149 .in-reply-to:before { content: "↑" } 149 150 .follow-up:before { content: "↓" }
comment:26 by , 9 years ago
I committed the comment:25 CSS rule in [14465]. t.e.o has been updated to r14465.
comment:27 by , 9 years ago
The order of form buttons in ticket comment is reversed after those changes.
- 1.0-stable / ticket comment
- Reply, Edit, Delete
- 1.0-stable / ticket description
- Reply, Delete
- 1.2dev / ticket comment
- Delete, Edit, Reply (should be Reply, Edit, Delete)
- 1.2dev / ticket description
- Reply, Delete
follow-up: 29 comment:28 by , 9 years ago
Yet another issue can be seen with attachment comments below comment:3:ticket:10323.
comment:29 by , 9 years ago
Replying to Ryan J Ollos:
Yet another issue can be seen with attachment comments below comment:3:ticket:10323.
Ok, kicking out the max-width seems to fix it. IIRC, it was there to avoid such issues but since it doesn't work in case of overflow…
comment:30 by , 9 years ago
The CSS rule in [14465] doesn't address the issue for comment previews. For that, we'd need a rule like:
#ticketchange pre.wiki, #ticketchange div.code { clear: right }
… or maybe there is a more elegant solution.
comment:31 by , 9 years ago
comment:27, comment:28 and comment:30 will be addressed in #12347, along with comment:9:ticket:12120.
follow-up: 33 comment:32 by , 9 years ago
If Show property changes is unselected and linking to the change (for example comment:5:ticket:11901), there's no anchor on the page to scroll to. Maybe we could Show property changes in this case. Do you think this case is worth addressing?
comment:33 by , 9 years ago
Replying to Ryan J Ollos:
Do you think this case is worth addressing?
Yes, but I think it's not serious enough to be worth the trouble of some merge conflict, so this could wait for 1.3.1 and I'll do it directly on the Jinja2 branch (now if you feel fixing it before, I won't mind ;-) ).
comment:34 by , 9 years ago
Fixing in a future version is fine with me. I actually made the note about this many months ago and just never got around to posting a comment, so I haven't felt it to be too urgent an issue.
comment:35 by , 9 years ago
Revert button in property changes box works after auto-preview. The behavior feels broken revert button and annoys the user.
follow-up: 39 comment:37 by , 9 years ago
$(this).closest("li").remove();
doesn't work.
-
trac/ticket/templates/ticket.html
diff --git a/trac/ticket/templates/ticket.html b/trac/ticket/templates/ticket.html index 48e00918b..acda2d4e9 100644
a b 55 55 input = $("#propertyform input[name=cc_update]").val([]); 56 56 } 57 57 input.change(); 58 $(this).closest("li").remove(); 58 // Remove a row to revert field 59 if ($(this).closest("tbody").children("tr").length === 1) 60 $(this).closest(".trac-change-panel").remove(); 61 else 62 $(this).closest("tr").remove(); 59 63 return false; 60 64 }); 61 65 }
See changes in cboos.git@t11835-ticket-changelog-facelift (below in chronological order):