-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: Create module btn UI fix in split screen view #33095
Conversation
…o create-module-btn-ui-fix
WalkthroughThe recent changes involve updates across several files in the API, Explorer, and Query Editor components, focusing on enhancing the UI by integrating new selectors and components to manage the rendering of the Changes
Assessment against linked issues
Possibly related issues
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 Configration File (
|
/build-deploy-preview skip-test=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/8906632311. |
Deploy-Preview-URL: https://ce-33095.dp.appsmith.com |
<> | ||
<MoreActionsMenu | ||
className="t--more-action-menu" | ||
convertToModuleProps={convertToModuleProps} |
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.
Instead of passing the props here and then within importing the ConvertTModuleInstanceCTA and using there, do you think we should pass the component itself as a prop and name it something like additionalMenuItem
?
// Example name
const convertCTA = isSideBySideEnabled && editorMode === EditorViewMode.SplitScreen
? <ConvertToModuleInstanceCTA {...convertToModuleProps} />
: null
<MoreActionsMenu
className="t--more-action-menu"
convertToModuleProps={convertToModuleProps}
additionalMenuItem={convertCTA}
... // other props
/>
{action?.pluginType !== PluginType.INTERNAL &&
// Need to remove this check once workflow query is supported in module
convertCTA
}
This way the MoreActionsMenu doesn't need to be aware of a component to import and then apply props to it. What do you think?
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.
I think I wrote the conditions a bit incorrectly as this was a contrived example to show my thought process
…o create-module-btn-ui-fix
…o create-module-btn-ui-fix
Description
Create Module (Beta) button was overlapping on context menu in split screen. This PR addresses this issue.
Fixes #33038
Automation
/ok-to-test tags="@tag.Sanity, @tag.Workflows"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8969352623
Commit: ad38d66
Cypress dashboard url: Click here!
Communication
Should the DevRel and Marketing teams inform users about this change?