Skip to content

Commit 2f8c5fb

Browse files
committed
feat: fix survey issues
1 parent 9ae1850 commit 2f8c5fb

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

src/components/survey/steps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function Step({
7878
index === selectedIndex ? "inline " : "hidden md:inline "
7979
} font-semibold ${color} capitalize ml-2`}
8080
>
81-
{label}
81+
{label.replaceAll("ai", "AI")}
8282
</span>
8383
</div>
8484
{index < totalSections - 1

src/lib/validators/survey-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const SurveyQuestionSchema = z.object({
5151
message: "Question label cannot be empty or whitespace only"
5252
}),
5353

54-
required: z.boolean().optional().default(true),
54+
required: z.boolean().optional().default(false),
5555

5656
multiple: z.boolean().optional().default(false),
5757

src/pages/before-start.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const rules = [
55
"We care about privacy; that's why all your answers are **completely anonymous**. We only rely on anonymous sessions to avoid spam",
66
"**Please be honest**. Our goal is to understand the Moroccan IT market and share results with the community.",
77
"The Survey should take around **8 minutes** to complete",
8-
"The survey is divided into **6 parts**: Profile, Learning & Education, AI, Work, Technology, and Community,(we submit your answers at the end of each part)",
8+
"The survey is divided into **6 parts**: Profile, Learning & Education, AI, Work, Technology, and Community(we submit your answers at the end of each part)",
99
"All Questions are **required** unless you have a **skip button**",
1010
"For questions that accept others as an option, please add them in the **text field**",
1111
"There are two types of questions: **Multiple Choice** (select one or more options) and **Single Select** (choose only one option)"

survey/5-tech.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ questions:
297297
- Tauri
298298
- Electron
299299
- Cloudflare Workers
300-
- esbuild
301300
- Other
302301

303302
- label: What are the platforms and tools you want to learn next?
@@ -338,7 +337,6 @@ questions:
338337
- Tauri
339338
- Electron
340339
- Cloudflare Workers
341-
- esbuild
342340
- Other
343341

344342
- label: "Your primary Operating System is:"

survey/6-community.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ questions:
1212
- Language barriers (prefer Arabic/Darija content)
1313
- Content level doesn't match my experience (too basic/too advanced)
1414
- Financial constraints (event costs, travel)
15+
- I'm already active on the community
1516
- Other
1617

1718
- label: What would make you more likely to attend tech events in Morocco?

0 commit comments

Comments
 (0)