59 Commits (13272798163d016eb85373ab9de6e875b26f0002)

Author SHA1 Message Date
Tom Hacohen 7fe2cd1f60 Change default collection names from 'Default' to be descriptive
A step towards fixing https://github.com/etesync/android/issues/118
4 years ago
Tom Hacohen f3a533ab2d Settings: change to react hooks + remove unneeded props. 4 years ago
Tom Hacohen 0b18cac914 Licensing: add license headers to source files. 5 years ago
Tom Hacohen 6ed0f02abc SyncGate: move to react hooks. 5 years ago
Tom Hacohen 90392fe432 Change entries to also not be a complex fetch type. 5 years ago
Tom Hacohen 2946be464c Change journals to also not be a complex fetch type. 5 years ago
Tom Hacohen 23048cfa63 Change userInfo to also not be a complex fetch type. 5 years ago
Tom Hacohen 5f78657e51 Fix crash with associate accounts.
Associates accounts can't create journals, and the web client was
failing for them because the creation error wasn't being handled
correctly.
5 years ago
Tom Hacohen d0ec686592 Debug: added a debug route to let people easily inspect their journals.
Useful when people are helping with debugging.
5 years ago
Tom Hacohen b4634abff4 Fix new account setup.
We were getting a 404 because the user info doesn't exist, and were erroring
because of it, which was not calling the then (just the catch).

We now handle the error condition.
5 years ago
Tom Hacohen c7d4a15f5f Move the etesync-js API to its own repo. 5 years ago
Tom Hacohen 29d4153e60 Fix some tsserver suggestions. 5 years ago
Tom Hacohen 11dd883f5f lint: replace tslint with eslint and fix new warnings and errors. 5 years ago
Tom Hacohen a252078d65 Use the new getCryptoManager when editing journals/userInfos.
This also fixes an issue when editing and deleting journals after an encryption
password change.
5 years ago
Tom Hacohen 41848aa7e3 Remove useless constructor 5 years ago
Tom Hacohen 46fe1ceeb6 Gracefully handle wrong encryption passwords.
Until now we just showed integrity error which could be one of many issues.
Now we show an explicit error message and only clear the encryption password
cache rather than the whole cache.
5 years ago
Tom Hacohen ad45ad3f83 Update tslint and fix warnings. 6 years ago
Tom Hacohen 7da0a6009b More tslint fixes. 6 years ago
Tom Hacohen 3b7fadcc69 Set the locale based on the settings.
Partially fixes #4
6 years ago
Tom Hacohen 43044750e3 Add support for settings (route and store). 6 years ago
Tom Hacohen c5fc6f23f5 Jounal store: simplify the store functions and change the list to a hash
It's always been a massive mess, this improves it.
6 years ago
Tom Hacohen b1070ecc94 Restructure the journals route.
This puts the jorunal list and the journal view in the same place
and will make it easier to add new/edit.
6 years ago
Tom Hacohen 8f13da7a39 Remove the secondary header and update the appbar instead. 6 years ago
Tom Hacohen 20b409ffe8 Move the journals to their own page. 6 years ago
Tom Hacohen 45bd0a9054 Associate account workaround: allow journal creation to fail. 6 years ago
Tom Hacohen 7d2fa215a3 Also init tasks on first run. 6 years ago
Tom Hacohen a8c6b30456 Fix infinite loading indicator when there are no entries. 6 years ago
Tom Hacohen d6b7ba0240 Journal: upgrade material-ui 6 years ago
Tom Hacohen ae26e34eb4 Update react, typescript recompose and etc. 6 years ago
Tom Hacohen 73897700d9 Automatically create the default journals if there are none. 6 years ago
Tom Hacohen 8e7243964d Automatically create user info when there is none. 6 years ago
Tom Hacohen 9c740a4c4d Add support for saving entries to shared journals. 7 years ago
Tom Hacohen e257f427eb Show an error message when userInfo doesn't exist. 7 years ago
Tom Hacohen 8367767006 SyncGate: only get asymmetricKey from UserInfo if needed. 7 years ago
Tom Hacohen cf823f5efe Implement fetching userInfo and opening shared journals. 7 years ago
Tom Hacohen d869be6bc9 Revert "Only mark journals that have been shared with us as unsupported."
This is not needed, because key is set only if we have a key set for us
which means it was either shared with us, or we have a reason to have a
key (maybe changed the password).

(Kept the fixme that was added in that commit)

This reverts commit 3408e16013.
7 years ago
Tom Hacohen 3408e16013 Only mark journals that have been shared with us as unsupported.
Journals that we've shared are supported even if we share them,
so make the check a bit more explicit so we show them.
7 years ago
Tom Hacohen 73ab88d3d2 Sync gate: better position the loading indicator. 7 years ago
Tom Hacohen e48ebc5137 Fix entries fetching by creating a fetchAll action. 7 years ago
Tom Hacohen 8186055537 Syncgate: don't create the router aware components on each render. 7 years ago
Tom Hacohen d06b7610cd Move the basic widgets to their own directory. 7 years ago
Tom Hacohen 48cd22b464 Move the store into its own module and split it up. 7 years ago
Tom Hacohen 3bb6d92be7 Add very basic error handling. 7 years ago
Tom Hacohen 58eedd1c37 Cache the SyncGate calculations.
This was taking quite a lot of time and caching this significantly
improves performance.

We only need it because of the react-redux-router bug, but good to have
it in the meanwhile.
7 years ago
Tom Hacohen 97eaa756fe Add FIXMEs for the withRouter workaround
Because of: https://github.com/ReactTraining/react-router/issues/5795
We have to use withRouter which triggers a lot of extra renderings.
This means that until the bug is fixed we have to use withRouter and
some memoization to make sure we don't recalc everything all the time.
7 years ago
Tom Hacohen 264145eb72 Pim: no longer pass the match object. 7 years ago
Tom Hacohen 9f396173b0 Move etsync decryption logic to sync gate.
This shares more of the code, and also lets us be more efficient because
we now do these calculations less.
7 years ago
Tom Hacohen 4f88ff6364 Adjust code to work with es5 as a target. 7 years ago
Tom Hacohen a6ad199023 Make all of the React.Components Pure. 7 years ago
Tom Hacohen c3e686002e Move the store to immutable.js
This significantly helps with reducing the number of copies we do,
because in most cases a refresh will not change a journal.
7 years ago