-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[CL-553] Migrate CL to Control Flow syntax #12390
Conversation
New Issues (6)Checkmarx found the following issues in this Pull Request
Fixed Issues (9)Great job! The following issues were fixed in this Pull Request
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #12390 +/- ##
==========================================
- Coverage 35.31% 35.30% -0.02%
==========================================
Files 2998 2998
Lines 90950 90937 -13
Branches 16981 16981
==========================================
- Hits 32123 32103 -20
- Misses 56335 56342 +7
Partials 2492 2492 ☔ View full report in Codecov by Sentry. |
0f190d5
to
19bd4b8
Compare
@willmartian it seems the migration was unable to convert |
@@ -44,6 +44,7 @@ export type ChipSelectOption<T> = Option<T> & { | |||
multi: true, | |||
}, | |||
], | |||
preserveWhitespaces: false, |
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.
We needed to disable this on a few components. Platform is exploring disabling this globally.
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.
I am really liking the new control flow. Really improves grok-ability of what is going on in a template. Also, gets rid of ng-container
, which always felt a bit weird to me.
Gonna follow this PR up with enabling @angular-eslint/template/prefer-control-flow
in libs/components
(https://bitwarden.atlassian.net/browse/CL-559)
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.
Cool that the migrator could link this if/else even though we were not already using NgIf's else syntax.
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.
Nah, I manually migrated this. The migrator doesn't work in storybook.
We can do that in a followup; created issue here: https://bitwarden.atlassian.net/browse/CL-558 |
Holding until after next RC cut. |
…-flow # Conflicts: # libs/components/src/dialog/simple-dialog/simple-configurable-dialog/simple-configurable-dialog.service.stories.ts
…-flow # Conflicts: # libs/components/src/dialog/dialog/dialog.component.html # libs/components/src/form-field/form-field.component.html # libs/components/src/layout/layout.component.html
Merging, will be tested on main. |
🎟️ Tracking
https://bitwarden.atlassian.net/browse/CL-553
📔 Objective
Explore how the new control flow syntax looks and behaves in a limited scope (i.e. Component Library).
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes