Jitmisra opened a new issue, #272:
URL: https://github.com/apache/kvrocks-controller/issues/272

   # Add Rename Functionality to Sidebar Items
   
   
https://github.com/user-attachments/assets/944a7598-e786-43c0-81ac-33a71ef45774
   
   ## Description
   Currently, the sidebar items (namespaces and clusters) only have a delete 
option when clicking on the three dots menu. We need to add a rename capability 
to allow users to change the names of namespaces and clusters directly from the 
sidebar.
   
   ## Requirements
   - Add a rename/edit option to the sidebar item context menu for namespaces 
and clusters
   - Create a dialog to input the new name
   - Implement API calls to handle the renaming on the backend
   - Add proper error handling and user feedback
   
   ## Implementation Details
   
   ### UI Changes
   - Add an edit icon to the context menu next to the delete icon
   - Create a rename dialog with a text field for the new name
   - Show success/error messages after rename attempts
   
   ### API Endpoints
   Need to implement these endpoints on the backend:
   - `/api/namespaces/{oldName}/rename` - For renaming namespaces
   - `/api/namespaces/{namespace}/clusters/{oldName}/rename` - For renaming 
clusters
   
   ### Files to Modify
   1. 
`/Users/jitmisra/Desktop/kvrocks-controller/webui/src/app/ui/sidebarItem.tsx`
   2. `/Users/jitmisra/Desktop/kvrocks-controller/webui/src/app/lib/api.ts`
   
   ## Acceptance Criteria
   - Users can rename namespaces and clusters from the sidebar
   - UI provides clear feedback on success or failure
   - After successful rename, the user is redirected to the renamed resource
   


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