From 6162f2e8b5090c0a5005f1b5c34a5ef0d1d84bde Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 28 Jul 2025 16:55:13 +0100 Subject: [PATCH] fixing the dark view issues --- src/app/api/plan/trigger/route.ts | 2 + .../components/building-passport/Toolbar.tsx | 29 +++++++- src/app/components/portfolio/AddNew.tsx | 2 +- src/app/components/portfolio/SummaryBox.tsx | 4 +- src/app/components/portfolio/Toolbar.tsx | 2 +- .../portfolio/summary/SummaryTable.tsx | 2 +- .../[slug]/components/UploadCsvModal.tsx | 68 +++++++++++++++---- 7 files changed, 89 insertions(+), 20 deletions(-) diff --git a/src/app/api/plan/trigger/route.ts b/src/app/api/plan/trigger/route.ts index 1e810f0..5c21a11 100644 --- a/src/app/api/plan/trigger/route.ts +++ b/src/app/api/plan/trigger/route.ts @@ -12,7 +12,9 @@ const PresignedUrlBodySchema = z.object({ multi_plan: z.boolean().optional(), budget: z.number().optional().nullable(), scenario_name: z.string().optional(), + sheet_count: z.number().optional(), // Number of rows in the selected sheet event_type: z.enum(["remote_assessment"]).optional(), + ashp_cop: z.number().optional(), // inclusions is a list of measures, where the values are in measuresList inclusions: z.array(MeasureKeyEnum).optional(), exclusions: z.array(MeasureKeyEnum).optional(), diff --git a/src/app/components/building-passport/Toolbar.tsx b/src/app/components/building-passport/Toolbar.tsx index 0c7807a..57ad05d 100644 --- a/src/app/components/building-passport/Toolbar.tsx +++ b/src/app/components/building-passport/Toolbar.tsx @@ -23,7 +23,34 @@ interface ToolbarProps { } const navigationMenuTriggerStyle = cva( - "bg-gray-50 cursor-pointer group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-gray-200 hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-gray-200" + [ + "bg-gray-50", + "cursor-pointer", + "group", + "inline-flex", + "h-10", + "w-max", + "items-center", + "justify-center", + "rounded-md", + "bg-background", + "px-4", + "py-2", + "text-sm", + "font-medium", + "transition-colors", + "hover:bg-gray-200", + "hover:text-accent-foreground", + "focus:bg-accent", + "focus:text-accent-foreground", + "focus:outline-none", + "disabled:pointer-events-none", + "disabled:opacity-50", + "data-[active]:bg-accent/50", + "data-[state=open]:bg-gray-200", + // + "text-gray-900", + ].join(" ") ); export function Toolbar({ propertyId, portfolioId }: ToolbarProps) { diff --git a/src/app/components/portfolio/AddNew.tsx b/src/app/components/portfolio/AddNew.tsx index eb102f2..c1e5b5e 100644 --- a/src/app/components/portfolio/AddNew.tsx +++ b/src/app/components/portfolio/AddNew.tsx @@ -65,7 +65,7 @@ export default function AddNewDropDown({ return ( - + Add New diff --git a/src/app/components/portfolio/SummaryBox.tsx b/src/app/components/portfolio/SummaryBox.tsx index 067f840..c92cebb 100644 --- a/src/app/components/portfolio/SummaryBox.tsx +++ b/src/app/components/portfolio/SummaryBox.tsx @@ -94,7 +94,7 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) { return (
-

+

Portfolio Summary

@@ -102,7 +102,7 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) { id="scenario-select" value={selectedScenarioId} onChange={(e) => handleScenarioChange(e.target.value)} - className="p-2 border rounded w-full" + className="p-2 border rounded w-full text-black" > {scenarios.map((scenario) => (