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

   ### Which Issue(s) This PR Fixes
   
   - Fixes #4492
   
   ### Brief Description
   
   `formatDelay` keeps sub-second precision when the input contains millisecond 
or decimal-second values, so compact delay/lag labels can render fractional 
seconds such as `5.9s`.
   
   Floor the input to whole seconds before splitting into 
day/hour/minute/second parts. Operator-facing delay labels now stay 
whole-second (`1m 5s` / `1分钟5秒`).
   
   ### How Did You Test This Change?
   
   - `cd web && npm test -- --run src/utils/format.test.ts`
     - Test Files: 1 passed
     - Tests: 9 passed (includes new `formats delay durations with whole 
seconds`)
   
   ### Checklist
   
   - [x] One coherent change; unrelated modifications are not bundled in
   - [x] Commit subject follows Conventional Commits (`feat:` / `fix:` / 
`refactor:` / `chore:` / `docs:` / `perf:`)
   - [x] Tests added or updated for non-trivial changes, test methods named 
`...Test`
   - [x] New UI text has both Chinese and English entries under `web/src/i18n/`
   - [x] Architecture constraints stay green (`mvn test` runs the ArchUnit 
checks)
   - [x] New source files carry the ASF license header
   - [x] Documentation touched where behaviour changed (README / `docs/` / 
in-app help)
   
   Notes: formatter-only fix. No UI text, new source files, backend 
architecture, or documentation changes.


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