Skip to content
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

chore(Authoring): Convert WISE link authoring to Angular #1361

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

geoffreykwan
Copy link
Member

Changes

Converted WISELinkAuthoringController to Angular.

Test

Make sure the WISE link authoring works in the HTML component.

Closes #1360

@geoffreykwan geoffreykwan self-assigned this Jul 25, 2023
@geoffreykwan geoffreykwan marked this pull request as ready for review July 25, 2023 21:55
Copy link
Member

@hirokiterashima hirokiterashima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Before merge, can you remove UpgradeModule dependency in WiseAuthoringTinymceEditorComponent? It's no longer used.

I also added some code improvement suggestions inline for your consideration.

Comment on lines 11 to 15
items: any[];
wiseLinkComponentId: string = '';
wiseLinkNodeId: string = '';
wiseLinkText: string = '';
wiseLinkType: string = 'link';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add private/protected modifiers?

return this.projectService.getComponents(nodeId);
}

protected createWISELink(): void {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name create() is sufficient?

}
}

protected cancelWISELinkAuthoring(): void {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name cancel() is sufficient?

Add variable modifiers, remove unused dependency, and change function
names.

#1360
@geoffreykwan geoffreykwan merged commit b54a2da into develop Jul 26, 2023
2 checks passed
@geoffreykwan geoffreykwan deleted the issue-1360-convert-wise-link-authoring branch July 26, 2023 16:51
@hirokiterashima
Copy link
Member

🎉 This PR is included in version 5.107.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

chore(Authoring): Convert WISELinkAuthoringController to Angular
2 participants