Commit Graph

50 Commits

Author SHA1 Message Date
Angelo Stavrow
884da073e9
Prepare release v1.0.11 for iOS (#225)
* Add error handling to Mac app

* Log fatal crashes and present alert on next launch

* Update crash alert copy and navigate to help forum

* Refactor logging into reuseable methods

* Refactor class to use protocol

* Add environment object to settings window

* Improve deactivation of app when miniaturizing

* Chagne dispatch type when creating new post

* Bump version and build number

* Remove unnecessary TODO comment

* Update change log

* Log fatal crashes and present alert on next launch

* Update crash alert copy and navigate to help forum

* Refactor logging into reuseable methods

* Add environment object to settings window

* Improve deactivation of app when miniaturizing

* Chagne dispatch type when creating new post

* Improve default window size (#220)

* Clean up unnecessary import

* Set idealWidth property on sidebars

* Unset selected post on collection change (#218)

* Unset selected post when changing collection

* Update change log

* Bump build number and update change log
2022-09-10 08:30:55 -04:00
Angelo Stavrow
b2f8049632
Update CollectionListView based on account type (#222) 2022-09-07 08:28:53 -04:00
Angelo Stavrow
2eba4c5c04
Remove commented-out code 2022-05-28 07:22:27 -04:00
Angelo Stavrow
230f7a1076
Delete CollectionListModel in favour of FetchRequest in CollectionListView 2022-05-28 07:17:33 -04:00
Angelo Stavrow
15f84b04c0
Handle errors in (most) shared code
Two outliers to come back to are:

- the LocalStoreManager, where we can’t set a current error in the WriteFreelyModel in methods that can’t throw
- the CollectionListModel, where the initializer can’t throw because we use it as a property initializer in CollectionListView
2022-05-26 08:08:12 -04:00
Angelo Stavrow
c5b611b39e
Add FIXME to track silent failure on fetching collections
As collections are fetched and added to the `list` property in the CollectionListModel’s initializer, it’s tricky to throw an error here: we call it as a property initializer in CollectionListView, which cannot throw.

Consider refactoring this logic such that we’re using, for example, a @FetchRequest in CollectionListView instead.
2022-05-26 07:31:11 -04:00
Angelo Stavrow
378229c71a
Bump build number 2021-11-19 15:51:37 -05:00
Angelo Stavrow
2f1b895df5
Rename 'persistentContainer' to 'container' 2021-10-08 17:15:38 -04:00
Angelo Stavrow
11ad3bc2ff
Use LocalStorageManager 'standard' singleton 2021-10-08 17:07:06 -04:00
Angelo Stavrow
3c1e04e3bf
Use view model for CollectionListView 2021-09-24 14:45:28 -04:00
Angelo Stavrow
900ef269ba
Use same code path to set iOS and Mac app state on launch 2021-01-26 09:23:47 -05:00
Angelo Stavrow
34b14ba46c
Move state-fetching logic to PostEditorModel for iOS app 2021-01-25 13:46:30 -05:00
Angelo Stavrow
dcb18c86db
Set app state in App entrypoint for macOS, in relevant Views for iOS 2021-01-21 15:39:28 -05:00
Angelo Stavrow
6beee8cf32
Prevent AppStorage updates if there's no change 2021-01-19 10:33:25 -05:00
Angelo Stavrow
083d69d143
Track changes to model.showAllPosts in @AppStorage 2021-01-19 09:48:00 -05:00
Angelo Stavrow
deadfb8509
Save/restore navigation state to last selected post and collection 2021-01-14 17:04:52 -05:00
Angelo Stavrow
3b6c7748e8
Ensure showAllPosts is false when navigating to a given blog 2021-01-14 10:28:14 -05:00
Angelo Stavrow
1acd25ad42
Handle selectedCollection in CollectionView 2021-01-13 17:03:42 -05:00
Angelo Stavrow
efae5202f8
Merge branch 'main' into fix-crash-on-launch 2020-11-04 14:18:44 -05:00
Angelo Stavrow
e7408a47e9
Fix crash-on-load bug by cleaning up/thread-sanitizing CoreData calls 2020-10-29 16:09:35 -04:00
Angelo Stavrow
dbf2ecda60
Show only drafts list if logged out 2020-10-29 10:37:16 -04:00
Angelo Stavrow
8695a8fe4a
Hide everything but "All Posts" in CollectionListView if logged out 2020-09-16 14:45:11 -04:00
Angelo Stavrow
83acb6e832
Show server host or "WriteFreely" in CollectionListView per login state 2020-09-16 14:44:39 -04:00
Angelo Stavrow
18b6d0729f
Move UserCollection persistence handling to LocalStorageManager 2020-09-10 10:07:59 -04:00
Angelo Stavrow
dad0fef7f1
Rename PersistenceManager to LocalStorageManager 2020-09-09 14:19:40 -04:00
Angelo Stavrow
e8d52b4b69
Update SwiftUI previews 2020-09-09 12:12:19 -04:00
Angelo Stavrow
d7167bc72a
Fix clearUserCollections bug 2020-09-09 10:59:44 -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
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
eebbf1a909
Convert CollectionListModel to ObservableObject 2020-08-25 11:27:15 -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
8c0865b518
Rename PostList to PostListView 2020-08-17 14:19:22 -04:00
Angelo Stavrow
14e8a5b4b8
Add SidebarView to navigate collections, rename CollectionSidebar 2020-08-10 10:25:35 -04:00
Angelo Stavrow
822d7310dc
Add Sidebar title for iOS and set SidebarListStyle 2020-08-07 10:29:22 -04:00
Angelo Stavrow
9e87bff6a5
Use selectedCollection, NavLinks in PostList, split view for iOS/macOS 2020-08-07 10:13:36 -04:00
Angelo Stavrow
d4e3cf5f95
Remove unnecessary selectedCollection binding in CollectionSidebar 2020-08-07 10:05:33 -04:00
Angelo Stavrow
78df0628f1
Remove unnecessary EnvironmentObject 2020-08-07 10:03:04 -04:00
Angelo Stavrow
fce0c380d2
Fix CollectionSidebar preview and remove dead showPosts code 2020-08-07 09:53:16 -04:00
Angelo Stavrow
1e179a1fd8
Reorganize the PostCollection 2020-08-04 13:37:43 -04:00
Angelo Stavrow
ae1f82e776
Change collection selection UI from picker to sidebar 2020-08-04 10:45:46 -04:00
Angelo Stavrow
031c42c3ec
Add "all posts" collection to CollectionPicker test data 2020-07-31 16:54:21 -04:00
Angelo Stavrow
ab0a89ba07
Add an "all posts" collection 2020-07-31 16:53:48 -04:00
Angelo Stavrow
97a02b8530
Add CollectionPicker view for testing collection-selection functionality 2020-07-31 16:26:37 -04:00
Angelo Stavrow
f8de848400
Make PostCollection type conform to Hashable 2020-07-31 16:25:31 -04:00
Angelo Stavrow
1ff66af2b3
Add basic PostCollection type 2020-07-31 15:14:53 -04:00