Commit Graph

448 Commits

Author SHA1 Message Date
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
Angelo Stavrow
e1c5823cd6
Move new-post generation for Mac app to PostEditorModel 2021-01-25 11:53:16 -05:00
Angelo Stavrow
20f12fa7cc
Move state-fetching logic to PostEditorModel for Mac app 2021-01-25 11:30:52 -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
0b19c8461f
Set selection of post 2021-01-19 11:29:41 -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
9b06eb34a8
Fix race condition in creating new post 2021-01-14 13:29:51 -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
d51fa4672a
Remove unnecessary SidebarView
SidebarView literally just calls CollectionListView and provides no other functionality or state management; ContentView can therefore just call CollectionListView directly.
2021-01-12 16:38:18 -05:00
Angelo Stavrow
c4bfb195fd
Improve VoiceOver tap target frames 2021-01-11 11:58:59 -05:00
Angelo Stavrow
5557566657
Fix merge conflict in Shared/PostList/PostListView 2021-01-11 10:52:12 -05: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
e3ddefa769
Merge pull request #160 from writeas/add-button-accessibility-hints
Improve accessibility labels and hints
2021-01-11 09:16:13 -05:00
Angelo Stavrow
34dfc1d7e1
Merge pull request #163 from writeas/integrate-sparkle-via-spm
Integrate sparkle via spm
2021-01-07 15:16:25 -05:00
Angelo Stavrow
9f1e125a18
Add Sparkle to the credits doc 2021-01-05 15:20:14 -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
a1b3ece294
Move bottom bar back to PostListView
Fixes a bug where tapping the new-post button creates the new local draft, but doesn’t automatically load it in the post editor until you open, and then dismiss, the settings sheet.
2021-01-04 12:58:35 -05:00
Angelo Stavrow
cfd34e2021
Replace bottom toolbar with overlaid view 2021-01-04 10:04:27 -05:00
Angelo Stavrow
7d99c8afc4
Add “does.not.exist” 1x1 transparent image
This is to silence runtime warnings about missing images for the workaround used to add a11y labels/hints to toolbar buttons.
2020-12-30 10:03:53 -05:00
Angelo Stavrow
f9cce6c901
Fix button-image sizing and tap target/a11y frame 2020-12-30 09:24:04 -05:00
Angelo Stavrow
555b988282
Add a11y label/hint to remote-change prompt on macOS 2020-12-29 16:53:48 -05:00
Angelo Stavrow
03a568cfdc
Add a11y labels/hints to post list and settings 2020-12-29 16:52:26 -05:00
Angelo Stavrow
1d1d4927b3
Conditionally include PostCommands if macOS 2020-12-28 15:15:14 -05:00
Angelo Stavrow
70dfda7ea0
Improve layout of Updates/Preferences window 2020-12-23 14:38:53 -05:00
Angelo Stavrow
b05938b497
Create an updates view for the Preferences window 2020-12-23 11:53:01 -05:00
Angelo Stavrow
fb13b9e8ab
Add “Check For Updates” entry to app menu 2020-12-23 10:21:23 -05:00
Angelo Stavrow
03df62a48c
Add AppDelegate stub 2020-12-22 15:06:25 -05:00
Angelo Stavrow
725ff2eed9
Merge branch 'main' into add-help-tooltips 2020-12-18 11:54:22 -05:00
Angelo Stavrow
0b0fdd81a1
Move toolbar from ContentView to PostLIstView 2020-12-17 11:27:58 -05:00
Angelo Stavrow
96472c2604
Add copy-published-post-link to Post command menu 2020-12-16 14:25:56 -05:00
Angelo Stavrow
6164ceeb99
Add PostCommands menu to Mac app 2020-12-16 11:35:40 -05:00
Angelo Stavrow
09131d5873
Remove duplicate ToolbarItemGroup in Mac app 2020-12-16 11:35:04 -05:00
Angelo Stavrow
4ec81ccfbf
Add help tooltips to the toolbar buttons. 2020-12-11 16:16:43 -05:00
Angelo Stavrow
0365874ed1
Merge branch 'main' into show-progressview-during-network-request 2020-12-11 09:47:33 -05:00
Angelo Stavrow
c826806bc1
Ensure we’re setting the model object’s properties 2020-12-08 15:08:49 -05:00
Angelo Stavrow
246d3948a9
Show blog name badge in All Posts list 2020-12-08 11:55:32 -05:00
Angelo Stavrow
a5ab2182eb
Overlay ProgressView on post list while processing network requests 2020-12-07 15:15:49 -05:00
Angelo Stavrow
709a654528
Reset selectedCollection/showAllPosts when dismissing PostListView 2020-12-07 12:03:45 -05:00
Angelo Stavrow
a0b1218473
Use published properties for selectedCollection and showAllPosts 2020-12-04 17:08:32 -05:00
Angelo Stavrow
c87309d6b0
Merge pull request #145 from writeas/fix-ui-for-log-out-alert
Show alert instead of sheet on logout
2020-12-03 12:14:15 -05:00
Angelo Stavrow
5dc5108354
Add "Visit Support Forum" item to Help menu 2020-12-03 08:21:50 -05:00
Angelo Stavrow
fb5255cb04
Clean up SwiftLint warning with multiline string literal 2020-12-01 16:23:15 -05:00
Angelo Stavrow
bcf496e15d
Listen for shift-key on launch to run debug code 2020-12-01 16:17:53 -05:00
Angelo Stavrow
eff423f79e
Change "Reload From Server" File menu item to read "Refresh Posts" 2020-12-01 11:24:55 -05:00
Angelo Stavrow
68fd0c91e7
Make cancel the default action in the delete-confirmation alert 2020-12-01 09:58:04 -05:00
Angelo Stavrow
c1be327694
Use native SwiftUI SidebarCommands() for toggle-sidebar menu item 2020-12-01 09:55:11 -05:00
Angelo Stavrow
7902bff33d
Remove reload button from toolbar 2020-12-01 09:53:09 -05:00
Angelo Stavrow
24897aae93
Update menu item from "New Local Draft" to "New Post" 2020-12-01 09:38:46 -05:00
Angelo Stavrow
ccb342fbc5
Show alert instead of sheet on logout 2020-11-30 10:36:59 -05:00
Angelo Stavrow
1c9ca05527
Move clear-last-draft call to PostEditor.onDisappear 2020-11-27 16:25:49 -05:00
Angelo Stavrow
3114d037b3
Refactor active-post toolbar buttons into extracted view 2020-11-27 11:02:18 -05:00
Angelo Stavrow
28d3b6f831
Make sure to always clear the last draft when we unset the selectedPost 2020-11-26 17:01:33 -05:00
Angelo Stavrow
5dabe97db4
Restore alerts on Edit > Delete, no-network failure 2020-11-26 16:38:39 -05:00
Angelo Stavrow
8ff1de188b
Make adding and deleting posts more reliable/crashproof 2020-11-26 15:52:00 -05:00
Angelo Stavrow
5ca32ddcfc
Show prompt if there are server-side changes to post 2020-11-26 15:01:12 -05:00
Angelo Stavrow
7cb7fa3017
Use AppStorage dynamic property instead of direct UserDefaults update
Known issue: the menubar File > Reload From Server command will not update based on changes to model.account.isLoggedIn, but instead defaults to whatever the value was on app launch. Filed as FB8918303 with Apple.
2020-11-26 12:05:20 -05:00
Angelo Stavrow
7398c1d3cf
Implement basic publishing 2020-11-25 16:06:52 -05:00
Angelo Stavrow
acde0c8978
Add toolbar button logic, menu item, keyboard shortcut for server reload 2020-11-25 15:10:22 -05:00
Angelo Stavrow
735867a940
Add new-post logic to toolbar button and menu, fix broken iOS code 2020-11-25 14:41:53 -05:00
Angelo Stavrow
1e432c6adb
Fix spacing when collapsing sidebar, add other buttons to toolbar 2020-11-25 14:11:57 -05:00
Angelo Stavrow
39ae839052
Add toolbar button and menu entry to toggle sidebar 2020-11-24 15:35:26 -05:00
Angelo Stavrow
1215a1727a
Remove PostListView toolbar (new post and reload from server) 2020-11-24 15:24:08 -05:00
Angelo Stavrow
93e055d12f
Merge pull request #121 from writeas/use-content-if-post-has-no-title
Use content if post has no title
2020-11-11 09:34:49 -05:00
Angelo Stavrow
889faf9351
Don't extract lede if the incoming string is empty 2020-11-10 15:21:21 -05:00
Angelo Stavrow
76089ef759
Present error alert if token is invalid and ensure user is logged out 2020-11-10 11:21:28 -05:00
Angelo Stavrow
c32c67040f
Fix the lede extractor for edge cases 2020-11-09 14:56:03 -05:00