From 9b5f3295cba810a1b2d7ad9bb683458922d19917 Mon Sep 17 00:00:00 2001 From: Jordan Schultz Date: Wed, 27 Nov 2024 15:13:34 -0800 Subject: [PATCH] Started UI for previous intake submission --- .../src/views/IntakeDetail/intakeDetail.jsx | 53 +++++++++++++------ 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/dashboard-ui/src/views/IntakeDetail/intakeDetail.jsx b/dashboard-ui/src/views/IntakeDetail/intakeDetail.jsx index 10b00f7..f7913a6 100644 --- a/dashboard-ui/src/views/IntakeDetail/intakeDetail.jsx +++ b/dashboard-ui/src/views/IntakeDetail/intakeDetail.jsx @@ -7,6 +7,8 @@ import { Text, Stepper, Button, + Badge, + Timeline, Stack, Title, Blockquote, @@ -15,6 +17,7 @@ import { } from "@mantine/core"; import { AppHeader } from "../../components/AppHeader/appHeader"; import { IconInfoCircle } from "@tabler/icons-react"; +import {useNavigate} from "react-router-dom"; export function IntakeDetail() { const [overallStep, setOverallStep] = useState(1); @@ -22,12 +25,14 @@ export function IntakeDetail() { const [isLoading, setIsLoading] = useState(true); const [activeTab, setActiveTab] = useState(""); // Track active tab const [data, setData] = useState(null); // Stubbed dynamic data + const navigate = useNavigate(); const nextStep = () => setActiveStep((current) => (current < overallSteps.length - 1 ? current + 1 : current)); const prevStep = () => setActiveStep((current) => (current > 0 ? current - 1 : current)); + // Stubbed dynamic data useEffect(() => { console.warn("Using stubbed data for UI testing"); @@ -109,19 +114,20 @@ export function IntakeDetail() { }} > {/* Header with button */} - +
- Welcome to your intake dashboard - Logged in as: {user.username} + Intake Detail + Logged in as: {globalUsername}
@@ -152,18 +158,26 @@ export function IntakeDetail() { - {/* Overall Stepper */} + + - - {overallSteps.map((step, index) => ( - - Overall progress for {step} - - ))} - + + + View prior survey submission here + + + View or Edit prior survey submissionhere + + + Please complete each intake for the requested services below + + + {/*Prior submissions*/} + {/**/} + {/**/} - + {/* Tabs */} @@ -195,7 +209,14 @@ export function IntakeDetail() { {activeTab} - {tabs.find((tab) => tab.name === activeTab)?.content} + {/*{tabs.find((tab) => tab.name === activeTab)?.content}*/} + + {overallSteps.map((step, index) => ( + + Overall progress for {step} + + ))} + {tabLinks[activeTab]?.map((item, index) => (