Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommunityModel improvements #729

Merged
merged 10 commits into from
Oct 28, 2023
Merged

CommunityModel improvements #729

merged 10 commits into from
Oct 28, 2023

Conversation

Sjmarf
Copy link
Contributor

@Sjmarf Sjmarf commented Oct 22, 2023

Fleshed out CommunityModel and changed the type of the PostModel.community property from APICommunity -> CommunityModel.

@Sjmarf Sjmarf requested a review from a team as a code owner October 22, 2023 16:21
@Sjmarf Sjmarf requested review from ShadowJonathan and EricBAndrews and removed request for a team October 22, 2023 16:21
@Sjmarf Sjmarf changed the title CommunityModel CommunityModel improvements Oct 22, 2023
Copy link
Member

@EricBAndrews EricBAndrews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Couple small change requests, largest one is around updating state-faked values after the API call either succeeds or returns. Per Slack and Inbox Middleware PR, that logic might look a little nicer if we convert this to an ObservableObject class, but should be super easy to port in the future if we decide to do that

Mlem.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
Mlem.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
Mlem.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
Mlem.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
Mlem/Models/Content/Community/CommunityModel.swift Outdated Show resolved Hide resolved
Mlem/Models/Content/User/UserModel.swift Outdated Show resolved Hide resolved
Mlem/Views/Tabs/Feeds/Components/Sidebar View.swift Outdated Show resolved Hide resolved
Sjmarf and others added 6 commits October 24, 2023 18:53
Co-authored-by: Eric Andrews <eric.b.andrews.auto@protonmail.com>
Co-authored-by: Eric Andrews <eric.b.andrews.auto@protonmail.com>
Co-authored-by: Eric Andrews <eric.b.andrews.auto@protonmail.com>
Co-authored-by: Eric Andrews <eric.b.andrews.auto@protonmail.com>
Co-authored-by: Eric Andrews <eric.b.andrews.auto@protonmail.com>
@Sjmarf Sjmarf merged commit 71d96d5 into dev Oct 28, 2023
4 checks passed
@Sjmarf Sjmarf deleted the sjmarf/community-model branch October 28, 2023 23:02
boscojwho pushed a commit that referenced this pull request Nov 23, 2023
EricBAndrews pushed a commit that referenced this pull request Dec 18, 2023
EricBAndrews pushed a commit that referenced this pull request Dec 18, 2023
EricBAndrews pushed a commit that referenced this pull request Dec 18, 2023
EricBAndrews pushed a commit that referenced this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants