imporve features
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user