From 4c145a262131a056df3d92368c1f37e436faccad Mon Sep 17 00:00:00 2001 From: bboysoul Date: Thu, 24 Sep 2026 15:26:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A8=E5=8D=95=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E8=A1=A5=E8=B0=83=20loadArchivedLists=EF=BC=8C?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=99=BB=E5=BD=95=E4=B8=8D=E5=86=8D=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=E3=80=8C=E5=B7=B2=E5=BD=92=E6=A1=A3=20N=E3=80=8D?= =?UTF-8?q?=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.vue | 1 + frontend/src/style.test.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 04e55c8..bd69b83 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -564,6 +564,7 @@ async function submitAuth() { restoreNavigation(data.inbox_id || lists.value.find((item: TaskList) => item.is_inbox)?.id || lists.value[0]?.id || '') expandedFolders.value = new Set(folders.value.map((folder) => folder.id)) await syncBrowserTimezone(data.user?.timezone) + await loadArchivedLists() void preloadCountdowns() await loadRestoredView() } catch (reason) { fail(reason) } diff --git a/frontend/src/style.test.ts b/frontend/src/style.test.ts index 5973326..007ea45 100644 --- a/frontend/src/style.test.ts +++ b/frontend/src/style.test.ts @@ -1852,3 +1852,12 @@ describe('original circular floating add button', () => { expect(floatingAdd).not.toContain('pupilOffset') }) }) + +describe('auth bootstrap paths', () => { + it('loads archived lists on both cookie bootstrap and form login paths', () => { + const bootstrapBlock = app.slice(app.indexOf('async function bootstrap()'), app.indexOf('async function submitAuth()')) + const submitAuthBlock = app.slice(app.indexOf('async function submitAuth()'), app.indexOf('async function loadTaskPages')) + expect(bootstrapBlock).toContain('await loadArchivedLists()') + expect(submitAuthBlock).toContain('await loadArchivedLists()') + }) +})