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

+9 -3
View File
@@ -51,7 +51,9 @@ describe('Sites: default (owner)', () => {
})
it('draws cards below md with a full-width Add site button pinned to the bottom', async () => {
await mountDirectory('sites', '/settings/sites', { width: MOBILE_WIDTH })
await mountDirectory('sites', '/settings/sites', {
width: MOBILE_WIDTH,
})
expect(document.body.querySelectorAll('[data-testid="directory-card"]')).toHaveLength(4)
expect(document.body.querySelector('[data-testid="directory-row"]')).toBeNull()
@@ -132,7 +134,9 @@ describe('Sites: row menu', () => {
})
it('opens a bottom sheet titled with the site name below md', async () => {
await mountDirectory('sites', '/settings/sites', { width: MOBILE_WIDTH })
await mountDirectory('sites', '/settings/sites', {
width: MOBILE_WIDTH,
})
await openRowMenu('Journal')
const sheet = dialog()!
@@ -164,7 +168,9 @@ describe('Sites: delete unavailable on the default site', () => {
})
it('writes the explanation in the sheet below md', async () => {
await mountDirectory('sites', '/settings/sites', { width: MOBILE_WIDTH })
await mountDirectory('sites', '/settings/sites', {
width: MOBILE_WIDTH,
})
await openRowMenu('Renew')
expect(textOf(dialog())).toContain(DEFAULT_SITE_TIP)