fix Owliver ai chat
This commit is contained in:
@@ -98,14 +98,6 @@ const GREETINGS = {
|
||||
return `${plural(f.activity24h.length, 'event')} today, ${f.activity7d.length} this week.`;
|
||||
},
|
||||
|
||||
'talent.portal': (f) => {
|
||||
const p = f.profile;
|
||||
if (!p) return 'Let us get your profile started.';
|
||||
const completion = p.profile_completion || 0;
|
||||
if (completion >= 90) return 'Your profile is nearly complete — nice work.';
|
||||
if (completion > 0) return `You are ${completion}% of the way through your profile.`;
|
||||
return 'Your profile is empty. A few fields will change what employers see.';
|
||||
},
|
||||
};
|
||||
|
||||
/** Title lines. First names read better than a formal greeting in a small panel. */
|
||||
@@ -116,7 +108,6 @@ const TITLES = {
|
||||
'admin.controlCenter': (f) => `Platform check, ${timeOfDay(f.today)}`,
|
||||
'admin.candidates': () => 'Talent analysis',
|
||||
'admin.activity': () => 'Activity review',
|
||||
'talent.portal': (f, name) => `Good ${timeOfDay(f.today)}${name ? `, ${name}` : ''}`,
|
||||
};
|
||||
|
||||
/** Descriptions state what this page's assistant can actually do with the data. */
|
||||
@@ -128,7 +119,6 @@ const DESCRIPTIONS = {
|
||||
'admin.controlCenter': () => 'Health checks, data integrity and what needs intervention.',
|
||||
'admin.candidates': () => 'Talent supply and risk across the candidate pool.',
|
||||
'admin.activity': (f) => `${plural(f.activity.length, 'logged event')}, reconciled and profiled.`,
|
||||
'talent.portal': () => 'Your score, your profile, and what to learn next.',
|
||||
};
|
||||
|
||||
/** Placeholders phrased as things this page's user would actually type. */
|
||||
@@ -151,7 +141,6 @@ const PLACEHOLDERS = {
|
||||
'admin.controlCenter': () => ['Show unusual activity…', 'Summarize platform usage…'],
|
||||
'admin.candidates': () => ['Where is the risk in the pool?', 'Summarize recruitment trends…'],
|
||||
'admin.activity': () => ['Show unusual activity…', 'Summarize platform usage…'],
|
||||
'talent.portal': () => ['Improve my profile…', 'Recommend learning paths…'],
|
||||
};
|
||||
|
||||
/* ── Suggested prompts ──────────────────────────────────────────────────── */
|
||||
@@ -229,16 +218,6 @@ const PROMPTS = {
|
||||
: null,
|
||||
].filter(Boolean),
|
||||
|
||||
'talent.portal': (f) => {
|
||||
const p = f.profile;
|
||||
return [
|
||||
{ label: 'Improve my profile', prompt: 'Review my profile and tell me what is missing', capability: 'resume-review' },
|
||||
{ label: 'Recommend learning paths', prompt: 'What should I learn next?', capability: 'learning-recommendations' },
|
||||
p && (p.krow_score || 0) > 0
|
||||
? { label: 'How do I score higher?', prompt: 'How do I raise my career score?', capability: 'career-guidance' }
|
||||
: { label: 'How do I get started?', prompt: 'How do I raise my career score?', capability: 'career-guidance' },
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
/* ── Public API ─────────────────────────────────────────────────────────── */
|
||||
|
||||
Reference in New Issue
Block a user