Commit Graph

713 Commits

Author SHA1 Message Date
Angelo Stavrow
3dca0335dd
Remove unused published property from WriteFreelyModel object 2020-08-27 11:39:48 -04:00
Angelo Stavrow
beda0d711a
Do not pre-populate app with debug post data 2020-08-27 11:29:54 -04:00
Angelo Stavrow
49d8b35bb6
Get SwiftUI previews working with debug data 2020-08-27 11:29:54 -04:00
Angelo Stavrow
ecef8672e3
Fetch user posts on login, purge from store on logout 2020-08-27 11:29:54 -04:00
Angelo Stavrow
0dcbcc602d
Add fetchUserPosts to API with handler 2020-08-27 10:41:26 -04:00
Angelo Stavrow
d371f5104b
Add convenience initializer to create Post type from WFPost 2020-08-27 10:41:26 -04:00
Angelo Stavrow
e2e38b22cd
Add WFPost property to Post type 2020-08-27 10:41:26 -04:00
Angelo Stavrow
0c8a8708fb
Merge pull request #22 from writeas/fetch-collections-on-login
Fetch collections on login, purge on logout
2020-08-27 10:08:55 -04:00
Angelo Stavrow
fe188695a3
Merge branch 'main' into fetch-collections-on-login 2020-08-27 10:08:42 -04:00
Angelo Stavrow
d721fd749d
Merge pull request #20 from writeas/persist-token-to-keychain
Persist logged-in state between app launches
2020-08-27 09:25:56 -04:00
Angelo Stavrow
e4a21361ae
Merge branch 'main' into persist-token-to-keychain 2020-08-27 09:25:36 -04:00
Angelo Stavrow
4097fc09d5
Merge pull request #21 from writeas/persist-prefs-in-userdefaults
Persist preferences between app launches
2020-08-27 09:19:00 -04:00
Angelo Stavrow
c14a03a332
Get SwiftUI previews working with debug data 2020-08-25 11:40:30 -04:00
Angelo Stavrow
21e8a4ca35
Clear user collections on logout 2020-08-25 11:29:17 -04:00
Angelo Stavrow
18ce54bd89
Use WriteFreelyModel EnvironmentObject in CollectionListView 2020-08-25 11:28:52 -04:00
Angelo Stavrow
72319b1d6f
Fetch user collections on login 2020-08-25 11:28:06 -04:00
Angelo Stavrow
eebbf1a909
Convert CollectionListModel to ObservableObject 2020-08-25 11:27:15 -04:00
Angelo Stavrow
f118d58d5c
Add WFCollection property to PostCollection type 2020-08-25 11:25:56 -04:00
Angelo Stavrow
dd4a679060
Merge pull request #7 from writeas/add-writefreely-model
Add WriteFreely model
2020-08-25 09:03:17 -04:00
Angelo Stavrow
20d8ecc80f
Persist logged-in settings for account and server in UserDefaults 2020-08-24 16:53:01 -04:00
Angelo Stavrow
2652eceb12
Persist logged-in state in UserDefaults between app launches 2020-08-24 15:21:46 -04:00
Angelo Stavrow
b478cc9805
Save to Keychain on login, purge from Keychain on logout 2020-08-24 14:47:27 -04:00
Angelo Stavrow
f254c04a61
Add helper functions for adding to/fetching and deleting from Keychain 2020-08-24 14:45:52 -04:00
Angelo Stavrow
1cc9ae8c44
Restore colorScheme on launch based on UserDefaults 2020-08-24 10:12:48 -04:00
Angelo Stavrow
a28947aaa4
Store chosen colorScheme in UserDefaults 2020-08-24 10:11:58 -04:00
Angelo Stavrow
7c649b6947
Clean up function signatures 2020-08-24 09:32:09 -04:00
Angelo Stavrow
d196e9b349
Update README for current info 2020-08-20 13:49:28 -04:00
Angelo Stavrow
614dae01c6
Update change log 2020-08-20 12:12:50 -04:00
Angelo Stavrow
169a1e91de
Catch WFError directly in login/logout handlers 2020-08-20 11:41:09 -04:00
Angelo Stavrow
dbe83ef3c5
Update project for beta 5 2020-08-20 11:26:10 -04:00
Angelo Stavrow
970f4ae3e1
Implement login/logout functionality 2020-08-19 16:36:07 -04:00
Angelo Stavrow
2a9bd66fa2
Present login-error alert on AccountModel.hasError 2020-08-19 16:35:20 -04:00
Angelo Stavrow
229dbbb37d
Use AccountError localizedDescriptions in login-error alert messages 2020-08-19 16:34:36 -04:00
Angelo Stavrow
1bdd918931
Add localizedError description to AccountError cases 2020-08-19 16:33:16 -04:00
Angelo Stavrow
0254d9dbb9
Add macOS Sandbox entitlements 2020-08-19 11:35:39 -04:00
Angelo Stavrow
0a14421122
Disable login button if AccountLoginView fields are empty 2020-08-19 10:10:36 -04:00
Angelo Stavrow
0c20fea0e6
Refactor login/logout to implement WriteFreely package 2020-08-18 17:21:00 -04:00
Angelo Stavrow
d402ccd472
Add WriteFreelyModel to publish PostStore and Account/Preference models 2020-08-18 17:21:00 -04:00
Angelo Stavrow
143699244a
Merge pull request #5 from writeas/refactor-type-names
Refactor type names
2020-08-18 16:22:23 -04:00
Angelo Stavrow
49ea70e0a6
Clean up unnecessary AccountLoginView previews 2020-08-17 16:45:02 -04:00
Angelo Stavrow
cff4d02ef4
Make isPresentingSettings State property private, iOS-only 2020-08-17 15:51:07 -04:00
Angelo Stavrow
84e854b4ab
Refactor viewmodel code from PostCollection into CollectionListModel 2020-08-17 15:24:44 -04:00
Angelo Stavrow
ae8fd973c1
Move Post, PostCollection, and PostStore models to Models group 2020-08-17 14:45:47 -04:00
Angelo Stavrow
6e39c92071
Rename PostEditor to PostEditorView 2020-08-17 14:19:22 -04:00
Angelo Stavrow
ff82bbff77
Rename Post group to PostList 2020-08-17 14:19:22 -04:00
Angelo Stavrow
6d1f18e9d9
Move PostEditor out of Post group and into PostEditor group 2020-08-17 14:19:22 -04:00
Angelo Stavrow
8c0865b518
Rename PostList to PostListView 2020-08-17 14:19:22 -04:00
Angelo Stavrow
a88b58e624
Rename PostStatusBadge to PostStatusBadgeView 2020-08-17 14:19:22 -04:00
Angelo Stavrow
746ba954ec
Rename PostCell to PostCellView 2020-08-17 14:19:22 -04:00
Angelo Stavrow
752017cc2e
Merge pull request #4 from writeas/add-app-settings
Add app settings
2020-08-17 14:17:33 -04:00