--- template/app/src/landing-page/components/Roadmap.tsx +++ opensaas-sh/app/src/landing-page/components/Roadmap.tsx @@ -0,0 +1,91 @@ +import { GithubEpicStatus } from "../operations"; + +import { GitPullRequestArrow, Loader2 } from "lucide-react"; +import { Link } from "react-router"; +import { getGithubRoadmap, useQuery } from "wasp/client/operations"; +import { RoadmapStatusColumn } from "./RoadmapStatusColumn"; + +export function Roadmap() { + const { data: epics, isLoading, error } = useQuery(getGithubRoadmap); + + if (isLoading) { + return ( + +
+ +
+
+ ); + } + + if (error) { + return ( + +
+ Failed to load roadmap +
+
+ ); + } + + if (!epics || epics.length === 0) { + return ( + +
+ +

No roadmap items yet.

+

+ Add your idea{" "} + + here + + . +

+
+
+ ); + } + + return ( + +
+ {Object.values(GithubEpicStatus).map((status) => ( + e.status === status)} + /> + ))} +
+
+ ); +} + +function RoadmapWrapper({ children }: { children?: React.ReactNode }) { + return ( +
+
+ + {children} +
+
+ ); +} + +function RoadmapHeader() { + return ( +
+

+ The Roadmap +

+

+ High-level topics we are planning and working on. +

+
+ ); +}