-
Notifications
You must be signed in to change notification settings - Fork 288
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
Support mobile document uploads #1869
Conversation
The development doc is either incomplete or out-of-date, so i'll need some assistance getting the build to pass here. |
Is fava still maintained? Just wondering if it is best to fork to keep this project alive. |
It is, as might also be evident from the recent commits and release. It's an open-source project, don't expect to daily responses... |
Thanks for confirming. I have some experience maintaining open source projects, so I don’t expect daily responses, but was concerned after more than 3 weeks without a response. |
What exactly doesn't work for you? Use |
i'm seeing an error on
|
The above issue was fixed by following the suggestion in the pre-commit issue tracker at pre-commit/pre-commit#1017 (comment). Build should be passing now. |
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.
Thanks for the PR. I don't really like the way that this looks - I think the icon doesn't match Fava's visuals very well and IMHO it adds quite a bit of noise to the journal. I think on mobile in particular it takes up quite a bit of space (which might be worth removing by something like #1817).
I'd either like to have this in some less prominently visible way (maybe just having some clickable area for it?) - otherwise I think we should indeed do this via something like the context overlay.
I think the transactionality problem regarding the document upload from the context overlay could be addressed as follows: instead of uploading the file with the hash, upload it without and add the metadata inline to the edited slice in the context overlay |
This adds support for mobile document uploads by exposing a file input in the postings section. This allows for easy upload of documents for a specific transaction and account.
I considered adding a file input to the Context dialog, but that proved to be a dead-end since the entry hash changes on file upload. In order to support that, there would either need to be a way to re-calculate the hash after file upload and then reload the context dialog without disturbing unsaved changes, or a way to send the file upload and changes to the transactions in a single atomic PUT request. Those are both possible, but probably not worth the effort.
This alternative implementation has a bit better UX in my opinion, as it allows to easily associate a document with an account simply by clicking the file upload button next to the posting entry.
closes #979