-
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: adjust spacing for filter/sort/pagination form controls #37221
Conversation
WalkthroughThe pull request introduces various modifications across multiple components, primarily focusing on styling enhancements and layout adjustments. Key changes include the removal of hardcoded widths, the introduction of CSS variables for spacing, and the enhancement of responsiveness in the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
🔇 Additional comments (3)app/server/appsmith-plugins/googleSheetsPlugin/src/main/resources/editor/fetch_many.json (2)
The empty label property aligns with the requested changes to remove empty space above the pagination field. Line range hint The pagination configuration looks good with clear tooltips and proper binding examples. Let's verify the changes work correctly with the UI components. app/client/src/pages/Editor/FormConfig.tsx (1)
The modified condition ✅ Verification successfulLabel rendering condition is correctly implemented The modified condition is consistent with the component's design and usage across the codebase. The 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for other components that might be affected by this label rendering change
rg -l "FormLabel|nestedFormControl" --type tsx
# Look for potential test cases covering this scenario
rg -l "nested.*form.*control.*test" --type tsx
Length of output: 153 Script: #!/bin/bash
# Search for other components that might be affected by this label rendering change
rg -l "FormLabel|nestedFormControl"
# Look for related test files
rg -l "nested.*form.*control.*test"
# Search for form label related code patterns
ast-grep --pattern 'label?.length > 0'
# Look for similar form configurations
rg -A 3 "shouldRenderSubtitle"
Length of output: 3010 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/11680863566. |
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
🧹 Outside diff range and nitpick comments (2)
app/client/src/components/formControls/PaginationControl.tsx (1)
25-29
: LGTM! Consider using CSS custom property for border-color.The updated grid layout with flexible columns and standardized spacing looks good. The separation using border and padding improves visual hierarchy.
Consider extracting the border color to match the spacing variable usage:
- border-top: 1px solid var(--ads-v2-color-border); + border-top: var(--ads-v2-border-width-sm) solid var(--ads-v2-color-border);app/client/src/components/formControls/SortingControl.tsx (1)
74-76
: Consider using grid-gap for better maintainabilityThe changes look good, but consider using the shorthand
grid-gap
property instead of separatecolumn-gap
androw-gap
properties for more concise code.- column-gap: var(--ads-v2-spaces-4); - row-gap: var(--ads-v2-spaces-2); + grid-gap: var(--ads-v2-spaces-2) var(--ads-v2-spaces-4);
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (4)
app/client/src/PluginActionEditor/components/PluginActionForm/components/ActionForm/Zone/styles.module.css
(0 hunks)app/client/src/components/formControls/PaginationControl.tsx
(1 hunks)app/client/src/components/formControls/SortingControl.tsx
(2 hunks)app/client/src/components/formControls/WhereClauseControl.tsx
(9 hunks)
💤 Files with no reviewable changes (1)
- app/client/src/PluginActionEditor/components/PluginActionForm/components/ActionForm/Zone/styles.module.css
🔇 Additional comments (10)
app/client/src/components/formControls/PaginationControl.tsx (1)
Line range hint 94-96
: Verify the usage of customStyles.
The code still spreads customStyles
into defaultStyles
, but according to the summary, these properties should have been removed.
Let's verify the usage of customStyles in related components:
app/client/src/components/formControls/SortingControl.tsx (2)
57-57
: LGTM: Improved styling consistency
The changes properly utilize ADS v2 design system variables for spacing and borders.
Also applies to: 59-60
65-65
: LGTM: Consistent spacing
Properly aligned with design system spacing variables.
app/client/src/components/formControls/WhereClauseControl.tsx (7)
Line range hint 93-105
: LGTM: Fixed typo in function name
The rename from handleSecondaryBoxBackgroudColor
to handleSecondaryBoxBackgroundColor
corrects the spelling.
119-121
: LGTM: Improved styling consistency
The padding adjustments and border-top addition enhance visual hierarchy and component separation.
Also applies to: 129-132
142-142
: LGTM: Adopted design system spacing
Replaced hardcoded gap value with CSS variable for better maintainability.
165-166
: LGTM: Standardized grid spacing
Updated grid gaps to use design system spacing variables.
218-220
: LGTM: Enhanced responsive layout
Added proper spacing and layout constraints for better responsiveness.
309-312
: LGTM: Improved type safety
Removed explicit any
type annotation from form values selector.
413-413
: LGTM: Enhanced button semantics
Added isIconButton
prop for better accessibility and design system compliance.
Deploy-Preview-URL: https://ce-37221.dp.appsmith.com |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/11688611470. |
Deploy-Preview-URL: https://ce-37221.dp.appsmith.com |
Hey @alex-golovanov, |
Yep, sure thing |
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/11699141375. |
Deploy-Preview-URL: https://ce-37221.dp.appsmith.com |
Failed server tests
|
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.
LGTM
…horg#37221) ## Description Adjusted spacing to match design values for filter/sort/pagination form controls. Fixes appsmithorg#37198 ## 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/11699699613> > Commit: cb18e1e > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11699699613&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.IDE` > Spec: > <hr>Wed, 06 Nov 2024 08:54:32 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced layout responsiveness for the `Zone`, `Pagination`, `Sorting`, and `Where Clause` components. - Improved clarity and usability of pagination feature in the Google Sheets plugin. - **Bug Fixes** - Corrected a typo in the `WhereClauseControl` component function name. - **Style** - Updated CSS for various components to use CSS variables for consistent spacing. - Removed hardcoded widths for improved flexibility in form controls. - Added border-radius and adjusted padding for the `SecondaryBox` component. - Streamlined rendering logic for form configuration elements. - **Refactor** - Minor refactoring of function names and properties for better clarity and maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
…horg#37221) ## Description Adjusted spacing to match design values for filter/sort/pagination form controls. Fixes appsmithorg#37198 ## 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/11699699613> > Commit: cb18e1e > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11699699613&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.IDE` > Spec: > <hr>Wed, 06 Nov 2024 08:54:32 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes - **New Features** - Enhanced layout responsiveness for the `Zone`, `Pagination`, `Sorting`, and `Where Clause` components. - Improved clarity and usability of pagination feature in the Google Sheets plugin. - **Bug Fixes** - Corrected a typo in the `WhereClauseControl` component function name. - **Style** - Updated CSS for various components to use CSS variables for consistent spacing. - Removed hardcoded widths for improved flexibility in form controls. - Added border-radius and adjusted padding for the `SecondaryBox` component. - Streamlined rendering logic for form configuration elements. - **Refactor** - Minor refactoring of function names and properties for better clarity and maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Adjusted spacing to match design values for filter/sort/pagination form controls.
Fixes #37198
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/11699699613
Commit: cb18e1e
Cypress dashboard.
Tags:
@tag.IDE
Spec:
Wed, 06 Nov 2024 08:54:32 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Release Notes
New Features
Zone
,Pagination
,Sorting
, andWhere Clause
components.Bug Fixes
WhereClauseControl
component function name.Style
SecondaryBox
component.Refactor