Phase 4 — wires `@axe-core/playwright` into the smoke suite so any
critical/serious WCAG 2.1 A/AA violation on the main authenticated
pages fails CI.
tests/e2e/smoke/20-accessibility.spec.ts:
Iterates 6 routes (dashboard, clients, yachts, interests, berths,
admin/branding) — each navigates after login, waits for
networkidle, runs AxeBuilder with WCAG2/2.1 A+AA tags, asserts no
critical/serious violations.
DISABLED_RULES list trims two known-noisy rules that fire on Radix
primitives + design-pass-pending muted text:
- tabindex (Radix focus traps)
- color-contrast (muted body text, pending design pass)
The list is intentionally small; new entries require a comment and
an audit. Easier to widen than narrow.
Run: pnpm exec playwright test --project=smoke
No vitest impact (1298/1298 still green); the spec only runs on the
e2e playwright project so the unit suite stays fast.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
158 lines
5.4 KiB
JSON
158 lines
5.4 KiB
JSON
{
|
|
"name": "port-nimara-crm",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"packageManager": "pnpm@10.33.2",
|
|
"scripts": {
|
|
"dev": "next dev --turbopack -H 0.0.0.0",
|
|
"build": "next build && pnpm build:server",
|
|
"build:server": "esbuild src/server.ts --bundle --platform=node --target=node20 --format=cjs --outdir=dist --packages=external --tsconfig=tsconfig.server.json",
|
|
"build:worker": "esbuild src/worker.ts --bundle --platform=node --target=node20 --format=cjs --outdir=dist --packages=external --tsconfig=tsconfig.server.json",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"format": "prettier --write \"src/**/*.{ts,tsx,json,css}\"",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:push": "drizzle-kit push",
|
|
"db:studio": "drizzle-kit studio",
|
|
"db:seed": "tsx src/lib/db/seed.ts",
|
|
"db:seed:realistic": "tsx src/lib/db/seed.ts",
|
|
"db:seed:synthetic": "tsx src/lib/db/seed-synthetic.ts",
|
|
"db:reset": "tsx scripts/db-reset.ts --confirm",
|
|
"db:reseed:realistic": "pnpm db:reset && pnpm db:seed:realistic",
|
|
"db:reseed:synthetic": "pnpm db:reset && pnpm db:seed:synthetic",
|
|
"db:backfill:doc-folders": "tsx scripts/backfill-document-folders.ts",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:smoke": "playwright test --project=smoke",
|
|
"test:e2e:exhaustive": "playwright test --project=exhaustive",
|
|
"test:e2e:destructive": "playwright test --project=destructive",
|
|
"prepare": "husky || true"
|
|
},
|
|
"dependencies": {
|
|
"@dnd-kit/core": "^6.3.1",
|
|
"@dnd-kit/sortable": "^10.0.0",
|
|
"@dnd-kit/utilities": "^3.2.2",
|
|
"@formkit/auto-animate": "^0.9.0",
|
|
"@hookform/resolvers": "^5.2.2",
|
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
"@radix-ui/react-icons": "^1.3.2",
|
|
"@radix-ui/react-label": "^2.1.8",
|
|
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
"@radix-ui/react-popover": "^1.1.15",
|
|
"@radix-ui/react-progress": "^1.1.8",
|
|
"@radix-ui/react-radio-group": "^1.3.8",
|
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
"@radix-ui/react-select": "^2.2.6",
|
|
"@radix-ui/react-separator": "^1.1.8",
|
|
"@radix-ui/react-slider": "^1.3.6",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-switch": "^1.2.6",
|
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@react-email/components": "^1.0.12",
|
|
"@react-pdf/renderer": "^4.5.1",
|
|
"@socket.io/redis-adapter": "^8.3.0",
|
|
"@tanstack/query-broadcast-client-experimental": "^5.100.10",
|
|
"@tanstack/react-query": "^5.100.10",
|
|
"@tanstack/react-query-devtools": "^5.100.10",
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"@tanstack/react-virtual": "^3.13.24",
|
|
"@types/pdfkit": "^0.17.6",
|
|
"archiver": "^7.0.1",
|
|
"better-auth": "^1.6.10",
|
|
"browser-image-compression": "^2.0.2",
|
|
"bullmq": "^5.76.8",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"cmdk": "^1.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"drizzle-orm": "^0.45.2",
|
|
"imapflow": "^1.3.3",
|
|
"ioredis": "^5.10.1",
|
|
"iso-3166-2": "^1.0.0",
|
|
"isomorphic-dompurify": "^3.12.0",
|
|
"jose": "^6.2.3",
|
|
"libphonenumber-js": "^1.13.1",
|
|
"lucide-react": "^1.14.0",
|
|
"mailparser": "^3.9.8",
|
|
"minio": "^8.0.7",
|
|
"next": "15.5.18",
|
|
"next-themes": "^0.4.6",
|
|
"nodemailer": "^8.0.7",
|
|
"openai": "^6.37.0",
|
|
"p-limit": "^7.3.0",
|
|
"pdf-lib": "^1.17.1",
|
|
"pdfkit": "^0.18.0",
|
|
"pino": "^10.3.1",
|
|
"pino-pretty": "^13.1.3",
|
|
"postgres": "^3.4.9",
|
|
"react": "^19.2.6",
|
|
"react-day-picker": "^10.0.0",
|
|
"react-dom": "^19.2.6",
|
|
"react-easy-crop": "^5.5.7",
|
|
"react-email": "^6.1.3",
|
|
"react-hook-form": "^7.75.0",
|
|
"react-image-crop": "^11.0.10",
|
|
"recharts": "^3.8.1",
|
|
"sharp": "^0.34.5",
|
|
"socket.io": "^4.8.3",
|
|
"socket.io-client": "^4.8.3",
|
|
"sonner": "^2.0.7",
|
|
"svgo": "^4.0.1",
|
|
"tailwind-merge": "^3.6.0",
|
|
"tailwindcss-animate": "^1.0.7",
|
|
"tesseract.js": "^7.0.0",
|
|
"ts-pattern": "^5.9.0",
|
|
"unpdf": "^1.6.2",
|
|
"vaul": "^1.1.2",
|
|
"web-vitals": "^5.2.0",
|
|
"zod": "^4.4.3",
|
|
"zustand": "^5.0.13"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "^4.11.3",
|
|
"@eslint/eslintrc": "^3.3.5",
|
|
"@hookform/devtools": "^4.4.0",
|
|
"@next/bundle-analyzer": "^16.2.6",
|
|
"@playwright/test": "^1.60.0",
|
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
"@types/archiver": "^7.0.0",
|
|
"@types/iso-3166-2": "^1.0.4",
|
|
"@types/mailparser": "^3.4.6",
|
|
"@types/node": "^20.19.0",
|
|
"@types/nodemailer": "^8.0.0",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"@vitest/coverage-v8": "^4.1.6",
|
|
"autoprefixer": "^10.5.0",
|
|
"dotenv": "^17.4.2",
|
|
"drizzle-kit": "^0.31.10",
|
|
"drizzle-zod": "^0.8.3",
|
|
"esbuild": "^0.28.0",
|
|
"eslint": "^9.39.4",
|
|
"eslint-config-next": "15.5.18",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^17.0.4",
|
|
"postcss": "^8.5.14",
|
|
"prettier": "^3.8.3",
|
|
"react-grab": "^0.1.34",
|
|
"tailwindcss": "^3.4.19",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^6.0.3",
|
|
"vitest": "^4.1.6"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"vite": "8.0.5",
|
|
"esbuild": ">=0.25.0",
|
|
"postcss": ">=8.5.10"
|
|
}
|
|
}
|
|
}
|