diff --git a/src/routes/_authenticated/workspace.tsx b/src/routes/_authenticated/workspace.tsx index fdec273..9cdb835 100644 --- a/src/routes/_authenticated/workspace.tsx +++ b/src/routes/_authenticated/workspace.tsx @@ -51,61 +51,20 @@ export const Route = createFileRoute("/_authenticated/workspace")({ }); const modules = [ - { - title: "Academics", - description: - "Semester subjects, syllabus, CIEs, labs, end-semester exams and academic records.", - icon: GraduationCap, - live: true, - }, - { - title: "Backlogs", - description: - "Track arrears, attempts, exam dates, preparation and cleared subjects.", - icon: BookOpen, - }, - { - title: "Attendance", - description: - "Subject-wise attendance, target percentage, shortage warnings and attendance planning.", - icon: ClipboardList, - }, - { - title: "Planner & Today Brief", - description: - "Priorities, deadlines, revision tasks, timetable and upcoming exams in one view.", - icon: CalendarDays, - }, - { - title: "Projects & Skills", - description: - "Projects, practical learning, progress, evidence and skill development.", - icon: Lightbulb, - }, - { - title: "Career & Placement", - description: - "Internships, applications, certifications, interview preparation and placement tracking.", - icon: BriefcaseBusiness, - }, - { - title: "IT Toolbox", - description: - "A curated collection of useful networking, Linux and IT utilities.", - icon: Wrench, - }, - { - title: "Knowledge Base", - description: - "Keep searchable troubleshooting notes, commands, solutions and learning resources.", - icon: BookOpen, - }, -]; + { id: "academics", title: "Academics", description: "Semester subjects, syllabus, CIEs, labs, end-semester exams and academic records.", icon: GraduationCap }, + { id: "backlogs", title: "Backlogs", description: "Track arrears, attempts, exam dates, preparation and cleared subjects.", icon: BookOpen }, + { id: "attendance", title: "Attendance", description: "Subject-wise attendance, target percentage, shortage warnings and attendance planning.", icon: ClipboardList }, + { id: "planner", title: "Planner & Today Brief", description: "Priorities, deadlines, revision tasks, timetable and upcoming exams in one view.", icon: CalendarDays }, + { id: "projects", title: "Projects & Skills", description: "Projects, practical learning, progress, evidence and skill development.", icon: Lightbulb }, + { id: "career", title: "Career & Placement", description: "Internships, applications, certifications, interview preparation and placement tracking.", icon: BriefcaseBusiness }, + { id: "toolbox", title: "IT Toolbox", description: "A curated collection of useful networking, Linux and IT utilities.", icon: Wrench }, + { id: "knowledge", title: "Knowledge Base", description: "Keep searchable troubleshooting notes, commands, solutions and learning resources.", icon: BookOpen }, +] as const; function Workspace() { const { workspaceAuthorized } = Route.useRouteContext(); const { user, signOut } = useAuth(); - const [activeModule, setActiveModule] = useState<"academics" | null>(null); + const [activeModule, setActiveModule] = useState(null); if (!workspaceAuthorized) { return ( @@ -175,8 +134,12 @@ function Workspace() { - {activeModule === "academics" ? ( - setActiveModule(null)} /> + {activeModule ? ( + activeModule === "academics" ? ( + setActiveModule(null)} /> + ) : ( + setActiveModule(null)} /> + ) ) : (
@@ -185,7 +148,7 @@ function Workspace() { Personal modules

- Workspace foundation. Modules will be introduced in stages. + Your personal modules for academics, organization, projects, IT and career progress.

@@ -203,14 +166,12 @@ function Workspace() { key={module.title} className="glass group relative rounded-2xl border border-border/70 p-5 transition-all duration-200 hover:border-blue-400/30 hover:bg-blue-400/[0.03]" > - {module.live && ( -