Roadmap filtering in the model

pull/6546/head
Kamran Ahmed 3 months ago
parent 1282b392eb
commit 60e976e3a5
  1. 2
      src/components/CreateTeam/RoadmapSelector.tsx
  2. 9
      src/components/CreateTeam/SelectRoadmapModal.tsx
  3. 2
      src/components/TeamRoadmapsList/TeamRoadmaps.tsx

@ -167,7 +167,7 @@ export function RoadmapSelector(props: RoadmapSelectorProps) {
<SelectRoadmapModal
onClose={() => setShowSelectRoadmapModal(false)}
teamResourceConfig={teamResources}
allRoadmaps={allRoadmaps}
allRoadmaps={allRoadmaps.filter(r => r.renderer === 'editor')}
teamId={teamId}
onRoadmapAdd={(roadmapId) => {
addTeamResource(roadmapId).finally(() => {

@ -147,6 +147,15 @@ export function SelectRoadmapModal(props: SelectRoadmapModalProps) {
})}
</div>
</div>
<div className="border-t border-t-yellow-300 text-yellow-900 bg-yellow-100 px-4 py-3 text-sm">
<h2 className='font-medium text-base text-yellow-900 mb-1'>More Official Roadmaps Coming Soon</h2>
<p>
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.
</p>
</div>
</div>
</div>
</div>

@ -231,7 +231,7 @@ export function TeamRoadmaps() {
<SelectRoadmapModal
onClose={() => setIsAddingRoadmap(false)}
teamResourceConfig={teamResources}
allRoadmaps={filteredAllRoadmaps}
allRoadmaps={filteredAllRoadmaps.filter((r) => r.renderer === 'editor')}
teamId={teamId}
onRoadmapAdd={(roadmapId: string) => {
onAdd(roadmapId).finally(() => {

Loading…
Cancel
Save