Skip to content

fix: give the brain scan report page its own scroll so long reports aren't clipped - #3200

Merged
atomantic merged 1 commit into
mainfrom
cos/task-ms5dckj3/agent-865efa52
Jul 29, 2026
Merged

fix: give the brain scan report page its own scroll so long reports aren't clipped#3200
atomantic merged 1 commit into
mainfrom
cos/task-ms5dckj3/agent-865efa52

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

Opening a malware scan report from a Brain link card (/brain/links/:id/scan-report) showed the top of the report and nothing else — the page would not scroll, so anything past the first screenful was unreachable.

/brain* is in Layout.jsx's isFullWidth list, so <main> renders as a bare relative overflow-hidden and each page under it must supply its own overflow-y-auto. Brain.jsx does; BrainScanReport.jsx was a plain <div>, so its content was clipped with no way to reach the rest.

All three render branches (loading, loaded, unavailable) now share a Shell wrapper using h-full overflow-y-auto p-4 md:p-6 — the same idiom the other full-width pages already use (CatalogIngest.jsx, PipelineExport.jsx, StoryBuilder.jsx, and ~7 more).

Test plan

  • New client/src/pages/BrainScanReport.test.jsx asserts the page owns an h-full overflow-y-auto container in the loading, loaded, and unavailable states — 3/3 pass.
  • Verified the test is a real regression guard: dropping h-full overflow-y-auto from the wrapper turns all 3 red.
  • npx eslint clean on both changed client files.

…ren't clipped

`/brain*` is in Layout's isFullWidth list, so <main> renders as a bare
`relative overflow-hidden` and each page under it must supply its own
`overflow-y-auto`. Brain.jsx does; BrainScanReport.jsx was a plain <div>,
so anything past the first screenful of a scan report was unreachable.

Wraps all three render branches in the standard
`h-full overflow-y-auto p-4 md:p-6` shell used by the other full-width
pages, and adds a regression test asserting the container exists in the
loading, loaded, and unavailable states.
@atomantic
atomantic merged commit ec97938 into main Jul 29, 2026
6 checks passed
@atomantic
atomantic deleted the cos/task-ms5dckj3/agent-865efa52 branch July 29, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant