张翔
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
张翔
f08874f5c4
feat(ui): optimize CTA buttons with contextual copy and fix static export build issues
...
CTA Optimization:
- Implement scenario-based CTA text across 6 key locations
- Add responsive Header CTA with icon+compact design
- Enhance CTA Section with vision-driven copy
Bug Fixes:
- Fix useSearchParams() build failure with dynamic import wrapper
- Remove useSearchParams() from PageTransition component
- Fix React 19 useEffect lint errors via useSyncExternalStore
UI Enhancements:
- Add ripple effects and gradient animations to Button
- Enhance loading skeleton with branded pulse animation
2026-05-11 19:03:37 +08:00
张翔
c474394237
fix(ui): 全站视觉审查修复 — 深色模式适配与交互优化
...
- 法律页面(条款/隐私) Hero 渐变背景深色模式适配,新增 --color-hero-dark-end 变量
- Badge secondary 变体深色模式下从白底白字改为主题自适应灰底
- 首页 Hero 快速导航图标 strokeWidth 加粗提升可读性 (1.8→2.2)
- 服务详情挑战卡片添加 border + hover 边框变色增强层次感
- 移动端 Tab Bar 激活指示器升级为顶部+底部双信号
2026-05-10 10:37:05 +08:00
张翔
0d517078ad
fix(dark-mode): 修复视觉审查发现的2处硬编码浅色背景
...
- Hero右侧快速导航卡片: bg-white/80 → bg-[var(--color-bg-primary)]/80
- CTA区块: 新增--color-cta-bg变量(浅色#FAFAFA/深色#141414)
- 视觉验证通过: 8页全量截图确认无遗留问题
2026-05-10 10:13:09 +08:00
张翔
27d486d820
feat(dark-mode): 实现深色模式支持
...
- 定义87个CSS变量的深色值([data-theme=dark]选择器)
- 升级ThemeProvider支持light/dark/system三种模式
- 新增ThemeToggle组件(桌面端Header+移动端菜单)
- 添加防FOUC内联脚本(渲染前应用主题)
- Logo根据主题自动切换(logo.svg/logo-white.svg)
- 更新测试用例覆盖主题切换逻辑
2026-05-10 10:00:14 +08:00
张翔
37296b5717
feat(website): 三轮视觉改造与页面过渡动画
...
改造概要(30项):
- 第一轮:Hero重构/Section差异化/SocialProof强化/CTA对比度/About架构
- 第二轮:字体优化/背景交替/Solutions差异化/Footer五列/MegaDropdown修复
- 第三轮:卡片交互/表单层级/CTA统一/时间线标记/连接线/三列布局/移动导航/Button微交互/SEO Schema
- P3-2:template.tsx+Framer Motion页面过渡/loading.tsx加载状态
- 清理:删除未用组件/hooks,修复重复移动导航,清理冗余CSS
2026-05-10 08:20:27 +08:00
张翔
747405dc96
refactor: 移除hero水墨动画,优化全局样式与组件细节
2026-05-04 00:00:19 +08:00
张翔
d51a99e645
test: 修复因预发布模式文案变更导致的测试失败
...
- header/footer/mobile-menu/mobile-tab-bar: 更新导航项断言与 mock
- insight-card/page-header: 适配组件结构变更(InkGlowCard、Badge)
- about/products/news: 修复重复文本匹配,添加 PageNav/date-fns mock
- constants: 更新服务标题断言
- 修复 mock 组件缺少 displayName 的 ESLint 错误
2026-05-03 13:36:40 +08:00
张翔
f69de14e45
feat: 全站预发布模式——所有产品标注研发中状态,移除定价与交付承诺
...
- 产品页:添加 status 字段与研发中状态徽章,移除定价信息,功能描述改为规划措辞
- 产品详情:CTA 从立即购买改为预约体验,新增定价待公布区域
- 解决方案详情:关联产品卡片补充研发中状态徽章
- 关于页:更新发展历程里程碑、统计数据、核心价值观,确保与研发阶段逻辑自洽
- 首页:更新社会证明、客户评价、解决方案等区块文案
- 新闻页:分类从产品发布调整为研发动态
- 全站品牌名统一为睿新致远,移除重复文案,规范标点与编码
- 修复 FlipCard 组件 useReducer 替代 useEffect+setState
2026-05-03 13:34:27 +08:00
张翔
1bf22a8f95
fix(seo): 修复页面标题公司名重复与品牌名繁简体不一致问题
...
- 新增 COMPANY_INFO.displayName 属性用于页面标题和SEO元数据
- 统一所有页面 metadata 使用 displayName(简体"睿新致远")
- 视觉展示元素保留 shortName(繁体"睿新致遠"配合青柳隷書字体)
- 修复关于/联系/团队页面标题中公司名重复出现的问题
- 修复新闻ID从数字改为SEO友好slug
- 更新结构化数据使用完整公司名
- 修复ESLint报错:引号转义、组件displayName、any类型替换
2026-05-03 09:15:14 +08:00
张翔
a272e58aaa
feat: 统一全站设计风格、导航组件与文案逻辑自洽性修复
...
- 新增 InkGlowCard 墨韵流光卡片组件,统一全站卡片交互风格
- 新增 PageNav 面包屑组件,统一全站页面导航
- 统一色彩体系、排版层级、间距节奏和动画风格
- 修复 CTA 区品牌名称错误(诺瓦隆→睿新致遠)
- 修复 ERP 产品卖点与年费制定价矛盾
- 导航下拉补充 SDS 和 OA 产品
- 统一全站数据指标为 12+年核心团队经验、6自研产品、10+团队成员
- 移除不可靠的 100%客户满意度和 30+行业专家指标
- 修复新闻时间线不合理问题,调整里程碑节奏
- 统一响应承诺为工作日快速响应
- 服务第4项重命名为行业方案实施,厘清概念
- 服务详情页效果数据改为定性描述
- 删除 cases 模块,精简代码库
2026-05-02 08:11:47 +08:00
张翔
307e0a654e
refactor: P2 - redesign Products/Services/Solutions pages
...
- Products: Atlassian-style card grid with ProductCard
- Products detail: clean typography, consistent tokens
- Services: unified card layout, simplified interaction
- Services detail: consistent section styling
- Solutions: data-driven module rendering, clean borders
2026-04-30 22:11:17 +08:00
张翔
f513d9da20
refactor: P1 - remove unused legacy components
...
- Delete old homepage components
- Delete unused UI components
2026-04-30 22:04:07 +08:00
张翔
fe6e4b1c54
refactor: P0 - remove testimonial, migrate footer & mobile menu to NAVIGATION_V2
...
- Remove TestimonialSection from homepage (no customers yet)
- Footer: dark theme, NAVIGATION_V2 + MEGA_DROPDOWN_DATA links
- Mobile Menu: NAVIGATION_V2 with collapsible dropdown support
2026-04-30 22:00:00 +08:00
张翔
a94d54b3d2
feat: assemble V2 homepage with new section components and switch page entry
2026-04-30 19:50:54 +08:00
张翔
fcf9759f8b
feat: add challenge scenario color tokens to design system
2026-04-30 19:01:50 +08:00
张翔
95f246fa36
feat(analytics): 增强 Google Analytics 隐私合规与追踪功能
...
- 修复 allow_google_signals 配置为 false,禁用跨设备追踪
- 升级 Cookie 同意组件,支持三级偏好控制(必要/分析/营销)
- 新增滚动深度追踪组件,追踪 25%/50%/75%/100% 里程碑
- 更新隐私政策,新增 Cookie 和网站分析工具章节
- 新增细化同意管理函数,支持 PIPL 合规
2026-04-22 22:09:38 +08:00
张翔
96dddeb20b
chore: 上线前测试修复与部署配置更新
...
- fix(test): 添加 useSearchParams mock,修正联系链接断言
- style(nav): 将"联系我们"改为"联系"
- chore(deploy): 更新 Nginx 配置和部署文档
- style(logo): 更新 Logo SVG 文件
- feat(scripts): 添加字体处理和站点配置脚本
2026-04-22 20:17:13 +08:00
张翔
84f488a253
fix(types): 修复 16 个 TypeScript 类型检查错误
...
- 修复 animations.test.tsx 中的 Variant 类型访问问题
- 清理 9 个测试文件中的未使用导入
- 使用可选链操作符处理可能为 undefined 的属性访问
- 修复 mock 组件缺少 displayName 的 ESLint 错误
2026-04-22 19:47:52 +08:00
张翔
2b7efb23ec
fix: 修复字体加载警告和Logo图片宽高比问题
...
## 修复内容
### 字体优化
- 创建 AoyagiReisho-subset.ttf 子集字体,仅包含"睿新致远"4个字符
- 文件大小从 4.4MB 减小到 5KB(99.9% 减少)
- 修复 vmtx 表解析错误导致的 48 个控制台警告
### Logo 图片修复
- 修复 Logo SVG 宽高比问题(原始 480x120,4:1 比例)
- Header: width=128 height=32
- Footer: width=192 height=48
- 消除 Next.js Image 组件警告
### 其他优化
- 简化字体加载逻辑
- 更新部署配置
## 测试结果
- 32 个回归测试全部通过
- 0 个控制台警告
- 0 个错误
2026-04-22 16:00:49 +08:00
张翔
4066c82939
fix: 系统性解决青柳隶书体'份'字不显示的问题
...
根本原因:
- 青柳隶书体字体文件中'份'字(U+4EFD)的绘制指令数量为0
- 虽然字符映射表包含该字符,但字形数据为空,导致无法渲染
解决方案:
- 修改CSS字体回退链,添加Ma Shan Zheng作为主要回退字体
- 当青柳隶书体无法渲染'份'字时,浏览器自动使用Ma Shan Zheng字体
- 保持青柳隶书体的整体风格,同时确保所有字符都能正常显示
修改文件:
- src/app/globals.css: 更新.font-calligraphy类的字体回退链
- src/components/sections/home-solutions-section.tsx: 恢复使用font-calligraphy类
验证结果:
- 字体文件分析确认'份'字绘制指令数量为0
- Ma Shan Zheng字体包含完整的'身'和'份'字绘制数据
- 本地测试验证'身份'两个字都能正常显示
2026-04-22 07:49:09 +08:00
张翔
40b698ff01
fix: 修复'身份'书法字体显示问题
...
- 确认AoyagiReisho.ttf字体包含完整的'身份'两个字
- 优化font-calligraphy类的字体加载顺序
- 将var(--font-aoyagi-reisho)放在最前面确保优先使用
- 确保书法字体能够正确加载和显示
2026-04-22 07:29:27 +08:00
张翔
2f45818724
feat(analytics): enhance Google Analytics with privacy compliance and comprehensive tracking
...
- Add automatic route change tracking for SPA navigation
- Implement Cookie consent banner for GDPR compliance
- Add performance tracking (LCP, FID, CLS Web Vitals)
- Add outbound link click tracking
- Integrate contact form submission tracking with conversion events
- Add CTA button click tracking in hero section
- Integrate error tracking in ErrorBoundary component
- Extend analytics utility library with 15+ tracking functions
- Configure IP anonymization and privacy settings
- Remove unused test files and deployment scripts
- Update case studies to include only specified cases
- Fix mobile navigation active state issues
- Fix lint errors in test files and components
BREAKING CHANGE: Google Analytics now requires user consent before tracking
2026-04-22 07:19:29 +08:00
张翔
b117372b03
refactor: 重构首页布局并新增团队页面
...
- 删除 insights-section 和 testimonials-section 组件
- 新增团队页面 (team/) 及相关组件
- 添加"解决方案"导航项
- 新增 home-solutions-section、methodology-section、team-section 组件
- 优化首页内容结构和产品区块
2026-04-21 17:42:51 +08:00
张翔
3ea5cf849e
feat(cases): 新增智慧农业案例并优化政府案例数据
...
- 新增农业种植灌溉信息化建设咨询项目案例
- 更新政府案例:添加关键成果数据、优化客户评价
- 同步更新测试用例和页面组件
2026-04-21 16:57:20 +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
张翔
933a831ab3
feat: 添加 AoyagiReisho 书法字体并优化表单反馈
...
- 使用 next/font/local 加载 AoyagiReisho.ttf 字体
- 为标题红色高亮文字应用书法字体样式
- 优化联系表单提交反馈,添加成功/失败提示
- 修复 section 参数滚动定位的时序问题
2026-04-21 11:18:29 +08:00
张翔
2fc1a586f8
fix(contact): 修复静态导出时 useSearchParams 需要 Suspense 的问题
...
- 将 ContactFormContent 组件用 Suspense 包裹
- 添加加载中 fallback 状态
- 确保静态导出兼容性
2026-04-21 08:38:17 +08:00
张翔
46cff87f27
fix(contact): 切换表单服务到 FormSubmit 并改进错误处理
...
- 将表单提交服务从 Formspree 切换到 FormSubmit(无需 API Key)
- 添加成功状态 URL 参数处理(?success=true)
- 改进错误提示,区分开发环境和生产环境
- 添加 _next 参数支持成功后重定向
- 重构状态初始化避免 useEffect 中同步调用 setState
2026-04-21 08:31:35 +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
张翔
b3eab2437b
refactor: 移除暗色主题切换脚本,纯静态网站不需要主题切换
2026-04-21 07:38:35 +08:00
张翔
a003f1192e
feat(ui/ux): 优化用户体验和可访问性
...
- 字体加载优化: 添加 font-display: block 策略,创建 useFontLoading hook
- 色彩对比度: 调整 text-muted 和 text-tertiary 颜色值确保 WCAG AA 合规
- 滚动进度条: 新增 ScrollProgress 组件,支持 reduced motion
- 表单自动保存: 新增 useFormAutosave hook,防止用户数据丢失
- 返回顶部按钮: 新增 BackToTop 组件,提升长页面导航体验
- 图片懒加载: 优化 OptimizedImage 组件,添加 blur placeholder 和加载动画
所有新组件均包含完整测试,1450+ 测试通过
2026-03-28 11:21:04 +08:00
张翔
ebaa7f3c50
fix: 修复Woodpecker CI配置文件中的linter错误
...
ci/woodpecker/manual/woodpecker Pipeline was successful
- 移除未使用的YAML锚点定义
- 替换commands字段中的锚点引用为实际值
- 移除有问题的通知步骤
- 修复测试文件中的问题
- 添加新的测试用例和配置文件
2026-03-28 09:42:45 +08:00
张翔
7145add64d
chore: 更新.gitignore并删除敏感文件和备份文件
...
添加.auth目录和备份文件到.gitignore
删除已存在的敏感认证文件和CSS备份文件
2026-03-27 15:39:49 +08:00
张翔
df8043c0df
feat: 添加E2E测试并优化Docker部署配置
...
- 新增Playwright E2E测试配置和测试脚本
- 优化Dockerfile和docker-compose.yml配置
- 新增novalon-nginx和novalon-website的docker-compose配置
- 优化contact页面和contact-section组件的代码结构
- 更新多个页面的SEO和元数据配置
- 添加备案图标资源
- 修复ESLint错误:转义引号、添加ESLint禁用注释、移除未使用变量
测试覆盖: 新增website-acceptance.spec.ts E2E测试
2026-03-27 12:39:30 +08:00
张翔
7a38eae6e0
chore: 删除e2e测试相关的初始化文件和快照文件
...
清理不再需要的测试初始化文件和视觉回归测试的快照文件,以保持代码库整洁
2026-03-27 09:56:57 +08:00
张翔
027ee2137e
feat(e2e): 优化测试配置并增强富文本编辑器测试
...
refactor(cases): 更新案例数据结构字段
test(admin): 增加富文本编辑器多种格式测试
fix(contact-form): 修复表单提交测试并移除skip标记
perf(smart-wait): 改进页面就绪等待逻辑
ci(playwright): 调整firefox配置并优化全局setup
2026-03-26 18:06:34 +08:00
张翔
14448af731
feat: 实现动态详情页面和性能优化
...
- 添加案例、新闻、产品详情页面的E2E测试
- 优化详情页面的客户端组件和页面逻辑
- 添加高性能Docker配置和Nginx配置
- 更新API服务和常量配置
- 添加性能优化文档和任务进度更新
- 修复ESLint错误和类型问题
2026-03-26 12:53:58 +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
张翔
2ec4e65836
feat: create security monitoring dashboard
2026-03-24 11:27:23 +08:00
张翔
c96c05d7f9
feat: integrate security middleware into contact API
2026-03-24 11:04:29 +08:00
张翔
f5dec95a83
feat: 添加管理后台页面和功能,优化测试和性能配置
...
refactor: 重构页面导航和滚动逻辑,提升用户体验
test: 更新测试配置和用例,增加覆盖率和稳定性
perf: 优化性能指标和阈值,适应开发环境需求
ci: 添加Lighthouse CI工作流,集成性能测试
docs: 更新API文档和健康检查端点
fix: 修复登录页面和表单提交问题
style: 调整响应式布局和可访问性改进
chore: 更新依赖项和脚本配置
2026-03-24 10:11:30 +08:00
张翔
ac2672729f
feat: 实现内容管理API及相关功能
...
refactor(services-section): 重构服务展示组件使用API数据
refactor(news-section): 重构新闻展示组件使用API数据
refactor(products-section): 重构产品展示组件使用API数据
test: 添加API客户端和服务钩子的单元测试
test(e2e): 添加配置验证和API响应格式的端到端测试
ci: 更新Playwright测试配置
2026-03-13 18:55:25 +08:00
张翔
342c706552
fix: resolve hydration mismatch by moving config fetch to server-side
2026-03-13 14:14:54 +08:00
张翔
4fdfc2d8b4
feat: implement frontend-backend configuration linkage
...
- Create public config API for frontend consumption
- Add configuration fetching to homepage
- Implement module show/hide logic based on config
- Add support for Services items filtering
- Add support for Products featured products and pricing display
- Add support for News display count, categories, and sort order
- Fix table name from 'configs' to 'siteConfig' in API route
- Update type definitions for proper TypeScript support
2026-03-13 13:11:20 +08:00
张翔
f93f802427
i18n: replace 'CMS' with '后台管理' in Chinese interface
...
- Update admin layout title from 'CMS' to '后台管理'
- Update terms page service description from 'CMS' to '后台管理系统'
- Improve Chinese localization consistency
2026-03-13 12:52:18 +08:00
张翔
b42677b118
fix: resolve 'e.reduce is not a function' error in admin settings
...
- Remove server-side grouping logic from API response
- Return flat array instead of grouped object
- Fix data structure mismatch between API and frontend
- Resolve TypeError when accessing admin settings page
2026-03-13 12:49:40 +08:00
张翔
8c82ce5bad
fix: resolve NextAuth UntrustedHost error and add login debugging
...
- Add trustHost: true to NextAuth configuration
- Add console logging for login debugging
- Fix authentication issues preventing login redirect
2026-03-13 12:38:13 +08:00
张翔
46e851bc3a
fix: add error handling for admin login page and document admin credentials
...
- Add URL error parameter handling in login page
- Display appropriate error messages for different error types
- Document default admin credentials
- Provide security guidelines and password management instructions
2026-03-13 12:31:14 +08:00
张翔
f357330ba8
feat: 重构用户角色系统为管理员标识
...
- 将用户角色字段从role改为is_admin布尔值
- 更新相关API权限检查逻辑
- 修改数据库schema和迁移文件
- 调整前端用户显示逻辑
- 添加API响应工具函数
- 优化权限检查中间件
- 重构英雄组件为原子组件
2026-03-12 20:45:43 +08:00