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

   ### Summary
   
   `useDataModeStore` seeds the mock-data mode from `VITE_USE_MOCK` (or 
persisted state) and exposes `toggle`. The suite covered the initial-value and 
persisted-override cases but never the toggle itself.
   
   ### Changes
   
   - `toggle` flips the mode in both directions
   - Toggling persists the new mode under `rocketmq-studio-data-mode` for the 
next session
   
   ### Testing
   
   `vitest run src/stores/dataModeStore.test.ts` passes: 6 tests, 0 failures 
(up from 4). `tsc --noEmit` and `eslint` are clean.


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