From 2a3e028281aad185d5b90beb80e97ea3cdd58224 Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 4 Jun 2026 03:38:57 -0700 Subject: [PATCH] fix: clarify bought item map layer --- frontend/src/components/maps/LocationMapBottomSheet.jsx | 2 +- frontend/tests/location-map-manager.spec.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/maps/LocationMapBottomSheet.jsx b/frontend/src/components/maps/LocationMapBottomSheet.jsx index 0313b70..72d056d 100644 --- a/frontend/src/components/maps/LocationMapBottomSheet.jsx +++ b/frontend/src/components/maps/LocationMapBottomSheet.jsx @@ -14,7 +14,7 @@ const DISPLAY_CONTROLS = [ ["showPins", "Pins"], ["showMyItems", "Mine"], ["showOtherItems", "Others"], - ["showCompleted", "Done"], + ["showCompleted", "Bought"], ["showUnmapped", "Unmapped"], ]; diff --git a/frontend/tests/location-map-manager.spec.ts b/frontend/tests/location-map-manager.spec.ts index 26a7d29..9c4a90e 100644 --- a/frontend/tests/location-map-manager.spec.ts +++ b/frontend/tests/location-map-manager.spec.ts @@ -1476,6 +1476,8 @@ test("viewer wraps long zone labels and keeps item counts visible", async ({ pag await page.getByRole("button", { name: "Layers" }).click(); const labelsToggle = page.getByRole("button", { name: "Labels" }); await expect(labelsToggle).toHaveAttribute("aria-pressed", "true"); + await expect(page.getByRole("button", { name: "Bought" })).toBeVisible(); + await expect(page.getByRole("button", { name: "Done" })).toHaveCount(0); await labelsToggle.click(); await expect(labelsToggle).toHaveAttribute("aria-pressed", "false"); await expect(page.getByRole("button", { name: "Layers, 1 changed" })).toBeVisible(); @@ -2179,7 +2181,7 @@ test("mobile editor uses bottom sheet controls instead of desktop object toolbar await expect(selectedPrimaryActions.getByRole("button", { name: "Publish" })).toBeVisible(); await expect(selectedSecondaryActions.getByRole("button", { name: "Add Area" })).toBeVisible(); await expect(selectedSecondaryActions.getByRole("button", { name: "Preview Draft" })).toHaveCount(0); - await expect(page.getByRole("button", { name: "Done" })).toHaveCount(0); + await expect(page.getByRole("button", { name: "Bought" })).toHaveCount(0); const selectedPrimaryBox = await selectedPrimaryActions.boundingBox(); const labelBox = await labelInput.boundingBox(); const firstFieldRowBox = await fieldRows.first().boundingBox();