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();

View File

@@ -195,9 +195,7 @@ describe('backfill-document-folders · runBackfill', () => {
it('does not create folders for a different port when only portId is supplied', async () => {
const otherPort = await makePort();
await db
.delete(documentFolders)
.where(eq(documentFolders.portId, otherPort.id));
await db.delete(documentFolders).where(eq(documentFolders.portId, otherPort.id));
const otherClient = await makeClient({ portId: otherPort.id });

View File

@@ -267,10 +267,7 @@ describe('document-folders service · archive lifecycle', () => {
await db.delete(documentFolders).where(eq(documentFolders.portId, portId));
await ensureSystemRoots(portId, TEST_USER_ID);
clientName = `John Smith ${crypto.randomUUID().slice(0, 6)}`;
const [client] = await db
.insert(clients)
.values({ portId, fullName: clientName })
.returning();
const [client] = await db.insert(clients).values({ portId, fullName: clientName }).returning();
clientId = client!.id;
await ensureEntityFolder(portId, 'client', clientId, TEST_USER_ID);
});