From acc5e4c299b1ab9f0e8bc608e47160e78d51b709 Mon Sep 17 00:00:00 2001 From: Sanjam Bedi Date: Mon, 18 May 2026 01:25:10 +0400 Subject: [PATCH] feat: add helpful tips tooltip to each resume form section --- src/app/components/ResumeForm/Form/index.tsx | 72 ++++++++++++-------- 1 file changed, 42 insertions(+), 30 deletions(-) diff --git a/src/app/components/ResumeForm/Form/index.tsx b/src/app/components/ResumeForm/Form/index.tsx index bea5437..a69078c 100644 --- a/src/app/components/ResumeForm/Form/index.tsx +++ b/src/app/components/ResumeForm/Form/index.tsx @@ -55,9 +55,15 @@ const FORM_TO_ICON: { [section in ShowForm]: typeof BuildingOfficeIcon } = { custom: WrenchIcon, }; -export const Form = ({ - +const FORM_TO_TIPS: { [section in ShowForm]: string } = { + workExperiences: "Start each bullet with an action verb like 'Led', 'Built', or 'Improved'. Quantify achievements where possible e.g. 'Increased sales by 20%'.", + educations: "Include your GPA if it is above 3.5. List relevant coursework or academic achievements.", + projects: "Include a link to your GitHub or live demo. Mention the tech stack you used.", + skills: "List technical skills relevant to the job. Group them by category e.g. Languages, Frameworks, Tools.", + custom: "Add any additional information relevant to your application such as certifications or volunteer work.", +}; +export const Form = ({ form, addButtonText, children, @@ -87,21 +93,20 @@ export const Form = ({ const Icon = FORM_TO_ICON[form]; const resume = useAppSelector(selectResume); -const fields = Object.values(resume || {}); - -const completedFields = fields.filter( - (field) => - field !== "" && - field !== null && - field !== undefined && - !(Array.isArray(field) && field.length === 0) -).length; + const fields = Object.values(resume || {}); -const totalFields = fields.length; + const completedFields = fields.filter( + (field) => + field !== "" && + field !== null && + field !== undefined && + !(Array.isArray(field) && field.length === 0) + ).length; -const progress = - totalFields === 0 ? 0 : Math.round((completedFields / totalFields) * 100); + const totalFields = fields.length; + const progress = + totalFields === 0 ? 0 : Math.round((completedFields / totalFields) * 100); return ( -
-

Resume Completion: {progress}%

- -
-
-
-
+
+

Resume Completion: {progress}%

+
+
+
+