fix: show technical timestamps in tooltips

This commit is contained in:
gti
2026-09-22 21:05:39 -03:00
parent f05e4a10a2
commit c2507aee35
9 changed files with 89 additions and 15 deletions
@@ -55,10 +55,25 @@ write/deployment boundaries.
## Concerns
- The new UX contract documents the design's full technical timestamp in the
title attribute. The inspected templates currently pass the human-formatted
timestamp as the title value; runtime code was outside this task's allowed
scope. Align the title value in a runtime task or revise the contract after
deciding the intended presentation.
- Resolved in the timestamp tooltip follow-up below: templates now use raw ISO
UTC timestamps in `title` and retain localized human-readable visible text.
- Full central tests retain the two pre-existing dependency warnings described
above; they did not fail the suite.
## Timestamp tooltip follow-up
Resolved the full technical timestamp concern: agent, job, blocker, and
populated dashboard failure timestamps now keep their localized human-readable
text visible and expose the complete ISO UTC timestamp (including seconds and
`+00:00`) in the `title` attribute. Blocker detail includes first- and
last-seen timestamps. The existing raw ISO serializer now explicitly normalizes
naive SQLite timestamps as UTC, matching the presentation layer's existing
interpretation without changing the view-model shape.
### TDD and verification
- RED: `python -m pytest central/tests/test_control_panel_pages.py -q -k "localized_last_seen or localized_created or localized_seen_times or bounded_failed_job_rows"` — 4 expected failures because the tooltips did not contain the required raw ISO values.
- GREEN: `python -m pytest central/tests/test_control_panel_pages.py -q` — passed (`12 passed`).
- Full suite: `python -m pytest central/tests -q` — passed (`278 passed`, one existing `openpyxl` warning; pytest-asyncio also emits its existing fixture-loop deprecation warning).
- `git diff --check` — passed.
- Commit message: `fix: show technical timestamps in tooltips`.