-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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: slash menu command show all available queries and datasources fixed #33076
fix: slash menu command show all available queries and datasources fixed #33076
Conversation
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/8898188833. |
Deploy-Preview-URL: https://ce-33076.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/8910250625. |
Deploy-Preview-URL: https://ce-33076.dp.appsmith.com |
WalkthroughThe recent update focuses on enhancing the autocomplete feature in a code editor to include a "load more" option when the number of queries exceeds five. This improvement allows users to access additional queries beyond the initial display, enhancing usability and convenience. Changes
Assessment against linked issues
The code changes successfully fulfill the objectives outlined in the linked issue, ensuring the correct implementation of the 'load more' functionality as specified. This update enhances user interaction by accommodating additional queries beyond the initial display, meeting the requirements effectively. 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 (
|
app/client/cypress/e2e/Regression/ClientSide/Autocomplete/PropertyPaneSlashCommand_spec.ts
Outdated
Show resolved
Hide resolved
app/client/src/components/editorComponents/CodeEditor/commandsHelper.ts
Outdated
Show resolved
Hide resolved
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/8970017294. |
Deploy-Preview-URL: https://ce-33076.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/8981770327. |
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: 1
app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx
Show resolved
Hide resolved
@rishabhrathod01 Please test for following different scenarios:
|
Deploy-Preview-URL: https://ce-33076.dp.appsmith.com |
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.
Code LGTM
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.
Tested the DP, looks good.
Description
The slash menu command popup that gets shown today for property pane only shows 5 queries and not all the queries that exist in my page. This PR solves that problem by adding
Load more
option in the popup which users can click to get full list of queries. This behaviour of load more is similar to load more of one click binding.Note: Cypress test case have been added for this PR.
Before:
Even though I have 6 queries, it's only showing 5 and hiding
![Screenshot 2024-05-03 at 12 05 47 PM](https://private-user-images.githubusercontent.com/30018882/327663242-31b2512e-74a0-46c0-bdc5-37030154b651.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NTY2MDksIm5iZiI6MTcyMjk1NjMwOSwicGF0aCI6Ii8zMDAxODg4Mi8zMjc2NjMyNDItMzFiMjUxMmUtNzRhMC00NmMwLWJkYzUtMzcwMzAxNTRiNjUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA2VDE0NTgyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIxMTAzNzZhZTZkNDM0YmY1ZjkwMDVhY2IyNTdjMTUxODBlYzE1M2E0MWU1NTQxZThiZTU1N2VkOGFlMmMxOWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EFkwmuNBbksEL99qxrQ6Z9rIyJKDiSqMsOUNWBXI5cI)
![Screenshot 2024-05-03 at 12 05 41 PM](https://private-user-images.githubusercontent.com/30018882/327663247-6943c769-cdba-4a67-b1d7-237e80831314.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NTY2MDksIm5iZiI6MTcyMjk1NjMwOSwicGF0aCI6Ii8zMDAxODg4Mi8zMjc2NjMyNDctNjk0M2M3NjktY2RiYS00YTY3LWIxZDctMjM3ZTgwODMxMzE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA2VDE0NTgyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk4ZTkxNjNjZGRhYTdjMTI5YmY5MGZkNjZkNGEyNTdhMjA2NTI0MzU1ZWYwZTg2YWE5NjI2OGUyMGM3YjY2NWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Sgr5E-YVfu4gAGt8OxpBuVGiIIGc6yL2Y1kW78usKfU)
Api1
After:
https://github.com/appsmithorg/appsmith/assets/30018882/e748534f-a842-4f9e-b54a-d86cbd1ae54e
Fixes #32896
or
Fixes
Issue URL
Warning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.JS"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8996774021
Commit: aadce19
Cypress dashboard url: Click here!
Communication
Should the DevRel and Marketing teams inform users about this change?