-
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 deprecated antd Dropdown menus #6898
Conversation
…bar-menu * 'master' of github.com:scalableminds/webknossos: Fix exploring datasets via http (without s) (#6863)
…d-v4.24 * 'master' of github.com:scalableminds/webknossos: Update deprecated antd <Menu> (#6860)
…d-v4.24 * 'master' of github.com:scalableminds/webknossos: Implement http range requests for HttpsSeekableByteChannel (#6869) new GH action for adding issues to project board Fix links in Changelog (#6881) adds dedicated explore method for zarr datasets with a datasource-properties.json (#6879) Release 23.03.0 (#6880) Fix superUser being wrongly marked as organization owners (#6876) Followups for OME-TIFF export (#6874) Fix reload-precomputed-mesh functionality (#6875) Adds OME-TIFF export (#6838) Add evolutions 99,100 to migration guide (#6871) Add link to imprint and privacy to help menu (#6870) Annotation Locking Mechanism (#6819)
@@ -186,7 +186,7 @@ export function FolderTreeSidebar({ | |||
/> | |||
</div> | |||
<Dropdown | |||
overlay={createMenu} | |||
menu={createMenu()} | |||
placement="bottom" | |||
// The overlay is generated lazily. By default, this would make the overlay |
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.
Mh, the menu
prop no longer supports passing a function. Since the menu is not really a React component, it might not constantly re-rendered. Not sure how we want to handle this. (This issues is present in a few of our Dropdowns.)
Also the autoDestroy
prop is also not mentioned in the docs anymore. There is a reference to destroyPopupOnHide
though, which sounds similar: https://4x.ant.design/components/dropdown/#API
…pdown-menu * 'master' of github.com:scalableminds/webknossos: Avoid SQL error when fetching view config for zero-layer dataset (#6912) Fix date formatting for VX reports (#6908) Fix rare crash when viewing shared annotation (#6892) Slim down view mode dropdown by using icons (#6900) Logging on password reset/change (#6901) When merging volume tracings, also merge segment lists (#6882) avoid spinner when switching tabs in dashboard (#6894)
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! didn't test yet, but have already left some small comments.
frontend/javascripts/oxalis/view/action-bar/tracing_actions_view.tsx
Outdated
Show resolved
Hide resolved
frontend/javascripts/oxalis/view/right-border-tabs/tree_hierarchy_view.tsx
Outdated
Show resolved
Hide resolved
First round of testing:
|
One other problem:
Steps to reproduce:
|
I also just tested performance and everything seemed fine 👍 (for the record, I tested with 80k trees). |
…pdown-menu * 'master' of github.com:scalableminds/webknossos: Fix download button for annotations when tiff export is disabled (#6931) Update PULL_REQUEST_TEMPLATE.md Prepare multi modality support (#6748) Improvements for terms-of-services modal (#6930) Fix creating task types with preferred mode (#6928) Fix styling for login pages for dark mode users (#6916) Added members to admin team page (#6915) Release 23.03.1 (#6917) Redesign Welcome UI (#6904) Fix race condition which could disable saving (#6914)
@philippotto I think I fixed the issues that you detected and applied your PR feedback. Please have a look at my last few commits. I likely also fixed issue #6814 in the process. |
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.
Splendid clean up! See only my one comment about commented code before merging.
…come-toast * 'master' of github.com:scalableminds/webknossos: Log all details on deleting annotation layer (#6950) fix typo Rename demo instance to wkorg instance (#6941) Add LOD mesh support for frontend (#6909) Fix layout of view mode switcher and move it (#6949) VaultPath no longer extends nio.Path (#6942) Release 23.04.0 (#6945) Use new zip.js version to allow zip64 uploads (#6939) Implement viewing sharded neuroglancer precomputed datasets (#6920) Reject dataset uploads if organization storage quota is exceeded (#6893) Refactor deprecated antd Dropdown menus (#6898)
…wings * 'master' of github.com:scalableminds/webknossos: updates docs for docker installation (#6963) Fix misc stuff when viewing tasks/annotations of another user (#6957) Remove segment from list and add undo/redo for segments (#6944) Log all details on deleting annotation layer (#6950) fix typo Rename demo instance to wkorg instance (#6941) Add LOD mesh support for frontend (#6909) Fix layout of view mode switcher and move it (#6949) VaultPath no longer extends nio.Path (#6942) Release 23.04.0 (#6945) Use new zip.js version to allow zip64 uploads (#6939) Implement viewing sharded neuroglancer precomputed datasets (#6920) Reject dataset uploads if organization storage quota is exceeded (#6893) Refactor deprecated antd Dropdown menus (#6898)
Antd 4.2x introduced deprecation warnings for
<Menu>
components within<Dropdown>
elements. This PR replaces the React<Menu>
components with heir object equivalents.Most changes/files are rather straight forward conversions. Only the annotations context menu is more involved since is is created from a million different function, components, etc. Hopefully the strict typing of all menu items prevents any new bugs.
I tested all menus and clicked on all items but I might have missed some by mistake...
URL of deployed dev instance (used for testing):
Steps to test:
detection_no_size_threshold.nml.zip
Issues:
(Please delete unneeded items, merge only when none are left open)