feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)

This commit is contained in:
Florian Sylvain committed 2026-10-15 05:25:44 +02:00
1 parent 3d81d2c717
commit 6b8990c55e
239 files changed
+9194 -1354

No files matched your search

+19 -4
View File
@@ -34,7 +34,11 @@ vi.mock('@/composables/useApi', async (importOriginal) => {
return { ...actual, useApi: vi.fn() }
})
const toasts = vi.hoisted(() => ({ add: vi.fn(), remove: vi.fn(), update: vi.fn() }))
const toasts = vi.hoisted(() => ({
add: vi.fn(),
remove: vi.fn(),
update: vi.fn(),
}))
vi.mock('@nuxt/ui/composables', async (importOriginal) => {
const actual = await importOriginal<typeof import('@nuxt/ui/composables')>()
@@ -237,7 +241,11 @@ describe('Escape and Clear', () => {
expect(panel()).not.toBeNull()
panel()!.dispatchEvent(
new KeyboardEvent('keydown', { key: 'Escape', bubbles: true, cancelable: true }),
new KeyboardEvent('keydown', {
key: 'Escape',
bubbles: true,
cancelable: true,
}),
)
await settle()
@@ -390,7 +398,11 @@ describe('Bulk delete', () => {
expect(confirm.disabled).toBe(true)
await vi.waitFor(() => expect(confirm.querySelector('svg.iconify--lucide')).toBeTruthy())
dialog()!.dispatchEvent(
new KeyboardEvent('keydown', { key: 'Escape', bubbles: true, cancelable: true }),
new KeyboardEvent('keydown', {
key: 'Escape',
bubbles: true,
cancelable: true,
}),
)
await flushPromises()
expect(dialog()).not.toBeNull()
@@ -471,7 +483,10 @@ describe('Bulk delete', () => {
duration: 0,
})
expect(toast.actions).toHaveLength(1)
expect(toast.actions[0]).toMatchObject({ label: 'Retry', icon: 'i-lucide-rotate-cw' })
expect(toast.actions[0]).toMatchObject({
label: 'Retry',
icon: 'i-lucide-rotate-cw',
})
})
it('Retry sends only the failed DELETE with no dialog and replaces the toast on success', async () => {