-
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
chore: Fixing the top padding for queries and JS empty state to match UI segment empty state #38365
Conversation
WalkthroughThe pull request focuses on improving the empty state rendering in two components: Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/12492229274. |
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/src/pages/Editor/IDE/EditorPane/JS/List.tsx (1)
64-65
: Retain clarity when checking for empty itemGroups.Good call checking
(!itemGroups || itemGroups.length === 0)
before renderingBlankState
. Consider making this expression more descriptive by extracting it into a helper variable, such asnoJSObjects
orisEmptyGroup
, if you anticipate future reusability for clarity.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
app/client/src/pages/Editor/IDE/EditorPane/JS/List.tsx
(1 hunks)app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx
(1 hunks)
🔇 Additional comments (1)
app/client/src/pages/Editor/IDE/EditorPane/Query/List.tsx (1)
55-56
: Ensure consistent styling of the BlankState across the app.
Presenting BlankState
for an empty query
list is a good user experience. However, confirm the padding, layout, and text remain consistent with the rest of the UI. Validate the design alignment with the blank states in other parts of the product (e.g., JS objects) to maintain a unified look.
Deploy-Preview-URL: https://ce-38365.dp.appsmith.com |
… UI segment empty state (#38365) ## Description Fixing the top padding for queries and JS empty state to match UI segment empty state Fixes [#38364](#38364) ## Automation /ok-to-test tags="@tag.IDE" ### 🔍 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/12492225163> > Commit: 7be7180 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12492225163&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.IDE` > Spec: > <hr>Wed, 25 Dec 2024 11:07:53 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced conditional rendering of the `BlankState` component to indicate when there are no items to display. - Added a `NoSearchResults` component for clearer feedback when searches yield no results. - **Bug Fixes** - Removed redundant rendering of the `BlankState` component to streamline the user interface. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Fixing the top padding for queries and JS empty state to match UI segment empty state
Fixes #38364
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/12492225163
Commit: 7be7180
Cypress dashboard.
Tags:
@tag.IDE
Spec:
Wed, 25 Dec 2024 11:07:53 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
BlankState
component to indicate when there are no items to display.NoSearchResults
component for clearer feedback when searches yield no results.BlankState
component to streamline the user interface.