chore: prettier format pass on branch files

Auto-format all files modified during the documents-hub-split feature
branch that were not yet aligned with the project's Prettier config
(single quotes, semicolons, trailing commas).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-11 13:01:47 +02:00
parent eceb77a6c4
commit 0e8feb1073
77 changed files with 1174 additions and 1356 deletions

View File

@@ -22,9 +22,7 @@ test.describe('Documents hub — upload into entity folder', () => {
await login(page, 'super_admin');
});
test('file uploaded with clientId appears in the client entity folder view', async ({
page,
}) => {
test('file uploaded with clientId appears in the client entity folder view', async ({ page }) => {
const headers = await apiHeaders(page);
// 1. Create a client.
@@ -157,9 +155,12 @@ test.describe('Documents hub — upload into entity folder', () => {
}
// 3. List files for this client to discover the folder id.
const listRes = await page.request.get(`/api/v1/files?entityType=client&entityId=${client.id}`, {
headers,
});
const listRes = await page.request.get(
`/api/v1/files?entityType=client&entityId=${client.id}`,
{
headers,
},
);
if (!listRes.ok()) {
test.skip(true, `File list returned ${listRes.status()} — folderId test skipped`);
return;

View File

@@ -78,16 +78,10 @@ test.describe('Visual regression', () => {
await page.waitForLoadState('networkidle');
// Expand the Clients system root.
const expandBtn = page
.locator('aside')
.getByRole('button', { name: 'Expand' })
.first();
const expandBtn = page.locator('aside').getByRole('button', { name: 'Expand' }).first();
const hasExpand = await expandBtn.isVisible({ timeout: 5_000 }).catch(() => false);
if (!hasExpand) {
test.skip(
true,
'No expandable folder found in sidebar — hub-entity-folder baseline skipped',
);
test.skip(true, 'No expandable folder found in sidebar — hub-entity-folder baseline skipped');
return;
}
await expandBtn.click();