-
Notifications
You must be signed in to change notification settings - Fork 0
Yew frontend #1
Yew frontend #1
Conversation
Would be nice if it threw and error message when e.g. amino acid sequences were uploaded |
I would really love to be able to use this on signatures I have laying around already, instead of only on fastq/fasta |
Progress bar would make it more intuitive that it is running, but it's so fast that it might slow the thing down |
I just saw that firefox gives a lock with a red slash through it in the URL. Because I trust you/greyhound and know what it's doing, I'm fine with that, but for users who don't more description could be nice |
This is all amazing feedback, thanks @taylorreiter!
Yup, error handling is still VERY lacking along all of greyhound. This includes properly reporting errors when calling
That is also doable, I can check if the file is a signature or FASTA/Q and react appropriately.
I had this working before doing this wasm frontend, I'll need to emit some signals to update the progress bar, but also pretty doable.
Good catch, I need to setup nginx (or caddy?) properly to serve the pages, and so add HTTPS (and run on ports |
OK, this is fixed (now using |
Another TODO:
|
This PR rewrites the frontend in Yew, a "modern Rust framework for creating multi-threaded front-end web apps with WebAssembly". Main benefit compared to https://github.com/luizirber/wort-dnd (which is the base for https://blog.luizirber.org/2018/08/27/sourmash-wasm/) are:
wort-dnd
😬GatherResult
struct in the backend and the frontend!Other things happening in this PR:
niffler
from master branch to be able to properly use the most recent needletail (which requires aSend
bound). Trackling PR in niffler: Support seek send and prepare any future extension niffler#37Still left to consider:
File
to the worker, and let it read the data by chunks. It seems to be doable with JS web workers, but I didn't figure out how to do it with Yew/wasm yet.input
and selecting a file is easier (especially in mobile). But it would be nice to bring back DnD too./gather
(and save some bandwidth?)