diff --git a/.changeset/root-row-visit-label.md b/.changeset/root-row-visit-label.md new file mode 100644 index 0000000..331221c --- /dev/null +++ b/.changeset/root-row-visit-label.md @@ -0,0 +1,5 @@ +--- +'@goto/web': patch +--- + +Use the same Visits column for the root row and named links without repeating the Root visits label. diff --git a/apps/web/e2e/auth.e2e.ts b/apps/web/e2e/auth.e2e.ts index c601f92..3f7c052 100644 --- a/apps/web/e2e/auth.e2e.ts +++ b/apps/web/e2e/auth.e2e.ts @@ -126,7 +126,7 @@ test('shared credentials protect admin pages and sign-out removes access', async '404 Not found', domainReportPath ]); - await expect(rootRow.getByText('Root visits', { exact: true })).toBeVisible(); + await expect(rootRow.getByText('Root visits', { exact: true })).toHaveCount(0); await expect(rootRow.locator('.admin-inventory-number')).toHaveText('1'); await expect(domainDetails.getByRole('link', { name: 'Root', exact: true })).toHaveCount(0); await expect(domainDetails.getByRole('link', { name: 'Fallback', exact: true })).toHaveCount(0); diff --git a/apps/web/src/lib/components/admin/LinkInventory.svelte b/apps/web/src/lib/components/admin/LinkInventory.svelte index db182e9..d71c9bf 100644 --- a/apps/web/src/lib/components/admin/LinkInventory.svelte +++ b/apps/web/src/lib/components/admin/LinkInventory.svelte @@ -40,8 +40,7 @@ - -