Operations dashboard screens are added

This commit is contained in:
2026-07-20 18:06:04 +05:30
parent a0426e8c8a
commit 0c9151b3a0
33 changed files with 826 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
"use client"// app/dashboard/layout.tsx
import Sidebar from "@/components/dashboard/sidebar";
import Navbar from "@/components/dashboard/navbar";
import Sidebar from "@/utils/sidebar";
import Navbar from "@/utils/navbar";
import { Sparkles } from "lucide-react";
export default function DashboardLayout({
@@ -14,7 +14,7 @@ export default function DashboardLayout({
<Sidebar />
<div className="flex-1 flex flex-col min-h-screen">
{/* Shared Navbar */}
{/*Common Navbar for every webpage */}
<Navbar />
@@ -23,7 +23,7 @@ export default function DashboardLayout({
</main>
</div>
{/* Shared Ask AI Floating Button */}
{/* Ask AI Floating Button common */}
<button className="fixed bottom-4 right-4 z-40 flex items-center gap-2
rounded-full bg-[#17d4bd] hover:bg-[#13b19e] px-4 py-2.5 text-xs
font-bold text-[#05111d] transition shadow-lg shadow-[#17d4bd]/20">

View File

@@ -0,0 +1,14 @@
"use client";
import EquipmentPortal from "@/components/dashboard/equipment"
export default function HelpDeskPage() {
return (
<div className="p-8 mx-3">
<EquipmentPortal/>
</div>
);
}

View File

@@ -0,0 +1,14 @@
"use client";
import HelpDeskPortal from "@/components/dashboard/helpDesk"
export default function HelpDeskPage() {
return (
<div className="p-8 mx-3">
<HelpDeskPortal/>
</div>
);
}

View File

@@ -0,0 +1,14 @@
"use client";
import ServiceRequestsPortal from "@/components/dashboard/request"
export default function ServiceRequestPage() {
return (
<div className="p-8 mx-3">
<ServiceRequestsPortal/>
</div>
);
}

View File

@@ -9,7 +9,7 @@ export default function OverViewDashboardPage() {
return (
<div className="p-6">
<div className="p-8 mx-3">
<BuildingOwnerPortal/>
</div>

View File

@@ -9,7 +9,7 @@ export default function OverViewDashboardPage() {
return (
<div className="p-6">
<div className="p-8 mx-3">
<OperationsDashboard />
</div>

View File

@@ -6,7 +6,7 @@ export default function EngagementDashboard() {
return (
<div className="p-6">
<div className="p-8 mx-3">
<EngagementPage/>
</div>

View File

@@ -6,7 +6,7 @@ export default function EngagementDashboard() {
return (
<div className="p-6">
<div className="p-8 mx-3">
<PropertyManagerPortal/>
</div>

View File

@@ -6,7 +6,7 @@ export default function EngagementDashboard() {
return (
<div className="p-6">
<div className="p-8 mx-3 ">
<ServiceEngineerPortal/>
</div>

View File

@@ -6,7 +6,8 @@ import { authOptions } from "@/app/api/auth/[...nextauth]/route"; // Changed fro
export default async function DashboardBasePage() {
const session = await getServerSession(authOptions);
// if user is not aunthenticated then its redirects to the
// login page else redirect to dashboard page
if (!session) {
redirect("/login");
}