coder999o opened a new pull request, #4154: URL: https://github.com/apache/rocketmq-dashboard/pull/4154
## What is the purpose of the change Add a client-side preflight view on the Studio Ops page so operators can verify NameServer settings before updating runtime configuration. The panel validates saved NameServer address chains, highlights invalid or duplicated endpoints, confirms whether the current and selected NameServer are usable, and previews pending NameServer, TLS, and VIP channel changes. It also blocks obviously invalid or duplicate NameServer additions before sending them to the API while keeping backend validation as the final authority. ## Brief changelog - Added NameServer endpoint/address parsing and Ops preflight analysis helpers. - Added an Ops page preflight panel with summary, issues, pending changes, recommendations, and address diagnostics. - Blocked invalid or duplicate NameServer additions on the client side. - Added unit and page tests for parsing, readiness, pending changes, unavailable/read-only state, and duplicate-add blocking. ## Verifying this change - `npm run test -- src/utils/opsNameServerPreflight.test.ts src/pages/studio/__tests__/Ops.test.tsx` - `git diff --check` - `npm run lint -- src/pages/studio/Ops.tsx src/pages/studio/__tests__/Ops.test.tsx src/utils/opsNameServerPreflight.ts src/utils/opsNameServerPreflight.test.ts` - `npm run build` -- 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]
