Skip to content

Commit

Permalink
Merge pull request #1236 from planetary-social/residency-cohort-3
Browse files Browse the repository at this point in the history
Add third cohort of creators and journalists to the Discover tab
  • Loading branch information
mplorentz committed Jun 13, 2024
2 parents 4d55e01 + 1ecd7ad commit 96bc6e6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 12 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Added our third cohort of creators and journalists to the Discover tab.

## [0.1.17] - 2024-06-10Z

Expand Down
52 changes: 41 additions & 11 deletions Nos/Views/Discover/FeaturedAuthor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct FeaturedAuthor {

extension FeaturedAuthor {
/// All featured authors that should appear on the Discover tab.
static let all = cohort2 + cohort1
static let all = cohort3 + cohort2 + cohort1
}

extension FeaturedAuthor {
Expand All @@ -32,11 +32,6 @@ extension FeaturedAuthor {
npub: "npub1uuxnz0sq60thc098xfxqst7wnw77l0sm3r8nn48yspuvz4ecprksxdahzv",
categories: [.news]
),
FeaturedAuthor(
name: "Nela Biedermann",
npub: "npub1fv9u4drq4hdrr7k45vn0krqy7mkgy8ajf059m0wq8szvcrsjlsrs8tdz3p",
categories: [.art]
),
FeaturedAuthor(
name: "Ainsley Costello",
npub: "npub13qrrw2h4z52m7jh0spefrwtysl4psfkfv6j4j672se5hkhvtyw7qu0almy",
Expand Down Expand Up @@ -97,11 +92,6 @@ extension FeaturedAuthor {
npub: "npub1rt5h26ukmqsqa29ggt0h98tq2skgqr85f3znhwxule4z4pjhhd3qzs5k94",
categories: [.music]
),
FeaturedAuthor(
name: "The 74 Million",
npub: "npub1kkk52065zqg85c0auvashalkrqewj6cnlr7c236r2hp5sx9rgzgs46gj84",
categories: [.news]
),
FeaturedAuthor(
name: "BTCPhoto",
npub: "npub1vjl6n2llukcc6pe3am2hkwqh8twzh2ymlp7pdrdfq5tlqg08y26sd7ygzx",
Expand All @@ -124,3 +114,43 @@ extension FeaturedAuthor {
),
]
}

extension FeaturedAuthor {
static let cohort3 = [
FeaturedAuthor(
name: "INPC",
npub: "npub1q33jywkl8r0e5g48lvrenxnr3lw59kzrw4e7p0cecslqzwc56eesjymqu0",
categories: [.music]
),
FeaturedAuthor(
name: "Mama Ganush",
npub: "npub1lq9lx5mh2m3pvdnckcta7h7h07qexa3gxvyakdzt73lqp3prt3jqx9pa2e",
categories: [.activists]
),
FeaturedAuthor(
name: "Fight for the Future",
npub: "npub1jcwuf0dh5vqsq44qavygqwjfecawf53fmx7gadlcdtuexz0548hqy4jyrz",
categories: [.activists, .tech]
),
FeaturedAuthor(
name: "Z Network",
npub: "npub1xm0rvnpw52nh7tk59ntly55w74rmd2cqvt3kg5zxrzz3rlssvspsk0gs6s",
categories: [.news, .activists]
),
FeaturedAuthor(
name: "Z Network Chomsky",
npub: "npub1a7mxreazql8ld0csdzk7wk6a5xjzcg7h632q78u3008lyr32lxks5t4ske",
categories: [.activists]
),
FeaturedAuthor(
name: "Patrick Boehler",
npub: "npub1n8gvnx827tdl46ke406sjx0t5ey4mrtptux766ejp9y2ff8cc3uqe4ufd0",
categories: [.news, .tech]
),
FeaturedAuthor(
name: "JSTR",
npub: "npub1vpdlxsc8dr4m580d43vj4ka0e6wmstzzxhvcermllhh5m9ytnhdq6wnaem",
categories: [.music]
),
]
}
2 changes: 1 addition & 1 deletion Nos/Views/Discover/FeaturedAuthorCategory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ enum FeaturedAuthorCategory: CaseIterable {
case .all:
FeaturedAuthor.all.map { $0.npub }
case .new:
FeaturedAuthor.cohort2.map { $0.npub }
FeaturedAuthor.cohort3.map { $0.npub }
default:
FeaturedAuthor.all.filter { $0.categories.contains(self) }
.map { $0.npub }
Expand Down

0 comments on commit 96bc6e6

Please sign in to comment.