From 81f25a09d17591825c3ad6607033e03efe1ba833 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 12 Nov 2025 13:10:59 +0000 Subject: [PATCH] Fix: Correction des erreurs TypeScript de build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrections apportées pour résoudre l'échec de build : 1. **Index.tsx** : - Ajout du else manquant dans le ternaire conditionnel (ligne 1536) - Ajout du type explicite pour calendarAuthStatus (authType) - Cast de type pour google_auth_type dans onValueChange - Ajout d'un bouton "Synchroniser" pour Service Account 2. **SettingsService.ts** : - Ajout des nouvelles propriétés à l'interface Settings : - google_auth_type?: 'oauth2' | 'service_account' - google_service_account_key?: string - google_calendar_email?: string Le build passe maintenant avec succès (✓ built in 8.72s). --- src/pages/Index.tsx | 25 +++++++++++++++++++++++-- src/services/SettingsService.ts | 3 +++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index b8afb7b..25917be 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -54,7 +54,12 @@ const Index = () => { const [noteTags, setNoteTags] = useState([]); const [openRouterModels, setOpenRouterModels] = useState([]); const [loadingModels, setLoadingModels] = useState(false); - const [calendarAuthStatus, setCalendarAuthStatus] = useState({ + const [calendarAuthStatus, setCalendarAuthStatus] = useState<{ + isAuthenticated: boolean; + isExpired: boolean; + needsReauth: boolean; + authType?: 'oauth2' | 'service_account'; + }>({ isAuthenticated: false, isExpired: false, needsReauth: true @@ -1354,7 +1359,7 @@ const Index = () => {