123123213weqw opened a new pull request, #2576: URL: https://github.com/apache/rocketmq-dashboard/pull/2576
## What is the purpose of the change The backend reports business statuses on trace nodes (``"finish" | "failed"``), while the frontend ``TraceNode`` type and the Ant Design Steps component only understand ``'error' | 'wait' | 'process' | 'finish'``. A failed produce/consume/recall step therefore carried status ``"failed"`` into the Steps items and never rendered as the red error state. ## Brief changelog - map node statuses at the API boundary in ``getMessageTrace``: ``"failed"`` becomes ``"error"``, the four known step statuses pass through, and any unknown status degrades to ``"wait"`` instead of a forced cast ## How was this patch verified - new ``message API`` test asserts the mapping (failed -> error, finish/process pass through, unknown -> wait); ``web/src/api/message.test.ts`` 6/6 and ``web/src/services/messageService.test.ts`` 5/5 green - ``tsc -b`` and ``eslint``/``prettier`` clean on the touched files Fixes #2502 -- 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]
