Skip to content

Commit

Permalink
Add code to hide AuthorCards on the Discover tab until their profile …
Browse files Browse the repository at this point in the history
…metadata has loaded
  • Loading branch information
mplorentz committed Oct 21, 2024
1 parent 1f29c72 commit 0e7cdc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added new authors and categories to the Discover tab. [#1592](https://github.com/planetary-social/nos/issues/1592)

### Internal Changes
- Added code to hide users on the Discover tab with no profile metadata. [#1592](https://github.com/planetary-social/nos/issues/1592)
- Migrate ObservableObject to @Observable where possible [#1458](https://github.com/planetary-social/nos/issues/1458)
- Added the Create Account onboarding screen. Currently behind the “New Onboarding Flow” feature flag. [#1594](https://github.com/planetary-social/nos/issues/1594)
- Increase build settings timeout in fastlane. [#1662](https://github.com/planetary-social/nos/pull/1662)
Expand Down
14 changes: 9 additions & 5 deletions Nos/Views/Discover/DiscoverContentsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,16 @@ struct DiscoverContentsView: View {

ForEach(featuredAuthorIDs) { authorID in
AuthorObservationView(authorID: authorID) { author in
AuthorCard(author: author) {
router.push(author)
VStack {
if author.lastUpdatedMetadata != nil {
AuthorCard(author: author) {
router.push(author)
}
.padding(.horizontal, 13)
.padding(.top, 5)
.readabilityPadding()
}
}
.padding(.horizontal, 13)
.padding(.top, 5)
.readabilityPadding()
.task {
subscriptions[author.id] =
await relayService.requestMetadata(
Expand Down

0 comments on commit 0e7cdc4

Please sign in to comment.