yyqdbngt opened a new pull request, #4057: URL: https://github.com/apache/rocketmq-dashboard/pull/4057
## Summary 仪表盘在 Refresh 按钮旁显示「最近更新 HH:mm:ss」:数据加载成功后记录 `Date.now()` 并显示;加载失败不更新时间,保留上一次成功加载的时间。文案走现有 i18n(`dashboard.lastUpdated`,zh/en)。 ## Why 用户无法判断当前面板数据的时效,自动/手动刷新后需要一个明确的数据新鲜度指示。 ## Testing - 本地编译:`cd web && ./node_modules/.bin/tsc -b tsconfig.app.json`(exit 0) - 前端测试:`./node_modules/.bin/vitest run src/pages/home/__tests__/DashboardPage.test.tsx` 全绿;新增用例:初始加载显示时间戳、刷新后时间戳更新(用 `vi.spyOn(Date, 'now')` 控制)、刷新失败保留上一次时间。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
