Opened 13 years ago
Last modified 4 years ago
#10532 new enhancement
Show word diff when summary changes (instead of <old value> to <new value>)
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | next-dev-1.7.x |
Component: | ticket system | Version: | 0.13dev |
Severity: | minor | Keywords: | changelog diff |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
In this summary change you do not see any changes at once - and I guess there is not a change at all (which might be a defect).
It would be better readable if summary changes would be displayed in a diff view instead of "<old value> to <new value>" manner, since most summary changes are typos or small changes.
If it is a bigger change (maybe using some smart algorithm to determine that it has changed more than 50%) Trac could display it in this way: <old value> to <new value>.
Attachments (4)
Change History (17)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Milestone: | → unscheduled |
---|---|
Severity: | normal → minor |
What, you didn't see s/buttom/bottom/ at once? ;-)
I'm not sure whether that would look good or not… some experimentation would be in order.
And yes, #6858 would perhaps help to make the diff highlighting more pertinent, but the current way is already fine in most cases, like in this specific case:
-
(a) a vs. (b) b
a b 1 [PATCH] Prev, Query, Next links at b uttom of ticket page1 [PATCH] Prev, Query, Next links at bottom of ticket page
comment:3 by , 13 years ago
A full colored diff would would maybe be a bit distracting. How about something more subtle like underlining the additions / deletions:
- Summary changed from [PATCH] Prev, Query, Next links at buttom of ticket page to [PATCH] Prev, Query, Next links at bottom of ticket page
Maybe just add some linebreaks:
- Summary changed from
[PATCH] Prev, Query, Next links at buttom of ticket page to
[PATCH] Prev, Query, Next links at bottom of ticket page
by , 9 years ago
Attachment: | T10532_underline_property_diff.patch added |
---|
comment:4 by , 9 years ago
The attached patch attempts to implement the underlining. I'm not quite sure what the best criteria are to trigger this mode. We probably shouldn't underline very big or obvious short changes. Also it's unclear how the reporter and owner fields (and other custom text fields) should be handled.
Tests may need to be updated when this is decided.
by , 9 years ago
Attachment: | Underlined.png added |
---|
by , 9 years ago
Attachment: | Shadowed.png added |
---|
comment:5 by , 9 years ago
Seems like a good change if the algorithm is tuned a bit, and looks pretty good on top of #11835. I tried using a background color rather than underline since it won't hide characters such as the underscore. It's probably too distracting.
I like always using the → between old and new rather than "changed from old to new".
comment:6 by , 9 years ago
Agreed, #11835 should definitively be taken into account here with the →. I had not considered the underlined underscore problem. Subjectively I still prefer underlining.
by , 9 years ago
Attachment: | propchanges-highlighting.png added |
---|
comment:7 by , 9 years ago
I would like to use highlight rather than underline. I don't think underline decorating is readable.
If you want to use arrow character (→
), it would be good to use %(old)s → %(new)s, simply.
follow-up: 9 comment:8 by , 9 years ago
OK, that does look quite nice. What do you think about only showing these on :hover
?
comment:9 by , 9 years ago
Replying to psuter:
What do you think about only showing these on
:hover
?
That sounds good to me, so that it won't be too distracting.
comment:10 by , 9 years ago
Keywords: | changelog diff added |
---|---|
Milestone: | unscheduled → next-dev-1.3.x |
Owner: | set to |
Status: | new → assigned |
Summary: | Show diff when summary changes (instead of <old value> to <new value>) → Show word diff when summary changes (instead of <old value> to <new value>) |
Looks nice, but I'd like to take it one step further:
Résumé : | #10533 (before) → #10532 (after) |
---|
comment:12 by , 5 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
Well I guess it depends on ticket #6858, right?