83 Commits (f2a28ebcffbe465e2889cedc6e8b061396fcb9ed)

Author SHA1 Message Date
Tom Hacohen b4f4de7798 Update etebase and adjust usage accordingly. 4 years ago
Tom Hacohen 085298f14c Sync manager: fix handling of removedCollections. 4 years ago
Tom Hacohen da95830d9f CacheItems: don't delete when deleted, just mark as such.
This is needed for the change history to work properly.
4 years ago
Tom Hacohen d4a05faa0a Error reducer: fix handling of appending errors.
Apparently if the payload is an instante of an Error object, payload creator won't
be called.

Info: https://redux-actions.js.org/api/createaction
4 years ago
Tom Hacohen 82a3233a43 Update according to etebase-js changes. 4 years ago
Tom Hacohen b434fc829a Fix item cache being deleted on fetch. 4 years ago
Tom Hacohen a36a70e30c store: improve typing in cache deserialize. 4 years ago
Tom Hacohen e58f3dd9e6 Rename cache/credentials2 to remove the 2.
As long as we keep the cache key the same, it's fine to change the user
facing parts.
4 years ago
Tom Hacohen b8442532e8 Improve error handling: failing to parse items/collections + syncmanager 4 years ago
Tom Hacohen b93718a5cb Login: show a nice error when pointing to a bad Etebase server. 4 years ago
Tom Hacohen a540514f87 Login: make it visible that it's loading. 4 years ago
Tom Hacohen 1489f8ec1b SyncCollections: fix the return type of the setSyncCollection action. 4 years ago
Tom Hacohen 2456b2645f Store: move the base64 serialization to the persistor serializers.
We were doing it earlier (in the store), and it was less efficient and
unnecessary. The correct place for the serialization is when actually
needing it.
4 years ago
Tom Hacohen 346dc95cee Rename Credentials2/Cache2 (left-overs from the etebase migration). 4 years ago
Tom Hacohen abf2224d31 Store: clear cache and sync items on logout. 4 years ago
Tom Hacohen 626771d2c5 Store: implement updating store in bulk. 4 years ago
Tom Hacohen 6e3bb42f96 Item batch: clean up reducers and update store on upload 4 years ago
Tom Hacohen 200102d222 createAction: fix the action type. 4 years ago
Tom Hacohen 2c2abbb7ae Collection upload: consolidate reducer and update store on upload. 4 years ago
Tom Hacohen 2f8794e8fd store: add a useAsyncDispatch function for type-correct async dispatch. 4 years ago
Tom Hacohen 1877afca50 Remove wrong hardcoded url. 4 years ago
Tom Hacohen 4047638e6f Completely remove EteSync dependency. 4 years ago
Tom Hacohen 877171b2ea App: cleanup the component and make sync add to fetch count. 4 years ago
Tom Hacohen 7f85d304a8 Store: fix cache collection storage. 4 years ago
Tom Hacohen 1817fbf87d Etebase change to login. 4 years ago
Tom Hacohen 9ec5d2a708 Change code to double-quotes. 4 years ago
Tom Hacohen d4ca0a3ec4 Errors: append in bulk rather than 1 by 1. 5 years ago
Tom Hacohen 06e4e4a5d3 Rename addError action to fix fetch count.
Fetch count increments/decrements based on all actions prefixed with add
which means addError was also triggering it.
This broke the fetchCount count.
5 years ago
Tom Hacohen 435256bede Experimental: add dark mode.
It's been ready for a while, though we haven't bothered enabling it because the
calendar view is less than great, though I think it makes sense to enable it
now as experimental and improve it as we go.

Fixes #128.
5 years ago
Tom Hacohen dac6ba5900 Login: automatically log out on expired token.
This is a bit of a workaround.
The problem is that we cache auth tokens, but that auth tokens can expire.
Thins means that we could have a stale auth token after coming back to
the app after a long time, so we need to fetch a new one.

Logging out is a bit of a nuclear option, but since this is a rare
scenario, it can do for now.
5 years ago
Andrew P Maney 1de7a2ebdd
Tasks: implement sorting
Merge of #104
5 years ago
Andrew P Maney effd74e0b2 Tasks: adds filter by tag feature
Squash of #94
5 years ago
Tom Hacohen ec9d8d3329 Revert "Tasks: adds filter by tag feature"
Reverting because I'm not the author. The next commit will have the
right author set.

This reverts commit b14697474c.
5 years ago
Tom Hacohen b14697474c Tasks: adds filter by tag feature
Squash of #94
5 years ago
Andrew P Maney a2d6dacbe4 Settings: change setSettings action to merge with state.
It was overriding state before.
5 years ago
Tom Hacohen 0b18cac914 Licensing: add license headers to source files. 5 years ago
Tom Hacohen 8e790ed666 Fix bug with web client not remembering a user is logged in.
Was introduced in 118d26ce83
5 years ago
Tom Hacohen fe42a3c2ed Add migrations for the changes in the store's structure 5 years ago
Tom Hacohen 06bf21248e Add journal and entry error handling to the global error handling. 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 118d26ce83 Simplify the fetch credentials structure to not use the fetch record.
It was thrashing the redux store. We made the same change for the ios app.
5 years ago
Tom Hacohen 28c3a8395b Logout: invalidate the auth token after logging out. 5 years ago
Tom Hacohen 7e6ed69e35 SyncGate: fix issue with empty journals not working.
Before this we weren't able to import/add entries to empty journals.
This was introduced in c6eafadb8b
5 years ago
Tom Hacohen c6eafadb8b Store actions fetchAll: cleanup and only fetch if there's new data. 5 years ago
Tom Hacohen 9abb3dcad9 Make parse errors non-fatal
Before this patch, parse errors would make the whole app stop and show
an error. Now we handle them more gracefully by showing the parsing
errors in a non-fatal way.

This was implemented in a hacky way, and will be changed once the web
app is refactored to better resemble the iOS app.

Fixes #48.
5 years ago
Tom Hacohen 7edb1abfb4 promise middleware: fix to correctly return an error promise on error. 5 years ago
Tom Hacohen c7d4a15f5f Move the etesync-js API to its own repo. 5 years ago
Tom Hacohen f3de2a641a eslint: changed unused-args to always warn. 5 years ago