Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions app/team/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ interface TeamMember {

// Members hidden from the page (matched by exact, trimmed, lower-cased name).
// The records still live in the database.
const HIDDEN_MEMBERS = new Set(["muhammad ali", "muhammad faraz"])
const HIDDEN_MEMBERS = new Set([
"muhammad ali",
"muhammad faraz",
"ahsaan ullah",
"falak sher",
"zulkifal",
"muhammad junaid raza",
"usama razzaq",
"haris baig",
])

// Top mentors, in the order they are shown. The operational core team is loaded from the database.
const mentors: TeamMember[] = [
Expand All @@ -36,8 +45,6 @@ const mentors: TeamMember[] = [
{ name: "Farooq Tahir", role: "Top Rated Plus @ Upwork", linkedin: "https://www.linkedin.com/in/farooqtahir/", image: "/farooq.png" },
]

const mentorNames = new Set(mentors.map((m) => m.name.trim().toLowerCase()))

// Orders the team: the admin-assigned order first, then by role tier.
function rankMember(m: { name?: string; role?: string }): number {
const name = (m.name || "").trim().toLowerCase()
Expand Down Expand Up @@ -133,7 +140,7 @@ export default function TeamPage() {
.filter((m) => m && m.name && !HIDDEN_MEMBERS.has(String(m.name).trim().toLowerCase()))
.sort(compareMembers)
.map((m) => ({ name: m.name, role: m.role || "", linkedin: m.linkedin || "", image: m.image || "/placeholder-avatar.jpg" }))
setCoreTeam(list.filter((m) => !mentorNames.has(m.name.trim().toLowerCase())))
setCoreTeam(list)
})
.catch(() => {})
.finally(() => setLoadingCore(false))
Expand Down
Loading