messere1 opened a new pull request, #1682: URL: https://github.com/apache/rocketmq-dashboard/pull/1682
## Summary - normalize negative throughput samples to zero before rendering dashboard sparklines - treat NaN and infinite samples as zero so they cannot poison the chart maximum or CSS heights - use normalized samples in the default accessible label - cover invalid samples alongside the existing zero and positive-value behavior ## Root cause and impact The sparkline assigned every nonzero sample a minimum visible height. Counter resets can yield negative throughput deltas, which were therefore shown as positive traffic, while non-finite values produced invalid height calculations. Normalization preserves existing positive trends and prevents misleading bars. Closes #1680 ## Validation - npm test -- --run src/components/__tests__/MiniBar.test.tsx (3 passed) - npx eslint src/components/MiniBar.tsx src/components/__tests__/MiniBar.test.tsx - npm run build - git diff --check -- 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]
