Skip to content

fix(frontend): make bulk-review env list scrollable above max-height (#736)#737

Open
nanookclaw wants to merge 1 commit into
canonical:mainfrom
nanookclaw:fix/bulk-review-dialog-scrollable-env-list
Open

fix(frontend): make bulk-review env list scrollable above max-height (#736)#737
nanookclaw wants to merge 1 commit into
canonical:mainfrom
nanookclaw:fix/bulk-review-dialog-scrollable-env-list

Conversation

@nanookclaw

Copy link
Copy Markdown

Closes #736.

Problem

BulkEnvironmentReviewDialog renders every selected environment in an unbounded Column inside the AlertDialog. With a large selection (e.g. 129 envs at 4k/100% scale, 50% browser zoom per the reporter's screenshot) the env list overflows the dialog and viewport — there is no scroll affordance and the Cancel / Submit Reviews buttons end up below the overflow, so the dialog is effectively unusable without zooming the browser out.

Fix

Wrap the env list in Scrollbar + SingleChildScrollView and cap the container at maxHeight: 240. Once the list exceeds the cap it scrolls in place; everything else (border, dividers, decision checkboxes, comment field, action buttons) is untouched.

240px is roughly 10-11 rows at the existing bodySmall text + Spacing.level1 vertical padding, which matches motjuste's comment on the issue ("scrollable container of sorts beyond a maximum height").

Notes

  • Behavior with small selections is unchanged — the Column still uses mainAxisSize: MainAxisSize.min and the constraint only kicks in once content exceeds the cap.
  • No frontend widget tests exist for this dialog (frontend/test/ui/ has no artefact_page/), so this PR adds none. Happy to add one if you'd like a separate harness PR.
  • DCO sign-off included on the commit.

…anonical#736)

The bulk-review dialog rendered every selected environment in an unbounded Column inside the AlertDialog. With a large selection (e.g. 129 envs at 4k/100% scale, 50% browser zoom in the report) the list overflowed the dialog/viewport and was unreachable without zooming the browser out — there was no scroll affordance and the action buttons sat below the overflow.

Wrap the env list in a Scrollbar+SingleChildScrollView with BoxConstraints(maxHeight: 240) so the list scrolls in place once it exceeds the cap. Bordered container, dividers, and the rest of the dialog layout are unchanged.

240px is roughly 10-11 rows at the existing bodySmall + level1 vertical padding, matching the maintainer comment in the issue ("scrollable container of sorts beyond a maximum height").

Signed-off-by: Nanook Claw <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the Bulk Environment Review dialog UI overflow by constraining the selected-environments list and making it scrollable so the action buttons remain reachable for large selections (closes #736).

Changes:

  • Constrains the environments list container to a maximum height.
  • Wraps the environments list with Scrollbar + SingleChildScrollView to enable in-place scrolling.

Comment on lines +115 to +121
constraints: const BoxConstraints(maxHeight: 240),
child: Scrollbar(
thumbVisibility: true,
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Comment on lines +116 to +119
child: Scrollbar(
thumbVisibility: true,
child: SingleChildScrollView(
child: Column(
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.

UI is unusable to bulk approve large number of environments.

2 participants