Skip to content

fix: scroll for the channel rate limit dialog, close #1701#1708

Merged
looplj merged 1 commit into
unstablefrom
dev-tmp
May 25, 2026
Merged

fix: scroll for the channel rate limit dialog, close #1701#1708
looplj merged 1 commit into
unstablefrom
dev-tmp

Conversation

@looplj

@looplj looplj commented May 24, 2026

Copy link
Copy Markdown
Owner

@greptile-apps

greptile-apps Bot commented May 24, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes issue #1701 by adding max-h-[90vh] overflow-y-auto to the DialogContent in the channel rate limit dialog so it scrolls rather than overflowing on small viewports. It also inadvertently introduces a new pnpm-workspace.yaml file with unfinished placeholder content.

  • channels-rate-limit-dialog.tsx: One-line change to DialogContent className — resolves the overflow bug but places the footer inside the scrollable area, so action buttons can scroll out of view.
  • pnpm-workspace.yaml: New file with literal placeholder strings ("set this to true or false") as allowBuilds values instead of valid booleans — this is likely an accidental commit of template content that does not belong in this PR and could break pnpm install.

Confidence Score: 3/5

The dialog scroll fix is straightforward but the accidentally committed pnpm-workspace.yaml with placeholder strings needs to be removed or corrected before merging to avoid breaking pnpm install.

The pnpm-workspace.yaml file contains literal placeholder text ("set this to true or false") instead of valid booleans for allowBuilds. If merged, this will corrupt the workspace configuration for every developer running pnpm install, as pnpm enforces a typed schema. The dialog change itself is safe, though the footer-inside-scroll-container issue is a UX regression worth addressing.

frontend/pnpm-workspace.yaml is the primary concern — it should be removed or replaced with correct boolean values before this is merged.

Important Files Changed

Filename Overview
frontend/src/features/channels/components/channels-rate-limit-dialog.tsx Adds max-h-[90vh] overflow-y-auto to DialogContent to fix scrolling on small viewports; footer scrolls with content (buttons may leave view)
frontend/pnpm-workspace.yaml New file added with placeholder strings instead of valid boolean values for allowBuilds — will produce invalid pnpm configuration

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Dialog opens] --> B[DialogContent\nmax-h-90vh + overflow-y-auto]
    B --> C[DialogHeader\nfixed at top? No — scrollable]
    B --> D[Content div\nCards + Form fields]
    B --> E[DialogFooter\nSave / Cancel buttons]

    D -->|Content exceeds 90vh| F[Scrollbar appears]
    F -->|User scrolls down| G[DialogFooter scrolls out of view\n⚠️ Buttons hidden]
    F -->|User scrolls up| H[DialogHeader scrolls out of view\n⚠️ Title hidden]

    style G fill:#fef3c7,stroke:#d97706
    style H fill:#fef3c7,stroke:#d97706
Loading

Reviews (1): Last reviewed commit: "fix: scroll for the channel rate limit d..." | Re-trigger Greptile

Comment on lines +1 to +3
allowBuilds:
'@swc/core': set this to true or false
esbuild: set this to true or false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Placeholder text instead of valid boolean values

Both allowBuilds entries contain the literal string "set this to true or false" rather than true or false. pnpm will either reject these values during schema validation or behave unexpectedly, potentially blocking postinstall scripts for @swc/core and esbuild — breaking the build for everyone who runs pnpm install. This file appears to be an unfinished template that was accidentally included in this PR.

}}
>
<DialogContent className='sm:max-w-2xl'>
<DialogContent className='max-h-[90vh] overflow-y-auto sm:max-w-2xl'>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Footer scrolls out of view on small viewports

overflow-y-auto is applied directly to the DialogContent wrapper, which means the DialogFooter (containing the Save/Cancel buttons) is part of the scrollable area and will disappear when the user scrolls down. On a short viewport a user filling in the lower fields will have to scroll back up to find the action buttons. A common fix is to apply overflow-y-auto only to the middle content div and keep the header and footer outside the scroll region.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 1 additional finding in Devin Review.

Open in Devin Review

Comment on lines +1 to +3
allowBuilds:
'@swc/core': set this to true or false
esbuild: set this to true or false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 pnpm-workspace.yaml has placeholder strings instead of boolean values, blocking native builds

The allowBuilds entries in frontend/pnpm-workspace.yaml contain the literal placeholder strings set this to true or false instead of actual boolean values (true/false). pnpm auto-generates this file with placeholder text when it encounters packages with postinstall scripts, expecting the developer to replace them. With these string values, pnpm will either reject the config during pnpm install or treat the non-true strings as falsy and block native build scripts for @swc/core and esbuild. Since Vite depends on esbuild for bundling, blocking its postinstall (which downloads the platform-specific binary) will break the frontend build pipeline.

Suggested change
allowBuilds:
'@swc/core': set this to true or false
esbuild: set this to true or false
allowBuilds:
'@swc/core': true
esbuild: true
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@looplj looplj merged commit 658658c into unstable May 25, 2026
5 checks passed
junjiangao pushed a commit to junjiangao/axonhub that referenced this pull request May 25, 2026
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