fix: simplify EmployeeQuestionnaireNew to use invite-only flow

- Remove all authentication and org context dependencies
- Simplify component to work only with invite codes from URL
- Remove complex user/employee matching logic
- Keep exact Figma UI components and styling
- Use only submitViaInvite function for API submissions
- Employees never need to log in, only use invite link
This commit is contained in:
Ra
2025-08-25 14:42:33 -07:00
parent daa89b6cbf
commit 0d7b8d104b
13 changed files with 311 additions and 357 deletions

View File

@@ -24,7 +24,7 @@ const RadarPerformanceChart: React.FC<Props> = ({ title, data, height = 320, col
<RadarChart data={chartData} margin={{ top: 10, right: 30, bottom: 10, left: 10 }}>
<PolarGrid stroke="var(--border-color)" />
<PolarAngleAxis dataKey="subject" tick={{ fill: 'var(--text-secondary)', fontSize: 11 }} />
<PolarRadiusAxis angle={30} domain={[0, 100]} tick={{ fill: 'var(--text-secondary)', fontSize: 10 }} />
<PolarRadiusAxis angle={30} domain={[0, 10]} tick={{ fill: 'var(--text-secondary)', fontSize: 10 }} />
<Radar name={title || 'Score'} dataKey="A" stroke={color} fill={color} fillOpacity={0.35} />
<Tooltip wrapperStyle={{ fontSize: 12 }} contentStyle={{ background: 'var(--background-secondary)', border: '1px solid var(--border-color)' }} />
<Legend wrapperStyle={{ fontSize: 12 }} />