-
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): Add new form to submit individual sequences #3710
base: main
Are you sure you want to change the base?
Conversation
6e00612
to
5dd4bf5
Compare
website/src/components/Submission/FileUpload/FileUploadComponent.tsx
Outdated
Show resolved
Hide resolved
1a4178f
to
f52fc56
Compare
just quickly tested this. I think that it is a bit surprising to land on the submission form for a single sequence by default. I would keep the default as the file upload and suggest that prominent button something with something like "Single sequence submission via form" takes you to the form. |
website/src/components/Submission/FileUpload/SequenceEntryUploadComponent.tsx
Outdated
Show resolved
Hide resolved
I couldn't reproduce this - my theory is it must have been about some field rather than the sequences
These text fields for sequences are definitely really problematic. I mostly of think they should in the more final version be file upload components (for the one segment). Copying and pasting sequences feels generally bad practice? |
I made some UX suggestions at https://subform2.loculus.org/cchf/submission/1/submit (username: superuser, pw: superuser) for some future version of this (some after this PR), which I've also mentioned on Slack. |
Definitely reproducible for me in CCHF |
Might have been because my sequences included a fasta header. Seems to work without fasta header. |
74a7377
to
5b00d6a
Compare
Thanks for your input! I quite like your suggestions Theo, I think I'd maybe just merge them in? For the sequence fields, maybe we can look into doing already client-side validation, so the users can't submit incorrect characters - or at least, showhow show a better error message. |
OK yeah so I think what's happening here is that the whole sequence is being interpreted as the FASTA header My own preferred way forward on this (and related issues) would be to create a new high priority issue to change all these sequence input text-boxes to |
9346e69
to
0aaf16b
Compare
Since this PR is already quite large, I have made an issue for follow up changes to the form itself: #3740 I want to keep this PR to just the initial creation of the single-sequence submission feature, and the refactoring of the internal components. IMO it'll be easier to review that way. |
1a26723
to
7d81b49
Compare
7d81b49
to
167f747
Compare
Co-authored-by: Theo Sanderson <[email protected]>
Co-authored-by: Theo Sanderson <[email protected]>
5f55329
to
ab14392
Compare
I'm not gonna merge right away, I'll let it sit at least until the end of tomorrow. Thanks a lot for the review Theo! |
resolves #3226
resolves #3722
preview URL: https://submission-via-form.loculus.org/dummy-organism/submission/2/submit?inputMode=form
updated docs page: https://docs-submission-via-form.loculus.org/for-users/submit-sequences/
Summary
inputMode
URL param to thesubmit
endpoint with valuesform
andbulk
. If it is omitted, we default back to the 'bulk' variant.td
was nested in adiv
Tests
FormOrUploadWrapper.spec.tsx
). Test that errors are raised when files or form input is missing. Test that all of the form that gets included in the TSV and also that escaping works.Implementation notes
FormOrUploadWrapper
wraps both and makes it easy to switch between them, returning just files which can then be used for uploadingnoEdit
fields to be in fact edited on initial submission - AFAICT this was only used for submission ID and accession (only the submission ID is shown in the 'submit' form).Screenshot
PR Checklist