-
Notifications
You must be signed in to change notification settings - Fork 4
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(Project Authoring): Extract move node location selection feature to component #1394
refactor(Project Authoring): Extract move node location selection feature to component #1394
Conversation
Use ngTemplate to clean up template Show background color for branch paths Add test class #1393
Clean up code #1393
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.
Functionality works well.
I'm wondering if instead of using ng-templates it would be better to create components. It would simplify the html and the components could be reused in other templates.
This looks like code duplication. It seems like Code Climate doesn't check html files?
Lines 118 to 125 in 0497dd7
<div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="10px"> | |
<ng-container | |
*ngTemplateOutlet="nodeIconAndTitle; context: { nodeId: inactiveChildId }" | |
></ng-container> | |
<ng-container | |
*ngTemplateOutlet="moveAfterButton; context: { nodeId: inactiveChildId }" | |
></ng-container> | |
</div> |
Lines 142 to 149 in 0497dd7
<div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="10px"> | |
<ng-container | |
*ngTemplateOutlet="nodeIconAndTitle; context: { nodeId: inactiveNode.id }" | |
></ng-container> | |
<ng-container | |
*ngTemplateOutlet="moveAfterButton; context: { nodeId: inactiveNode.id }" | |
></ng-container> | |
</div> |
...ssets/wise5/authoringTool/choose-move-node-location/choose-move-node-location.component.html
Outdated
Show resolved
Hide resolved
Add missing i18n tag #1393
Updated margins to be RTL friendly.
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.
Looks good. I cleaned up some styles and removed unused classes.
I also updated margin styles to be friendly to RTL languages.
Thanks @breity. Good to remove unused styles. Template files look cleaner now. @geoffreykwan can you take a final look? |
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.
When you move a step or a lesson and are in the view to choose the location, the unused lessons and unused steps are not indented correctly.
Fixed. PTAL. |
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.
Looks good.
🎉 This PR is included in version 5.108.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Notes
Changes
Test
Closes #1393