Skip to content

Commit 0bb98a8

Browse files
authored
Updates to overview page - header and footer (#1435)
Changes to the overview page - updated header and footer: ## Header <img width="1391" height="536" alt="image" src="https://github.com/user-attachments/assets/e67fbd3e-c9db-4080-946c-2d1d26ec0fe8" /> ## Footer <img width="1122" height="125" alt="image" src="https://github.com/user-attachments/assets/cdd77225-bbc8-49b4-b07b-06f6ca97490a" />
2 parents 773d053 + b49e21a commit 0bb98a8

3 files changed

Lines changed: 339 additions & 398 deletions

File tree

src/powershell/assets/ReportTemplate.html

Lines changed: 34 additions & 34 deletions
Large diffs are not rendered by default.

src/report/src/components/layouts/Footer.tsx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,29 @@ import { reportData } from "@/config/report-data";
44
// import { ModeToggle } from "../mode-toggle";
55

66
export function Footer() {
7-
// Format the assessment date
8-
const formatDate = (dateString: string) => {
7+
// Format the assessment date and time
8+
const formatDateTime = (dateString: string) => {
99
try {
10-
return new Date(dateString).toLocaleDateString('en-US', {
10+
const date = new Date(dateString);
11+
const dateStr = date.toLocaleDateString('en-US', {
1112
year: 'numeric',
1213
month: 'long',
1314
day: 'numeric'
1415
});
16+
const timeStr = date.toLocaleTimeString('en-US', {
17+
hour: '2-digit',
18+
minute: '2-digit',
19+
second: '2-digit',
20+
hour12: false
21+
});
22+
return `${dateStr}, ${timeStr} UTC`;
1523
} catch {
1624
return 'Invalid Date';
1725
}
1826
};
1927

20-
const assessmentDate = reportData.ExecutedAt ? formatDate(reportData.ExecutedAt) : 'Not Available';
28+
const assessmentDateTime = reportData.ExecutedAt ? formatDateTime(reportData.ExecutedAt) : 'Not Available';
29+
const moduleVersion = reportData.CurrentVersion || 'Unknown';
2130

2231
return (
2332
<footer className="border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
@@ -120,7 +129,9 @@ export function Footer() {
120129
Terms
121130
</a>
122131
<span></span>
123-
<span>{assessmentDate}</span>
132+
<span>v{moduleVersion}</span>
133+
<span></span>
134+
<span>{assessmentDateTime}</span>
124135
</div>
125136

126137
{/* Theme Toggle (Hidden but available for future use) */}

0 commit comments

Comments
 (0)