Skip to content

Add Timestamp to Report - #154

Merged
jrjohnson merged 1 commit into
mainfrom
timestamp-report
Nov 9, 2026
Merged

jrjohnson merged 1 commit into
mainfrom
timestamp-report

Conversation

@jrjohnson

Copy link
Copy Markdown
Owner

To ensure it's fresh when we need it to be.

To ensure it's fresh when we need it to be.
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

✅ Visual Diff Approved

❌ Visual Diff Report — FAILED

270 images compared: 256 different · 14 identical

Details

Differences (256)

File Diff % Notes
chromium-1280x720-baseline-screenshot-for-checkerboard-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-color-grid-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-dimension-mismatch-on-color-depth-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-gradient-16bit-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-gradient-mixed-depth-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-greyscale-with-alpha-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-landscape-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-night-sky2-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-opaque-landscape-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-resized-banner-png.png 0.01%
chromium-1280x720-baseline-screenshot-for-webapp2-png.png 5.67%
chromium-1280x720-candidate-screenshot-for-checkerboard-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-color-grid-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-dimension-mismatch-on-color-depth-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-gradient-16bit-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-gradient-mixed-depth-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-greyscale-with-alpha-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-landscape-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-night-sky2-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-opaque-landscape-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-resized-banner-png.png 0.01%
chromium-1280x720-candidate-screenshot-for-webapp2-png.png 5.80%
chromium-1280x720-new-candidate-screenshot-for-happy-chihuahua-png.png 6.59%
chromium-1280x720-report.png 0.01%
chromium-1280x720-visual-difference-highlighting-changed-pixels-in-checkerboard-png.png 0.01%
… and 231 more

Generated by visual-differ at 2026-11-09T16:43:21.017Z

View the report.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

🟢 Approval recommended

The change is straightforward and is backed by added unit and end-to-end tests that explicitly check the presence and ISO-8601 UTC format of the generated timestamps in both HTML and Markdown outputs.

No open issues 🎉

What changed in this PR

This pull request adds a generation timestamp to the project’s generated reports so consumers can tell when a report was produced.

Changes:

  • Introduce a currentTimestamp() utility that returns an ISO-8601 UTC timestamp.
  • Add a timestamp to the HTML report footer (via generatedAt in the template data).
  • Add a timestamp footer to the Markdown report.
  • Extend unit and end-to-end tests to validate timestamp presence/format.

This pull request requires changes.

File Summary
test/​utils.test.ts Adds unit tests for currentTimestamp() format and recency.
test/​report-generator.test.ts Verifies the HTML report footer includes a generation timestamp.
test/​markdown-report-generator.test.ts Verifies the Markdown report footer includes a generation timestamp.
test/​e2e.test.ts Ensures end-to-end output includes timestamps in both HTML and Markdown reports.
templates/​report.html Updates the HTML footer to render generatedAt inside a <time> element.
lib/​utils.ts Introduces currentTimestamp() helper.
lib/​report-generator.ts Populates generatedAt template value via currentTimestamp().
lib/​markdown-report-generator.ts Appends a timestamped footer to the Markdown report.

Review effort: Balanced

@jrjohnson
jrjohnson merged commit dd08bb4 into main Nov 9, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants