-
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
186143109 drawing toolbar in new toolbar system #2309
Conversation
- update app config - add unused onTouchHold to TileToolbarButtonProps - registration - create modal buttons - stub out action-on-drawing buttons - comment out stayles that will need to come back in, stub new styles file - remove some functionality from drawing-tile, to be added back - set up new drawing-toolbar-buttons file, leave old one in for reference
Passing run #12685 ↗︎
Details:
Review all test suite changes for PR #2309 ↗︎ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2309 +/- ##
==========================================
- Coverage 84.51% 84.43% -0.09%
==========================================
Files 705 711 +6
Lines 36007 36033 +26
Branches 9190 9195 +5
==========================================
- Hits 30432 30423 -9
- Misses 5256 5290 +34
- Partials 319 320 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
- to be refactored, but saving for reference - in case we need to break out again - group, ungroup, duplicate, delete
…09-drawing-toolbar-update
…ettes are responsive
- uses Boris' general button from PR #2296 - updates general toolbar to support above - keeps current image upload mechanism by adding state var to context
- vectorType needs to be passed to svg as vectortype - strokeDashArray needs to be strokeDasharray
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.
As noted in story hour, touch-hold should just be equivalent to click on buttons that don't have a separate action (eg, fill color).
|
||
const tipOptions = useTooltipOptions(); | ||
const { onTouchStart, onTouchEnd, onMouseDown, onMouseUp, onClick: handleOnClick } = useTouchHold( | ||
() => onTouchHold?.({} as React.MouseEvent), |
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.
Seems like either onTouchHold
should be changed to not expect an argument, or an actual event argument should be passed.
- if multiple objects are selected and any are a group, enable ungroup button - shared data buttons should be registered from shared data - fix imports - cleanup
- in cases where user might expect long click to work because there is a dropdown
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.
Changes look good!
PT-186143109
This reimplements that drawing tile toolbar using the general toolbar system
ToolbarButtonSvg
- a component that is just the svg portion of a button that will accept svgsettings
and can be placed within the generalTileToolbarButton