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.

Make Patrol finding options a true disclosure

pulse-triage[bot]78f225a933eb
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index afc092b152..b3b465376c 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,34 +1,37 @@
{
"version": 1,
- "base_sha": "1e8d4ea92b2d721b6148a2f07f876f4264ea70d5",
- "verified_at": "2026-08-31T20:31:17Z",
+ "base_sha": "57598cbf3ef8eae78cb7a1c71631d0bf04a130f9",
+ "verified_at": "2026-08-31T21:19:58Z",
"result": "passed",
- "changed_paths": ["frontend-modern/src/components/Toast/Toast.tsx"],
+ "changed_paths": [
+ "frontend-modern/src/components/AI/FindingsPanel.tsx"
+ ],
"content_sha256": {
- "frontend-modern/src/components/Toast/Toast.tsx": "8dbabcd3c92884b8edb9320b465b48d7256bffa7bbb30bee2b275d5b023d1ecb"
+ "frontend-modern/src/components/AI/FindingsPanel.tsx": "18c7fbdd3a27b634675cfc039f7bfaec43015f5d8ec9d6a15d92ad1f93d4a5f7"
},
- "routes": ["/"],
+ "routes": [
+ "/patrol"
+ ],
"viewports": [
{
- "width": 1280,
- "height": 800
+ "width": 1440,
+ "height": 900
},
{
- "width": 320,
- "height": 720
+ "width": 390,
+ "height": 844
}
],
"states": [
- "expanded error detail remained fully visible inside a 296px-wide narrow notification card",
- "pointer hover kept a timed informational notification visible past its original deadline",
- "keyboard focus kept a timed error notification visible past its original deadline",
- "desktop success notification settled at the 500px width cap with its right viewport inset"
+ "active Patrol finding options collapsed with aria-expanded false",
+ "active Patrol finding outcome review expanded with Resolve or dismiss controls visible",
+ "same finding options collapsed again with its review panel removed",
+ "desktop and narrow layouts remained readable and fit without horizontal overflow"
],
"interactions": [
- "opened expandable error details and visually inspected wrapping at 320px",
- "dismissed an expanded notification with its named close action",
- "hovered a timed notification, moved away, and observed dismissal continue from remaining time",
- "focused a timed notification action, moved focus away, and observed dismissal continue from remaining time",
- "resized current-build Chromium from 320x720 to 1280x800 and measured notification geometry"
+ "opened and closed one finding options disclosure by pointer at desktop width",
+ "opened the same disclosure with keyboard Enter and closed it with Space at narrow width",
+ "verified the visible Finding options label is included in the accessible name",
+ "verified aria-expanded and aria-controls matched the rendered disclosure state"
]
}
diff --git a/frontend-modern/src/components/AI/FindingsPanel.tsx b/frontend-modern/src/components/AI/FindingsPanel.tsx
index 737d3a6c78..7bfa68e38c 100644
--- a/frontend-modern/src/components/AI/FindingsPanel.tsx
+++ b/frontend-modern/src/components/AI/FindingsPanel.tsx
@@ -989,8 +989,13 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {
props.onFindingClick?.(finding);
};
- const openFindingOptions = (event: MouseEvent) => {
+ const toggleFindingOptions = (event: MouseEvent) => {
event.stopPropagation();
+ if (expandedId() === finding.id && manageOpenId() === finding.id) {
+ setExpandedId(null);
+ setManageOpenId(null);
+ return;
+ }
setExpandedId(finding.id);
setManageOpenId(finding.id);
props.onFindingClick?.(finding);
@@ -1347,10 +1352,10 @@ export const FindingsPanel: Component<FindingsPanelProps> = (props) => {
>
<button
type="button"
- aria-label={`Open resolve and dismiss options for ${title.label}`}
+ aria-label={`Finding options for ${title.label}`}
aria-expanded={manageOpenId() === finding.id}
aria-controls={`finding-${finding.id}-manage`}
- onClick={openFindingOptions}
+ onClick={toggleFindingOptions}
class="inline-flex min-h-11 items-center rounded border border-border bg-surface px-2 py-1 text-xs font-medium text-base-content transition-colors hover:bg-surface-hover focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 sm:min-h-0"
title="Resolve, dismiss, remember as expected, or create a rule"
>
diff --git a/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx b/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx
index 44e3763379..1ef405b867 100644
--- a/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx
+++ b/frontend-modern/src/components/AI/__tests__/FindingsPanel.links.test.tsx
@@ -565,13 +565,13 @@ describe('FindingsPanel resource links', () => {
expectCollapsedFinding('Provider connection issue');
});
- it('opens durable finding outcomes directly from an active Patrol row', async () => {
+ it('toggles durable finding outcomes directly from an active Patrol row', async () => {
render(() => <FindingsPanel findingsSource="patrol" />);
await waitFor(() => expect(mockState.loadPatrolFindings).toHaveBeenCalled());
const options = screen.getByRole('button', {
- name: 'Open resolve and dismiss options for Provider connection issue',
+ name: 'Finding options for Provider connection issue',
});
expect(options).toHaveAttribute('aria-expanded', 'false');
@@ -584,6 +584,13 @@ describe('FindingsPanel resource links', () => {
expect(screen.getByRole('button', { name: 'Dismiss: Later' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Create rule from this' })).toBeInTheDocument();
+ fireEvent.click(options);
+ expect(options).toHaveAttribute('aria-expanded', 'false');
+ expect(
+ screen.queryByRole('complementary', { name: 'Review Provider connection issue' }),
+ ).not.toBeInTheDocument();
+
+ fireEvent.click(options);
fireEvent.click(
screen.getByRole('button', { name: 'Close review panel for Provider connection issue' }),
);