Implement delay timing

This commit is contained in:
2026-02-17 21:49:33 +00:00
parent dc28745fc3
commit eedad846ef
6 changed files with 310 additions and 34 deletions

View File

@@ -828,7 +828,7 @@ def _glance_items_from_state(gap_fragment=None, metric_fragments=None, person_id
items = []
if gap_fragment:
tooltip_parts = [
f"{gap_fragment.get('focus') or 'Response delay'}",
f"{gap_fragment.get('focus') or 'Delay'}",
f"Delay {gap_fragment.get('lag') or '-'}",
f"Score {gap_fragment.get('score') or '-'}",
]
@@ -842,7 +842,7 @@ def _glance_items_from_state(gap_fragment=None, metric_fragments=None, person_id
)
items.append(
{
"label": "Response Delay",
"label": "Delay",
"value": f"{gap_fragment.get('lag') or '-'} · {gap_fragment.get('score') or '-'}",
"tooltip": " | ".join(tooltip_parts),
"url": _insight_detail_url(