feat: tool-first workflow polish -- fix tests, lint cleanup

- Remove obsolete fullscreen redirect test (route deleted in Task 3)
- Update dropzone test strings to match new i18n values
- Fix categories count in i18n locale test (12 -> 24)
- Add chart-maker to no-dropzone exempt list in tool-registry test
- Auto-fix import ordering (Biome) in popular tools route and landing config
This commit is contained in:
SnapOtter
2026-06-14 19:44:58 +08:00
parent bc3ad2b008
commit f387e98fff
7 changed files with 23 additions and 170 deletions
+1 -1
View File
@@ -94,7 +94,6 @@ import { registerOcrPdf } from "./ocr-pdf.js";
import { registerOptimizeForWeb } from "./optimize-for-web.js";
import { registerOrganizePdf } from "./organize-pdf.js";
import { registerPassportPhoto } from "./passport-photo.js";
import { registerPopularTools } from "./popular.js";
import { registerPdfMetadata } from "./pdf-metadata.js";
import { registerPdfPageNumbers } from "./pdf-page-numbers.js";
import { registerPdfToImage } from "./pdf-to-image.js";
@@ -103,6 +102,7 @@ import { registerPdfToWord } from "./pdf-to-word.js";
import { registerPdfaConvert } from "./pdfa-convert.js";
import { registerPitchShift } from "./pitch-shift.js";
import { registerPixelate } from "./pixelate.js";
import { registerPopularTools } from "./popular.js";
import { registerPowerpointToPdf } from "./powerpoint-to-pdf.js";
import { registerProtectPdf } from "./protect-pdf.js";
import { registerQrGenerate } from "./qr-generate.js";
+13 -4
View File
@@ -1,12 +1,21 @@
import { sql } from "drizzle-orm";
import type { FastifyInstance } from "fastify";
import { db } from "../../db/index.js";
import { jobs } from "../../db/schema.js";
import { sql } from "drizzle-orm";
const DEFAULT_POPULAR = [
"resize", "crop", "compress", "convert", "remove-background",
"upscale", "merge-pdf", "watermark-text", "compress-video",
"trim-video", "convert-audio", "compress-pdf",
"resize",
"crop",
"compress",
"convert",
"remove-background",
"upscale",
"merge-pdf",
"watermark-text",
"compress-video",
"trim-video",
"convert-audio",
"compress-pdf",
];
export async function registerPopularTools(app: FastifyInstance) {
+2 -2
View File
@@ -1,6 +1,6 @@
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import sitemap from "@astrojs/sitemap";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "astro/config";
export default defineConfig({
site: "https://snapotter.com",