-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
e292047
to
a2c5907
Compare
a2c5907
to
cd302a2
Compare
Added a toast about the successful outcome. file-saver will not produce any errors as it is based on the native html 5 download href, hence no error message in case of no success. |
Opted against adding regression tests, as there is not much logic to test anyway. |
18c7a33
to
3e6c019
Compare
cdb18bf
to
324b4d4
Compare
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.
Haven't tested it but looks good to me. Can you squash the commits please?
I'm not sure whether this should go in as-is (hence the draft status), especially without prior to testing this. I have kept it as draft as I noticed on Friday that the saved file is not the same binary size as the original one; and worked on a test that would ensure we backup the right thing. I suspect RocketResponderPro is adding headers / screwing up encoding - might be easier to go with serde and then deserialise into a blob to ensure the file is as it's supposed to be. The other way (perhaps simpler altogether) that I came up with during the weekend (but haven't tried) would be just serving |
As this is one of the paths where the user might lose money if it doesn't work properly, I would certainly test this to prove that it works. |
The downloaded seed file works properly.. I've tested it manually.
Everything is working ;)
I think the regressions tests are better covered including the restore feature.
I guess that would also work, for the app-seed argument I was thinking if we could store that also to a taker_seed file if we get it, then we have the same behavior. wdyt? |
324b4d4
to
5f24afa
Compare
bors r+ |
awesome! 🤘 |
that would also work, yes! however it might be a too niche feature to even bother. :-) |
TODO:
Add tests