diff --git a/src/v1/curator/curator-store.ts b/src/v1/curator/curator-store.ts index a9100aa..3590713 100644 --- a/src/v1/curator/curator-store.ts +++ b/src/v1/curator/curator-store.ts @@ -1170,6 +1170,7 @@ function buildTask( const id = taskIdFor(sprintStartDate, dayIndex, seedTask.taskType, seedTask.serviceId); const missionInstanceId = sprintIdFor(sprintStartDate); const stageId = stageIdFor(dayIndex, weekIndex, seedTask.taskType, seedTask.serviceId); + const isProfileTask = /complete (?:your )?(?:growqr |professional |executive |freelancer |founder |employer )?profile/i.test(`${seedTask.title} ${seedTask.subtitle}`); const task: CuratorTask = { id, date, @@ -1201,6 +1202,10 @@ function buildTask( { label: "Task type", value: seedTask.taskType }, { label: "Service handoff", value: serviceName(seedTask.serviceId) }, ...(targetRole ? [{ label: "Target role", value: targetRole }] : [{ label: "Target role", value: "Complete onboarding to set your role" }]), + ...(isProfileTask ? [ + { label: "Resume", value: userContext.profile.resumeAvailable ? "Added" : "Missing" }, + { label: "LinkedIn", value: userContext.profile.linkedinAvailable ? "Connected" : "Missing" }, + ] : []), { label: "Sprint day", value: `Day ${dayIndex}/${durationDays}` }, ], contextNarrative: contextNarrative(seedTask, weekTheme, weekSummary), @@ -1212,7 +1217,6 @@ function buildTask( isPaidTask: seedTask.isPaidTask !== false, isRecoveryPractice: Boolean(seedTask.isRecoveryPractice), }; - const isProfileTask = /complete (?:your )?(?:growqr |professional |executive |freelancer )?profile/i.test(`${task.title} ${task.subtitle}`); const profileComplete = isProfileTask && (userContext.profile.resumeAvailable || userContext.profile.linkedinAvailable); const routeTask = isProfileTask && userContext.profile.linkedinAvailable && !userContext.profile.resumeAvailable ? { ...task, serviceId: "resume-service" as const }