Commit Graph

416 Commits

Author SHA1 Message Date
Angelo Stavrow
223ebf5b7c
Set current error on API call handlers 2022-05-13 08:33:32 -04:00
Angelo Stavrow
faa557c2b4
Set current error on API call failures 2022-05-13 08:01:11 -04:00
Angelo Stavrow
a3b805a319
Add error handling to top-level content view 2022-05-13 07:20:47 -04:00
Angelo Stavrow
3a53bec184
Clean up WriteFreelyModel’s published vars 2022-05-09 08:55:43 -04:00
Angelo Stavrow
aefcd0d799
Fix for temporary debugging 2022-05-08 10:18:21 -04:00
Angelo Stavrow
bf35738957
Handle errors on logout 2022-05-08 09:17:05 -04:00
Angelo Stavrow
01ba57ae75
Move Account-related error handling up the hierarchy 2022-05-08 09:16:46 -04:00
Angelo Stavrow
11200a01a0
Initial work on presenting alert on error 2022-05-01 12:06:36 -04:00
Angelo Stavrow
3c0bc81fec
Only ignore safe area at bottom edge (#206) 2022-04-02 08:07:03 -04:00
Angelo Stavrow
549ad3039f
Clean up project warnings (#199)
* Set "recommended project settings" for Mac app

* Add default fallback for font typingAttribute

* Clean up linter errors

* Update extension iconset

* Fix spm errors and upgrade sparkle (#203)

* Switch WriteFreely package import from ssh to https

* Sign macOS project target for Development

This fixes a crash-on-launch bug when running Product > Run from Xcode (Product > Archive should work correctly). See https://github.com/sparkle-project/Sparkle/issues/2056 for more details.

Bug introduced by commit:
671b0540ac

* Update Sparkle to v2.0 from official repo

Previously, we forked the repo to the WriteFreely org because Sparkle didn't support tag-based SPM updates. We therefore had to pull from the `master` branch, so forking insulated us from unexpected changes.

As of 2.x Sparkle now allows for tag-based updating via SPM; we'll allow patch updates but stop short of 2.1 until we can vet changes.

* Add MacUpdatesViewModel ObservableObject

* Use MacUpdatesViewModel to handle Sparkle update logic
2022-04-02 08:04:50 -04:00
Angelo Stavrow
dff18e9d36
Refresh post list view when app becomes active 2021-11-28 08:01:54 -05:00
Angelo Stavrow
378229c71a
Bump build number 2021-11-19 15:51:37 -05:00
Angelo Stavrow
3752b85414
Add action extension 2021-11-19 15:41:54 -05:00
Angelo Stavrow
7db11172c0
Move user defaults to App Group 2021-11-05 14:18:36 -04:00
Angelo Stavrow
6693a83bd1
Merge pull request #195 from writefreely/migrate-store-to-group-container
Migrate persistent store to App Group
2021-10-22 16:23:16 -04:00
Angelo Stavrow
c0e0b6184f
Remove diff tool backup file 2021-10-22 16:23:01 -04:00
Angelo Stavrow
8a3a835d44
Refactor LocalStorageManager and add migration of persistent store to App Group 2021-10-15 15:06:35 -04:00
Angelo Stavrow
f55ae3c621
Implement initial store-migration functionality 2021-10-08 17:16:01 -04: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
ba898b6ac6
Adapt new navigation to Mac app 2021-10-08 14:29:18 -04:00
Angelo Stavrow
ff7e7c3c0e
Re-enable launch-to-last-draft policy 2021-09-24 15:29:20 -04:00
Angelo Stavrow
3c1e04e3bf
Use view model for CollectionListView 2021-09-24 14:45:28 -04:00
Angelo Stavrow
28856eb434
Display Settings sheet on iOS 15 and above 2021-09-10 14:11:03 -04:00
Angelo Stavrow
cfe1613621
Handle thrown Keychain errors with informational alerts 2021-08-20 17:13:41 -04:00
Angelo Stavrow
2d965772e7
Add Keychain-related errors and throw from Keychain extension 2021-08-20 17:13:01 -04:00
Angelo Stavrow
e36f129ab8
Merge pull request #185 from writeas/update-spm-url
Update URL for WriteFreely Swift package
2021-04-07 11:04:54 -04:00
Angelo Stavrow
615e2199f3
Update URL for WriteFreely Swift package 2021-03-24 13:31:40 -04:00
Angelo Stavrow
4d4032594c
Don't trigger navigation to Drafts list when creating new post 2021-03-18 16:25:30 -04:00
Angelo Stavrow
a4b0710281
Merge pull request #178 from writeas/bugfix-mac-crash
Bugfix mac crash
2021-02-11 10:34:02 -05:00
Angelo Stavrow
8184919697
Create new draft in selected collection 2021-02-10 15:12:13 -05:00
Angelo Stavrow
3ccc9d68fd
Use shared instance var for app model 2021-02-10 15:01:23 -05:00
Angelo Stavrow
be625c7822
Update createdDate to the current timestamp when publishing new post 2021-02-08 16:14:02 -05:00
Angelo Stavrow
a354b807fe
Don't try to log in if the server string isn't valid 2021-02-02 11:40:01 -05:00
Angelo Stavrow
de50f3c9a4
Change wording of error message 2021-02-02 11:39:29 -05:00
Angelo Stavrow
6da33e22cc
Add logic for AccountError.invalidServerURL case when logging in 2021-02-02 11:12:30 -05:00
Angelo Stavrow
1a8951a3e0
Use URLComponents to parse out scheme and host if possible 2021-02-01 17:03:40 -05:00
Angelo Stavrow
c00b71cd43
Rewrite server URL string if logging into Write.as 2021-02-01 15:45:33 -05:00
Angelo Stavrow
461f9cca40
Mark WriteFreelyModel class as final 2021-02-01 14:27:15 -05:00
Angelo Stavrow
fa8c0026e7
Drop trailing slash when validating login form 2021-02-01 14:20:42 -05:00
Angelo Stavrow
cae270e8c4
Refactor WriteFreelyModel extensions into separate files 2021-02-01 13:46:25 -05:00
Angelo Stavrow
26ea1d97d2
Merge pull request #168 from writeas/mac-editor-qol-fixes
Add editing menu, enable find/replace, ignore formatted text on paste
2021-02-01 11:07:22 -05:00
Angelo Stavrow
7d7fe4134b
Add editing menu, enable find/replace, ignore formatted text on paste 2021-01-28 17:45:10 -05:00
Angelo Stavrow
5cdce15808
Differentiate between updating old post / publishing new post in handler 2021-01-27 16:12:40 -05:00
Angelo Stavrow
f948a16ad0
Use ObservedObject rather than unwrapping model.selectedPost 2021-01-27 10:18:26 -05:00
Angelo Stavrow
12785d733c
Use model.selectedPost for ActivePostToolbarView 2021-01-26 10:29:05 -05:00
Angelo Stavrow
9bc4532193
Clear last draft when holding Shift key on Mac app launch 2021-01-26 09:27:43 -05: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
4ad076ccab
Move new-post generation for iOS app to PostEditorModel 2021-01-25 13:22:15 -05:00