From 4423d91ce1eb5a85371044a713b262c0a5236899 Mon Sep 17 00:00:00 2001 From: Karina Park-Okuna Date: Sun, 9 Nov 2025 22:25:02 -1000 Subject: [PATCH 1/2] firebase deploy error --- .firebase/hosting.ZGlzdA.cache | 14 +++++++------- src/services/firebaseDataService.ts | 8 +------- src/types/projectTypes.ts | 29 +++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 src/types/projectTypes.ts diff --git a/.firebase/hosting.ZGlzdA.cache b/.firebase/hosting.ZGlzdA.cache index 0208e30..1534c58 100644 --- a/.firebase/hosting.ZGlzdA.cache +++ b/.firebase/hosting.ZGlzdA.cache @@ -1,7 +1,7 @@ -index.html,1762681628251,a970132447df9f40306fd9ab7c26121bae50f9d089d6e4ac5fe1037c982c80b2 -favicon.png,1762681627948,21c10e7d774c2af5bdad60825fdb3315257a4172632b0ea8a0a9b1c1542af5ea -assets/index-CjMZ_o8-.css,1762681628251,0239ac4887bc92bd8e7160b8def7f504ef5281a1ec154d8aacda9c625faa299b -assets/GeistMono-Regular-CxeQQu7Q.ttf,1762681628251,f9e3bf233cc2d8aad298b2719f86a629e19d7a4522d6541d8070ddc3706ad3a1 -assets/Geist-Regular-DL43NNto.ttf,1762681628251,0f8ba2660df01b39b4f578364399e2679805de1a889a76b1c1c9c8f8e0e146aa -assets/index-Brd4s4nx.js,1762681628251,b063dbfa1a850d5cd0a008a9059af3a422519047e3daeef8bbfe13344747d8d5 -shapes.jpg,1762681627950,7c28b5d9022ea4b768345e855a78a2f087f66218ea9abe4d77c010e2ca2c6f3a +index.html,1762760967872,55003a935ffc76622bc029f649d1b9501006077e8a38df1d8cd77a72b4fef831 +favicon.png,1762760967602,21c10e7d774c2af5bdad60825fdb3315257a4172632b0ea8a0a9b1c1542af5ea +assets/GeistMono-Regular-CxeQQu7Q.ttf,1762760967871,f9e3bf233cc2d8aad298b2719f86a629e19d7a4522d6541d8070ddc3706ad3a1 +assets/index-C_klMgd4.css,1762760967871,c1dd671b0ec2319330e08bdbc2516a96cfff3410a94d556252515ccdc5c68785 +assets/Geist-Regular-DL43NNto.ttf,1762760967872,0f8ba2660df01b39b4f578364399e2679805de1a889a76b1c1c9c8f8e0e146aa +assets/index-CMbW4cv1.js,1762760967872,c73eca80b815ad0faea14af3205ecd1857e8ef7944b9ae69191a219b6fb9e458 +shapes.jpg,1762760967604,7c28b5d9022ea4b768345e855a78a2f087f66218ea9abe4d77c010e2ca2c6f3a diff --git a/src/services/firebaseDataService.ts b/src/services/firebaseDataService.ts index 4d580a5..34343d2 100644 --- a/src/services/firebaseDataService.ts +++ b/src/services/firebaseDataService.ts @@ -9,13 +9,7 @@ import { Timestamp, } from "firebase/firestore"; import { db } from "./firebase-config"; -import type { - ProjectData, - ProjectReport, - ProjectIssue, - ProjectDeliverable, - ProjectAssessment, -} from "../components/sampleData"; // Adjust path as needed +import type { ProjectData, ProjectReport } from "../types/projectTypes"; // ============================================ // HELPER FUNCTIONS diff --git a/src/types/projectTypes.ts b/src/types/projectTypes.ts new file mode 100644 index 0000000..2a579b8 --- /dev/null +++ b/src/types/projectTypes.ts @@ -0,0 +1,29 @@ +export interface ProjectReport { + id: string; + projectId: string; + month: string; + date: string; + background: string; + assessment: any; + issues: any[]; + scheduleStatus: any; + financials: any; + scopeStatus: any; +} + +export interface ProjectData { + id: string; + name: string; + status: string; + statusColor: string; + metric1: string; + metric2: string; + description: string; + department: string; + startDate: string; + budget: number; + spent: number; + vendor: string; + vendorId?: string; + reports: ProjectReport[]; +} From 54f6778707e1d33819a48768c4a0010944a71ce1 Mon Sep 17 00:00:00 2001 From: Karina Park-Okuna Date: Sun, 9 Nov 2025 22:53:52 -1000 Subject: [PATCH 2/2] sample data --- src/types/projectTypes.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/types/projectTypes.ts b/src/types/projectTypes.ts index 603e22f..ffcfa0f 100644 --- a/src/types/projectTypes.ts +++ b/src/types/projectTypes.ts @@ -1,7 +1,7 @@ // --------------------------------------------- -// Project Status Type (allow known values + any string) +// Project Status Type // --------------------------------------------- -export type ProjectStatus = "On Track" | "At Risk" | "Critical" | string; +export type ProjectStatus = "On Track" | "At Risk" | "Critical"; // --------------------------------------------- // Project Issue @@ -9,19 +9,19 @@ export type ProjectStatus = "On Track" | "At Risk" | "Critical" | string; export interface ProjectIssue { id: string; description: string; - impact: string; - likelihood: string; + impact: "High" | "Medium" | "Low"; + likelihood: "High" | "Medium" | "Low"; riskRating: number; dateRaised: string; recommendation: string; - status: string; + status: "Open" | "Closed"; } // --------------------------------------------- // Project Assessment Section // --------------------------------------------- export interface AssessmentItem { - rating: string; + rating: "Low" | "Medium" | "High"; description: string; } @@ -50,7 +50,7 @@ export interface Financials { export interface Deliverable { id: string; name: string; - status: string; + status: "Not Started" | "In Progress" | "Completed"; description: string; } @@ -84,8 +84,8 @@ export interface ProjectData { name: string; status: ProjectStatus; statusColor: string; - metric1: string; // Example: "Completion: 74%" - metric2: string; // Example: "Reports: 5" + metric1: string; + metric2: string; description: string; department: string; startDate: string;