zhangxiang
8d84dca928
docs: 收尾轮文档同步(§20 / §5.68–5.69 / §13 / test:all 口径)
...
- qa-tracker §20:本轮 OPEN-12/14/15 的判定方法与一手读数,含
OPEN-14 的 stash 逐项比对结果(7 个文件 0 缺失 = stash 是旧形态;
6 处仍成立已移植;3 处属 feature/gitea-branding 与运维线不代改)。
- lessons §5.68:自证夹具里的路径是「第二份事实」,改名即漂移,
且红得像判据坏了;恒红的自证闸比没有更坏,必须当 P0 修。
- lessons §5.69:改了默认值必须同时改所有断言它的地方 —— e2e 与单测
是两套断言,而只在 test:e2e:prod 下执行的用例,本地全绿看不见它的红。
- quality-gates §13:视觉 15→35 页 / 225 例 / 227 张、headings 11→34 页、
axe settle 修复、TA-11/12 的用例侧收口、GA consent 断言口径。
- testing.md:settle 与 headings 分母扩容的可复算口径。
- CLAUDE.md / AGENTS.md:test:all 的实际命令列表补上 check:package-keys /
type-check:e2e / check:visual 三项。此前的漏记让「test:all 全绿」在
check:visual 恒红期间无法被核对 —— 文档记的不是命令的全部,就没有判定力。
- .gitignore:补 2026-10-24 visual/*.png、2026-10-22-gitea-branding、
infra/cicd/gitea{,-custom} 三组,逐条写明归属。
- axe-evidence.json:本轮复跑刷新 latest 指针(35 路由 × 4 组合全 0)。
2026-11-26 20:03:53 +08:00
zhangxiang
9c4dd576d5
chore(git): 验收大块产物按目录点名忽略,本机产物入库边界
...
两个验收目录合计 172MB / 1383 个文件(绝大多数是逐页截图)。直接入库会把每次
clone 与 diff 拖垮;但**按扩展名一刀切是错的** —— `.gitignore` 里写 `*.webp`
会连带挡掉 `e2e/visual-snapshots/**` 的视觉基线(那是视觉回归的唯一参照),
而 gitignore **静默生效**,下一轮没人会发现基线没提交。
按目录点名忽略:
- docs/acceptance/2026-10-2{1,4}-full-qa 的 screenshots / contact-sheets /
prod-compare / prod-readonly(截图只在排查当时有用)
保留下来的:README / FIXES / defects*.json / summary / coverage-matrix /
axe 结果 / 复现脚本 —— **「这条结论怎么来的」必须入库**。
实测 172MB → 8.3MB。
另两类本机产物:
- `vibe_images/`(23MB ImageGen 草图,站内实际引用的图在 public/)
- `.pi-dsh/`(DSH 运行期 job 日志)
- `assets-wecom/*.png`(18 张可从已入库 SVG 用 wecom-pack.cjs 重新栅格化,
清单与脚本入库)
2026-11-25 09:00:57 +08:00
zhangxiang
81dc70b86c
docs(brand): 字体授权文本与清单入库,43MB 字源仍留本地
...
OFL 要求分发时附带许可与版权声明;这两份文件也是「用了哪几套字、各自的子集口径」
的唯一记录。原先把整个 fonts/ 目录屏蔽,连它们一起挡在了仓库外。
.gitignore 由目录级 `fonts/` 改为 `fonts/*` + 三条反选:
FONT-MANIFEST.md / LICENSES.md / OFL-*.txt 入库,8 个 ttf/woff2 继续留本地
(站内实际引用的字体在 public/fonts,已入库)。
2026-10-21 16:36:28 +08:00
zhangxiang
97a3c1bda9
chore(repo): 交付物本地件登记进 .gitignore,清掉 139 个临时件
...
工作树长期挂着 271 个未跟踪文件,其中 64MB 是 logo 目录里 `_*` 前缀的中间图与
试算脚本、45MB 是字体源,把 `git status` 变成噪音源。本轮:
- 删:根目录 3 个线上探针 `.tmp-*.mjs`、logo 目录 130 个 `_*` 中间件(64MB)、
stray-landing-backup 内的未跟踪副本。
- 忽略不删:同名 `.py` 逐刀重生成的评审 HTML(85 个)、fonts/ 字体源、
landing/apply.sh 自建的还原点、assets-delivery 与 landing 的 png/ico 交付副本、
company-deck/(PPTX 走网盘)、历史 PR 描述稿 `.pr-seal-*.md`。
还原点按扩展名精确忽略而非目录级屏蔽:backup-*/ 里已入库的 svg 半份不能被
标成 ignored,否则「已跟踪却被屏蔽」会让后续 `git add` 静默失效。
2026-10-20 22:07:23 +08:00
zhangxiang
a0328a623f
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 产物装配与部署形态。
2026-09-28 10:48:09 +08:00
zhangxiang
d959fa9a81
refactor(theme): 营销页 bg-white token 化(暗黑模式 Phase 2 · marketing 批次)
...
问题:Tailwind 原生 bg-white 是硬编码值,深色主题下不翻转,
导致整页/整 section 恒为纯白,与转深色的页头页脚割裂。
(globals.css:--color-bg-primary-rgb 浅色 255 255 255 → 深色 10 14 20)
改动:10 文件 67 处 bg-white → 项目 token,按语义二分类
- bg-bg-primary (33 处):页面/大块骨架(min-h-screen 容器、<section>、<main>)
- bg-bg-elevated (34 处):浮起层(带 border 的卡片、表单输入、图标盒、grid 单元格)
--color-bg-elevated 浅色 #FFFFFF → 深色 #151B23,同样翻转。
浅色主题下 bg-white / bg-bg-primary / bg-bg-elevated 三者同值(纯白),
故本次改动在浅色主题下零像素差异,只修复深色主题。
新增审计工具:
- scripts/audit/hardcoded-color-audit.mjs:硬编码颜色分级盘点
(含 alpha 误报修正:bg-white/NN 半透明叠加两主题均成立,判 INFO 非 P0)
- scripts/audit/darkmode-bg-verify.mjs:直接验证背景随主题翻转
(浅色应纯白、深色应 rgb(10,14,20) 且无残留纯白块)
审计结果:marketing P0 67 → 0;全站 P0 97 → 30
(剩余 components 16 / other 8 / layout 3 / ui-kit 3 为第二批;admin 本就为 0)
门禁:
- tsc 0 error
- eslint 0 error(50 warnings 全为既有,改动文件未新增)
- jest 129/130 套件通过,1548 通过 / 2 跳过 / **0 断言失败**
唯一失败 src/lib/admin-api.test.ts 为**沙箱环境限制非代码问题**:
CODEBUDDY_BROKER_DENY 拦截 readFileSync,单独复验同样失败,
与本次改动零交集(改动仅限 src/app/(marketing)/ 下 10 个页面组件)
- 暗黑模式背景验证 18/18 PASS(9 路由 × 浅深双版)
2026-09-20 11:50:58 +08:00
zhangxiang
33564b7e9c
chore: gitignore 审计产物目录
...
dogfood-motion-audit/ 与 dogfood-b2-verify/ 是审计脚本生成的截图/JSON 产物,
与既有 dogfood-output*/dogfood-ui-audit/ 规则一致,不应纳入版本控制。
2026-09-20 11:50:58 +08:00
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
zhangxiang
45d0c51366
chore(gitignore): 忽略本地数据库与工作记忆目录
2026-08-31 12:03:03 +08:00
zhangxiang
5a4d3106ca
chore(test): harden e2e/lighthouse tooling and ignore tool cache
...
- Playwright:firefox/webkit 使用空 storageState,消除 newContext 阶段浏览器
兼容噪声;路径以配置目录为基准兼容多种调用方式
- Lighthouse:lighthouserc 补 chromeFlags(--disable-crash-reporter --no-sandbox
--headless=new),规避 TRAE 沙箱对 Crashpad 目录的拦截
- .gitignore:忽略 .impeccable 评审工具缓存
2026-08-19 14:43:53 +08:00
zhangxiang
700ce12602
chore: ignore deploy backups and session artifacts
...
- 忽略 dist_backup/(部署备份目录)
- 忽略 sessions/(会话日志)
2026-08-17 18:43:43 +08:00
zhangxiang
c480772aec
feat(admin): enhance admin dashboard, user management, and content editor UX
...
- Dashboard: add stats API with content status distribution, recent notifications,
and recent content updates; display active users, pending reviews, unread counts
- User management: full CRUD with role assignment, search, pagination, delete dialog
- Notification center: list with unread filter, mark as read, mark all as read,
pagination, and auto-refresh unread count
- Content editor: form validation (required fields, slug format, blur-triggered
errors), auto-save with 3s debounce and status indicator, publish confirmation
dialog, unsaved changes warning on leave
- Admin layout: add navigation links for user management, roles, and notifications
- admin-api: make request() method public for custom API calls
- gitignore: add reports/mutation/ to exclude mutation test output
2026-07-31 23:05:24 +08:00
zhangxiang
dd088a5ee1
chore(test): add test infrastructure, CI config, and security scanning
...
- Add Jenkinsfile with E2E/visual regression/security scan stages
- Add Stryker mutation testing configuration
- Add security header scanning script (check-security-headers.ts)
- Remove old playwright.config.ts (migrated to e2e/playwright.config.ts)
- Remove obsolete .claude/skills/impeccable
- Update jest config for test path patterns
- Update package.json with comprehensive test scripts
- Update .gitignore for stryker-tmp/ and .pi/ temp files
2026-07-31 20:24:01 +08:00
zhangxiang
2653a3730c
fix(regression): resolve dogfood findings across marketing, auth, e2e and docs
...
- Fix list-to-detail navigation on product/service/solution/case pages
- Fix soft 404 on service detail by removing (marketing)/loading.tsx and using force-dynamic
- Fix contact form submission feedback and news placeholder image handling
- Unify SSR/client authentication state in auth.ts
- Add "新闻动态" to main navigation
- Fix Playwright storageState path and Firefox footer link flakiness
- Add E2E coverage for nav dropdown, cases filter and auth token parsing
- Update visual regression baselines (desktop/tablet/mobile, chromium/webkit/firefox)
- Update README, lessons-learned and add REGRESSION_REPORT_2026-07-27.md
- Ignore .lighthouseci/ and heading-hierarchy-report.json
2026-07-27 07:39:11 +08:00
张翔
cdeb34d60c
test(visual): commit baseline snapshots for regression testing
...
- Remove e2e/visual-snapshots/ from .gitignore so baselines are tracked
- Generate baseline screenshots across desktop/tablet/mobile and chromium/firefox/webkit
- Total: 95 snapshots (~114MB) covering 12 pages and component states
NOTE: Consider migrating to Git LFS if snapshot history grows too large.
2026-07-08 15:53:05 +08:00
张翔
1959f6455f
chore(gitignore): 修复 src/lib 忽略规则,添加生成产物忽略规则
...
- 修复 src/lib 目录被错误忽略的问题 (lib/ 在 !src/lib/ 之后匹配)
- 添加 .nova-loop/ .qoder/ .superpowers/brainstorm/ 忽略
- 添加 dogfood-bain/ 测试输出目录忽略
- 添加 e2e/visual-snapshots/ 等测试产物目录忽略
2026-07-07 06:55:10 +08:00
张翔
c9de806109
chore(config): 更新项目构建与测试配置
...
- 升级 Next.js 配置,移除 webpackBuildWorker 实验特性
- 更新 Tailwind 设计令牌系统,对齐新品牌色与字体
- 配置 TypeScript strict 模式 (noUncheckedIndexedAccess)
- 更新 ESLint 规则与 Jest 测试配置
- 添加 prisma.config.ts 数据库配置
2026-07-07 06:51:48 +08:00
张翔
8840c4398a
feat: downgrade tech stack to stable versions and integrate GA4 error monitoring
...
- Downgrade Next.js 16→14.2, React 19→18.3, Tailwind 4→3.4
- Add comprehensive GA4 error monitoring system
- Create Jenkins CI/CD pipeline with quality gates
- Fix build issues: ESLint, SWC conflict, config format
- Add documentation for deployment and error tracking
2026-05-12 12:45:18 +08:00
张翔
57e242c5c6
chore: 更新.gitignore中的dogfood-output模式
2026-05-02 08:12:49 +08:00
张翔
de94e931af
feat(deploy): 添加 Docker 部署配置与 SSR 优化
...
- 添加 Dockerfile.static、docker-compose.server.yml 和 nginx-internal.conf
- 优化 Hero 统计数据为 SSR 渲染,提升首屏性能
- 更新案例数据为政府单位数字化解决方案
- 统计数据改为动态计算,基于案例数据和当前年份
- 修复计数器动画初始状态问题
2026-04-21 15:51:03 +08:00
张翔
6403489954
refactor: 完成静态网站转换,移除所有 CMS 和动态功能
...
- 删除数据库相关代码 (src/db/)
- 删除 API 路由 (src/app/api/)
- 删除认证相关代码 (src/lib/auth/, src/providers/)
- 删除监控和安全中间件 (src/lib/security/, src/lib/monitoring/)
- 删除 hooks (use-news, use-products, use-services)
- 更新组件为静态数据源
- 添加 nginx 静态配置和部署脚本
- 添加 static-link 组件
2026-04-21 07:53:56 +08:00
张翔
ebaa7f3c50
fix: 修复Woodpecker CI配置文件中的linter错误
...
ci/woodpecker/manual/woodpecker Pipeline was successful
- 移除未使用的YAML锚点定义
- 替换commands字段中的锚点引用为实际值
- 移除有问题的通知步骤
- 修复测试文件中的问题
- 添加新的测试用例和配置文件
2026-03-28 09:42:45 +08:00
张翔
1c8241da4e
style(layout): 优化移动端标签栏的样式类名
...
refactor(.gitignore): 重构并清理.gitignore文件
将文件内容按功能分类并添加注释,删除冗余条目,提高可读性和维护性
2026-03-27 16:17:49 +08:00
张翔
c784c205f4
chore: 移除敏感配置文件并优化.gitignore
...
- 从git追踪中移除.env.production(包含真实API密钥和密码)
- 在.gitignore中明确添加.env.production规则
- 清理.gitignore中的重复规则(.bak, .backup, .tmp, .temp, .trae/)
- 提升安全性,防止敏感配置泄露
2026-03-27 15:54:17 +08:00
张翔
7145add64d
chore: 更新.gitignore并删除敏感文件和备份文件
...
添加.auth目录和备份文件到.gitignore
删除已存在的敏感认证文件和CSS备份文件
2026-03-27 15:39:49 +08:00
张翔
6c4c6c0c1f
refactor: 全面改进部署脚本,增强健壮性和可维护性
...
高优先级改进:
- 使用更精确的容器状态检查方法(docker inspect)
- 添加容器日志命令的错误处理
- 将nginx容器名称改为变量(NGINX_CONTAINER_NAME)
中优先级改进:
- 添加部署前文件检查(检查必要文件和工具)
- 添加部署后验证(HTTP/HTTPS服务响应检查)
- 添加日志记录功能(自动创建日志文件)
- 改进健康检查机制(检查容器状态和服务响应)
低优先级改进:
- 添加参数化配置(支持命令行参数)
- 添加帮助信息(-h选项)
其他改进:
- 更新.gitignore,忽略部署日志文件
- 支持自定义服务器IP、用户名、项目名、容器名、版本号
- 提供详细的帮助信息和使用说明
2026-03-26 20:15:21 +08:00
张翔
498bb3a3c8
refactor: reorganize project structure and improve code quality
...
- Move CI/CD configs to config/ci/ directory
- Reorganize scripts into categorized directories (deployment, monitoring, testing, utils)
- Consolidate documentation into docs/ directory with proper structure
- Update linting and testing configurations
- Remove obsolete test reports and performance summaries
- Add new documentation for code quality tools and contact form security
- Improve project organization and maintainability
- Fix lint-staged config to only lint JS/TS files
- Disable react/react-in-jsx-scope rule for Next.js compatibility
- Ignore scripts and test config directories in ESLint
2026-03-24 13:38:58 +08:00
张翔
9d2b77602d
test(contact-section): 为测试文件添加类型定义并改进mock实现
...
为contact-section测试文件添加了类型定义接口,包括MotionComponentProps、InputComponentProps和ToastComponentProps
替换了原有的any类型,使用更严格的类型定义来改进mock实现
2026-03-24 12:36:23 +08:00
张翔
62e251c6f3
feat: 配置 NextAuth.js 认证系统
...
- 支持邮箱密码登录
- 支持 Magic Link 登录(Resend)
- 配置 Session Provider
- 添加 TypeScript 类型定义
2026-03-08 21:11:58 +08:00
张翔
b2cc015cef
chore: 配置环境变量和 .gitignore
...
- 添加数据库、认证、邮件配置
- 配置本地文件上传目录
- 忽略数据库文件和上传目录
2026-03-08 20:48:21 +08:00
张翔
461b4a20ad
chore: update .gitignore for comprehensive E2E test artifacts
...
- Add comprehensive ignore rules for E2E test results
- Ignore all test media files (screenshots, videos, traces)
- Add ignore rules for allure-results and playwright-report
- Remove .gitkeep exceptions for test-results directories
- Add ignore rules for test execution artifacts
- Ensure visual regression snapshots are tracked (not ignored)
- Remove temporary test files (hero-check.png, test-screenshot.png)
Test results directories:
- e2e/test-results/ (1.3G)
- e2e/playwright-report/ (1.3G)
- e2e/allure-results/ (12G)
Visual regression snapshots in e2e/src/tests/visual/*-snapshots/
will be committed to version control for baseline comparison.
2026-03-07 12:56:18 +08:00
张翔
4c8714c12d
feat: complete system test fixes - 100% pass rate (85/85)
...
- Fixed all form tests (20/20 passing)
- Fixed all performance tests (35/35 passing)
- Fixed all SEO and accessibility tests (30/30 passing)
- Enhanced test framework with custom reporting
- Added performance baseline tracking
- Improved test reliability and error handling
2026-03-06 19:37:02 +08:00
张翔
db9f61ea19
chore: add test results directory structure
2026-03-06 10:12:10 +08:00
张翔
136fe7ac04
fix: update gitignore and footer component
2026-03-05 16:43:44 +08:00
张翔
9451814ca4
feat: 添加面包屑导航组件并优化页面布局
...
refactor: 重构页面结构和导航逻辑
fix: 修复移动端菜单导航和滚动行为
perf: 优化图片加载性能和资源请求
test: 添加端到端测试和性能测试用例
docs: 更新.gitignore文件
chore: 更新依赖和配置
style: 优化代码格式和类型安全
ci: 调整Playwright测试超时时间
build: 更新Next.js配置和构建选项
2026-02-28 09:09:04 +08:00
张翔
5d5b7feb0a
feat(e2e): 添加完整的E2E测试框架和测试用例
...
添加Playwright测试框架配置和基础页面对象
实现冒烟测试用例覆盖首页和联系页面核心功能
更新导航组件以支持滚动高亮功能
添加BackButton组件统一返回按钮行为
配置Woodpecker CI集成和测试报告生成
2026-02-27 10:30:33 +08:00
张翔
2b74a83e72
feat: 添加核心工具函数、颜色配置和常量数据
...
style: 优化.gitignore文件结构
test: 添加导航测试用例
docs: 删除旧版网站重设计文档
chore: 更新浏览器配置和设置管理
2026-02-21 18:52:48 +08:00
张翔
150024b6ac
build: 更新Next.js配置以支持静态导出并添加新依赖
...
更新next.config.ts文件以支持静态导出功能,并添加了多个新的依赖项到package.json中,包括UI组件库和动画库。同时生成了构建相关的文件和配置。
2026-02-02 17:59:29 +08:00
张翔
f9df7b4d8f
Initial commit from Create Next App
2026-02-02 09:26:01 +08:00