From 57c304da23bb5f94e242316ebc0a1485b47b7346 Mon Sep 17 00:00:00 2001 From: Sanjay Babu Date: Thu, 19 Dec 2024 08:32:59 -0800 Subject: [PATCH] ProjectView updates --- app/src/controllers/enquiry.ts | 2 +- frontend/src/assets/variables.scss | 4 +- frontend/src/locales/en-CA.json | 10 ++ .../src/views/housing/project/ProjectView.vue | 118 ++++++++++++++++-- .../views/housing/project/ProjectView.spec.ts | 6 + 5 files changed, 131 insertions(+), 9 deletions(-) diff --git a/app/src/controllers/enquiry.ts b/app/src/controllers/enquiry.ts index c457c682..a9fb4105 100644 --- a/app/src/controllers/enquiry.ts +++ b/app/src/controllers/enquiry.ts @@ -78,7 +78,7 @@ const controller = { ...generateCreateStamps(req.currentContext) }); - res.status(201).json({ activityId: result.activityId, enquiryId: result.enquiryId }); + res.status(201).json(result); } catch (e: unknown) { next(e); } diff --git a/frontend/src/assets/variables.scss b/frontend/src/assets/variables.scss index b5408f97..369d3903 100644 --- a/frontend/src/assets/variables.scss +++ b/frontend/src/assets/variables.scss @@ -43,6 +43,8 @@ $app-pill-lightyellow: #fef1d8; $app-pill-text: #2d2d2d; - +$app-red-border: #A12622; // TODO: Check color with PrimeVue 4 style +$app-red-background: #F2DEDE; // TODO: Check color with PrimeVue 4 style +$app-red-text: #A12622; // TODO: Check color with PrimeVue 4 style diff --git a/frontend/src/locales/en-CA.json b/frontend/src/locales/en-CA.json index 4685b903..885d3ce5 100644 --- a/frontend/src/locales/en-CA.json +++ b/frontend/src/locales/en-CA.json @@ -33,6 +33,16 @@ "supervisor": "SUPERVISOR", "admin": "ADMIN" }, + "projectView": { + "createdBy": "Created by", + "enquiryID": "Enquiry ID", + "inapplicableSubmissionType": "A Navigator has reviewed your submission and found it inapplicable to Housing. For questions, please submit a general enquiry.", + "listEmpty": "Your project related enquiries will be displayed here", + "of": "of", + "relatedEnquiries": "Related enquiries", + "status": "Status", + "submittedDate": "Submitted date" + }, "header": { "name": "Permit Connect Services" }, diff --git a/frontend/src/views/housing/project/ProjectView.vue b/frontend/src/views/housing/project/ProjectView.vue index bfbda159..8502d5fa 100644 --- a/frontend/src/views/housing/project/ProjectView.vue +++ b/frontend/src/views/housing/project/ProjectView.vue @@ -1,15 +1,16 @@ @@ -252,24 +264,35 @@ onMounted(async () => { />