Edgewall Software

Opened 14 years ago

Last modified 13 years ago

#9282 closed enhancement

[PATCH] Highlight Unread Events in Timeline — at Initial Version

Reported by: Mikael Relbe Owned by:
Priority: highest Milestone: 1.0
Component: timeline Version: 0.12dev
Severity: minor Keywords: lastvisit
Cc: leho@…, ryano@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This is a suggestion to slightly change the presentation of new events on the Timeline. A patch is attached that implements the following.

New events since the Timeline was viewed last time are highlighted:

Pressing the Update button, revisiting or reloading the Timeline, will make the highlighting go away for the currently viewed events.

No highlighting is made when the Timeline is viewed for the first time!

This behaviour does not interfere with the case when a precise event on the Timeline is browsed, which is the case when a time stamp link directs a user to a precise event on the Timeline.

In case there are unread events on the Timeline, and a user is directed to it via a time stamp link, highlighting of the precise event takes precedence:

Implementation notes

Database usage: The datetime of the latest (topmost) event, presented on the Timeline, is stored in the session_attribute table, with name timeline.lastread on datetime.isoformat.

(I didn't grasp how the date formatters in datefmt.py can be used with microseconds resolution. Using the inbuilt datetime.isoformat() should be fine, I hope you agree on this.)

Change History (3)

by Mikael Relbe, 14 years ago

Attachment: screencapture1.gif added

by Mikael Relbe, 14 years ago

Attachment: screencapture2.gif added

by Mikael Relbe, 14 years ago

Patchfile for Trac 0.12dev-r9588

Note: See TracTickets for help on using tickets.