2569718930@qq.com
|
6c08a68413
|
@
性能与用户体验全面优化
前端性能:
- 移除 Three.js 依赖(~600KB),天气粒子改为纯 CSS 动画 + Canvas 2D
- Google Fonts 切换为 next/font 自托管,消除跨域字体请求
- 合并 ScanTerminalLightTheme.module.css (37KB) 到主 CSS,亮/暗主题统一用 CSS 变量
- 新增 /api/dashboard/init 聚合端点,首次加载 4 次往返 → 1 次
- 添加 Service Worker 静态资源缓存,修复 PWA manifest 配置
用户体验:
- 新增全局错误边界 error.tsx / global-error.tsx,崩溃不再白屏
- 决策卡和城市详情的更新时间改为相对时间("15秒前"),每秒自动刷新
- 数据陈旧时状态标签从青色切换为琥珀色提示
DEB 算法增强:
- 市场扫描路径接入 Open-Meteo 多模型数据(ECMWF/GFS/ICON/JMA/HRDPS 等)
- MAE 计算加入时间衰减(decay_factor=0.85),近期模型误差权重更高
Scope-risk: MEDIUM — 全量 170 测试通过,前端 TypeScript/build 通过,ruff 零告警
Tested: python -m pytest -q (170 passed), npx tsc --noEmit (0 errors), npm run build (success), ruff check .
@
|
2026-05-14 21:31:05 +08:00 |
|
2569718930@qq.com
|
357e01be3c
|
feat: add monitor panel component with consolidated CSS root styles
|
2026-05-14 01:51:55 +08:00 |
|
2569718930@qq.com
|
341825747f
|
UX 审查 P2 修复:X轴标签密度、极端温度视觉强化
- AiCityTemperatureChart:X轴标签从每4个→每3个显示,maxTicksLimit 6→8
- globals.css:新增 temp-extreme-hot(≥40°C)和 temp-extreme-cold(≤-5°C)样式
- PanelSections:Hero 温度值自动应用极端温度 CSS 类(橙色辉光/蓝色辉光)
- 华氏度自动适配:≥104°F 为极热,≤23°F 为极冷
Tested: npx tsc --noEmit
|
2026-05-10 17:39:22 +08:00 |
|
2569718930@qq.com
|
00e1845f2c
|
全面修复前端 UI 设计审查问题:消除工程债务、统一 token 体系、提升可维护性
- 消除 !important 滥用:134 → 49(仅保留 Leaflet/图表所必需项),浅色主题使用 html.light 选择器获得更高优先级
- 修复 font-weight:13 个文件中所有 760/850/860/880/950 等非标准值已映射为 Inter 支持的 300–800
- 移除未加载的 Geist 字体声明,替换为 Inter
- 添加全局 :focus-visible 轮廓环、跳过链接、Tab ARIA 属性(role/aria-selected)
- 统一断点体系:18 → 10(480/640/768/960/1024/1200/1280/1360/1440/1680)
- 创建 scan-root-styles.ts 桶文件,将 22 个 CSS Module 导入合并为 1 个
- Token 迁移:10 个文件中数百处硬编码颜色(#4DA3FF/#E6EDF3/#9FB2C7/#6B7A90)已替换为 CSS 变量
- 去重 @keyframes:spin 4→1、loading-spin 2→0、pulse-pending 已移至 globals.css
- 添加统一的 empty/error/retry 状态组件
- 添加全局 prefers-reduced-motion 支持
- 修复 accent-primary 与 accent-secondary 相同值的问题
- 修复 accent-green 类错误渲染为蓝色
- 添加 CSS 渐变品牌 Logo
- 移除死代码(1,697 行):public/static/style.css + public/legacy/index.html
- Dashboard.module.css 本地变量已桥接至全局 token
- 提升文字对比度:#6B7A90 → #7D8FA3
Fixed: !important-134-to-49, font-weight-13-files, Geist-removal, focus-visible, breakpoints-18-to-10, CSS-module-barrel, token-migration-10-files, keyframe-dedup, dead-code-removal, accent-color-fix, contrast-improvement
Scope: frontend CSS architecture, design tokens, accessibility, responsive breakpoints
Tested: npx tsc --noEmit
|
2026-05-10 14:21:10 +08:00 |
|
2569718930@qq.com
|
3237f95e8c
|
feat: implement scan terminal dashboard with real-time opportunity tracking and visualization components
|
2026-04-26 00:24:11 +08:00 |
|
2569718930@qq.com
|
79a4333aaf
|
feat: implement PolyWeather dashboard layout with integrated map, weather visualization, and detail panels
|
2026-04-23 22:35:34 +08:00 |
|
2569718930@qq.com
|
da3acbbb6e
|
feat: initialize project dashboard layout and global design system with Tailwind CSS
|
2026-04-15 23:08:56 +08:00 |
|
2569718930@qq.com
|
0417387c0b
|
feat: introduce PolyWeather web API and frontend for interactive weather data display, centralizing data collection and analysis.
|
2026-03-08 12:59:45 +08:00 |
|
2569718930@qq.com
|
d2107cbcbe
|
feat: Implement a new terminal dashboard featuring an analytics panel, sparklines, and foundational UI components and utilities.
|
2026-03-08 04:53:38 +08:00 |
|
2569718930@qq.com
|
af1d8ab4ed
|
feat: Implement initial PolyWeather dashboard with city list, detail view, map, and API endpoints.
|
2026-03-06 09:05:40 +08:00 |
|
2569718930@qq.com
|
dc4167b514
|
chore: install project dependencies and generate build artifacts.
|
2026-03-06 08:41:19 +08:00 |
|