Files
novalon-website/.gitignore
T
zhangxiang 09ff3e026b chore(audit): add reusable dogfood UI/UX/UE audit toolkit and 2026-09-01 report
新增可复用的全站 dogfood 审计工具链(Playwright,31 路由约 2 分钟跑完):

- scripts/audit/ui-audit.mjs —— 主审计器。9 维自动化探针:对比度(WCAG
  相对亮度 + alpha 合成 + 大文本 3:1 / 小文本 4.5:1)、横向溢出、触控目标
  (WCAG 2.2 AA 2.5.8 24x24)、img alt、标题层级、form label、文本截断、
  颜色频次(品牌红覆盖)、性能(LCP + CLS)。支持多视口采集与 P1/P2/P3 自动分级。
- scripts/audit/audit-fullpage.mjs —— 核心页 fullPage 长图(首屏看不全叙事结构)
- scripts/audit/verify-tabbar.mjs —— 移动端 Tab bar 遮挡修复验证
- scripts/audit/contact-diag.mjs —— 单页诊断(console/pageerror/requestfailed 捕获)

防刷绿机制:对比度探针命中 aria-hidden 祖先时跳过,但累计 decorativeSkipped
让豁免量可见;触控探针把 aria-hidden 内的可聚焦元素计入 ariaHiddenFocusable
单独上报,不静默跳过。

已知盲区(需在报告中人工补判):effectiveBg 遇到渐变或图片背景返回 unknown
并跳过整节点 —— 详情页 hero 的装饰数字因此从未被自动报出。

.gitignore 增加 dogfood-ui-audit/(采集产物单轮可达 39MB,只提交脚本与报告)。

Refs: UI_UX_UE_AUDIT_2026-09-01.md
2026-09-20 11:50:58 +08:00

337 lines
6.1 KiB
Plaintext

# ============================================================
# Dependencies
# ============================================================
node_modules/
.pnpm-store/
.pnp/
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions
# ============================================================
# Build Outputs
# ============================================================
.next/
out/
.swc/
build/
dist/
.cache/
.turbo/
*.tgz
*.local
dist-ssr/
dist_backup/
# ============================================================
# Testing & Coverage
# ============================================================
coverage/
.nyc_output/
*.lcov
# Playwright
test-results/
playwright-report/
playwright/.cache/
*.traces/
playwright-traces/
# E2E test results
e2e/test-results/
e2e/playwright-report/
e2e/allure-results/
e2e/allure-report/
e2e/.last-run.json
e2e/junit.xml
e2e/test-report.md
# Test Framework
test-framework/node_modules/
test-framework/test-results/
test-framework/playwright-report/
test-framework/allure-results/
test-framework/allure-report/
test-framework/reports/
# Allure reports
allure-results/
allure-report/
# Legacy test directories
e2e-tests/.pytest_cache/
e2e-tests/__pycache__/
e2e-tests/.venv/
e2e-tests/venv/
e2e-tests/*.egg-info/
e2e-tests/results/
e2e-tests/reports/
# ============================================================
# Environment Variables & Secrets
# ============================================================
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.production
.env.*.local
*.env
# Debug & Security
*.pem
*.key
*.cert
*.crt
.auth/
# WorkBuddy 工作记忆目录(工具生成,不入库)
.workbuddy/
# ============================================================
# Database
# ============================================================
*.db
*.db-journal
data.db
data/
# ============================================================
# Uploads & Storage
# ============================================================
uploads/
# ============================================================
# Logs
# ============================================================
logs/
*.log
npm-debug.log*
yarn-debug.log*
pnpm-debug.log*
lerna-debug.log*
deploy_*.log
# ============================================================
# TypeScript
# ============================================================
*.tsbuildinfo
next-env.d.ts
*.d.ts.map
# ============================================================
# IDE & Editors
# ============================================================
.idea/
.vscode/
*.swp
*.swo
*~
*.sublime-workspace
*.sublime-project
*.iml
.project
.classpath
.settings/
*.code-workspace
# ============================================================
# OS Generated Files
# ============================================================
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msix
*.msm
*.msp
*.lnk
# ============================================================
# Runtime & Cache
# ============================================================
pids/
*.pid
*.seed
*.pid.lock
.eslintcache
.node_repl_history
.npm
# ============================================================
# Backup Files
# ============================================================
*.backup
*.bak
*.tmp
*.temp
# ============================================================
# Deployment Platforms
# ============================================================
.vercel/
# ============================================================
# Framework Specific
# ============================================================
# Vite
vite.config.ts.timestamp-*
# Tailwind CSS
*.css.map
# Framer Motion
*.framer-motion.json
# Three.js
*.three.json
# Trae IDE
.trae/
# ============================================================
# Python (if used for scripts/testing)
# ============================================================
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
develop-eggs/
downloads/
eggs/
.eggs/
lib/
lib64/
!src/lib/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
.pytest_cache/
.mypy_cache/
.coverage
htmlcov/
.tox/
.hypothesis/
.coverage.*
*.cover
coverage.xml
.dmypy.json
dmypy.json
.pyre/
.pytype/
cython_debug/
# Python Virtual Environments
venv/
env/
ENV/
env.bak/
venv.bak/
.venv/
virtualenv/
virtualenvs/
# ============================================================
# Project Specific Test Files
# ============================================================
test-email.js
test-screenshot.png
hero-check.png
playwright-test-not-portal.js
heading-hierarchy-report.json
# Test reports
reports/e2e/
reports/performance/
reports/coverage/
reports/mutation/
# Performance audit results
lighthouse-reports/
.lighthouseci/
performance-baseline.json
# Test data exports
test-data-*.json
test-results-*.json
# Stryker mutation testing temp files
.stryker-tmp/
# Pi framework temp files
.pi/
# Agent config (local only)
.agents/settings.local.json
# Additional E2E test artifacts
e2e/blob-report/
e2e/report/
e2e/.auth/
e2e/state/
e2e/storage-state.json
# Test execution artifacts
*.trace
*.trace.zip
trace.zip
network-logs/
# ============================================================
# Task Planning Files
# ============================================================
task_plan.md
progress.md
findings.md
# ============================================================
# IMPORTANT NOTES
# ============================================================
# Visual regression snapshots are committed to version control
# These are in: e2e/visual-snapshots/
# Git will track them because they are not in test-results/ or allure-results/
# AGENTS
AGENTS.md
# dogfood
dogfood-output*/
dogfood-bain/
# UI/UX/UE 审计采集产物(截图 + probes.json,单轮可达 39MB)—— 只提交脚本与报告
dogfood-ui-audit/
# agent & skill artifacts
.nova-loop/
.qoder/
.impeccable/
.superpowers/brainstorm/
sessions/
# test outputs
# NOTE: visual regression baselines are intentionally tracked; see IMPORTANT NOTES above
responsive-test/
visual-test/
tests/screenshots/
# reference designs
novalon-accenture-redesign/
/src/generated/prisma