fix: update tool count to 52 and add ai-canvas-expand to landing page

ai-canvas-expand was added to constants.ts and route files but never
added to the landing page bento grid, causing all hardcoded counts
to remain at 51. This updates all references across source, docs,
i18n, and tests to reflect the correct count of 52 tools.
This commit is contained in:
SnapOtter
2026-05-16 10:02:19 +08:00
parent 00f408b45e
commit 2c45a3a9e8
19 changed files with 45 additions and 39 deletions
+6 -6
View File
@@ -9,28 +9,28 @@ test.describe("BentoGrid Interactions", () => {
const input = page.getByPlaceholder("Search tools...");
await input.fill("resize");
await expect(page.getByText("Resize", { exact: true }).first()).toBeVisible();
await expect(page.getByText(/Showing \d+ of 51 tools/)).toBeVisible();
await expect(page.getByText(/Showing \d+ of 52 tools/)).toBeVisible();
});
test("category pill filters tools", async ({ page }) => {
await page.getByText(/AI Tools/).click();
await expect(page.getByText(/Showing 15 of 51 tools/)).toBeVisible();
await expect(page.getByText(/Showing 16 of 52 tools/)).toBeVisible();
await expect(page.getByText("Remove Background")).toBeVisible();
});
test("clicking All resets category filter", async ({ page }) => {
await page.getByText(/AI Tools/).click();
await expect(page.getByText(/Showing 15 of 51 tools/)).toBeVisible();
await expect(page.getByText(/Showing 16 of 52 tools/)).toBeVisible();
await page.getByText(/All \(51\)/).click();
await expect(page.getByText(/Showing 51 of 51 tools/)).toBeVisible();
await page.getByText(/All \(52\)/).click();
await expect(page.getByText(/Showing 52 of 52 tools/)).toBeVisible();
});
test("search with no results shows empty state", async ({ page }) => {
const input = page.getByPlaceholder("Search tools...");
await input.fill("xyznonexistent");
await expect(page.getByText("No tools found. Try a different search.")).toBeVisible();
await expect(page.getByText(/Showing 0 of 51 tools/)).toBeVisible();
await expect(page.getByText(/Showing 0 of 52 tools/)).toBeVisible();
});
test("combined search and category filter works", async ({ page }) => {