Update ui/timeline.py
Browse files- ui/timeline.py +7 -1
ui/timeline.py
CHANGED
|
@@ -108,13 +108,19 @@ def create_timeline(
|
|
| 108 |
type_label = TYPE_LABELS.get(task_type, "Task")
|
| 109 |
label = f"{task_title}"
|
| 110 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
hover_text = (
|
| 112 |
f"<b>{task_title}</b><br>"
|
| 113 |
f"<span style='color:#94a3b8'>Time:</span> {start_time} - {end_time} ({duration}min)<br>"
|
| 114 |
f"<span style='color:#94a3b8'>Priority:</span> {priority.upper()}<br>"
|
| 115 |
f"<span style='color:#94a3b8'>Status:</span> {status.upper()}<br>"
|
| 116 |
f"<span style='color:#94a3b8'>Type:</span> {type_label}<br>"
|
| 117 |
-
f"{
|
| 118 |
)
|
| 119 |
|
| 120 |
start_mins = _time_to_minutes(start_time)
|
|
|
|
| 108 |
type_label = TYPE_LABELS.get(task_type, "Task")
|
| 109 |
label = f"{task_title}"
|
| 110 |
|
| 111 |
+
conflict_text = (
|
| 112 |
+
"<span style='color:#ef4444'><b>CONFLICT DETECTED</b></span>"
|
| 113 |
+
if is_conflicted
|
| 114 |
+
else "<span style='color:#34d399'>No conflict</span>"
|
| 115 |
+
)
|
| 116 |
+
|
| 117 |
hover_text = (
|
| 118 |
f"<b>{task_title}</b><br>"
|
| 119 |
f"<span style='color:#94a3b8'>Time:</span> {start_time} - {end_time} ({duration}min)<br>"
|
| 120 |
f"<span style='color:#94a3b8'>Priority:</span> {priority.upper()}<br>"
|
| 121 |
f"<span style='color:#94a3b8'>Status:</span> {status.upper()}<br>"
|
| 122 |
f"<span style='color:#94a3b8'>Type:</span> {type_label}<br>"
|
| 123 |
+
f"{conflict_text}"
|
| 124 |
)
|
| 125 |
|
| 126 |
start_mins = _time_to_minutes(start_time)
|