29 Commits (1e1033fdf124b2e6bc7dbf598ef946de30573977)

Author SHA1 Message Date
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
Tom Hacohen cfd6db6fb5 Go back on successful save. 7 years ago
Tom Hacohen 8e2a465120 Rename Main to Pim. 7 years ago
Tom Hacohen c10a4cc924 Move the main page under pim and redirect there. 7 years ago
Tom Hacohen 97dc449953 Remove unused functions. 7 years ago
Tom Hacohen 68377ec0ac Fix viewing journals. 7 years ago
Tom Hacohen e310584e26 Split away the main view from the sync gate. 7 years ago
Tom Hacohen 5dacc4c013 Use the last entry id when fetching entries from server. 7 years ago
Tom Hacohen fc42566486 Cleanup the calendar and render in the main page. 7 years ago
Tom Hacohen e6778f5ace Make the sync gate render the complete address book. 7 years ago