Commit Graph

109 Commits

Author SHA1 Message Date
Angelo Stavrow
53ab32b7a3
Prep Mac app for release, fix bugs in iOS app (#258)
* Update Sparkle to latest version

* Bump minimum macOS target

For launch, I propose we support the current version of macOS (14.x) and one version earlier (13.x).

* Add WFNavigation wrapper to use NavigationSplitView in macOS

* Replace NavigationView with WFNavigation in ContentView

* Fix deprecation warnings on locale

* Update docs for updating the Mac app

* Fix for being sent back to post list on app reactivate

* Bump build version

* Remove debugging statements

* Bump Sparkle version to address security fix
2024-07-28 06:02:02 -04:00
Angelo Stavrow
3f424b399a
Improve offline experience (#255) 2023-10-23 17:15:41 -04:00
Angelo Stavrow
6bb8be4d46
Add a "search posts" feature to the post list (#245) 2023-06-10 06:49:45 -04:00
Angelo Stavrow
fcd7c167c7
Provide a context menu for deleting posts (#232)
* Delete local posts from post list via context menu

* Build build number

* Bump version/build numbers

* Update change log
2022-11-19 09:10:24 -05:00
Angelo Stavrow
f3178626d9
Fix for misaligned badge in post list (#230) 2022-11-13 06:52:38 -05:00
Angelo Stavrow
f256996161
Improve editor scrolling on ios (#229)
* Unset isScrollEnabled property on UITextViews

* Begin implementing common MultilineTextView

* Remove legacy text views

* Fix firstResponder issues

* Bump version and build number and update change log

* Fix smart-dashes replacement in MultilineTextView

* Wait 10ms before navigating to the editor after creating a new post

* Wait before navigating to editor after creating a new post

* Bump build number
2022-11-03 06:56:11 -04:00
Angelo Stavrow
4a3874abcd
Embed text editor fields into ScrollView (#227)
* Embed text editor fields into ScrollView

* Bump version/build number and update change log

* Fix truncated post badges on status change

When going from a shorter label (e.g., ‘LOCAL’) to a longer one (e.g., ‘PUBLISHED’), the SwiftUI render loop would not expand the size of the post badge to fit the extra characters, so on change it would be truncated (e.g., read ‘PUBL…’). This change fixes the bug.
2022-10-05 09:23:43 -04:00
Angelo Stavrow
0d43cb0bd8
Prep for iOS 16 (#223)
* Don’t render spacer in iOS 16+

* Bump version and build for TestFlight

* Bump version and build of action extension

* Run SwiftLint on all files for each build

This prevents a build warning in Xcode 14 because SwiftLint doesn’t yet support input/output files for these script execution build phases. It’s fast enough, so running it on all files isn’t an issue.

* Add missing error handling on login view

* Clean up line_length warning

* Update change log
2022-09-07 08:29:13 -04: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
3c0bc81fec
Only ignore safe area at bottom edge (#206) 2022-04-02 08:07:03 -04:00
Angelo Stavrow
dff18e9d36
Refresh post list view when app becomes active 2021-11-28 08:01:54 -05: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
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
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
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
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
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
deadfb8509
Save/restore navigation state to last selected post and collection 2021-01-14 17:04:52 -05:00
Angelo Stavrow
1acd25ad42
Handle selectedCollection in CollectionView 2021-01-13 17:03:42 -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
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
f9cce6c901
Fix button-image sizing and tap target/a11y frame 2020-12-30 09:24:04 -05:00
Angelo Stavrow
03a568cfdc
Add a11y labels/hints to post list and settings 2020-12-29 16:52:26 -05:00
Angelo Stavrow
0b0fdd81a1
Move toolbar from ContentView to PostLIstView 2020-12-17 11:27:58 -05:00
Angelo Stavrow
09131d5873
Remove duplicate ToolbarItemGroup in Mac app 2020-12-16 11:35:04 -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
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
68fd0c91e7
Make cancel the default action in the delete-confirmation alert 2020-12-01 09:58:04 -05:00
Angelo Stavrow
1c9ca05527
Move clear-last-draft call to PostEditor.onDisappear 2020-11-27 16:25:49 -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
735867a940
Add new-post logic to toolbar button and menu, fix broken iOS code 2020-11-25 14:41:53 -05:00
Angelo Stavrow
1215a1727a
Remove PostListView toolbar (new post and reload from server) 2020-11-24 15:24:08 -05:00
Angelo Stavrow
889faf9351
Don't extract lede if the incoming string is empty 2020-11-10 15:21:21 -05:00