-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: [ADS] Entity Tree node overflow #38651
Conversation
WalkthroughThis pull request introduces a minor styling modification to the Changes
Possibly related PRs
Suggested Labels
Suggested Reviewers
Poem
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.styles.ts (1)
Line range hint
11-21
: Consider enhancing the overflow handling.While hiding overflow works, consider adding these properties for better UX:
export const PaddingOverrider = styled.div` width: 100%; overflow-x: hidden; + white-space: nowrap; + text-overflow: ellipsis; & > div { padding-left: 4px; + text-overflow: ellipsis; + overflow: hidden; } `;
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.styles.ts
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: perform-test / client-build / client-build
- GitHub Check: perform-test / rts-build / build
- GitHub Check: perform-test / server-build / server-unit-tests
- GitHub Check: client-lint / client-lint
- GitHub Check: client-unit-tests / client-unit-tests
- GitHub Check: client-prettier / prettier-check
- GitHub Check: client-build / client-build
- GitHub Check: chromatic-deployment
- GitHub Check: chromatic-deployment
- GitHub Check: storybook-tests
🔇 Additional comments (1)
app/client/packages/design-system/ads/src/Templates/EntityExplorer/EntityListTree/EntityListTree.styles.ts (1)
14-14
: LGTM with verification needed.The overflow fix looks appropriate for preventing horizontal scrolling in deeply nested items. However, please verify that no critical UI elements are inadvertently hidden in these scenarios:
- Long entity names
- RTL language support
- Deeply nested items with icons
✅ Verification successful
Overflow handling implementation verified as safe
The overflow-x: hidden is complemented by proper text handling:
- Text truncation with ellipsis
- Tooltips for accessing full text
- No elements at risk of being clipped
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for potential long text content or RTL-specific styles rg -g '*.{ts,tsx}' --type-add 'style:*.styles.{ts,tsx}' -t style 'direction:\s*rtl|text-overflow|ellipsis' ./app/client/packages/design-system/Length of output: 3416
Script:
#!/bin/bash # Check EntityItem implementation for absolute positioning and text handling ast-grep --pattern 'position:\s*absolute' app/client/packages/design-system/ads/src/Templates/EntityExplorer/ # Check if there are any tooltips or popovers for long text rg -g '*.{ts,tsx}' 'Tooltip|Popover' app/client/packages/design-system/ads/src/Templates/EntityExplorer/Length of output: 573
Description
Fixes the overflow of Entity item node that happens in deeply nested items
Before

After

Automation
/ok-to-test tags="@tag.IDE"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/12766145527
Commit: 5966a75
Cypress dashboard.
Tags:
@tag.IDE
Spec:
Tue, 14 Jan 2025 11:29:02 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit