-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(website): Change data use terms in bulk #3322
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
21279a9
to
0fa3aef
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
cfb812b
to
e549f99
Compare
This is the test that failed:
|
bed5bde
to
eb9c3a8
Compare
4f25f44
to
f4a688e
Compare
website/src/pages/[organism]/submission/[groupId]/released.astro
Outdated
Show resolved
Hide resolved
website/src/components/DataUseTerms/DataUseTermsSelector.spec.tsx
Outdated
Show resolved
Hide resolved
website/src/components/SearchPage/DownloadDialog/SequenceFilters.tsx
Outdated
Show resolved
Hide resolved
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.
Really good work, I had a look through all the code and it looks great to my eyes
Some more feedback I got from @corneliusroemer
Thanks Theo and Cornelius for the review!! |
To my mind we don't need to worry that much about mobile responsivity for submission-related pages (but ofc. no problem with making it better if that's not too hard) |
Co-authored-by: Theo Sanderson <[email protected]>
Co-authored-by: Theo Sanderson <[email protected]>
dd7860c
to
cc0a415
Compare
regarding "One can apply a "non-update" and it shows in the data use terms history" I implemented a fix here: It wasn't possible to do the filtering in the backend without breaking up the |
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.
I didn't look through all the code again, but functionality seems good now and we've had a pass through the code so I'm approving. Thanks for all the hard work!
resolves #992
preview URL: http://datausetermsbulkchange.loculus.org
Summary
EditDataUseTermsModal
OPEN
, allRESTRICTED
or a mix of both.DateTimePicker
is now part of theDataUseTermsSelector
component and has been pulled out of the submission form andEditDataUseTermsButton
. TheDataUseTermsSelector
has a setting to switch between an inline and dialogDateTimePicker
.EditDateUseTermsModal
and theDownloadDialog
use a commonBaseDialog
component.DownloadParameters
union type has been refactored into aSequenceFilter
that is now also used by the new modal to get the LAPIS query parameters it needs. Various code spread around components has been factored into methods of the new classes.DataUseTermsSelector
Screenshot
There are 3 different types of panels, depending on the selection of sequences. below is the one for when only restricted sequences are selected:
PR Checklist
All necessary documentation has been adapted.(not applicable?)DataUseTermsSelector
is tested, and then simply emebedded in the new modal. That seemed sufficient to me)