Repository navigation
Add Timestamp to Report - #154
Merged
Merged
Conversation
To ensure it's fresh when we need it to be.
✅ Visual Diff Approved❌ Visual Diff Report — FAILED270 images compared: 256 different · 14 identical DetailsDifferences (256)
Generated by visual-differ at 2026-11-09T16:43:21.017Z View the report. |
Contributor
There was a problem hiding this comment.
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
generatedAtin 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To ensure it's fresh when we need it to be.