-
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
Geometry toolbar #2296
Geometry toolbar #2296
Conversation
1 failed test on run #12580 ↗︎
Details:
cypress/e2e/functional/tile_tests/arrow_annotation_spec.js • 1 failed test • Regression tests
Review all test suite changes for PR #2296 ↗︎ |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2296 +/- ##
==========================================
- Coverage 84.51% 79.15% -5.37%
==========================================
Files 705 706 +1
Lines 36004 36021 +17
Branches 9189 9190 +1
==========================================
- Hits 30429 28511 -1918
- Misses 5256 7063 +1807
- Partials 319 447 +128
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 to me. I just left one comment about a FIXME. If it is still unresolved it is fine to leave it, I just wasn't sure.
const selectedPoints = selectedObjects?.filter(isPoint); | ||
const selectedPoint = selectedPoints?.length === 1 ? selectedPoints[0] : undefined; | ||
const disableVertexAngle = !(selectedPoint && canSupportVertexAngle(selectedPoint)); | ||
// FIXME toggling this doesn't trigger the "observer" and thus doesn't change the selected state |
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.
Is this still a problem?
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.
Thank you for reminding me of that. I put in a fix but it seems a bit hacky - can you review and LMK if you see a cleaner way to do it?
- uses Boris' general button from PR #2296 - updates general toolbar to support above - keeps current image upload mechanism by adding state var to context
This moves the geometry toolbar to the common toolbar framework, and moves it part of the way towards the new spec for now it should work. See notes in PT-186143166.
Point
button is added. For the moment point mode just removes the double-click-to-create-a-polygon behavior.Add data
is restyled and moved from the title area to the toolbar.Movable line
is removed.Cypress test note -- existing Cypress tests, somehow, passed with these changes. I think that means they are not very comprehensive. I deleted some unit tests for toolbar buttons since they were no longer defined in the same way. Geometry Cypress tests are improved in the next PR (#2303 ).
This has been merged to geometry-update branch