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

build(Draw Tool): Use modified draw tool #1495

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

geoffreykwan
Copy link
Member

@geoffreykwan geoffreykwan commented Oct 26, 2023

Changes

Changed dependency to use our modified draw tool.

Test

Run npm ci

  • Make sure the draw tool now opens tool submenus the second time you click a tool
  • When the stamp tool is clicked the first time, and no stamp has previously been selected, it should display the stamp submenu
  • Make sure each tool icon remains highlighted after you select an item in the tool submenu

Closes #1494

@geoffreykwan geoffreykwan self-assigned this Oct 26, 2023
@geoffreykwan geoffreykwan marked this pull request as ready for review October 26, 2023 18:20
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.

Looks good. Before merge, can you replace

"drawing-tool",

with

"@wise-community/drawing-tool/dist/drawing-tool",

in angular.json's allowedCommonJsDependencies array? This will remove this warning while the code is compiling:

wise-client  | Warning: /app/src/assets/wise5/components/draw/drawService.ts depends on '@wise-community/drawing-tool/dist/drawing-tool'. CommonJS or AMD dependencies can cause optimization bailouts.

@geoffreykwan geoffreykwan merged commit 3980f93 into develop Oct 27, 2023
2 checks passed
@geoffreykwan geoffreykwan deleted the issue-1494-use-modified-draw-tool branch October 27, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

build(Draw Tool): Use modified draw tool
2 participants