张翔
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
张翔
31e8682007
feat: add test tier configuration and tiered playwright config
2026-03-13 11:24:40 +08:00
张翔
29fef2a316
fix: add missing Babel presets (@babel/preset-react, @babel/preset-typescript)
2026-03-12 22:23:35 +08:00
张翔
4f3ebfc11f
fix: add missing Babel dependencies (@babel/preset-env, @babel/core, @babel/plugin-transform-runtime)
2026-03-12 22:20:03 +08:00
张翔
ec3a81f65d
docs: add E2E test coverage report
2026-03-12 22:16:29 +08:00
张翔
95d3758b51
feat: add DISABLE_WEB_SERVER env var to skip web server
2026-03-12 22:15:17 +08:00
张翔
b7cf440b71
feat: add permissions control E2E tests
2026-03-12 22:11:59 +08:00
张翔
b7a03fa590
feat: add rich text editor E2E tests
2026-03-12 22:10:14 +08:00
张翔
8266926d78
feat: add service management E2E tests
2026-03-12 22:07:32 +08:00
张翔
1cd7d30dc2
feat: add news management E2E tests
2026-03-12 22:06:01 +08:00
张翔
f846b38807
feat: add case management E2E tests
2026-03-12 22:04:32 +08:00
张翔
05b67a5766
feat: add product management E2E tests
2026-03-12 22:03:16 +08:00
张翔
9db07d58c3
fix: resolve test skip issues in admin regression tests
2026-03-12 21:59:39 +08:00
张翔
d378be9ec1
fix: improve admin login test stability and fix admin email
2026-03-12 21:56:49 +08:00
张翔
27f6278f00
feat: add test data management for admin E2E tests
2026-03-12 21:51:41 +08:00
张翔
f357330ba8
feat: 重构用户角色系统为管理员标识
...
- 将用户角色字段从role改为is_admin布尔值
- 更新相关API权限检查逻辑
- 修改数据库schema和迁移文件
- 调整前端用户显示逻辑
- 添加API响应工具函数
- 优化权限检查中间件
- 重构英雄组件为原子组件
2026-03-12 20:45:43 +08:00
张翔
b207bfa7af
feat: 增加测试覆盖率并优化代码质量
...
test: 添加单元测试和端到端测试
refactor: 重构登录页面和上传模块
ci: 更新测试覆盖率阈值至42%
build: 添加测试相关依赖
docs: 更新测试文档
style: 修复代码格式问题
2026-03-11 11:14:37 +08:00
张翔
8fd7ed84ed
docs: record Phase 1 deployment log
2026-03-10 18:08:54 +08:00