-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: Widget Overflow and Show Binding issue #35651
Conversation
WalkthroughThe recent updates enhance the Changes
Assessment against linked issues
Poem
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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
/build-deplpy-preview |
/build-deploy-preview |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10364931019. |
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
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (3)
- app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx (2 hunks)
- app/client/src/pages/Editor/IDE/EditorPane/Explorer.tsx (2 hunks)
- app/client/src/pages/Editor/IDE/EditorPane/index.tsx (2 hunks)
Additional context used
Learnings (3)
app/client/src/pages/Editor/IDE/EditorPane/index.tsx (4)
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:46-65 Timestamp: 2023-12-14T12:09:37.028Z Learning: The use of `any` for the `entityProperties` parameter in the `getJSActionBindings` function within `EntityProperties.tsx` is intentional and should not be suggested for refactoring to improve type safety.
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:46-65 Timestamp: 2023-12-14T12:09:37.028Z Learning: The use of `any` for the `entityProperties` parameter in the `getJSActionBindings` function within `EntityProperties.tsx` is intentional and should not be suggested for refactoring to improve type safety.
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:237-0 Timestamp: 2023-12-13T11:42:57.497Z Learning: The similar logic across different cases in the `EntityProperties` function, particularly for `ENTITY_TYPE.MODULE_INSTANCE`, is intentional and should not be suggested for refactoring to avoid duplication.
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:240-0 Timestamp: 2023-12-13T11:41:36.990Z Learning: The `ENTITY_TYPE.MODULE_INSTANCE` case in `EntityProperties.tsx` is intentionally a combination of the logic from both `ENTITY_TYPE.ACTION` and `ENTITY_TYPE.JSACTION`, which explains the presence of what might seem like duplicated code.
app/client/src/pages/Editor/IDE/EditorPane/Explorer.tsx (3)
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:237-0 Timestamp: 2023-12-13T11:42:57.497Z Learning: The similar logic across different cases in the `EntityProperties` function, particularly for `ENTITY_TYPE.MODULE_INSTANCE`, is intentional and should not be suggested for refactoring to avoid duplication.
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:46-65 Timestamp: 2023-12-14T12:09:37.028Z Learning: The use of `any` for the `entityProperties` parameter in the `getJSActionBindings` function within `EntityProperties.tsx` is intentional and should not be suggested for refactoring to improve type safety.
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:46-65 Timestamp: 2023-12-14T12:09:37.028Z Learning: The use of `any` for the `entityProperties` parameter in the `getJSActionBindings` function within `EntityProperties.tsx` is intentional and should not be suggested for refactoring to improve type safety.
app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx (3)
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:237-0 Timestamp: 2023-12-13T11:42:57.497Z Learning: The similar logic across different cases in the `EntityProperties` function, particularly for `ENTITY_TYPE.MODULE_INSTANCE`, is intentional and should not be suggested for refactoring to avoid duplication.
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:46-65 Timestamp: 2023-12-14T12:09:37.028Z Learning: The use of `any` for the `entityProperties` parameter in the `getJSActionBindings` function within `EntityProperties.tsx` is intentional and should not be suggested for refactoring to improve type safety.
Learnt from: ankitakinger PR: appsmithorg/appsmith#29573 File: app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx:46-65 Timestamp: 2023-12-14T12:09:37.028Z Learning: The use of `any` for the `entityProperties` parameter in the `getJSActionBindings` function within `EntityProperties.tsx` is intentional and should not be suggested for refactoring to improve type safety.
Additional comments not posted (4)
app/client/src/pages/Editor/IDE/EditorPane/index.tsx (2)
9-9
: New Import: EntityProperties ComponentThe
EntityProperties
component is imported to enhance the UI functionality by rendering the Bindings popover. This aligns with the PR's objective to address the "Show Bindings" issue. Ensure this import is removed when the component is no longer needed.
31-34
: Temporary Integration of EntityPropertiesThe
EntityProperties
component is integrated to render the Bindings popover, as indicated by the comment. This is a temporary solution, so ensure future updates address its removal or refactoring.app/client/src/pages/Editor/IDE/EditorPane/Explorer.tsx (1)
36-36
: Addition of Overflow Style PropertyThe
overflow="hidden"
style property is added to manage content display, ensuring that overflowing content is hidden. This change enhances the UI by preventing widget overflow issues.app/client/src/pages/Editor/Explorer/Entity/EntityProperties.tsx (1)
134-135
: Dynamic Calculation of Left Style PropertyThe
left
style property is dynamically calculated usingAPP_SIDEBAR_WIDTH
andDEFAULT_EXPLORER_PANE_WIDTH
. This enhances UI responsiveness by adjusting the element's position based on component widths. Ensure these constants are correctly defined and updated as needed.
Deploy-Preview-URL: https://ce-35651.dp.appsmith.com |
Description
Fix side effect introduced in #35611 that caused the widget pane to not be scrollable and extend beyond the IDE
Also fixes the show bindings issue not rendering correctly
Fixes #35584
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/10364931153
Commit: db587d1
Cypress dashboard.
Tags:
@tag.IDE
Spec:
Tue, 13 Aug 2024 07:11:51 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?