feat(share): allow creating share links from media view with quick share dialog (#548)

* feat(share): allow creating share links from media view with quick share dialog

* fix(share): prevent horizontal overflow in quick share dialog
This commit is contained in:
Yiling-J
2026-11-24 19:39:06 +08:00
committed by GitHub
parent dc9adcf9ac
commit 9c8eb16259
24 changed files with 1457 additions and 266 deletions
@@ -147,8 +147,10 @@ test('dissolving a shared version stack renders the remaining standalone file na
// Share the version stack
await fileCard(page, fileB.name).click({ button: 'right' })
await page.getByRole('menuitem', { name: 'Create Share Link' }).click()
const toast = page.locator('[data-sonner-toast]').filter({ hasText: 'Share link created' })
await expect(toast).toBeVisible()
const shareDialog = page.getByRole('dialog')
await expect(shareDialog).toBeVisible()
await shareDialog.getByRole('button', { name: 'Done' }).click()
await expect(shareDialog).toBeHidden()
const share = await prisma.shareLink.findFirstOrThrow({
where: { projectId },