zhangxiang
f07718e6f8
feat(products): 睿视 NovaVis 状态转正——摘内测徽标、入口口径更正为二级域名
...
用户裁定:睿视已发布;novavis.p.novalon.cn 是 novalon.cn 的产品子域(主发布面),
不是外部站点,入口保持二级域名(首次误改站内 /novavis 已回改)。
- navigation.ts:badge '内测中' 移除(badge 状态机按 ADR-0014 与上线事实同步);
href 保持 https://novavis.p.novalon.cn
- seed(standalone-products.ts / seed.ts):status '内测中'→'已发布';overview 去
「即将推出的」;首页 earlyAccessStatus「产品内测中」→「产品已发布」
- dev.db 精准更新两条(standalone-product/novavis + page-copy/home),不用 --force
避免覆盖 CMS 人工编辑
- jest 全量 161/1892;/products 基线 ×5 重写并逐张追认,只读复验 5/5;
首页 SSR 零「内测」残留;standalone 详情页 307→二级域名为既有 redirect 设计
- ⚠ 生产传导:deploy.sh 不写生产 DB——部署时须在服务器对生产库执行同样的两条
记录更新(或确认生产 seed 流程),否则生产仍显示内测
2026-12-02 10:37:47 +08:00
zhangxiang
9d144f623f
fix(defaults): seed 改补缺、.prose 层真生效、写库 E2E 走临时库
...
三件事的共同点:默认值本来就在鼓励做错事。
1) seed 不再无条件覆盖(OPEN-08 / §17.2 根治)
`seedItems()` 原为 upsert 全字段覆盖、案例还无条件 deleteMany ⇒
「跑一次 seed」= 「冲掉 CMS 人工编辑」。改为默认补缺:
已存在同 slug 的行跳过并计入汇总(全跳过时日志明写「未写任何一行」),
只有显式 --force 才覆盖/删除,未知参数直接中止。
- src/lib/seed-write-policy.ts(纯函数)+ 14 例单测
- 临时库三向负对照:人工编辑存活 / --force 还原 / --forced 零写入
2) .prose 排版层从「从未定义」变成真规则(OPEN-09 / §18.6-1)
privacy/terms 写了两年 `prose prose-lg`,而仓里没装
@tailwindcss/typography ⇒ 两个类从未生成过任何 CSS。手写一份(ADR-0010),
整层用 :where() 保持零特异性 —— 库里已存的法律页 HTML 自带 inline utility,
层若按 `.prose p`(0,1,1) 写就会盖掉它们(实测:/terms 呼出块标签被染灰 329px、
日期行高 1.65→1.85 共 1222px)。行高与节奏刻意留在标记上。
- src/app/globals.css + 12 例判据(含「层内不许裸选择器」反方向守卫)
- 列表选择器钉死为 `:where(.prose) ul:where(:not(.list-none))`:
特异性 0 会输给基座 `ul`(0,0,1)(点静默消失、padding 却生效)
- 等价性:新种子库(无 inline 类)vs 已入库基线 = 0 像素差异、同高
- 视觉只读复核:/privacy /terms × 5 project = 10/10 通过,未写基线
3) 写库型 E2E 从「未授权」变成「可随时跑」(OPEN-07 / AUTH-D4 闭合)
11 例改为指向 /tmp 一次性 SQLite(migrate → seed → 路由预热 → next dev),
`npm run test:e2e:write-db` ⇒ 11 passed / 0 failed,prisma/dev.db 的
inode+size+mtime 跑前跑后不变。三个坑记入 lessons §5.66
(cookie domain 字面量、revalidate 密钥要同源、dev 懒编译需预热)。
文档:qa-tracker §19 新建 OPEN-* 登记表(15 行,只增不改名)、lessons §5.65–5.67、
ADR-0010、CONTEXT 决策表 3 行、quality-gates / testing / CLAUDE / README 同步。
门禁:type-check / type-check:e2e / lint(0 error, 88 warning) / jest(162 套件 1904 例)
/ check:grammar(21/21) / selftest / check:accents / check:dead / check:motion
/ check:a11y 全部 EXIT=0。
已知:check:visual 整段红是 pre-existing(check:accents:selftest 在 HEAD 纯净树上
同样 8/10 红),登记 OPEN-15;写库 E2E 有残差抖动,宣称前须连续两次 EXIT=0。
2026-11-25 16:29:42 +08:00
zhangxiang
9083509df2
fix(content): SLA 单一真源的 seed 侧收尾,并核对全库已无冲突承诺
...
上一笔只 `git add src/`,把 prisma 三处漏在了工作树里 —— 不含它们这条收口就是**半件**:
contact-page 的 hero 文案仍会写死旧的「工作日 2 小时内快速响应」,
即代码侧统一到 commitments.ts、数据侧仍各自漂移,正是本轮要根治的那个形态。
- prisma/seed.ts:contact-page 的 heroDescription 与 commitmentItems[0] 改由
INQUIRY_RESPONSE_COMMITMENT / FREE_FIRST_CONSULT 拼出
- prisma/seeds/services.ts:<4小时 整行撤下(与 2h 抢同一对象);同段另两行
原本**完全没有 basis**(该文件顶部带 @ts-nocheck,所以一直没人发现)⇒ 显式补 target
- prisma/seeds/products.ts:「<2小时」不删(它是 CRM 的产品能力设计目标、已标 target),
但改写 description 把对象说清楚,避免被读成本公司客服承诺
验证不止跑 seed —— seed.ts 会被 esbuild 打包后推到生产容器里跑(qa-tracker §10.6 的配方),
import 写坏在本地 jest 里看不出来,要到生产 seed 才炸。故按**同一条命令**先验打包:
npx esbuild prisma/seed.ts --bundle --platform=node --format=esm
--banner:js="import{createRequire}from'node:module';const require=createRequire(...)"
⇒ EXIT=0,708.8 KB
顺带摘掉一个未使用的 import(SERVICE_COMMITMENTS 只出现在 import 行)。
落库后逐条核对(不是"改了就算"):
contact-page.heroDescription = 「工作日 2 小时内回复您的咨询,首次咨询免费,无需预付费用。」
service/software.dataProofs ⇒ 只剩交付理念 + 代码质量两行,且都带 basis
全库扫 7×24 / 48小时 / <4小时 ⇒ 命中 0 行
npm run db:seed ⇒ 🎉 数据库初始化完成,16 模型 / 38 条目 / 6 区域
2026-10-16 21:02:23 +08:00
zhangxiang
4dcc15ebd0
fix(metrics): 数字口径 basis 结构强制,删除详情页虚构佐证
...
复评 P0 收尾:把「每个数字带口径」从个别页自觉升级为结构性强制。
- metrics-basis.ts:METRIC_BASES / METRIC_BASIS_NOTES + resolveMetricBasis
(缺失·非法·大小写错一律回落最弱 target)+ weakestBasis(一组数字取最弱者聚合)
+ FORBIDDEN_PROOF_PHRASES;MetricsBasisNote 收 basis prop
- 类型层 Product.metrics / DataProof / ServiceMetric / Solution.outcomes /
DataMetric / about keyMetrics 全部加 basis?;9 处调用点改为 basis 驱动
- content-types.ts 新增共享 metricBasisField(select)展开进 9 处字段定义;
trustSignals 有意跳过(已有自己的 source)。seed 显式声明 55 条 target
- 删除字面虚构佐证:详情页「每一项指标都源自真实客户案例」、「经过实战验证」×3、
「来自真实客户的使用数据」、「经实际场景验证」;给此前完全裸奔的 3 个共享
数字渲染器(DataProofSection / detail-trust / detail-product-value)补上角注
- metrics-basis.test 3→16 例:basis 解析正控制、weakestBasis 次序、seed 全量
显式声明 + 覆盖证明(防空跑假绿)+ 禁任何条目自称 verified + 禁词全源码扫描
- 文档同源:DESIGN.md 立 The Declared-Basis Rule;PRODUCT.md 常驻禁令;
CONTEXT.md 记决策并警示 admin 字段需重跑 seed 才激活
边界:CMS 字段定义存 ContentModel.fields(DB 内 JSON),basis 下拉须重跑 seed
才会出现在 admin 表单;本次 DB 与 seed 数据值零改动,渲染端对缺 basis 兜底 target。
Gates: type-check 0 · jest 1594/132 · contrast 7/7 · headings 10/10
lint 0e/128w(与 stash 基线逐行比对,零新增告警)
2026-09-20 11:50:58 +08:00
zhangxiang
628a0f1a2b
fix: align startup copy with 2026 founding and deploy hybrid rendering
...
- Replace fabricated 12-year/500+/8+ team experience claims with
2026 founding, first-client co-creation, professional team wording
- Remove fake case studies and unverified certifications from seeds,
cases page, products and ERP upgrade page
- Enable Next.js standalone output and production hybrid deployment
(Dockerfile.prod, docker-compose.server.yml, Nginx nextjs upstream)
- Add linux-musl Prisma engine target and production crypto key build
- Sync production CMS database with cleaned seed content
2026-08-17 20:21:39 +08:00
zhangxiang
f3fc969bef
test(mobile): add mobile E2E test suite (53 tests) and fix layout issues
...
Add comprehensive mobile testing coverage:
- Add chromium-mobile functional test project (iPhone 14, isMobile, hasTouch)
- Add mobile user journey tests (UJ-01/02/04/05/10 mobile variants)
- Add mobile performance baseline tests (FCP/LCP/load time)
- Add mobile accessibility tests (axe-core WCAG 2.1 AA, touch targets,
form labels, alt text, contrast)
- Update README with progress and new npm scripts
Fix pre-existing issues:
- Fix footer component layout and test assertions
- Fix admin content page sidebar navigation and breadcrumb
- Fix standalone products page metadata and layout
- Fix product detail/service value sections
- Fix contact form layout on mobile
- Fix navigation constants and products data
- Fix layout.tsx CMS config and theme handling
- Fix erp-upgrade content layout
2026-08-03 18:32:29 +08:00
zhangxiang
f4d8f0a8e9
fix(breadcrumb): add aria-label to news detail breadcrumb for alignment
...
Also accumulates other pre-existing changes:
- refactor(icons): replace deprecated BarChart3 with TrendingUp
- refactor(services): replace emoji icons with LucideIcon components
- refactor(footer): use logo-white for dark background
- cleanup(archive): remove unused archive components
- cleanup(constants): remove unused types and exports
2026-08-03 14:47:20 +08:00
zhangxiang
602ed6a671
test(hooks): finalize mutation test improvements and release acceptance
...
- Raise use-swipe-gesture mutation score to 66.13% (target 65%+)
- Maintain use-reduced-motion mutation score at 76.32% (target 50%+)
- Fix use-reduced-motion.ts ESLint set-state-in-effect warning
- Add UJ-10 deep searcher journey (category browse → article read → content discovery)
- Add 40 new test files (analytics, detail, sections, ui, lib components)
- Update test-strategy-plan.md to v2.0 (sync test count to 1591)
- Sync README.md with final release metrics
Quality gates: TS 0 errors, ESLint 0 errors, 121 suites / 1591 tests passed
2026-08-02 19:39:27 +08:00
张翔
10404dbb36
chore: sync marketing pages, CMS extensions, tests and project docs
...
同步工作区剩余变更,主要包括:
- 营销页面组件与布局持续优化(about/news/services/solutions/team 等)
- 详情页四层叙事组件、布局组件、UI 组件调整
- CMS 数据模型、API 路由、权限、工作流、站内通知、媒体管理扩展
- 新增/补充单元测试与 E2E 测试(cms-workflow.spec.ts 等)
- ESLint 9 迁移、jest/tsconfig 配置更新、依赖调整
- 新增 ADR、CMS 评估文档、Release Review / Acceptance 报告
- 移除水墨装饰组件与大体积未使用字体文件
2026-07-25 08:04:01 +08:00