From f38b0188dffefdd5a0a1abb0e3e17a5f3a786ea6 Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Tue, 7 Apr 2026 14:42:24 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20fix:=20resolve=20all=20linter=20?= =?UTF-8?q?and=20typecheck=20warnings=20across=20codebase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/auth/signin/page.tsx | 2 +- src/app/page.tsx | 5 ++--- src/components/ics-file-picker.tsx | 1 - src/components/rrule-display.tsx | 6 +++--- src/components/sign-in.tsx | 2 +- src/db/index.ts | 6 +++++- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/app/auth/signin/page.tsx b/src/app/auth/signin/page.tsx index 8ad10f6..43f44a0 100644 --- a/src/app/auth/signin/page.tsx +++ b/src/app/auth/signin/page.tsx @@ -32,7 +32,7 @@ export default function SignInPage() { providerId: "authentik", callbackURL: "/", }); - } catch (_error) { + } catch { toast.error("Failed to sign in. Please try again."); } finally { setIsLoading(false); diff --git a/src/app/page.tsx b/src/app/page.tsx index 9ba797a..510720d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -182,10 +182,9 @@ export default function HomePage() { const persistAiEvents = async (data: CalendarEvent[]) => { for (const ev of data) { - const { id: _existingId, ...rest } = ev; - const newEvent = { + const newEvent: CalendarEvent = { + ...ev, id: nanoid(), - ...rest, createdAt: new Date().toISOString(), lastModified: new Date().toISOString(), }; diff --git a/src/components/ics-file-picker.tsx b/src/components/ics-file-picker.tsx index e1a6b32..675d844 100644 --- a/src/components/ics-file-picker.tsx +++ b/src/components/ics-file-picker.tsx @@ -47,7 +47,6 @@ export function IcsFilePicker({ accept=".ics" onChange={handleFileChange} className="hidden" - aria-hidden="true" />