-
Notifications
You must be signed in to change notification settings - Fork 76
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
refactor: main config #14800
refactor: main config #14800
Conversation
📝 WalkthroughWalkthroughThis pull request updates several components in the ux-editor package. It modifies test cases to streamline cleanup routines and adjust assertions for conditional rendering based on feature flags and component types. The components have been altered to remove the rendering of Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
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
CodeRabbit Configuration File (
|
For the reviewer: there is not that much to test in this PR. Can the reviewer also test this manually, so we can skip the test column? A different issue that im working on, #14185, is dependent on this PR. |
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 UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/EditLayoutSetForSubform/EditLayoutSetForSubform.module.css
(1 hunks)frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/EditLayoutSetForSubform/EditLayoutSetForSubform.tsx
(3 hunks)frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/HeaderMainConfig.module.css
(1 hunks)frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/PropertiesHeader.tsx
(3 hunks)frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Summary2Target/Summary2Target.module.css
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
- frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/EditLayoutSetForSubform/EditLayoutSetForSubform.module.css
- frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/HeaderMainConfig.module.css
- frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/EditLayoutSetForSubform/EditLayoutSetForSubform.tsx
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: CodeQL
- GitHub Check: Testing
- GitHub Check: Build environment and run e2e test
🔇 Additional comments (5)
frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Summary2Target/Summary2Target.module.css (1)
2-5
: Improve visual styling and ensure design consistency.The modifications to the
.targetConfig
class are well-executed. Replacingpadding-top
with a uniformpadding
provides consistent spacing on all sides, and the addition of a subtle background color along with defined top and bottom borders offers a clearer visual separation. Please verify that these styling changes align with the overall design specifications—especially in scenarios where theHeaderMainConfig
component is no longer present—to ensure a harmonious layout across the application.frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/PropertiesHeader.tsx (4)
13-13
: Good addition of needed importThe import for
HeaderMainConfig
is correctly added to support the new conditional rendering logic.
36-38
: Good implementation of conditional logic for header visibilityThe constant uses clear, semantic naming and properly implements the requirement to show the main config header when either the feature flag is enabled or the component is a Summary2.
64-64
: Correct placement of HeaderMainConfig componentThis implementation matches the PR objective of moving the header to the top of the configuration. The conditional rendering ensures it's only shown when appropriate.
65-76
: Proper restructuring of configuration componentsThe conditional wrapping of both the EditComponentIdRow and ComponentMainConfig implements the requirement to hide configuration options when in "Recommended Next Action" mode (when hideContentWhenSubformGuide is true).
This restructuring aligns with the PR objective to organize the main configuration as: Text, Specific Main Config, and Data Model Binding.
frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/PropertiesHeader.tsx
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14800 +/- ##
=======================================
Coverage 95.77% 95.77%
=======================================
Files 1922 1922
Lines 25076 25077 +1
Branches 2864 2867 +3
=======================================
+ Hits 24017 24018 +1
Misses 799 799
Partials 260 260 ☔ View full report in Codecov by Sentry. |
...c/components/Properties/PropertiesHeader/EditLayoutSetForSubform/EditLayoutSetForSubform.tsx
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.
Good job! I tested all cases that mentioned in description and they works fine. 👍
Regarding my comment, I am not sure if we need the margin I mentioned , so you decide 😄
Description
This PR restructure the order of the main config.
mainConfig
is set.Summary2
When feature flag set - other components
Subform
Before:
After (when feature flag is set):
Related Issue(s)
Verification
Documentation
Summary by CodeRabbit
New Features
Style
Refactor