-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactor Skeletontree tab as Antd <Tree /> component #7819
Conversation
@@ -41,15 +41,15 @@ import { getAdditionalCoordinatesAsString } from "oxalis/model/accessors/flycam_ | |||
|
|||
const ALSO_DELETE_SEGMENT_FROM_LIST_KEY = "also-delete-segment-from-list"; | |||
|
|||
export function ColoredDotIconForSegment({ segmentColorHSLA }: { segmentColorHSLA: Vector4 }) { | |||
const hslaCss = hslaToCSS(segmentColorHSLA); | |||
export function ColoredDotIcon({ colorRGBA }: { colorRGBA: Vector4 }) { |
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.
We can re-use this component for the skeleton, comments and segments tab. All three data types have RGB properties. So no need to use HSL instead.
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.
Please just re-request a review once its time 🙏 :)
* move skeleton expanded/collapsed group state to store * WIP: expand and collapse all skeleton groups * fix expand/collapse skeleton groups * expand group if tree is dropped * clean up code * lint * address review * address review 2/2 * remove console.log * lint * add small condition for ondrop * persist isExpanded state in backend * make groups default expanded if field is absent in nml (backend only) * make groups default expanded if for written nmls (backend only) * fix backend treegroup update action tests * add isExpanded to frontend nml support * update snapshots * omit object creation in var * omit useless return statement in map * add isExpanded prop to tree groups in backend testing fixtures (dummies) * add test to backend nml test to test properly setting default to expanded * add changelog * WIP: address review * fix bug where drag and drop of empty groups was failing * remove comment --------- Co-authored-by: Michael Büßemeyer <[email protected]> Co-authored-by: Philipp Otto <[email protected]>
Really looking forward to see this merged! I tested this PR for a bit and found some things:
won't fix?
|
Please wait until the backend changes of this pr have been reviewed (they haven't been reviewed yet. See: #7939 (comment)) @normanrz Could you take over looking over these changes? There shouldn't be many changes. |
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.
Backend looks good 👍
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.
awesome, works very well 👍
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.
@@ -206,7 +205,6 @@ | |||
"react-redux": "^7.2.0", | |||
"react-router-dom": "^5.1.2", | |||
"react-sortable-hoc": "^2.0.0", | |||
"react-sortable-tree": "^2.8.0", |
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.
The day has finally come 🎉
In an effort to use the same antd
<Tree />
tree component for the skeletons, comments, and segments, I refactored the skeleton tab to use this component.URL of deployed dev instance (used for testing):
Steps to test:
TODOs:
---
label on hoverIssues:
(Please delete unneeded items, merge only when none are left open)