You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "zhaohai666 (via GitHub)" <gi...@apache.org> on 2026/07/29 06:46:35 UTC

[PR] [Studio] Add capability context for architecture-aware UI rendering [rocketmq-dashboard]

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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Studio] Add capability context for architecture-aware UI rendering [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #659: [Studio] Add capability context for architecture-aware UI rendering
URL: https://github.com/apache/rocketmq-dashboard/pull/659


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Studio] Add capability context for architecture-aware UI rendering [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #659:
URL: https://github.com/apache/rocketmq-dashboard/pull/659#issuecomment-5140750933

   Closing for now: CapabilityContext queries GET /architecture/capabilities, but the studio backend does not expose such an endpoint (ClusterCapability exists as a model only, with no controller serving it). In real (non-mock) mode the context would always fall back to defaults and the V5 indicator would never render. Please pair this with a backend PR that actually serves the capabilities API, then we are happy to take both. Thanks!


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org