Add plugin 金价动态 v1.0.0#284
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new ZTools plugin called 'gold-price-check' (金价动态), built with React 19, TypeScript, and Vite, which displays real-time gold prices and historical trends using recharts. The code review highlights several critical issues, including a mathematical bug in the monthly average price calculation, a lack of defensive checks against empty or malformed API data in several utility functions, potential rendering crashes in the chart component when data is empty, and fragile error handling in the main data loading function. Additionally, it is recommended to clean up unused template components and enable strict TypeScript compilation for better type safety.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
- Initial commit - 优化金价数据获取和处理逻辑,增强错误处理,更新类型检查设置
- Initial commit - 优化金价数据获取和处理逻辑,增强错误处理,更新类型检查设置 - 优化应用加载逻辑,增强 ZTools 环境支持,调整样式以改善布局
- Initial commit - 优化金价数据获取和处理逻辑,增强错误处理,更新类型检查设置 - 优化应用加载逻辑,增强 ZTools 环境支持,调整样式以改善布局 - 新增历年均价对比功能,优化数据获取逻辑,更新数据结构和接口
插件信息
本次变更
截图 / 演示
自检清单
plugins/gold-price-check/目录此 PR 由 ztools-plugin-cli 自动管理:每次
ztools publish在分支上追加一个 commit,PR 链接保持不变。