From 61965560127b51585b60d8967a9cffd4b18e6c0a Mon Sep 17 00:00:00 2001 From: Robin Dittmar Date: Tue, 1 Sep 2026 15:29:31 +0200 Subject: [PATCH] fix: removed user_ids from create list payload; improved share button on invites --- src/api/__tests__/lists.spec.ts | 2 +- src/components/InvitesPanel.vue | 16 +++++++++-- src/components/__tests__/InvitesPanel.spec.ts | 28 +++++++++++++++++++ src/stores/__tests__/lists.spec.ts | 3 +- src/stores/lists.ts | 4 +-- src/types/list.ts | 1 - 6 files changed, 46 insertions(+), 8 deletions(-) diff --git a/src/api/__tests__/lists.spec.ts b/src/api/__tests__/lists.spec.ts index 0978488..ddacd52 100644 --- a/src/api/__tests__/lists.spec.ts +++ b/src/api/__tests__/lists.spec.ts @@ -101,7 +101,7 @@ describe('lists API', () => { } as unknown as Response) global.fetch = fetchMock - const result = await createListApi({ name: 'Groceries', user_ids: [] }) + const result = await createListApi({ name: 'Groceries' }) expect(fetchMock).toHaveBeenCalledWith( `${API_BASE_URL}/lists`, diff --git a/src/components/InvitesPanel.vue b/src/components/InvitesPanel.vue index c899ed6..395797c 100644 --- a/src/components/InvitesPanel.vue +++ b/src/components/InvitesPanel.vue @@ -138,7 +138,11 @@ async function shareInvite(invite: Invite) { if (typeof navigator.share === 'function') { try { - await navigator.share({ title: 'Join dttmr', text: 'Use this link to create your account', url }) + await navigator.share({ + title: 'Join dttmr', + text: 'Use this link to create your account', + url, + }) return } catch (err) { if (err instanceof Error && err.name === 'AbortError') { @@ -248,7 +252,15 @@ function inviteDetail(invite: Invite): string { {{ inviteDetail(invite) }}
-