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

   ## Summary
   
   Introduce a capability-based UI rendering system that dynamically detects
   cluster architecture features and conditionally shows/hides UI elements.
   
   - Add `CapabilityContext` that queries `GET /architecture/capabilities` on
     mount to retrieve the cluster's feature matrix (namespace, liteTopic,
     popConsume, aclV2, grpcClient support)
   - Support Mock mode (all features enabled for development/testing) and
     production mode (features fetched from backend)
   - Wrap the application with `CapabilityProvider` in main.tsx
   - Add a V5 architecture indicator badge in MainLayout's top bar that
     appears when `grpcClientSupported` is true, linking to settings page
   
   ## Test plan
   
   - [ ] Verify app renders correctly with CapabilityProvider wrapping
   - [ ] In mock mode (VITE_USE_MOCK=true), V5 indicator should appear
   - [ ] When backend returns grpcClientSupported=false, indicator should hide
   - [ ] Clicking the V5 badge should navigate to /settings


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