-
Notifications
You must be signed in to change notification settings - Fork 4.3k
[DONOTMERGE] Test external contrib: radio button widget to show error message #4653 #35800
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
[DONOTMERGE] Test external contrib: radio button widget to show error message #4653 #35800
Conversation
…to fix/radio-button-widget-to-show-error-message-#4653
…t-to-show-error-message-#4653' into external-contri/fix/radio-button-widget-to-show-error-message-#4653
WalkthroughThe recent updates enhance error handling and user experience across several components. Key improvements include the introduction of validation checks in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant KeyValueComponent
participant RadioGroupWidget
User->>KeyValueComponent: Enter Key-Value Pair
KeyValueComponent->>KeyValueComponent: Validate Input
KeyValueComponent-->>User: Show Error Message (if any)
User->>RadioGroupWidget: Select Option
RadioGroupWidget->>RadioGroupWidget: Validate Selection
RadioGroupWidget-->>User: Show Validation Message (if both empty)
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 as PR comments)
Additionally, you can add Documentation and Community
|
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
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
app/client/src/assets/icons/alert/warning-error.svg
is excluded by!**/*.svg
Files selected for processing (3)
- app/client/cypress/e2e/Regression/ClientSide/IDE/Canvas_Context_Bug_Fixes.js (1 hunks)
- app/client/src/components/propertyControls/KeyValueComponent.tsx (9 hunks)
- app/client/src/widgets/RadioGroupWidget/widget/index.tsx (1 hunks)
Files skipped from review due to trivial changes (1)
- app/client/cypress/e2e/Regression/ClientSide/IDE/Canvas_Context_Bug_Fixes.js
Additional comments not posted (8)
app/client/src/components/propertyControls/KeyValueComponent.tsx (7)
9-9
: Good use of icons for error indication.The
WarningErrorIcon
will enhance user feedback by visually indicating errors.
42-46
: Nicely structured layout withFlexBox
.The
FlexBox
component will help in organizing the key-value pairs effectively.
48-57
: Effective styling for error messages.The
ErrorMessageBox
component is well-designed to highlight errors with appropriate styling.
63-85
: Conditional styling enhances user feedback.The use of the
hasError
prop inStyledInputGroup
effectively changes the border color based on validation, improving user experience.
109-109
: State management for error messages is well-implemented.The
errorMessages
state variable is a good addition for managing validation feedback.
125-125
: Consistent validation withvalidatePairs
.The
validatePairs
function is consistently applied across component lifecycle events, ensuring robust validation.Also applies to: 147-147, 162-162, 183-183, 227-227
242-286
: Clear and effective error message display.The conditional rendering of error messages provides clear feedback to users, improving the component's usability.
app/client/src/widgets/RadioGroupWidget/widget/index.tsx (1)
79-87
: Robust validation logic added.The new check for empty
label
andvalue
fields enhances data integrity by preventing incomplete entries.
This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected. |
Testing CI for external contrib #34245
Fixes #
Issue Number
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.All"
🔍 Cypress test results
Warning
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10489283195
Commit: 73e4d69
Cypress dashboard.
Tags: @tag.All
Spec:
It seems like no tests ran 😔. We are not able to recognize it, please check workflow here.
Wed, 21 Aug 2024 11:54:11 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Bug Fixes