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

feat(drawing): Add PopupDrawingToolbar #644

Merged
merged 6 commits into from
Dec 10, 2020

Conversation

ConradJChan
Copy link
Contributor

@ConradJChan ConradJChan commented Dec 8, 2020

drawing toolbar

TODO:

  • unit tests
  • cross browser testing

@ConradJChan ConradJChan requested a review from a team as a code owner December 8, 2020 01:38
src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.tsx Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.tsx Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.tsx Outdated Show resolved Hide resolved
src/icons/IconToolbarGrabber.tsx Outdated Show resolved Hide resolved
src/icons/IconToolbarGrabber.tsx Outdated Show resolved Hide resolved
@@ -13,6 +14,8 @@ export default createReducer<DrawingState>(initialState, builder =>
.addCase(addDrawingPathGroupAction, (state, { payload }) => {
state.drawnPathGroups.push(payload);
})
.addCase(resetCreatorAction, () => initialState) // Needed for when `PopupReply` is cancelled
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we support a flow where the user cancels their reply but wants to continue working with the existing drawing? Otherwise they'd need to start over again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I asked this question to product and they said that for now a cancel would start over

src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/components/Popups/PopupDrawingToolbar.scss Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.scss Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotations.tsx Outdated Show resolved Hide resolved
src/drawing/DrawingAnnotationsContainer.tsx Show resolved Hide resolved
src/drawing/DrawingSVGGroup.tsx Show resolved Hide resolved
src/store/drawing/__tests__/reducer-test.ts Outdated Show resolved Hide resolved
jstoffan
jstoffan previously approved these changes Dec 10, 2020
src/components/Popups/PopupDrawingToolbar.tsx Outdated Show resolved Hide resolved
src/drawing/__tests__/DrawingAnnotations-test.tsx Outdated Show resolved Hide resolved
@ConradJChan ConradJChan merged commit 54a66f0 into box:master Dec 10, 2020
@ConradJChan ConradJChan deleted the popover-toolbar branch December 10, 2020 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants