Building Owner and Property Manager Screens are added

This commit is contained in:
2026-07-16 18:09:03 +05:30
parent 104f8f7abf
commit 3222da96ab
22 changed files with 516 additions and 140 deletions

View File

@@ -21,7 +21,6 @@ import {
Recycle,
GraduationCap,
Brain,
Activity,
Bot,
Gauge,
@@ -42,10 +41,10 @@ export const SIDEBAR_ITEMS = [
title: "Overview",
icon: LayoutGrid,
children: [
{ title: "Dashboard", href: "/overview/dashboard", icon: LayoutGrid },
{ title: "Dashboard", href: "/dashboard/overview/dashboard", icon: LayoutGrid },
{ title: "Engagement", href: "/dashboard/overview/engagement", icon: Smile },
{ title: "Building Owner", href: "/overview/building-owner", icon: Building2 },
{ title: "Property Manager", href: "/overview/property-manager", icon: User },
{ title: "Building Owner", href: "/dashboard/overview/buildingOwner", icon: Building2 },
{ title: "Property Manager", href: "/dashboard/overview/propertyManager", icon: User },
{ title: "Service Engineer", href: "/overview/service-engineer", icon: Target },
],
},
@@ -141,6 +140,14 @@ export const chartData = [
{ month: 'N', height: 'h-26' },
{ month: 'D', height: 'h-24' },
];
export const energyData = [
{ month: "Jan", height: 'h-20' },
{ month: "Feb", height: 'h-12' },
{ month: "Mar", height: 'h-24' },
{ month: "Apr", height: 'h-26' },
{ month: "May", height: 'h-18' },
{ month: "Jun", height: 'h-20' },
];
export const activities = [
{ time: '09:42', text: '6/1009 assigned to ME Local', boldText: '6/1009' },

View File

@@ -1,3 +1,7 @@
import { LucideProps } from "lucide-react";
import { ComponentType } from "react";
import { colorMap } from "./constant";
export type Step = "login" | "verify" | "forgot";
@@ -16,20 +20,27 @@ export type Step = "login" | "verify" | "forgot";
export interface ActivityFeedProps {
activities: Activity[];
}
interface ChartItem {
export interface ChartItem {
month: string;
height: string; // Tailwind h-class like 'h-24'
height: string;
}
export interface BarChartProps {
data: ChartItem[];
}
export interface StatCardProps {
// Common Fields
title: string;
value: number | string;
subtitle: string;
progress: number;
color: 'teal' | 'amber' | 'rose' | 'emerald';
value: string | number;
variant?: "progress" | "icon";
subtitle?: string;
progress?: number;
color?: keyof typeof colorMap;
icon?: ComponentType<LucideProps>;
badgeText?: string;
badgeClassName?: string;
iconContainerClassName?: string;
isActiveCard?: boolean;
}
export interface ProgressBarProps {
label: string;
@@ -41,4 +52,9 @@ export interface StatusProgressProps {
value: number;
total: number;
barColor?: string;
}
export interface InfoBannerProps {
boldText?: string;
normalText?: string;
}