Commit Graph

713 Commits

Author SHA1 Message Date
Angelo Stavrow
169e3684a6
Extract PostStatus enum to own file and add raw Int32 values 2020-09-08 11:27:57 -04:00
Angelo Stavrow
5436764e4f
Add new local draft to local store 2020-09-08 10:34:20 -04:00
Angelo Stavrow
b2c503497d
Fix rebasing errors 2020-09-08 10:12:55 -04:00
Angelo Stavrow
9dd149c59d
Fetch user posts into CoreData on launch, purge from database on logout 2020-09-08 09:57:05 -04:00
Angelo Stavrow
3bdc08f067
Add WFAPost NSManagedObject class for local storage 2020-09-08 09:57:05 -04:00
Angelo Stavrow
e8301b7eb4
Add "All Posts" grouping back to CollectionListView 2020-09-08 09:57:05 -04:00
Angelo Stavrow
0887638841
Load user collections from cache on launch, wipe from database on logout 2020-09-08 09:57:05 -04:00
Angelo Stavrow
8e035a43cb
Fetch user collections into CoreData and list from ManagedObjectContext 2020-09-08 09:55:43 -04:00
Angelo Stavrow
bac7d9bfb0
Add preprocessor for macOS vs iOS import 2020-09-08 09:54:58 -04:00
Angelo Stavrow
f235a0c2d0
Add uniqueness constraint on alias, remove views attribute 2020-09-08 09:54:58 -04:00
Angelo Stavrow
09d1d76d47
Add saveContext method to PersistenceManager, clean up warnings 2020-09-08 09:54:58 -04:00
Angelo Stavrow
2bb47845a5
Add WFACollection NSManagedObject class for local storage 2020-09-08 09:54:58 -04:00
Angelo Stavrow
4c626e33ea
Add PersistenceManager for loading CoreData container 2020-09-08 09:54:58 -04:00
Angelo Stavrow
9b733279a7
Add CoreData model file for local storage 2020-09-08 09:54:58 -04:00
Angelo Stavrow
3751118f6e
Merge pull request #32 from writeas/reload-from-server
Implement reload-from-server
2020-09-08 09:15:37 -04:00
Angelo Stavrow
82056733cb
Refactor status toolbar out of PostEditorView and fix macOS build error 2020-09-01 15:00:20 -04:00
Angelo Stavrow
bc8ae19dab
Update "drafts" references in code to "local drafts" 2020-09-01 09:59:36 -04:00
Angelo Stavrow
3c26829407
Rename "draft" status to "local" 2020-09-01 09:54:43 -04:00
Angelo Stavrow
afa026dc57
Show outdated-content message in editor and prompt to replace local copy 2020-08-31 16:39:13 -04:00
Angelo Stavrow
16b16dbd52
Add single-post updateFromServer API to WriteFreelyModel 2020-08-31 16:38:35 -04:00
Angelo Stavrow
b21cef6a54
Update user content on launch if logged in 2020-08-31 16:37:55 -04:00
Angelo Stavrow
4ae66e1585
Add PostStore method to update post's WFPost property 2020-08-31 16:36:41 -04:00
Angelo Stavrow
30b527daa4
Add selectedPost published property to WF model 2020-08-31 16:35:45 -04:00
Angelo Stavrow
45b6fb533c
Restore the WFClient when the WriteFreely model initializes 2020-08-31 11:24:38 -04:00
Angelo Stavrow
07d306a196
Show message in editor if post hasNewerRemoteCopy 2020-08-28 09:07:33 -04:00
Angelo Stavrow
a3fe7630e8
Remove unnecessary alert because we don't clobber data anymore 2020-08-27 17:41:41 -04:00
Angelo Stavrow
5c08a9e723
Update store with fetched posts by setting hasNewerRemoteCopy flag 2020-08-27 17:41:13 -04:00
Angelo Stavrow
201cc27162
Update post in store async to avoid bad access error 2020-08-27 17:40:05 -04:00
Angelo Stavrow
00373e5a80
Don't purge local posts indiscriminately 2020-08-27 15:43:54 -04:00
Angelo Stavrow
66790e7933
Add hasNewerRemoteCopy flag to the Post type 2020-08-27 15:32:40 -04:00
Angelo Stavrow
4a7b1a5355
Write Post's updatedDate when the PostEditorView is deallocated 2020-08-27 15:27:30 -04:00
Angelo Stavrow
0b6b0c395d
Merge pull request #28 from writeas/consolidate-post-properties
Consolidate redundant Post properties
2020-08-27 13:18:03 -04:00
Angelo Stavrow
b01ea3c29e
Merge pull request #25 from writeas/implement-publishing
Implement publishing
2020-08-27 13:16:15 -04:00
Angelo Stavrow
68607478a3
Clean up some rebase mixups 2020-08-27 12:17:42 -04:00
Angelo Stavrow
ee0f72b5ef
Implement reload from server on iOS 2020-08-27 12:02:35 -04:00
Angelo Stavrow
978192201d
Implement reload from server on Mac 2020-08-27 12:02:35 -04:00
Angelo Stavrow
e3ed0831e6
Rename store purge method to purgeAllPosts and add purgeRemotePosts 2020-08-27 12:02:35 -04:00
Angelo Stavrow
cb791d137c
Remove redundant Post properties 2020-08-27 12:02:12 -04:00
Angelo Stavrow
67d78bfc8d
Set the wfPost property when creating a Post from a fetched WFPost 2020-08-27 12:00:16 -04:00
Angelo Stavrow
ff99c352d8
Add convenience initializer to create Post type from WFPost 2020-08-27 11:58:47 -04:00
Angelo Stavrow
ccd73a517e
Add WFPost property to Post type 2020-08-27 11:58:26 -04:00
Angelo Stavrow
66ea408d97
Merge pull request #24 from writeas/fetch-posts-on-login
Fetch posts on login, purge on logout
2020-08-27 11:54:15 -04:00
Angelo Stavrow
d651776322
Use Post.wfPost properties instead of redundant Post properties 2020-08-27 11:47:30 -04:00
Angelo Stavrow
a97bd5abb7
Use optional unwrapping and wfPost properties in publish API/handler 2020-08-27 11:47:30 -04:00
Angelo Stavrow
072e60c918
Remove redundant Post properties 2020-08-27 11:47:30 -04:00
Angelo Stavrow
05456ad501
Set the wfPost property when creating a Post from a fetched WFPost 2020-08-27 11:46:20 -04:00
Angelo Stavrow
ed8c2dc105
Add convenience initializer to create Post type from WFPost 2020-08-27 11:42:25 -04:00
Angelo Stavrow
cc6fb776b6
Enhance publish method on API for updating published posts 2020-08-27 11:39:48 -04:00
Angelo Stavrow
62a2de6cad
Add publish to API with handler for new local drafts 2020-08-27 11:39:48 -04:00
Angelo Stavrow
904bd0f0f5
Set the wfPost property when creating a Post from a fetched WFPost 2020-08-27 11:39:48 -04:00