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

Create new export modal #6171

Merged
merged 41 commits into from
May 19, 2022
Merged

Create new export modal #6171

merged 41 commits into from
May 19, 2022

Conversation

Dagobert42
Copy link
Contributor

@Dagobert42 Dagobert42 commented Apr 27, 2022

URL of deployed dev instance (used for testing):

https://createnewexportmodal.webknossos.xyz/

Steps to test:

  • open an annotation and select Download from the tracing actions
  • the new modal should show with tabs for Download, Export and Python Client

Issues:


(Please delete unneeded items, merge only when none are left open)

@philippotto philippotto changed the title Create new export modal [WIP] Create new export modal Apr 28, 2022
@Dagobert42
Copy link
Contributor Author

Thanks for proof-reading and the suggestions @hotzenklotz ! I will adapt them asap.

@fm3
Copy link
Member

fm3 commented Apr 29, 2022

Note that the back-end already supports an optional boolean skipVolumeData in the annotation download route.

TODO backend (I will implement this when I have time):

  • also omit the <volume> tags in the NML file in this case, replace them by explaining comment

Copy link
Member

@philippotto philippotto left a comment

Choose a reason for hiding this comment

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

Cool stuff! Already looks pretty good. I left a couple of comments which should be tackled before merging, but nothing major.

I pushed a small commit to improve some typing, since I saw some never annotations which didn't seem quite right (and I thought it would be quicker to fix than to explain it :)). You can have a look at it here: 1016d85

frontend/javascripts/admin/admin_rest_api.ts Outdated Show resolved Hide resolved
frontend/javascripts/admin/admin_rest_api.ts Outdated Show resolved Hide resolved
frontend/javascripts/messages.ts Outdated Show resolved Hide resolved
@philippotto philippotto changed the title [WIP] Create new export modal Create new export modal May 13, 2022
@Dagobert42
Copy link
Contributor Author

@MichaelBuessemeyer thanks for the help with b5bb9c8 :)

Copy link
Contributor

@jstriebel jstriebel left a comment

Choose a reason for hiding this comment

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

Just tested the Python snipplet for annotation download, works like a charm ✨

Screenshot from 2022-05-18 16-40-09

Copy link
Member

@philippotto philippotto left a comment

Choose a reason for hiding this comment

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

Great work :) Please update the changelog before merging, though. I also pushed a few changes, since I noticed that the size of the bounding boxes is not validated in the modals form.

It's not super pretty, but gets the job done:

image

@Dagobert42 Dagobert42 merged commit fe1fd32 into master May 19, 2022
@Dagobert42 Dagobert42 deleted the create-new-export-modal branch May 19, 2022 14:15
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.

Build export dialog
5 participants