diff --git a/src/components/AssetUploader.tsx b/src/components/AssetUploader.tsx index 9e31396b..1cebb3d8 100644 --- a/src/components/AssetUploader.tsx +++ b/src/components/AssetUploader.tsx @@ -131,9 +131,11 @@ export default function AssetUploader({ 'text/*': 'Text files', 'application/msword': 'Word docs', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': 'Word docs', - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'Excel files' + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': 'Excel files', + 'application/vnd.ms-powerpoint': 'PowerPoint', + 'application/vnd.openxmlformats-officedocument.presentationml.presentation': 'PowerPoint' }; - + return allowedTypes.map(type => typeMap[type] || type).filter((v, i, a) => a.indexOf(v) === i); }; diff --git a/src/components/ai-recruiter/AIRecruiterForm.tsx b/src/components/ai-recruiter/AIRecruiterForm.tsx index 62769228..ca5fe834 100644 --- a/src/components/ai-recruiter/AIRecruiterForm.tsx +++ b/src/components/ai-recruiter/AIRecruiterForm.tsx @@ -240,47 +240,81 @@ export default function AIRecruiterForm({ onSubmit, isGenerating }: AIRecruiterF
+ {/* Custom Label with Tooltip */} +

+ Customer Data Upload + +

+

+ Upload existing customer data to create more realistic and accurate synthetic personas. This helps the AI understand your target audience better. +

+ { setCurrentFiles(files); setUploadedFiles(files.length > 0 ? createFileList(files) : null); }} /> -

- Supports PDF, Word docs, Excel files, text files, and images -

- + + {/* What data should I upload? */} +
+

+ What data should I upload? +

+

+ LLMs work well with large amounts of unstructured information. The more information you give the AI about your target audience, the more precise the personas. +

+ +
+
-

What's included?

+

What's included in the personas?

diff --git a/src/components/ui/field-tooltip.tsx b/src/components/ui/field-tooltip.tsx index f7963597..fbebe021 100644 --- a/src/components/ui/field-tooltip.tsx +++ b/src/components/ui/field-tooltip.tsx @@ -9,7 +9,7 @@ import { interface FieldTooltipProps { content: string - example: string + example?: string } export function FieldTooltip({ content, example }: FieldTooltipProps) { @@ -27,17 +27,21 @@ export function FieldTooltip({ content, example }: FieldTooltipProps) {

{content}

- - {showExample && ( -
- {example} -
+ {example && ( + <> + + {showExample && ( +
+ {example} +
+ )} + )}