diff --git a/frontend/app/projects/[projectId]/dashboard/page.tsx b/frontend/app/projects/[projectId]/dashboard/page.tsx new file mode 100644 index 0000000..67ef9c9 --- /dev/null +++ b/frontend/app/projects/[projectId]/dashboard/page.tsx @@ -0,0 +1,3 @@ +export default function Page() { + return <>This is Dashboard tab; +} diff --git a/frontend/app/projects/[projectId]/home/page.tsx b/frontend/app/projects/[projectId]/home/page.tsx deleted file mode 100644 index f55192f..0000000 --- a/frontend/app/projects/[projectId]/home/page.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Page() { - return <>This is Home tab; -} diff --git a/frontend/app/projects/[projectId]/sidebar.tsx b/frontend/app/projects/[projectId]/sidebar.tsx index b24d4b1..4c43858 100644 --- a/frontend/app/projects/[projectId]/sidebar.tsx +++ b/frontend/app/projects/[projectId]/sidebar.tsx @@ -1,6 +1,6 @@ "use client"; import { Menu, MenuItem } from "@nextui-org/react"; -import { HomeIcon, PagesIcon, PlayIcon } from "@/components/icons"; +import { LayoutDashboard, Files, FlaskConical } from "lucide-react"; import { useRouter } from "next/navigation"; import useGetCurrentIds from "@/utils/useGetCurrentIds"; @@ -11,21 +11,21 @@ export default function Sidebar() {
} + startContent={} className="p-3" - onClick={() => router.push(`/projects/${projectId}/home`)} + onClick={() => router.push(`/projects/${projectId}/dashboard`)} > - Home + Dashboard } + startContent={} className="p-3" onClick={() => router.push(`/projects/${projectId}/folders`)} > Test Cases } + startContent={} className="p-3" onClick={() => router.push(`/projects/${projectId}/runs`)} > diff --git a/frontend/app/projects/project-card.tsx b/frontend/app/projects/project-card.tsx index ecb3c00..d27dc41 100644 --- a/frontend/app/projects/project-card.tsx +++ b/frontend/app/projects/project-card.tsx @@ -11,7 +11,7 @@ import { CardBody, Divider, } from "@nextui-org/react"; -import { DotsIcon } from "@/components/icons"; +import { MoreVertical } from "lucide-react"; export function ProjectCard({ project, onEditClicked, onDeleteClicked }) { return ( @@ -19,13 +19,13 @@ export function ProjectCard({ project, onEditClicked, onDeleteClicked }) {
- {project.name} + {project.name}
- diff --git a/frontend/components/icons.tsx b/frontend/components/icons.tsx index 57d5664..4813931 100644 --- a/frontend/components/icons.tsx +++ b/frontend/components/icons.tsx @@ -184,103 +184,3 @@ export const SearchIcon = (props: IconSvgProps) => ( /> ); - -export const HomeIcon: React.FC = ({ - size = 24, - width, - height, - ...props -}) => { - return ( - - - - - - - ); -}; - -export const PagesIcon: React.FC = ({ - size = 24, - width, - height, - ...props -}) => { - return ( - - - - - - - ); -}; - -export const PlayIcon: React.FC = ({ - size = 24, - width, - height, - ...props -}) => { - return ( - - - - ); -}; - -export const DotsIcon: React.FC = ({ - size = 24, - width, - height, - ...props -}) => { - return ( - - - - ); -};