chore(qa): 验收台账与证据入库 + 构建/部署配置同步

- docs/acceptance/qa-tracker.md:跨周期缺陷单一真源台账(§7=第五轮)。
- 周期 1/2 + iPhone SE/axe 验收证据目录、ACCEPTANCE_REVIEW 快照入库。
- 同步 README/CONTEXT/CLAUDE/DESIGN/testing/deployment/lessons-learned 口径;
  next.config/Dockerfile/nginx/Jenkinsfile/docker-compose/sentry/prisma 对齐
  standalone 产物装配与部署形态。
This commit is contained in:
2026-09-28 10:48:09 +08:00
parent 6bb7c557ee
commit a0328a623f
128 changed files with 22455 additions and 504 deletions
+25 -13
View File
@@ -6,6 +6,7 @@
"dev": "next dev -p 3000",
"dev:clean": "rm -rf .next dist && next dev -p 3000",
"build": "next build",
"postbuild": "rm -rf dist/standalone/dist/static dist/standalone/public && mkdir -p dist/standalone/dist && cp -R dist/static dist/standalone/dist/static && cp -R public dist/standalone/public",
"build:clean": "rm -rf .next dist && next build",
"start": "next start -p 3000",
"db:seed": "npx tsx prisma/seed.ts",
@@ -13,21 +14,23 @@
"lint": "eslint",
"type-check": "tsc --noEmit",
"preview": "next start -p 3000",
"test": "cd e2e && npx playwright test --config=playwright.config.ts",
"test": "npm run test:functional && npm run test:visual:all",
"test:unit": "jest",
"test:coverage": "jest --coverage",
"test:coverage:check": "jest --coverage --ci",
"coverage:report": "open coverage/lcov-report/index.html",
"test:e2e": "cd e2e && npx playwright test --config=playwright.config.ts",
"test:functional": "cd e2e && npx playwright test --config=playwright.config.ts --project=chromium --project=chromium-mobile --project=firefox --project=webkit",
"test:e2e": "npm run test:functional",
"test:visual": "cd e2e && npx playwright test visual-regression.spec.ts --project=visual-chromium-desktop",
"test:visual:all": "cd e2e && npx playwright test visual-regression.spec.ts",
"test:visual:update": "cd e2e && npx playwright test visual-regression.spec.ts --project=visual-chromium-desktop --update-snapshots",
"test:visual:update": "cd e2e && npx playwright test visual-regression.spec.ts --update-snapshots",
"test:visual:mobile": "cd e2e && npx playwright test visual-regression.spec.ts --project=visual-chromium-mobile",
"test:visual:tablet": "cd e2e && npx playwright test visual-regression.spec.ts --project=visual-chromium-tablet",
"test:visual:browsers": "cd e2e && npx playwright test visual-regression.spec.ts --project=visual-chromium-desktop --project=visual-firefox-desktop --project=visual-webkit-desktop",
"test:performance": "k6 run tests/performance/load-test.js",
"test:stress": "k6 run tests/performance/stress-test.js",
"test:integration": "jest --testPathPatterns='src/app/api/'",
"test:integration:mocked": "jest --testPathPatterns='src/app/api/'",
"test:integration:real": "jest --config config/test/jest.integration.config.js",
"test:performance:api": "k6 run tests/performance/api-test.js",
"test:performance:soak": "k6 run tests/performance/soak-test.js",
"test:smoke": "cd e2e && npx playwright test --grep @smoke",
@@ -35,23 +38,30 @@
"test:e2e:fast": "cd e2e && npx playwright test --grep '@smoke|@critical'",
"test:e2e:standard": "cd e2e && npx playwright test --grep @regression",
"test:e2e:journey": "cd e2e && npx playwright test --grep @journey",
"test:e2e:prod": "cd e2e && E2E_TARGET=production npx playwright test --grep '@smoke|@critical|@journey' --project=chromium --project=chromium-mobile --project=firefox --project=webkit",
"test:e2e:journey:home": "cd e2e && npx playwright test uj-11-home-conversion.spec.ts --project=chromium --project=chromium-mobile",
"test:e2e:mobile": "cd e2e && npx playwright test --grep @mobile",
"test:e2e:mobile:performance": "cd e2e && npx playwright test --grep @mobile.*@performance",
"test:e2e:mobile:accessibility": "cd e2e && npx playwright test --grep @mobile.*@accessibility",
"test:mutation": "rm -rf .stryker-tmp && npx stryker run --inPlace",
"test:mutation:quick": "rm -rf .stryker-tmp && npx stryker run --inPlace --mutate 'src/lib/utils.ts'",
"test:all": "npm run type-check && npm run lint && npm run test:coverage && npm run test:e2e:fast && npm run test:security:headers",
"test:mutation": "rm -rf .stryker-tmp && npx stryker run",
"test:mutation:quick": "rm -rf .stryker-tmp && npx stryker run --mutate 'src/lib/utils.ts'",
"test:all": "npm run type-check && npm run lint && npm run test:coverage && npm run test:integration:real && npm run check:a11y && npm run test:e2e:fast && npm run test:security:headers",
"check:contrast": "tsx scripts/utils/check-color-contrast.ts",
"check:headings": "tsx scripts/utils/check-heading-hierarchy.ts",
"check:brand-token": "tsx scripts/utils/check-brand-text-token.ts",
"check:motion": "tsx scripts/utils/check-motion-constraints.ts",
"check:motion:test": "jest --roots '<rootDir>/scripts/utils/__tests__'",
"check:a11y": "npm run check:contrast && npm run check:headings && npm run check:brand-token",
"check:axe": "node scripts/accessibility/axe-node-count.mjs",
"check:axe:routes": "node scripts/accessibility/crawl-routes.mjs",
"test:security": "npm audit --audit-level=high && npm run test:security:headers",
"test:security:headers": "tsx scripts/utils/check-security-headers.ts",
"lighthouse": "lhci autorun",
"lighthouse:collect": "lhci collect",
"lighthouse:assert": "lhci assert",
"lighthouse:upload": "lhci upload",
"lighthouse:desktop": "lhci autorun --settings.preset=desktop",
"lighthouse:mobile": "lhci autorun --settings.preset=mobile",
"lighthouse": "lhci autorun --config=config/test/lighthouserc.json",
"lighthouse:collect": "lhci collect --config=config/test/lighthouserc.json",
"lighthouse:assert": "lhci assert --config=config/test/lighthouserc.json",
"lighthouse:upload": "lhci upload --config=config/test/lighthouserc.json",
"lighthouse:desktop": "lhci autorun --config=config/test/lighthouserc.json --collect.settings.preset=desktop",
"lighthouse:mobile": "lhci autorun --config=config/test/lighthouserc.json --collect.settings.preset=mobile",
"prepare": "husky",
"deploy": "bash scripts/deploy.sh deploy",
"deploy:skip-build": "bash scripts/deploy.sh deploy --skip-build",
@@ -102,6 +112,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.80.0",
"sanitize-html": "^2.17.7",
"sharp": "^0.35.3",
"sonner": "^2.0.7",
"tailwind-merge": "^3.4.0",
@@ -129,6 +140,7 @@
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/sanitize-html": "^2.16.1",
"@typescript-eslint/eslint-plugin": "^8.65.0",
"@typescript-eslint/parser": "^8.65.0",
"allure-playwright": "^3.10.2",