From 3657fb284f0b7f7b17045c11a855c6a04da853af Mon Sep 17 00:00:00 2001 From: mARTin Date: Wed, 1 Apr 2026 20:25:23 +0200 Subject: [PATCH] fix: reverse FAB menu order + persist iOS PWA session - FAB menu items reordered so Task is closest to button (top), Search is furthest (bottom) - auth.ts: session maxAge=30d + updateAge=1d so the JWT cookie is written as a persistent cookie (Max-Age header), preventing iOS PWA from losing the session when the app is closed/backgrounded v1.81.5 --- package.json | 2 +- src/components/WeeklyView.tsx | 28 ++++++++++++++-------------- src/lib/auth.ts | 4 +++- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 96e04f8..57af515 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.81.4", + "version": "1.81.5", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index f2ef4f8..e6965ba 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -8942,9 +8942,17 @@ export default function WeeklyView() { )} {showMobileFabMenu && (
- + + - - -
)} diff --git a/src/lib/auth.ts b/src/lib/auth.ts index a10bcb0..8841417 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -87,7 +87,9 @@ export const authOptions: NextAuthOptions = { ], debug: true, session: { - strategy: "jwt" + strategy: "jwt", + maxAge: 30 * 24 * 60 * 60, // 30 days + updateAge: 24 * 60 * 60, // refresh cookie on each daily visit (keeps iOS PWA alive) }, pages: { signIn: "/auth/login",