From 60e976e3a5fd85549197930c8a9b10a13992f5c9 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 13 Aug 2024 16:04:20 +0100 Subject: [PATCH] Roadmap filtering in the model --- src/components/CreateTeam/RoadmapSelector.tsx | 2 +- src/components/CreateTeam/SelectRoadmapModal.tsx | 9 +++++++++ src/components/TeamRoadmapsList/TeamRoadmaps.tsx | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/CreateTeam/RoadmapSelector.tsx b/src/components/CreateTeam/RoadmapSelector.tsx index 1c82f8087..869bf5518 100644 --- a/src/components/CreateTeam/RoadmapSelector.tsx +++ b/src/components/CreateTeam/RoadmapSelector.tsx @@ -167,7 +167,7 @@ export function RoadmapSelector(props: RoadmapSelectorProps) { setShowSelectRoadmapModal(false)} teamResourceConfig={teamResources} - allRoadmaps={allRoadmaps} + allRoadmaps={allRoadmaps.filter(r => r.renderer === 'editor')} teamId={teamId} onRoadmapAdd={(roadmapId) => { addTeamResource(roadmapId).finally(() => { diff --git a/src/components/CreateTeam/SelectRoadmapModal.tsx b/src/components/CreateTeam/SelectRoadmapModal.tsx index 91500dd71..db1655d88 100644 --- a/src/components/CreateTeam/SelectRoadmapModal.tsx +++ b/src/components/CreateTeam/SelectRoadmapModal.tsx @@ -147,6 +147,15 @@ export function SelectRoadmapModal(props: SelectRoadmapModalProps) { })} + +
+

More Official Roadmaps Coming Soon

+

+ We are currently adding more of our official + roadmaps to this list. If you don't see the roadmap you are + looking for, please check back later. +

+
diff --git a/src/components/TeamRoadmapsList/TeamRoadmaps.tsx b/src/components/TeamRoadmapsList/TeamRoadmaps.tsx index a26b0bd1d..766492856 100644 --- a/src/components/TeamRoadmapsList/TeamRoadmaps.tsx +++ b/src/components/TeamRoadmapsList/TeamRoadmaps.tsx @@ -231,7 +231,7 @@ export function TeamRoadmaps() { setIsAddingRoadmap(false)} teamResourceConfig={teamResources} - allRoadmaps={filteredAllRoadmaps} + allRoadmaps={filteredAllRoadmaps.filter((r) => r.renderer === 'editor')} teamId={teamId} onRoadmapAdd={(roadmapId: string) => { onAdd(roadmapId).finally(() => {