refactor: remove routine_role, recommended_frequency, evidence_level, cumulative_with
Drop fields identified as redundant or low-value from the Product model, API schemas, frontend types, and forms. Raise effect_profile threshold in to_llm_context() from >0 to >=2 to suppress noise values. Remove sku/barcode from LLM context output (kept on model for catalog use). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9bf94a979c
commit
9a069508af
9 changed files with 464 additions and 142 deletions
|
|
@ -3,7 +3,6 @@
|
|||
export type AbsorptionSpeed = 'very_fast' | 'fast' | 'moderate' | 'slow' | 'very_slow';
|
||||
export type BarrierState = 'intact' | 'mildly_compromised' | 'compromised';
|
||||
export type DayTime = 'am' | 'pm' | 'both';
|
||||
export type EvidenceLevel = 'low' | 'mixed' | 'moderate' | 'high';
|
||||
export type GroomingAction = 'shaving_razor' | 'shaving_oneblade' | 'dermarolling';
|
||||
export type IngredientFunction =
|
||||
| 'humectant'
|
||||
|
|
@ -44,14 +43,6 @@ export type ProductCategory =
|
|||
| 'spot_treatment'
|
||||
| 'oil';
|
||||
export type ResultFlag = 'N' | 'ABN' | 'POS' | 'NEG' | 'L' | 'H';
|
||||
export type RoutineRole =
|
||||
| 'cleanse'
|
||||
| 'prepare'
|
||||
| 'treatment_active'
|
||||
| 'treatment_support'
|
||||
| 'seal'
|
||||
| 'protect'
|
||||
| 'hair_treatment';
|
||||
export type SkinConcern =
|
||||
| 'acne'
|
||||
| 'rosacea'
|
||||
|
|
@ -68,15 +59,6 @@ export type SkinTrend = 'improving' | 'stable' | 'worsening' | 'fluctuating';
|
|||
export type SkinType = 'dry' | 'oily' | 'combination' | 'sensitive' | 'normal' | 'acne_prone';
|
||||
export type StrengthLevel = 1 | 2 | 3;
|
||||
export type TextureType = 'watery' | 'gel' | 'emulsion' | 'cream' | 'oil' | 'balm' | 'foam' | 'fluid';
|
||||
export type UsageFrequency =
|
||||
| 'daily'
|
||||
| 'twice_daily'
|
||||
| 'every_other_day'
|
||||
| 'twice_weekly'
|
||||
| 'three_times_weekly'
|
||||
| 'weekly'
|
||||
| 'as_needed';
|
||||
|
||||
// ─── Product types ───────────────────────────────────────────────────────────
|
||||
|
||||
export interface ActiveIngredient {
|
||||
|
|
@ -85,7 +67,6 @@ export interface ActiveIngredient {
|
|||
functions: IngredientFunction[];
|
||||
strength_level?: StrengthLevel;
|
||||
irritation_potential?: StrengthLevel;
|
||||
cumulative_with?: IngredientFunction[];
|
||||
}
|
||||
|
||||
export interface ProductEffectProfile {
|
||||
|
|
@ -140,7 +121,6 @@ export interface Product {
|
|||
url?: string;
|
||||
barcode?: string;
|
||||
category: ProductCategory;
|
||||
routine_role: RoutineRole;
|
||||
recommended_time: DayTime;
|
||||
texture?: TextureType;
|
||||
absorption_speed?: AbsorptionSpeed;
|
||||
|
|
@ -151,12 +131,9 @@ export interface Product {
|
|||
inci: string[];
|
||||
actives?: ActiveIngredient[];
|
||||
recommended_for: SkinType[];
|
||||
recommended_frequency?: UsageFrequency;
|
||||
targets: SkinConcern[];
|
||||
contraindications: string[];
|
||||
usage_notes?: string;
|
||||
evidence_level?: EvidenceLevel;
|
||||
claims: string[];
|
||||
fragrance_free?: boolean;
|
||||
essential_oils_free?: boolean;
|
||||
alcohol_denat_free?: boolean;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue