From 5624e0c8aa657b96ecc60321d42f264af95c1cea Mon Sep 17 00:00:00 2001 From: eelkus01 <130937420+eelkus01@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:13:28 -0400 Subject: [PATCH 1/3] small comment removal --- server/app/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/server/app/index.ts b/server/app/index.ts index bb0d2b0e9..302a82942 100644 --- a/server/app/index.ts +++ b/server/app/index.ts @@ -75,7 +75,6 @@ app.get('/api/district', async (req: Request, res: Response) => { if (match && match[1]) { // Set variable to the extracted digit councilDistrictNumber = match[1]; - console.log(`Council District Number: ${councilDistrictNumber}`); } } From c3f26de4c3298738b7c7b5ea1293c4d3114f9fbb Mon Sep 17 00:00:00 2001 From: eelkus01 <130937420+eelkus01@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:48:15 -0400 Subject: [PATCH 2/3] added q&a --- .../content-types/candidate/schema.json | 63 +++++++++++++++++++ strapi/types/generated/contentTypes.d.ts | 21 +++++++ 2 files changed, 84 insertions(+) diff --git a/strapi/src/api/candidate/content-types/candidate/schema.json b/strapi/src/api/candidate/content-types/candidate/schema.json index a270c4486..8d4d907e2 100644 --- a/strapi/src/api/candidate/content-types/candidate/schema.json +++ b/strapi/src/api/candidate/content-types/candidate/schema.json @@ -48,6 +48,69 @@ }, "ElectionName": { "type": "string" + }, + "Question1": { + "type": "string" + }, + "Answer1": { + "type": "text" + }, + "Question2": { + "type": "string" + }, + "Answer2": { + "type": "text" + }, + "Question3": { + "type": "string" + }, + "Answer3": { + "type": "text" + }, + "Question4": { + "type": "string" + }, + "Answer4": { + "type": "text" + }, + "Question5": { + "type": "string" + }, + "Answer5": { + "type": "text" + }, + "Question6": { + "type": "string" + }, + "Answer6": { + "type": "text" + }, + "Question7": { + "type": "string" + }, + "Answer7": { + "type": "text" + }, + "Question8": { + "type": "string" + }, + "Answer8": { + "type": "text" + }, + "Question9": { + "type": "string" + }, + "Answer9": { + "type": "text" + }, + "Question10": { + "type": "string" + }, + "Answer10": { + "type": "text" + }, + "QuestionsAnswers": { + "type": "json" } } } diff --git a/strapi/types/generated/contentTypes.d.ts b/strapi/types/generated/contentTypes.d.ts index a089c3128..141dfb467 100644 --- a/strapi/types/generated/contentTypes.d.ts +++ b/strapi/types/generated/contentTypes.d.ts @@ -910,6 +910,27 @@ export interface ApiCandidateCandidate extends Schema.CollectionType { LinkedinLink: Attribute.String; Party: Attribute.String & Attribute.Required; ElectionName: Attribute.String; + Question1: Attribute.String; + Answer1: Attribute.Text; + Question2: Attribute.String; + Answer2: Attribute.Text; + Question3: Attribute.String; + Answer3: Attribute.Text; + Question4: Attribute.String; + Answer4: Attribute.Text; + Question5: Attribute.String; + Answer5: Attribute.Text; + Question6: Attribute.String; + Answer6: Attribute.Text; + Question7: Attribute.String; + Answer7: Attribute.Text; + Question8: Attribute.String; + Answer8: Attribute.Text; + Question9: Attribute.String; + Answer9: Attribute.Text; + Question10: Attribute.String; + Answer10: Attribute.Text; + QuestionsAnswers: Attribute.JSON; createdAt: Attribute.DateTime; updatedAt: Attribute.DateTime; publishedAt: Attribute.DateTime; From 2e65361efaa1eb8939979c42b1dcee7b478bb281 Mon Sep 17 00:00:00 2001 From: eelkus01 <130937420+eelkus01@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:52:36 -0400 Subject: [PATCH 3/3] comment --- client/src/pages/ballotInfo/[candidate].tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/pages/ballotInfo/[candidate].tsx b/client/src/pages/ballotInfo/[candidate].tsx index 878887fa7..412ac890f 100644 --- a/client/src/pages/ballotInfo/[candidate].tsx +++ b/client/src/pages/ballotInfo/[candidate].tsx @@ -1,3 +1,8 @@ +/* Deeper candidate profiles that appear when their icon is clicked in the + * "What's on the Ballot" dropdown. Styles the entire deep profile page. Pulls + * data from strapi "Candidates" content. +*/ + import React, { use, useEffect, useState } from 'react'; import { useRouter } from 'next/router'; import { localCandidateAPI, deployedCandidateAPI } from '@/common';