From 39fc8232b25530c9629e37290bd1257369480d3d Mon Sep 17 00:00:00 2001 From: Zeeshan Adil Date: Wed, 28 Oct 2026 03:10:38 +0500 Subject: [PATCH] fix(team): show the full core team in its saved order The core team left out anyone who also appears in the top mentors row, which dropped Zeeshan Adil and Moeez Ahmad from the top of the list. Everyone now shows in the order set in the admin. Also hides Ahsaan Ullah, Falak Sher, Zulkifal, Muhammad Junaid Raza, Usama Razzaq and Haris Baig from the page; their records stay in the database. --- app/team/page.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/team/page.tsx b/app/team/page.tsx index bcc0348..1430ea5 100644 --- a/app/team/page.tsx +++ b/app/team/page.tsx @@ -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[] = [ @@ -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() @@ -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))