Onboarding
This commit is contained in:
@@ -34,10 +34,10 @@ const GUEST_TRIAL_CREDITS = 0;
|
||||
const TRIAL_MONTHLY_CREDITS = 30;
|
||||
const PRO_MONTHLY_CREDITS = 100;
|
||||
|
||||
const SCAN_PRIMARY_COST = 1;
|
||||
const SCAN_REVIEW_COST = 1;
|
||||
const SEMANTIC_SEARCH_COST = 2;
|
||||
const HEALTH_CHECK_COST = 2;
|
||||
const SCAN_PRIMARY_COST = 1;
|
||||
const SCAN_REVIEW_COST = 0;
|
||||
const SEMANTIC_SEARCH_COST = 2;
|
||||
const HEALTH_CHECK_COST = 2;
|
||||
|
||||
const LOW_CONFIDENCE_REVIEW_THRESHOLD = 0.8;
|
||||
const FREE_SIMULATED_DELAY_MS = 1100;
|
||||
@@ -505,13 +505,18 @@ const buildMockHealthCheck = (request: HealthCheckRequest, creditsCharged: numbe
|
||||
'Tag 7: Vergleichsfoto erstellen.',
|
||||
];
|
||||
|
||||
return {
|
||||
generatedAt: nowIso(),
|
||||
overallHealthScore: score,
|
||||
status,
|
||||
likelyIssues,
|
||||
actionsNow,
|
||||
plan7Days,
|
||||
return {
|
||||
generatedAt: nowIso(),
|
||||
overallHealthScore: score,
|
||||
status,
|
||||
analysisSummary: status === 'critical'
|
||||
? 'Die Pflanze zeigt mehrere Stresssignale, die schnell stabilisiert werden sollten. Der wichtigste Verdacht ist zu viel Feuchtigkeit im Wurzelbereich, kombiniert mit schwacher Lichtversorgung. Achte besonders auf weiche gelbe Blaetter, dunkle Stellen am Stiel und Erde, die lange nass bleibt. Wenn diese Zeichen zunehmen, kann die Pflanze innerhalb weniger Tage weiter an Blattspannung verlieren. Die Diagnose ist ein Mock-Ergebnis, aber der Plan ist bewusst konkret. Pruefe zuerst Drainage und Substrat, bevor du Duenger oder einen kompletten Standortwechsel einsetzt.'
|
||||
: status === 'watch'
|
||||
? 'Die Pflanze wirkt nicht akut gefaehrdet, zeigt aber erkennbare Pflege-Signale, die beobachtet werden sollten. Wahrscheinlich spielen Giessrhythmus, Licht und leichte Naehrstoffversorgung zusammen. Einzelne gelbliche oder matte Blaetter sind noch kein Notfall, koennen aber ein fruehes Muster anzeigen. Entscheidend ist, ob neue Blaetter stabil bleiben und ob die Erde zwischen den Wassergaben gleichmaessig abtrocknet. Der Plan fokussiert auf konstante Bedingungen statt hektische Eingriffe. Ein Vergleichsfoto nach einer Woche zeigt, ob die Anpassungen wirken.'
|
||||
: 'Die Pflanze wirkt insgesamt stabil und braucht eher Feintuning als Rettungsmassnahmen. Einzelne Blattreaktionen koennen normale Alterung oder leichte Standortanpassung sein. Der Score spricht dafuer, dass keine akute Ursache dominiert. Beobachte trotzdem neue Flecken, haengende Triebe und Veraenderungen an den unteren Blaettern. Halte die Routine konstant, damit du echte Veraenderungen leichter erkennst. Nutze den naechsten Check als Verlaufskontrolle statt als Notfallmassnahme.',
|
||||
likelyIssues,
|
||||
actionsNow,
|
||||
plan7Days,
|
||||
creditsCharged,
|
||||
imageUri: request.imageUri,
|
||||
};
|
||||
@@ -604,13 +609,18 @@ const buildMockHealthCheck = (request: HealthCheckRequest, creditsCharged: numbe
|
||||
'Dia 7: Tomar foto de comparacion.',
|
||||
];
|
||||
|
||||
return {
|
||||
generatedAt: nowIso(),
|
||||
overallHealthScore: score,
|
||||
status,
|
||||
likelyIssues,
|
||||
actionsNow,
|
||||
plan7Days,
|
||||
return {
|
||||
generatedAt: nowIso(),
|
||||
overallHealthScore: score,
|
||||
status,
|
||||
analysisSummary: status === 'critical'
|
||||
? 'La planta muestra varias senales de estres que conviene estabilizar pronto. La sospecha principal es demasiada humedad en la zona de raices, combinada con luz insuficiente. Observa hojas amarillas blandas, manchas oscuras en tallos y sustrato que permanece mojado demasiado tiempo. Si estas senales aumentan, la planta puede perder firmeza en pocos dias. El diagnostico es simulado, pero el plan es concreto. Revisa drenaje y sustrato antes de fertilizar o cambiar toda la ubicacion.'
|
||||
: status === 'watch'
|
||||
? 'La planta no parece en peligro inmediato, pero muestra senales que deben observarse. Probablemente influyen el ritmo de riego, la luz y una nutricion ligera. Algunas hojas amarillas o apagadas no son una emergencia, pero pueden indicar un patron temprano. Lo importante es ver si las hojas nuevas se mantienen firmes y si el sustrato seca de forma regular. El plan prioriza condiciones constantes, no cambios bruscos. Una foto comparativa en una semana mostrara si los ajustes funcionan.'
|
||||
: 'La planta parece estable y necesita pequenos ajustes mas que medidas de rescate. Algunas hojas pueden reflejar envejecimiento normal o adaptacion al lugar. El puntaje indica que no domina una causa urgente. Aun asi, observa manchas nuevas, tallos caidos y cambios en hojas inferiores. Mantén la rutina constante para detectar cambios reales. Usa el proximo chequeo como comparacion de evolucion.',
|
||||
likelyIssues,
|
||||
actionsNow,
|
||||
plan7Days,
|
||||
creditsCharged,
|
||||
imageUri: request.imageUri,
|
||||
};
|
||||
@@ -702,12 +712,17 @@ const buildMockHealthCheck = (request: HealthCheckRequest, creditsCharged: numbe
|
||||
'Day 7: Take a comparison photo.',
|
||||
];
|
||||
|
||||
return {
|
||||
generatedAt: nowIso(),
|
||||
overallHealthScore: score,
|
||||
status,
|
||||
likelyIssues,
|
||||
actionsNow,
|
||||
return {
|
||||
generatedAt: nowIso(),
|
||||
overallHealthScore: score,
|
||||
status,
|
||||
analysisSummary: status === 'critical'
|
||||
? 'The plant shows multiple stress signals that should be stabilized soon. The main suspicion is excess moisture around the roots, possibly combined with weak light. Watch for soft yellow leaves, dark stem areas, and soil that stays wet too long. If those signs increase, the plant may lose more leaf firmness within a few days. This is a mock diagnosis, but the plan is intentionally concrete. Check drainage and substrate before fertilizing or changing the whole routine.'
|
||||
: status === 'watch'
|
||||
? 'The plant does not look like an immediate emergency, but it has visible care signals worth tracking. Watering cadence, light level, and mild nutrition are the most likely levers. A few yellow or dull leaves are not automatically severe, but they can show an early pattern. The key is whether new leaves stay firm and whether soil dries predictably between watering. The plan focuses on stable conditions instead of abrupt changes. A comparison photo after one week will show whether the adjustments are working.'
|
||||
: 'The plant looks broadly stable and needs fine-tuning rather than rescue care. Minor leaf reactions may reflect normal aging or placement adjustment. The score suggests no urgent single cause is dominating. Still, monitor new spots, drooping stems, and changes on lower leaves. Keep the routine steady so real changes are easier to see. Use the next check as a trend comparison rather than an emergency intervention.',
|
||||
likelyIssues,
|
||||
actionsNow,
|
||||
plan7Days,
|
||||
creditsCharged,
|
||||
imageUri: request.imageUri,
|
||||
@@ -1006,12 +1021,13 @@ export const mockBackendService = {
|
||||
HEALTH_CHECK_COST,
|
||||
);
|
||||
|
||||
const healthCheck: PlantHealthCheck = {
|
||||
generatedAt: nowIso(),
|
||||
overallHealthScore: aiAnalysis.overallHealthScore,
|
||||
status: aiAnalysis.status,
|
||||
likelyIssues: aiAnalysis.likelyIssues,
|
||||
actionsNow: aiAnalysis.actionsNow,
|
||||
const healthCheck: PlantHealthCheck = {
|
||||
generatedAt: nowIso(),
|
||||
overallHealthScore: aiAnalysis.overallHealthScore,
|
||||
status: aiAnalysis.status,
|
||||
analysisSummary: aiAnalysis.analysisSummary,
|
||||
likelyIssues: aiAnalysis.likelyIssues,
|
||||
actionsNow: aiAnalysis.actionsNow,
|
||||
plan7Days: aiAnalysis.plan7Days,
|
||||
creditsCharged,
|
||||
imageUri: normalizedImageUri,
|
||||
|
||||
Reference in New Issue
Block a user