Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing target audiences for the concept report #187

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/app/concepts/[id]/ProblemRequiresChanges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import React, { useState } from 'react'
import ConceptForm from '@/components/ConceptForm'
import Paragraph from '@/components/Paragraph'
import Section from '@/components/Section'
import SimpleUnorderedList from '@/components/SimpleUnorderedList'
import { Goals } from '@/lib/goals'

interface TargetAudience {
Expand Down Expand Up @@ -157,6 +158,31 @@ const ProblemRequiresChanges = ({ conceptId, problem, evaluation }: Props) => {
</Section>
)}

{evaluation.targetAudience.length > 0 && (
<Section header="Target Audiences:">
<div className="grid grid-cols-1 gap-6">
{evaluation.targetAudience.map((item, index) => (
<div
key={index}
className="flex flex-col rounded-lg border border-gray-200 bg-gray-50 p-4 pb-0 md:p-6 md:pb-0 dark:bg-gray-900/50"
>
<p className="mb-4 text-lg font-bold md:text-xl">
{item.segment}
</p>

<p className="mb-4 md:text-lg">{item.description}</p>

<p className="mb-4 font-semibold md:text-lg">
Their Challenges:
</p>

<SimpleUnorderedList items={item.challenges} />
</div>
))}
</div>
</Section>
)}

<hr className="my-6 md:my-8" />

{status === 'error' && errorMessage && (
Expand Down