You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Add Rename Functionality to Sidebar Items✍🏻
After adding rename
2025-03-08.15-13-33.mov
before
2025-03-08.16-31-54.mov
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
Implementation Details
UI Changes
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 clustersFiles to Modify
/Users/jitmisra/Desktop/kvrocks-controller/webui/src/app/ui/sidebarItem.tsx/Users/jitmisra/Desktop/kvrocks-controller/webui/src/app/lib/api.tsAcceptance Criteria