-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat: action redesign, UQI upgrade S3 plugin config to dual zone format & sorting field responsiveness #36002
Conversation
WalkthroughThe recent changes involve significant updates to the Changes
Assessment against linked 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 using PR comments)
Other keywords and placeholders
Documentation and Community
Early access features: disabledWe are currently testing the following features in early access:
Note:
|
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/10629833514. |
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
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- app/client/src/components/formControls/SortingControl.tsx (4 hunks)
- app/server/appsmith-plugins/amazons3Plugin/src/main/resources/editor/root.json (1 hunks)
Additional context used
Biome
app/client/src/components/formControls/SortingControl.tsx
[error] 156-156: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
[error] 180-190: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
Additional comments not posted (12)
app/client/src/components/formControls/SortingControl.tsx (7)
77-77
: Type Definition Update:SortingControlProps
The update to
SortingControlProps
to directly extendControlProps
simplifies the type hierarchy and ensures that all properties fromControlProps
are available, enhancing type safety and clarity.
79-80
: Type Definition Update:SortingComponentProps
The new definition for
SortingComponentProps
combinesWrappedFieldArrayProps
with selected properties fromSortingControlProps
. This change is beneficial as it narrows down the properties to what is actually used in the component, improving type safety and clarity.
55-60
: Updated Layout Using CSS GridThe transition from a flexbox to a grid system in
SortingContainer
allows for more responsive design adjustments. This is a positive change as it enhances the layout's adaptability to different screen sizes.
63-68
: Responsive Design inSortingFields
The use of CSS grid in
SortingFields
for responsive layout adjustments is commendable. It improves the component's responsiveness and aligns with modern web design practices.
112-130
: Refinement of Logic inuseEffect
HookThe logic within the
useEffect
hook has been simplified by directly checkingsortObjectValue
before proceeding with conditional checks for pushing new fields. This streamlining reduces unnecessary complexity and enhances the readability and maintainability of the component.
90-90
: Direct Reference inonDeletePressed
FunctionThe update to use
fields.remove(index)
directly instead ofprops.fields.remove(index)
aligns with the updated props structure and simplifies the function's implementation.
155-191
: Rendering of Sorting Fields with Responsive DesignThe rendering logic for sorting fields now utilizes the new
SortingFields
styled component, incorporating responsive design principles. This change is beneficial as it ensures the UI adapts well to different screen sizes.Tools
Biome
[error] 156-156: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
[error] 180-190: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
app/server/appsmith-plugins/amazons3Plugin/src/main/resources/editor/root.json (5)
4-4
: Transition toSECTION_V2
Control TypeThe upgrade from
SECTION
toSECTION_V2
enhances the organization and functionality of the editor by allowing for more complex interactions and configurations. This change is crucial for supporting the new dual zone format and improving the user interface.
9-53
: Addition ofDOUBLE_COLUMN_ZONE
The introduction of
DOUBLE_COLUMN_ZONE
facilitates a more sophisticated layout for user inputs. This change is significant as it allows for a clearer separation of controls and enhances the overall user experience by organizing related settings more intuitively.
56-69
: Conditional Visibility inDOUBLE_COLUMN_ZONE
The use of conditional logic to show or hide zones based on user selections is a smart addition. It streamlines the user experience by only displaying relevant options, reducing clutter and potential confusion.
71-109
: Enhanced File Operation ConfigurationsThe new fields for generating signed and unsigned URLs, complete with options for expiration durations, reflect a more comprehensive approach to managing file operations. This enhancement provides users with greater flexibility and control, improving the functionality of the S3 plugin.
111-245
: Expanded Command Options and Conditional FieldsThe expansion of command options and the addition of conditional fields for various file operations like uploading and deleting multiple files enhance the plugin's capabilities. These changes make the interface more robust and user-friendly by catering to a wider range of user needs.
Deploy-Preview-URL: https://ce-36002.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.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
app/client/src/components/formControls/SortingControl.tsx (1)
1-9
: Reminder: Address TODO items.The TODO comments suggest improvements for type safety in future edits. It's important to address these soon to maintain code quality and avoid technical debt.
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- app/client/src/components/formControls/SortingControl.tsx (4 hunks)
Additional comments not posted (4)
app/client/src/components/formControls/SortingControl.tsx (4)
82-131
: Good simplification of logic.The refactoring within
SortingComponent
enhances readability and reduces complexity. Ensure that direct manipulations of Redux state, likefields.remove(index)
, are properly managed to avoid state inconsistencies.
220-230
: Efficient use of React hooks.The use of
useMemo
for optimizing props passed toFieldArray
is a good practice, ensuring that the component only re-renders when necessary.
77-80
: Enhanced type safety.Updating
SortingControlProps
andSortingComponentProps
to be more specific improves clarity and helps prevent type-related bugs.
55-68
: Responsive layout improvements.Switching to a grid layout and using
isBreakpointSmall
for responsive adjustments enhances the UI's adaptability across different devices.
Description
Upgrade S3 plugin config to new format using SECTION_V2, SINGLE_COLUMN_ZONE, and DOUBLE_COLUMN_ZONE.
Fixes #35484
Automation
/ok-to-test tags="@tag.All"
🔍 Cypress test results
Caution
🔴 🔴 🔴 Some tests have failed.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10662975214
Commit: 1905f4d
Cypress dashboard.
Tags: @tag.All
Spec:
The following are new failures, please fix them before merging the PR:
Mon, 02 Sep 2024 08:57:59 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Bug Fixes