From 47819493ccee1343e8d772caba99a6c241ff8c9d Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 18 Jun 2025 11:36:39 +0000 Subject: [PATCH] Added date guard for career coach. --- src/components/CareerCoach.js | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/components/CareerCoach.js b/src/components/CareerCoach.js index d2393a1..9717f45 100644 --- a/src/components/CareerCoach.js +++ b/src/components/CareerCoach.js @@ -60,6 +60,26 @@ NO extra commentary. The JSON will be stored as milestones.`.trim(), Return **ONLY** valid JSON in the **same structure** (title, date, description, impacts[{}], tasks[{}]) for a Job-Search roadmap. TODAY = ${isoToday} **Every milestone.date must be >= TODAY** NO extra text.`.trim(), + aiGrowth: ({ role, skills, goals }) => ` +You are my personal career coach. +Goal ➜ Help me **grow with AI** in the role of “${role}”. + +Context +• Current skills: ${skills || "N/A"} +• Career goals : ${goals || "N/A"} + +INSTRUCTIONS +1. List the top 2–3 tasks in this role already touched by AI. +2. For each task: + – How to *collaborate* with AI tools (save time / raise quality) + – One upskilling step that boosts the user’s uniquely-human edge +3. Surface any adjacent, AI-created roles that fit the user. +4. End with a 90-day action plan (bullets, with dates). + +Tone: supportive, opportunity-focused. +Length ≤ 400 words. + `.trim(), + interview: ` You are an expert interview coach. Ask one behavioural or technical question, wait for the user's reply, @@ -233,6 +253,25 @@ I'm here to support you with personalized coaching. What would you like to focus return; } + /* ---------- NEW: AI-growth quick action ---------- */ + if (type === "aiGrowth") { + const note = { + role : "assistant", + content: "Sure! Let’s map out how you can *partner* with AI in this career…" + }; + const hiddenSystem = { + role : "system", + content: QUICK_PROMPTS.aiGrowth({ + role : scenarioRow?.career_name || "your role", + goals : scenarioRow?.career_goals || "" + }) + }; + const updated = [...messages, note, hiddenSystem]; + setMessages([...messages, note]); + callAi(updated); + return; + } + /* networking / jobSearch unchanged */ const note = { role: "assistant", @@ -275,6 +314,13 @@ I'm here to support you with personalized coaching. What would you like to focus > Interview Help + {/* pushes Edit Goals to the far right */}