-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
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
- 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
/Users/jitmisra/Desktop/kvrocks-controller/webui/src/app/ui/sidebarItem.tsx
/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
Metadata
Metadata
Assignees
Labels
No labels