Commit Graph

1 Commits

Author SHA1 Message Date
sneha122
ee7a6bed2d
fix: slash menu command show all available queries and datasources fixed (#33076)
## 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 `Api1`
<img width="266" alt="Screenshot 2024-05-03 at 12 05 47 PM"
src="https://github.com/appsmithorg/appsmith/assets/30018882/31b2512e-74a0-46c0-bdc5-37030154b651">
<img width="280" alt="Screenshot 2024-05-03 at 12 05 41 PM"
src="https://github.com/appsmithorg/appsmith/assets/30018882/6943c769-cdba-4a67-b1d7-237e80831314">

**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
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/8996774021>
> Commit: aadce199e6fc024a6ac3eebdcf3e5160a9697c1f
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=8996774021&attempt=1"
target="_blank">Click here!</a>

<!-- end of auto-generated comment: Cypress test results  -->













## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No

---------

Co-authored-by: “sneha122” <“sneha@appsmith.com”>
2024-05-08 11:43:09 +05:30