efegokdemir opened a new pull request, #666: URL: https://github.com/apache/shenyu-dashboard/pull/666
## Summary - Check the HTTP response before turning an export response into a downloaded file. - Surface the API error instead of saving an error payload as a file. - Restore the session and permissions when an export returns HTTP 401. - Add regression coverage for failed, unauthorized, and successful downloads. Fixes #620 ## Testing - `npm run test:unit -- --runTestsByPath src/utils/download.test.js` — passed (3 tests) - `npm run test:unit` — passed (14 suites, 140 tests) - `npm run lint` — passed with existing repository warnings - `npx eslint src/utils/download.js src/utils/download.test.js` — passed - `npx prettier --check src/utils/download.js src/utils/download.test.js` — passed - `git diff --check` — passed AI assistance: Codex assisted with repository analysis, implementation, and test authoring. The submitted changes were reviewed and validated locally. -- 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]
