imporve features

This commit is contained in:
Urtzi Alfaro
2025-11-14 07:23:56 +01:00
parent 9bc048d360
commit a8d8828935
32 changed files with 5436 additions and 271 deletions

View File

@@ -125,6 +125,26 @@ export const RegisterTenantStep: React.FC<RegisterTenantStepProps> = ({
false // use_cache = false for initial detection
).then((result) => {
console.log(`✅ POI detection completed automatically for tenant ${tenant.id}:`, result.summary);
// Phase 3: Handle calendar suggestion if available
if (result.calendar_suggestion) {
const suggestion = result.calendar_suggestion;
console.log(`📊 Calendar suggestion available:`, {
calendar: suggestion.calendar_name,
confidence: `${suggestion.confidence_percentage}%`,
should_auto_assign: suggestion.should_auto_assign
});
// Store suggestion in wizard context for later use
// Frontend can show this in settings or a notification later
if (suggestion.confidence_percentage >= 75) {
console.log(`✅ High confidence suggestion: ${suggestion.calendar_name} (${suggestion.confidence_percentage}%)`);
// TODO: Show notification to admin about high-confidence suggestion
} else {
console.log(`📋 Lower confidence suggestion: ${suggestion.calendar_name} (${suggestion.confidence_percentage}%)`);
// TODO: Store for later review in settings
}
}
}).catch((error) => {
console.warn('⚠️ Background POI detection failed (non-blocking):', error);
// This is non-critical, so we don't block the user