yyqdbngt opened a new pull request, #2165: URL: https://github.com/apache/rocketmq-dashboard/pull/2165
## Summary - centralize guarded local-storage reads, writes, and removals - keep authentication, preferences, query history, and Proxy state usable when storage is blocked - prevent storage `SecurityError` exceptions from rejecting API requests or breaking Proxy rendering - add regression coverage for the request interceptor, Proxy initialization, and the shared helper ## Verification - `npx vitest run src/utils/browserStorage.test.ts src/api/client.test.ts src/pages/studio/__tests__/Proxy.test.tsx --reporter=dot` (23 passed) - `npx vitest run src/pages/studio/__tests__/Proxy.test.tsx src/pages/instance/__tests__/MessagePage.test.tsx src/pages/instance/__tests__/MessagePageAsyncState.test.tsx --reporter=dot` (32 passed) - `npm run lint` (passes with two pre-existing hook warnings outside this change) - `npm run build` ## Full-suite note A parallel `npm test` run on Windows completed with 500 passing tests and 59 failures across unrelated UI suites, mostly 20-second interaction timeouts. The modified and directly related suites were rerun in isolation as listed above and all 55 tests passed. Closes #2164 -- 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]
