-
Notifications
You must be signed in to change notification settings - Fork 75
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: summary2 - displayType selector in override #14575
base: main
Are you sure you want to change the base?
Conversation
Warning Rate limit exceeded@lassopicasso has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 15 minutes and 6 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. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis pull request introduces significant updates to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
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 (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14575 +/- ##
==========================================
- Coverage 95.73% 95.73% -0.01%
==========================================
Files 1908 1908
Lines 24876 24874 -2
Branches 2846 2846
==========================================
- Hits 23816 23814 -2
Misses 799 799
Partials 261 261 ☔ View full report in Codecov by Sentry. |
…inn/altinn-studio into fix-display-type-in-override
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: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
frontend/packages/shared/src/types/ComponentSpecificConfig.ts
(1 hunks)frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/OverrideFields/Summary2OverrideDisplayType.tsx
(4 hunks)frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/Summary2Override.test.tsx
(4 hunks)frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/hook/useCustomConfigType.ts
(1 hunks)frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/utils.ts
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
- frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/hook/useCustomConfigType.ts
- frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/Summary2Override.test.tsx
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Build environment and run e2e test
- GitHub Check: Testing
- GitHub Check: CodeQL
🔇 Additional comments (4)
frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/utils.ts (2)
6-9
: LGTM! Well-structured type definition.The new SelectedTypeProps type clearly defines the shape of the configuration object with an optional displayType.
11-20
: LGTM! Clean implementation of the configuration mapping.The function now handles undefined displayType gracefully, which aligns with the PR objective of removing the displayType property when "Ikke satt" is selected.
frontend/packages/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/OverrideFields/Summary2OverrideDisplayType.tsx (2)
25-27
: LGTM! Clean prop destructuring and component type detection.The code efficiently extracts required props and determines the component type.
37-43
: LGTM! Improved handler implementation.The handleCustomTypeChange function now directly accepts the displayType and uses the new mapSelectedTypeToConfig structure effectively.
...ig/componentSpecificContent/Summary2/Override/OverrideFields/Summary2OverrideDisplayType.tsx
Show resolved
Hide resolved
...es/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/utils.test.tsx
Fixed
Show fixed
Hide fixed
...es/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/utils.test.tsx
Fixed
Show fixed
Hide fixed
...es/ux-editor/src/components/config/componentSpecificContent/Summary2/Override/utils.test.tsx
Fixed
Show fixed
Hide fixed
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.
Nice work! 💪 LGTM ✅
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.
Tested OK in dev! 🚀 Up to you decide to merge it as is or make the additional changes related to the default value we discussed this Friday
Description
displayType
prop will be removed instead of being saved with "NoSet" to the backend, aligning with team apps config.Related Issue(s)
Verification
Documentation
Summary by CodeRabbit
New Features
Bug Fixes
Refactor