Commit Graph

713 Commits

Author SHA1 Message Date
Angelo Stavrow
5c448e47d8
Add some padding to PostCell 2020-08-07 09:34:16 -04:00
Angelo Stavrow
fc01bde49b
Add new post to PostStore when new-draft button is clicked/tapped 2020-08-07 09:33:02 -04:00
Angelo Stavrow
a063a10119
Fix test data for Post to match new PostCollection setup 2020-08-04 13:39:03 -04:00
Angelo Stavrow
1e179a1fd8
Reorganize the PostCollection 2020-08-04 13:37:43 -04:00
Angelo Stavrow
f42318d423
Change new-draft NavigationLink to stubbed Button and move to PostList 2020-08-04 11:02:30 -04:00
Angelo Stavrow
ae490b1ad5
Remove unnecessary frame-height modifier on PostList 2020-08-04 10:54:07 -04:00
Angelo Stavrow
eb4dbcb0cf
Change selectedCollection to optional, defaulting to all posts 2020-08-04 10:52:03 -04:00
Angelo Stavrow
6f875e74c0
Add pluralization to PostList's post count 2020-08-04 10:49:23 -04:00
Angelo Stavrow
9552e0371f
Replace CollectionPicker with CollectionSidebar in ContentView 2020-08-04 10:47:33 -04:00
Angelo Stavrow
ae1f82e776
Change collection selection UI from picker to sidebar 2020-08-04 10:45:46 -04:00
Angelo Stavrow
9de057a2d3
Provide a testPostStore for debugging purposes 2020-08-03 12:16:41 -04:00
Angelo Stavrow
88a80a0629
Clean up indentation in ContentView 2020-08-03 11:54:13 -04:00
Angelo Stavrow
a6c452df3c
Update post counter in post list 2020-08-03 11:09:22 -04:00
Angelo Stavrow
a0552c6605
Update new-draft button to the typical "square and pencil" symbol 2020-07-31 16:59:04 -04:00
Angelo Stavrow
ca103e565e
Set PostList's posts property based on selectedCollection in ContentView 2020-07-31 16:58:30 -04:00
Angelo Stavrow
c67d149e03
Create function for returning posts based on selectedCollection property 2020-07-31 16:57:33 -04:00
Angelo Stavrow
272d749596
Set selectedCollection property default value to "all posts" collection 2020-07-31 16:56:36 -04:00
Angelo Stavrow
9bc1431442
Default to testPostData in the PostList preview 2020-07-31 16:55:57 -04:00
Angelo Stavrow
bc75e20f97
Add [Post] property to PostList for choosing which posts to show 2020-07-31 16:55:21 -04:00
Angelo Stavrow
031c42c3ec
Add "all posts" collection to CollectionPicker test data 2020-07-31 16:54:21 -04:00
Angelo Stavrow
ab0a89ba07
Add an "all posts" collection 2020-07-31 16:53:48 -04:00
Angelo Stavrow
cc47028bb4
Add CollectionPicker below PostList and make it set PostList Title 2020-07-31 16:29:11 -04:00
Angelo Stavrow
32dba3e3ee
Add selectedCollection property to ContentView for selecting collection 2020-07-31 16:28:38 -04:00
Angelo Stavrow
97a02b8530
Add CollectionPicker view for testing collection-selection functionality 2020-07-31 16:26:37 -04:00
Angelo Stavrow
f8de848400
Make PostCollection type conform to Hashable 2020-07-31 16:25:31 -04:00
Angelo Stavrow
54d494ccef
Make PostList title mutable 2020-07-31 16:23:33 -04:00
Angelo Stavrow
235b36bd61
Move navigationTitle for list of posts from ContentView to PostList 2020-07-31 15:46:57 -04:00
Angelo Stavrow
1299754019
Add test data for use in SwiftUI previews 2020-07-31 15:40:23 -04:00
Angelo Stavrow
3c35e3e816
Add PostCollection type to Post type 2020-07-31 15:34:42 -04:00
Angelo Stavrow
64c62e6375
Remove package import until we're ready to use it 2020-07-31 15:16:02 -04:00
Angelo Stavrow
1ff66af2b3
Add basic PostCollection type 2020-07-31 15:14:53 -04:00
Angelo Stavrow
9a3a9dd0e0
Update change log 2020-07-31 13:59:22 -04:00
Angelo Stavrow
7e530dba57
Clean up SwiftLint warning 2020-07-31 13:59:10 -04:00
Angelo Stavrow
6cc144e210
Create new-draft and existing-post previews for PostEditor 2020-07-31 13:49:53 -04:00
Angelo Stavrow
260e61a4ed
Add new posts to the PostStore once the PostEditor appears 2020-07-31 13:49:19 -04:00
Angelo Stavrow
6f458ec5f3
Simplify new-post check in PostEditor 2020-07-31 13:46:03 -04:00
Angelo Stavrow
6fb33fd651
Set PostStatus to .published if Publish button is tapped in PostEditor 2020-07-31 13:44:30 -04:00
Angelo Stavrow
dd5a543e19
Add space between properties and body in App file 2020-07-31 13:40:40 -04:00
Angelo Stavrow
b8b0732be3
Don't pass PostStore into PostList, use EnvironmentObject instead 2020-07-31 13:35:15 -04:00
Angelo Stavrow
86e20f7414
Rename Collection group to PostCollection to avoid name collisions 2020-07-30 16:30:34 -04:00
Angelo Stavrow
a20f82cfa1
Add publish button to PostEditor 2020-07-30 16:25:30 -04:00
Angelo Stavrow
1c7e2128d6
Move post status badge to ToolbarItemPlacement.status position 2020-07-30 15:41:20 -04:00
Angelo Stavrow
932f3eee90
Move environmentObject to NavigationView so it passes to children 2020-07-30 11:08:59 -04:00
Angelo Stavrow
88b79ad97c
Merge pull request #1 from writeas/switch-license-to-gpl
Switch license to GPLv3
2020-07-30 10:49:29 -04:00
Angelo Stavrow
31543eb931
Update change log 2020-07-30 10:44:37 -04:00
Angelo Stavrow
7c1ac07978
Swift from AGPLv3 to GPLv3 2020-07-30 10:39:13 -04:00
Angelo Stavrow
9f63191e91
Make testPostStore mutable so we can append new drafts 2020-07-29 10:31:06 -04:00
Angelo Stavrow
641d022206
Add new posts to post store via EnvironmentObject 2020-07-28 17:11:01 -04:00
Angelo Stavrow
9a207528a7
Use ObservedObject property wrapper to sync changes to Post in editor 2020-07-28 14:12:24 -04:00
Angelo Stavrow
62d00d07b8
Move PostStatus enum to Post/Post.swift 2020-07-28 13:57:30 -04:00