tju-yxq opened a new pull request, #3970: URL: https://github.com/apache/rocketmq-dashboard/pull/3970
## What changed Other operational inventories such as topics, consumer groups, users, and system alerts can be exported, but the instance inventory could not. Operators preparing an environment review or access audit had to copy rows manually. This change adds CSV export to the instance page: - add an Export button to the instance toolbar; - export the currently selected type/search filter, not just the visible page; - export non-sensitive fields: instance ID, vendor, type, endpoint, region, topic/group counts, count availability, remark, and timestamps; - use the shared CSV writer so cells are quoted and spreadsheet formula injection is prevented; - show a loading state while the export runs and surface backend/export errors; - add regression coverage that the export requests the filtered inventory and downloads a CSV. Closes #3565 ## Validation - `npm test -- InstancePage.test.tsx --run` — 23 tests passed - `npm run lint -- --quiet` — 0 errors; 10 existing warnings remain elsewhere in the tree - `npm run build` — passed - `git diff --check` — passed No backend change was required because the existing list endpoint already returns the complete filtered inventory used for the export. The GitHub Actions status is not being described as green here; the checks above are local validation on this branch. -- 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]
