17 Commits (7336fe5527d13bebacfb9851a4e3880ccf41e883)

Author SHA1 Message Date
Tom Hacohen e4de0605f9 Fix all the issues that came with switching to react scripts 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 5b79e0f107 Implement journal update. 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 1e1033fdf1 Actions fetchAll: return a promise rather than undefined. 6 years ago
Tom Hacohen 8e7243964d Automatically create user info when there is none. 6 years ago
Tom Hacohen 71e20bb65f UserInfo: Fix persistance of user info to cache. 7 years ago
Tom Hacohen 1ee224bd0b Add an action to fetch userInfo. 7 years ago
Tom Hacohen 4833a98763 Split fetching credentials and key derivation. 7 years ago
Tom Hacohen 2608a354ea Add an action to derive the encryption key. 7 years ago
Tom Hacohen 8d3a06cdfd Split the login credentials and the encryption key.
We do this so we can persist the login info to local storage, but
still keep the encryption key safe.

This version will fails if you clear the session storage. This will be
fixed in the next commit.
7 years ago
Tom Hacohen e48ebc5137 Fix entries fetching by creating a fetchAll action. 7 years ago
Tom Hacohen e38409203c Remove fetching status from the store.
This was causing constant invalidations and therefore killing our performance.
7 years ago
Tom Hacohen e58ddf8545 Implement shallow compare for the journal reducer.
The reason why we need it is that we don't have a concept of etag for
journal fetching, which means we were setting the store on each fetch
causing everything that depends on the journals to invalidate.

This triggers a bug that causes the entries not to refresh if the
journals haven't changed.
7 years ago
Tom Hacohen 2aa92f15e7 Reducer: don't reset the store when fetching.
There were a couple of bugs there:
1. The store was reset while fetching/error because the payload was
empty/error.
2. The error status wasn't reset after for successful fetches that
follow failed ones.
7 years ago
Tom Hacohen 48cd22b464 Move the store into its own module and split it up. 7 years ago