Commit Graph

466 Commits

Author SHA1 Message Date
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
b788994144
Save/load last draft per editor launching policy 2020-11-26 15:53:17 -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
1a8ae1d4d3
Remove PostEditorView toolbar (post status badge and publish button) 2020-11-24 15:15:28 -05:00
Angelo Stavrow
3c501cf67d
Merge pull request #143 from writeas/integrate-maceditortextview
Make the post editor first responder on blank new posts
2020-11-24 14:53:42 -05:00
Angelo Stavrow
5bfe2bc84b
Merge pull request #138 from writeas/fix-name-of-mac-app
Fix name of Mac app
2020-11-24 14:42:18 -05:00
Angelo Stavrow
2e56d62ea8
Implement line spacing on post 2020-11-24 14:35:49 -05:00
Angelo Stavrow
e884a90582
Clean up print statements and setting fonts 2020-11-23 14:58:51 -05:00
Angelo Stavrow
2078eb7199
Conform to similar test as iOS app for showing server reload UI 2020-11-23 14:57:51 -05:00
Angelo Stavrow
486b2ce0fe
Implement post status change detection 2020-11-23 14:37:13 -05:00
Angelo Stavrow
c2e124de31
Render post in correct font 2020-11-23 14:13:15 -05:00
Angelo Stavrow
99551b9a1d
Make first responder only if this is a blank new post 2020-11-23 12:14:21 -05:00
Angelo Stavrow
c655e628e1
Clean up SwiftLint warnings and add pseudo-placeholder text to editor 2020-11-23 11:59:01 -05:00
Angelo Stavrow
ba64716840
Initial integration of MacEditorTextView into post editor 2020-11-23 11:18:03 -05:00
Angelo Stavrow
d333049cac
Add tweaked MacEditorTextView to project 2020-11-23 10:52:19 -05:00
Angelo Stavrow
076df6d5a0
Update change log for iOS release 2020-11-18 10:40:23 -05:00
Angelo Stavrow
d8794e6810
Update change log and bump build number 2020-11-13 15:17:57 -05:00
Angelo Stavrow
6d8422c5f9
Merge pull request #140 from writeas/fix-cursor-jump-bug
Only update the textView if it doesn't match text binding
2020-11-13 15:03:26 -05:00
Angelo Stavrow
088e5924a1
Only update the textView if it doesn't match text binding 2020-11-13 13:36:50 -05:00
Angelo Stavrow
7fc0f87bd0
Set dock name to "WriteFreely for Mac" 2020-11-11 16:22:51 -05:00
Angelo Stavrow
0845a56386
Set name to be shown in Menu bar 2020-11-11 16:18:46 -05:00
Angelo Stavrow
539597bd5a
Fix link in README 2020-11-11 12:11:05 -05:00
Angelo Stavrow
45386b66c3
Update change log and bump build number 2020-11-11 11:48:49 -05:00
Angelo Stavrow
3fad7f38d2
Merge pull request #125 from writeas/fix-cursor-jump-to-end-of-post-body
Fix cursor jump to end of post body
2020-11-11 11:34:49 -05:00
Angelo Stavrow
3b31f36a03
Fix bug with placeholder text not disappearing 2020-11-11 10:36:32 -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
29aacd589e
Merge pull request #124 from writeas/fix-false-positive-on-login
Present error alert if token is invalid and ensure user is logged out
2020-11-10 15:13:23 -05:00
Angelo Stavrow
0b02903b26
Fix cursor-jump bug 2020-11-10 15:08:55 -05:00
Angelo Stavrow
e5d844757a
Fix links to credits 2020-11-10 14:52:57 -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
Angelo Stavrow
81b4d38aea
Update change log and bump build number 2020-11-09 11:50:16 -05:00
Angelo Stavrow
cd6f8adbbb
Don't return more than the first line on short titleless posts 2020-11-06 16:51:41 -05:00
Angelo Stavrow
d989709319
Include punctuation in first-sentence lede 2020-11-06 15:58:41 -05:00
Angelo Stavrow
62e3c9aa0e
Don't elide ledes that are shorter than 80 characters 2020-11-06 15:48:02 -05:00
Angelo Stavrow
9e3cc1f9d4
Merge pull request #120 from writeas/restore-launch-to-editor-functionality
Restore launch to editor functionality
2020-11-06 14:47:21 -05:00
Angelo Stavrow
01b5633cc2
Show lede in list if post has no title 2020-11-06 14:41:47 -05:00
Angelo Stavrow
2d911cf0d6
Update lede on new posts as user types 2020-11-06 14:39:46 -05:00
Angelo Stavrow
00bd18463e
Add function to strip Markdown-formatted images 2020-11-06 14:01:33 -05:00