Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Keep chart narration within copy style

pulse-triage[bot]feafe5b8cbda
diff --git a/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx b/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
index 65c6221faa..204f2cc86f 100644
--- a/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
+++ b/frontend-modern/src/components/shared/__tests__/HistoryChart.test.tsx
@@ -157,7 +157,7 @@ describe('HistoryChart', () => {
expect(description).toHaveClass('sr-only');
expect(description).toHaveTextContent('24-hour history contains 2 data points');
expect(description).toHaveTextContent('Values increased from 10.0% to 30.0%.');
- expect(description).toHaveTextContent('Minimum 8.0%; maximum 35.0%.');
+ expect(description).toHaveTextContent('Minimum 8.0%. Maximum 35.0%.');
});
it('synchronizes the hovered timestamp across charts in the same group', () => {
diff --git a/frontend-modern/src/components/shared/__tests__/historyChartModel.branchcov2.test.ts b/frontend-modern/src/components/shared/__tests__/historyChartModel.branchcov2.test.ts
index ddeb543f97..a5f6bda044 100644
--- a/frontend-modern/src/components/shared/__tests__/historyChartModel.branchcov2.test.ts
+++ b/frontend-modern/src/components/shared/__tests__/historyChartModel.branchcov2.test.ts
@@ -78,7 +78,7 @@ describe('history chart text alternatives', () => {
expect(description).toContain('7-day history contains 2 data points');
expect(description).toContain('Values remained unchanged at 10 rpm.');
- expect(description).toContain('Minimum 7 rpm; maximum 14 rpm.');
+ expect(description).toContain('Minimum 7 rpm. Maximum 14 rpm.');
});
it('describes a decreasing multi-point series', () => {
diff --git a/frontend-modern/src/components/shared/historyChartModel.ts b/frontend-modern/src/components/shared/historyChartModel.ts
index ed788e2c35..4f8a6d2511 100644
--- a/frontend-modern/src/components/shared/historyChartModel.ts
+++ b/frontend-modern/src/components/shared/historyChartModel.ts
@@ -113,7 +113,7 @@ export function getHistoryChartAccessibleDescription({
? `Values remained unchanged at ${formatValue(latest.value)}.`
: `Values ${direction} from ${formatValue(first.value)} to ${formatValue(latest.value)}.`;
- return `${rangeLabel} history contains ${data.length} data points from ${formatTimestamp(first.timestamp)} to ${formatTimestamp(latest.timestamp)}. ${changeSummary} Minimum ${formatValue(minimum)}; maximum ${formatValue(maximum)}.`;
+ return `${rangeLabel} history contains ${data.length} data points from ${formatTimestamp(first.timestamp)} to ${formatTimestamp(latest.timestamp)}. ${changeSummary} Minimum ${formatValue(minimum)}. Maximum ${formatValue(maximum)}.`;
}
export function getHistoryChartRefreshIntervalMs(range: HistoryTimeRange) {