-
Notifications
You must be signed in to change notification settings - Fork 37
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
feature/rjsf-array-under-array-fix #1068
Conversation
…ms in an rjsf array field to line up w/ burnettk
Warning Rate Limit Exceeded@jasquat has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 16 minutes and 47 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe recent update aimed to improve the user interface of a form component by focusing on the array field items and overall form styling. It involved streamlining imports from a library, reorganizing the layout for array items within a single component, and refining visual aspects like margins, font sizes, and flexbox usage to enhance the user experience. 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 1
Configuration used: .coderabbit.yaml
Files selected for processing (2)
- spiffworkflow-frontend/src/rjsf/carbon_theme/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx (2 hunks)
- spiffworkflow-frontend/src/rjsf/carbon_theme/index.css (4 hunks)
Additional comments: 5
spiffworkflow-frontend/src/rjsf/carbon_theme/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx (1)
- 42-75: The refactoring to use a single
div
for both the contents and actions of the array field, with updated class names for styling, aligns well with the PR's objective to improve layout and alignment using flexbox. This change simplifies the structure and should make it easier to manage and style the component. However, ensure that the removal of the grid layout and the transition to flexbox does not introduce any unexpected layout issues, especially in edge cases with deeply nested arrays or varying content sizes.spiffworkflow-frontend/src/rjsf/carbon_theme/index.css (4)
- 71-71: Adjusting the bottom margin of
.rjsf .array-item .rjsf-field
to0
is a targeted change that likely aims to reduce unnecessary spacing within array items. This should contribute to a more compact and aligned appearance for nested array elements. Ensure this change does not lead to elements being too tightly packed, which could affect readability and user experience.- 76-76: Reducing the font size of
.rjsf .markdown-field-desc-text .field-description
to0.8rem
is a subtle change that could help differentiate the description text from other text elements in the form. This change should be verified across different devices and screen sizes to ensure that the text remains legible and does not negatively impact the user experience, especially for users with visual impairments.- 108-109: Adding padding to the right of
.rjsf .side-by-side-column:not(:last-child)
is a good practice for creating visual separation between columns that are displayed side by side. This change should enhance the visual clarity of the form layout. Verify that the padding value of1rem
is consistent with the overall design system and does not create alignment issues with other form elements.- 111-123: The introduction of flexbox properties to
.rjsf .array-field-container
,.rjsf .array-field-contents
, and.rjsf .array-field-actions
is a significant change that aligns with the PR's objective to improve the layout and alignment of nested array forms. This change should provide more flexibility and control over the positioning of elements within the form. However, it's important to test these changes thoroughly across different browsers and screen sizes to ensure consistent behavior and appearance, especially since flexbox can behave differently in edge cases.
spiffworkflow-frontend/src/rjsf/carbon_theme/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx
Outdated
Show resolved
Hide resolved
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- spiffworkflow-frontend/src/rjsf/carbon_theme/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- spiffworkflow-frontend/src/rjsf/carbon_theme/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx
Fixes #996
This removes the grid from the ArrayFieldItemTemplate component in frontend and instead uses display flex to line items up properly.
to test:
example schema to test: