Add store location map manager #20

Open
nalalangan wants to merge 206 commits from feature/location-map-manager into feature/store-selector-modal
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 2a3e028281 - Show all commits

View File

@ -14,7 +14,7 @@ const DISPLAY_CONTROLS = [
["showPins", "Pins"], ["showPins", "Pins"],
["showMyItems", "Mine"], ["showMyItems", "Mine"],
["showOtherItems", "Others"], ["showOtherItems", "Others"],
["showCompleted", "Done"], ["showCompleted", "Bought"],
["showUnmapped", "Unmapped"], ["showUnmapped", "Unmapped"],
]; ];

View File

@ -1476,6 +1476,8 @@ test("viewer wraps long zone labels and keeps item counts visible", async ({ pag
await page.getByRole("button", { name: "Layers" }).click(); await page.getByRole("button", { name: "Layers" }).click();
const labelsToggle = page.getByRole("button", { name: "Labels" }); const labelsToggle = page.getByRole("button", { name: "Labels" });
await expect(labelsToggle).toHaveAttribute("aria-pressed", "true"); 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 labelsToggle.click();
await expect(labelsToggle).toHaveAttribute("aria-pressed", "false"); await expect(labelsToggle).toHaveAttribute("aria-pressed", "false");
await expect(page.getByRole("button", { name: "Layers, 1 changed" })).toBeVisible(); 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(selectedPrimaryActions.getByRole("button", { name: "Publish" })).toBeVisible();
await expect(selectedSecondaryActions.getByRole("button", { name: "Add Area" })).toBeVisible(); await expect(selectedSecondaryActions.getByRole("button", { name: "Add Area" })).toBeVisible();
await expect(selectedSecondaryActions.getByRole("button", { name: "Preview Draft" })).toHaveCount(0); 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 selectedPrimaryBox = await selectedPrimaryActions.boundingBox();
const labelBox = await labelInput.boundingBox(); const labelBox = await labelInput.boundingBox();
const firstFieldRowBox = await fieldRows.first().boundingBox(); const firstFieldRowBox = await fieldRows.first().boundingBox();