vanshaj2023 opened a new issue, #3327:
URL: https://github.com/apache/apisix-dashboard/issues/3327

   ### Issue description
   
   ## Description
   
   The Plugin Editor Drawer uses `isLoading={!schema}` to show a loading 
skeleton 
   while fetching the plugin schema. However, `schema` is `undefined` both 
while 
   loading AND when the fetch fails. This means if the schema API call fails 
for 
   any reason (network error, invalid plugin name, etc.), the editor is stuck 
in 
   an infinite loading skeleton with no error message and no way to retry.
   
   ## Location
   
   `src/components/form-slice/FormItemPlugins/PluginEditorDrawer.tsx`, line 81
   
   ## Current Behavior
   
   ```tsx
   <FormItemEditor
     isLoading={!schema}  // undefined = loading AND undefined = error, no 
distinction
     customSchema={schema}
     ...
   />
   
   
   ### Expected behavior
   
   Expected Behavior
   
   While fetching → show loading skeleton
   On fetch failure → show an error message with a retry option
   On success → show the editor normally
   
   ### How to Reproduce
   
   Steps to Reproduce
   
   1. Open the dashboard and navigate to Routes
   2. Open a route with a plugin configured
   3. Simulate a network failure or disconnect from APISIX
   4. Click the edit button on any plugin
   5. The drawer opens and stays in a loading skeleton indefinitely with no 
error shown
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   - apisix version (cmd: `apisix version`):
   - OS (cmd: `uname -a`):
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   - etcd version, if have (cmd: run `etcd --version`):
   - apisix-dashboard version, if have:
   - Browser version, if have:
   
   
   ### Additional context
   
   _No response_


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