Skip to content

feat: show relative run time on overview run cards - #320

Merged
timdegroot1996 merged 1 commit into
MarketSquare:mainfrom
MatheusAssisNeves:feat/overview-run-card-relative-time
Sep 13, 2026
Merged

feat: show relative run time on overview run cards#320
timdegroot1996 merged 1 commit into
MarketSquare:mainfrom
MatheusAssisNeves:feat/overview-run-card-relative-time

Conversation

@MatheusAssisNeves

Copy link
Copy Markdown
Contributor

Each run card on the Overview page now shows how long ago the run was executed, e.g. "15 minutes ago", "3 hours 20 minutes ago" or "4 days 2 hours ago", in the bottom right corner of the card. Hovering the text reveals the exact run timestamp, including the stored timezone offset.

  • add parse_run_start, format_relative_time and format_run_start_exact helpers to common.js
  • render the relative time on the Latest Runs cards and on the project bar cards; Total Statistics cards aggregate many runs and are left unchanged
  • position the text absolutely so the existing card layout, and with it the visual test references, stay untouched
  • hide the relative time in the robot visual tests, since the text changes as time passes and would make screenshot comparisons flaky
  • add unit tests for the new helpers and document the behaviour

Closes #318

Each run card on the Overview page now shows how long ago the run was
executed, e.g. "15 minutes ago", "3 hours 20 minutes ago" or "4 days 2 hours ago", in the bottom right corner of the card. Hovering the text reveals the exact run timestamp, including the stored timezone offset.

- add parse_run_start, format_relative_time and format_run_start_exact helpers to common.js
- render the relative time on the Latest Runs cards and on the project bar cards; Total Statistics cards aggregate many runs and are left unchanged
- position the text absolutely so the existing card layout, and with it the visual test references, stay untouched
- hide the relative time in the robot visual tests, since the text changes as time passes and would make screenshot comparisons flaky
- add unit tests for the new helpers and document the behaviour

Closes MarketSquare#318
@timdegroot1996
timdegroot1996 merged commit 9dcf9e1 into MarketSquare:main Sep 13, 2026
3 checks passed
@timdegroot1996

Copy link
Copy Markdown
Collaborator

Looks awesome so I'm merging this. Thanks for the addition and doing the work yourself. Will release this soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Display run start time on Overview run cards

2 participants