yyqdbngt opened a new pull request, #4098:
URL: https://github.com/apache/rocketmq-dashboard/pull/4098

   ## Summary
   
   Show the last successful proxy node-list load time ("最近更新 HH:mm:ss", i18n 
key `common.lastUpdated`) in the Proxy page header toolbar, next to the refresh 
button. A successful `loadProxyNodes` cycle (initial load and manual refresh) 
stamps `Date.now()` after the home data is applied; failed loads keep the 
previous successful value. Stale superseded requests do not update the stamp.
   
   ## Why
   
   The proxy topology is loaded asynchronously and refreshed manually, but 
nothing tells the operator when the visible list was last successfully loaded. 
The freshness indicator makes that state explicit without extra requests.
   
   ## Testing
   
   - Local type-check: `cd web && ./node_modules/.bin/tsc -b tsconfig.app.json` 
→ exit 0.
   - Server Node 20: `./node_modules/.bin/vitest run 
src/pages/studio/__tests__/Proxy.test.tsx` → all tests green.
   - New tests (no existing test covered freshness):
     - shows the last successful proxy list load time;
     - updates the load time after a successful refresh;
     - keeps the previous load time when a refresh fails.
   


-- 
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]

Reply via email to