张翔
ece3c86e29
feat: 添加Docker部署配置和文档
...
- 创建docker-compose.yml多容器编排配置
- 创建Dockerfile多阶段构建配置
- 创建nginx.conf反向代理和SSL配置
- 创建.env.example环境变量示例文件
- 创建setup-ssl.sh SSL证书配置脚本
- 创建deploy.sh自动化部署脚本
- 创建DEPLOYMENT.md详细部署文档
- 配置容器名称为novalon-website,版本1.0.0
- 配置端口映射80和443
- 配置Let's Encrypt免费SSL证书
- 配置域名novalon.cn,服务器IP 139.155.109.62
- 配置ICP备案号:蜀ICP备2026013658号
2026-03-26 19:27:18 +08:00
张翔
b26cf5b451
test: 完善测试套件并启用所有被跳过的测试用例
...
- 启用联系表单回归测试中被跳过的3个测试用例
- 启用管理后台所有被跳过的测试用例(产品、服务、案例、新闻管理)
- 创建测试数据种子脚本seed-test-data.ts
- 添加编辑者和查看者测试账户
- 添加npm run db:seed:test脚本
- 完善详情页测试覆盖(产品、案例、新闻详情页)
- 优化富文本编辑器高级功能测试
- 扩展视觉回归测试覆盖范围
- 添加配置管理边界条件测试
- 冒烟测试全部通过:1148个测试用例,100%通过率
- 测试覆盖率从85%提升至接近100%
- 修复代码检查错误
2026-03-26 19:18:28 +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
张翔
c06ac08510
docs: add quality gates documentation
2026-03-24 13:32:01 +08:00
张翔
707f125c14
chore: configure jest coverage
2026-03-24 13:30:52 +08:00
张翔
99f9267bca
chore: configure lint-staged and commitlint
2026-03-24 13:30:03 +08:00
张翔
34167c11d5
chore: install husky, lint-staged and commitlint
2026-03-24 13:28:21 +08:00
张翔
9d2b77602d
test(contact-section): 为测试文件添加类型定义并改进mock实现
...
为contact-section测试文件添加了类型定义接口,包括MotionComponentProps、InputComponentProps和ToastComponentProps
替换了原有的any类型,使用更严格的类型定义来改进mock实现
2026-03-24 12:36:23 +08:00
张翔
11e3147015
docs: add deployment documentation for security features
2026-03-24 11:44:53 +08:00
张翔
06c63b4b3b
test: add final testing and verification report
2026-03-24 11:43:05 +08:00
张翔
89726da2c7
test: add E2E tests for contact form security
2026-03-24 11:41:20 +08:00
张翔
d6862b0754
docs: add security configuration documentation
2026-03-24 11:29:05 +08:00
张翔
2ec4e65836
feat: create security monitoring dashboard
2026-03-24 11:27:23 +08:00
张翔
dea94b9955
feat: update contact form client with captcha support
2026-03-24 11:21:43 +08:00
张翔
c96c05d7f9
feat: integrate security middleware into contact API
2026-03-24 11:04:29 +08:00
张翔
60f3f371bb
feat: implement security middleware
2026-03-24 10:53:37 +08:00
张翔
b542f922b2
feat: implement security logging system
2026-03-24 10:45:00 +08:00
张翔
0d020bc3f8
feat: implement input sanitization
2026-03-24 10:43:14 +08:00
张翔
c3dee9e2e7
feat: implement rate limiting system
2026-03-24 10:38:23 +08:00
张翔
cef0b6fb74
feat: implement enhanced captcha system
2026-03-24 10:36:30 +08:00
张翔
7dbaccc4ba
feat: add security configuration module
2026-03-24 10:33:24 +08:00
张翔
f5dec95a83
feat: 添加管理后台页面和功能,优化测试和性能配置
...
refactor: 重构页面导航和滚动逻辑,提升用户体验
test: 更新测试配置和用例,增加覆盖率和稳定性
perf: 优化性能指标和阈值,适应开发环境需求
ci: 添加Lighthouse CI工作流,集成性能测试
docs: 更新API文档和健康检查端点
fix: 修复登录页面和表单提交问题
style: 调整响应式布局和可访问性改进
chore: 更新依赖项和脚本配置
2026-03-24 10:11:30 +08:00
张翔
08978d38c8
test(e2e): 添加视觉回归测试的截图文件
2026-03-24 10:11:15 +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
张翔
72745456d2
test: add integration tests for configuration API and database operations
2026-03-13 15:18:46 +08:00
张翔
490a2172b8
test: add comprehensive E2E tests for configuration linkage
...
- Add config-persistence.spec.ts for configuration persistence tests
- Add config-concurrency.spec.ts for concurrent modification tests
- Add config-edge-cases.spec.ts for edge case tests
- Test scenarios:
- Configuration persistence across server restarts
- Concurrent modifications by multiple admins
- Empty values, negative numbers, large values
- Special characters, invalid sort values
- Rapid toggling and configuration reset
- Non-existent configuration items
- Multiple simultaneous configuration changes
2026-03-13 14:48:59 +08:00
张翔
342c706552
fix: resolve hydration mismatch by moving config fetch to server-side
2026-03-13 14:14:54 +08:00
张翔
259b790309
fix: update E2E test selectors and improve login stability
...
- Fix selectors to use config keys instead of Chinese labels
- Add page load waiting and element visibility checks
- Improve global setup with better error handling
- Update all config-linkage tests with correct selectors
2026-03-13 13:35:10 +08:00
张翔
c5c3685d13
test: add frontend-backend configuration linkage E2E tests
...
- Add config-toggle.spec.ts for module show/hide tests
- Add config-params.spec.ts for configuration parameter tests
- Test Services module toggle and items filtering
- Test Products module toggle, pricing display, and featured products
- Test News module toggle, display count, categories, and sort order
- Verify real-time configuration updates between admin and frontend
2026-03-13 13:13:48 +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
张翔
5bc8356a37
fix: resolve HMR error and TypeScript build issues
...
- Disable all experimental features to fix React 19 and Next.js 16 compatibility
- Fix TypeScript error in check-permission.ts (role property issue)
- Add test script for Contact page validation
- Use production mode to avoid HMR issues completely
2026-03-13 12:25:42 +08:00
张翔
b026d2b2ab
fix: resolve React 19 and Next.js 16 HMR compatibility issue
2026-03-13 12:13:43 +08:00
张翔
4d957eb840
docs: add comprehensive implementation report for tiered testing system
2026-03-13 12:08:44 +08:00
张翔
ca4342d81d
fix: resolve TypeScript compilation error and add verification script
2026-03-13 12:05:00 +08:00
张翔
e56d3f20c1
docs: add comprehensive documentation for tiered testing
2026-03-13 12:03:01 +08:00
张翔
6c6e9f002f
feat: add test performance optimization tool
2026-03-13 11:58:15 +08:00
张翔
b09673b036
feat: add test monitoring and alerting system
2026-03-13 11:56:02 +08:00
张翔
b86ca1f428
feat: add Woodpecker CI configuration for tiered testing
2026-03-13 11:52:32 +08:00
张翔
93b1af3c8d
feat: add enhanced test reporter with tiered analysis
2026-03-13 11:41:14 +08:00
张翔
33a2dd454f
feat: integrate test history recording into test execution
2026-03-13 11:38:00 +08:00
张翔
dd1ea3f9a9
feat: add intelligent test scheduler
2026-03-13 11:31:53 +08:00
张翔
a3e7114349
feat: add test execution history manager
2026-03-13 11:30:07 +08:00
张翔
f272e8499d
feat: add test tags and priority system
2026-03-13 11:27:56 +08:00
张翔
eae6d9ac6b
feat: add tiered test scripts to package.json
2026-03-13 11:25:44 +08:00