Edgewall Software

Ticket #6947 (new enhancement)

Opened 9 months ago

Last modified 9 months ago

Change in colouring scheme for nested replies in the ticket

Reported by: Przemyslaw Lapko <przemyslaw.lapko@…> Owned by: cboos
Priority: normal Milestone: 2.0
Component: wiki system Version:
Severity: minor Keywords: citation
Cc:

Description

Currently, when another reply to the ticket's description or comment is added, colours of the reply levels are "shifted" - thus, for example, the original post is marked with different colours in each reply. I think that colours for particular level should be preserver, and just another colour should be introduced "on the left" (currently new colour appears "on the right").

That would make finding the same sentences in different replies much easier (user will just search for the same colour).

Attachments

Change History

follow-up: ↓ 3   Changed 9 months ago by cboos

  • keywords citation added
  • component changed from ticket system to wiki system
  • severity changed from normal to minor
  • milestone set to 2.0

Interesting idea, but I don't exactly see how this could be done in practice.

Perhaps once we have the whole WikiDom? in memory and are able to known the deepest citation level and somehow preallocate the colors to each level

Consider:

> a
>> b

text
> a
>>> c

Here, 'c' should get 'citation1' (say, red), 'b' should get 'citation2' and 'a' should get 'citation3'. But there's no way you can know that before having seen >>> c.

  Changed 9 months ago by anonymous

Yes, it's not so simple. Maybe you could consider "reverting" the colors after displaying every post - so in one post the "green-blue-red" sequence will become "red-blue-green", and in another "green-blue-red-black" (the coloring sequence should be preserved for all posts - just as it works now) will become "black-red-blue-green", and so on.

All you need to know is the deepest citation level in particular post (you can use some incremented variable while processing the post) and some mechanizm to "revert" the order of colors after - maybe playing with the styles?

in reply to: ↑ 1   Changed 9 months ago by thatch

Replying to cboos:

Interesting idea, but I don't exactly see how this could be done in practice.

How about using css to apply the colors? It works just like that, actually.

  Changed 9 months ago by Przemyslaw Lapko <przemyslaw.lapko@…>

Just to explain the reverting idea in some details.

Let's assume, that the default color order is always: ||||...
So your example before reverting will look like:
| a
|| b
text
| a
||| c

The deepest citation level is 3, so we revert 3 colors at the beginning of our default sequence:
||| becomes
|||

Now, let's apply the change to the example:
| a
|| b
text
| a
||| c

Nothing spectacular, right? The actual result will be visible after the next reply.

First, the reply with the default coloring order: ||||...
|| a
||| b
| text
reply
|| a
|||| c

This time, the deepest citation level is 4, so we revert 4 colors at the beginning of our default sequence:
|||| becomes
||||

After applying the change the reply looks like this:
|| a
||| b
| text
reply
|| a
|||| c

Colors in the reply have been just "shifted" to the right comparing to the original post.

Of course the tricky part is "reverting" - but I think it could be done manipulating styles (some css and javascript).

Add/Change #6947 (Change in colouring scheme for nested replies in the ticket)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.