Commit Graph

18 Commits

Author SHA1 Message Date
Angelo Stavrow
1361ff7586
Write logs to new post (#236) 2022-12-06 16:41:12 -05:00
Angelo Stavrow
a51bbd3abc
Alert on error: shared code (#207)
* Initial work on presenting alert on error

* Move Account-related error handling up the hierarchy

* Handle errors on logout

* Fix for temporary debugging

* Clean up WriteFreelyModel’s published vars

* Add error handling to top-level content view

* Set current error on API call failures

* Set current error on API call handlers

* Move User Defaults errors to ErrorConstants file

* Add default values for some error strings

* Handle purging post errors

* 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.

* 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

* Add error handling to Mac app

* Revert "Add error handling to Mac app"

This reverts commit b1a8b8b29c.
2022-07-27 09:56:32 -04:00
Angelo Stavrow
ac98cd2030
Merge pull request #162 from writeas/add-review-link
Add link to write a review in the App Store
2021-01-11 09:35:02 -05:00
Angelo Stavrow
724478a80a
Add link to write a review in the App Store 2021-01-04 14:25:02 -05:00
Angelo Stavrow
03a568cfdc
Add a11y labels/hints to post list and settings 2020-12-29 16:52:26 -05:00
Angelo Stavrow
94c6280ed3
Add guide link and improve description of section and links 2020-10-21 16:57:14 -04:00
Angelo Stavrow
c0c61f311f
Add OS acknowledgements to iOS app 2020-09-18 15:33:04 -04:00
Angelo Stavrow
1a569f881d
Add app name, version, and build number to SettingsHeaderView 2020-09-16 12:46:28 -04:00
Angelo Stavrow
14dd75e410
Add support section to settings view with link to help forum 2020-09-16 11:34:45 -04:00
Angelo Stavrow
428fb6cd6f
Use presentationMode environment property to dismiss sheet 2020-09-11 13:53:11 -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
454b7bf09b
Drop into AppKit/UIKit to reliably set/unset preferred color scheme 2020-08-13 14:54:56 -04:00
Angelo Stavrow
6dba087295
Refactor account views and AccountModel 2020-08-11 16:27:14 -04:00
Angelo Stavrow
b787e34012
Adopt PreferencesModel for implementing light/dark mode switch (in iOS) 2020-08-11 14:32:45 -04:00
Angelo Stavrow
275dd91e9c
Move Settings button to PostList 2020-08-10 16:50:24 -04:00
Angelo Stavrow
94322a0424
Add header to SettingsView for dismissing sheet on iOS 2020-08-10 16:21:26 -04:00
Angelo Stavrow
67361f5d86
Create SettingsView for iOS 2020-08-10 12:37:19 -04:00