fix(routines): remove dose from AI routine suggestions

This commit is contained in:
Piotr Oleszczyk 2026-03-05 14:19:18 +01:00
parent c4be7dd1be
commit db3d9514d5
4 changed files with 1 additions and 12 deletions

View file

@ -229,7 +229,6 @@ export interface SuggestedStep {
product_id?: string;
action_type?: GroomingAction;
action_notes?: string;
dose?: string;
region?: string;
why_this_step?: string;
optional?: boolean;

View file

@ -76,7 +76,6 @@ export const actions: Actions = {
product_id?: string;
action_type?: string;
action_notes?: string;
dose?: string;
region?: string;
}>;
try {
@ -96,7 +95,6 @@ export const actions: Actions = {
product_id: s.product_id || undefined,
action_type: s.action_type || undefined,
action_notes: s.action_notes || undefined,
dose: s.dose || undefined,
region: s.region || undefined
});
}
@ -120,14 +118,12 @@ export const actions: Actions = {
product_id?: string;
action_type?: string;
action_notes?: string;
dose?: string;
region?: string;
}>;
pm_steps: Array<{
product_id?: string;
action_type?: string;
action_notes?: string;
dose?: string;
region?: string;
}>;
}>;
@ -150,7 +146,6 @@ export const actions: Actions = {
product_id: s.product_id || undefined,
action_type: s.action_type || undefined,
action_notes: s.action_notes || undefined,
dose: s.dose || undefined,
region: s.region || undefined
});
}

View file

@ -55,7 +55,6 @@
function stepMeta(step: SuggestedStep): string {
const parts: string[] = [];
if (step.dose) parts.push(step.dose);
if (step.region && step.region.toLowerCase() !== 'face') parts.push(step.region);
if (step.action_notes && !step.action_type) parts.push(step.action_notes);
return parts.join(' · ');