[PM-40747] feat: Add vault folder delete and duplicate name validation - #7194
Conversation
|
Thank you for your contribution! We've added this to our internal tracking system for review. Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process. |
ca8b19e to
f2ebf89
Compare
Make folders manageable from My vault and prevent creating folders with the same name.
f2ebf89 to
022d573
Compare
|
Small cleanup note for reviewers: the example duplicate folder name in the description was just a local test string — happy to adjust copy or follow any Product/Engineering guidance on UX (e.g. overflow placement, delete confirmation wording). Happy to iterate quickly on any review feedback. |
|
I'm not from the Bitwarden team, but here are some thoughts (should be discussed with the team before implementing): Duplicate folder name validation
or alternatively a dropdown menu for selecting a parent folder combined with the folder type made available in the add item dialog on the VaultItemListingScreen with the currently opened folder preselected. e.g. Tuta
|


🎟️ Tracking
Local enhancement: folders on My vault had no delete action, and creating folders with the same name was allowed (e.g. two folders both named “Himalya”).
📔 Objective
Improve folder management from My vault and prevent duplicate folder names.
1. Delete / edit folder from My vault
vaultRepository.deleteFolderand edit-folder navigation (no new delete API).2. Duplicate folder name validation
Parent/Child).FolderAddEditViewModel)VaultAddEditViewModel)foldersStateFlowso validation uses a loaded folder list (fixes a race where.valuewas often empty and duplicates were allowed).a_folder_with_this_name_already_exists→ “A folder with this name already exists.”3. Supporting UI / navigation
BitwardenGroupItemsupports an optional overflow selection list (used by vault folder rows).NavigateToEditFolderthrough vault → nav bar → unlocked graph.Tests
FolderAddEditViewModelTest: duplicate name blocked; edit with unchanged name still saves.VaultViewModelTest: folder edit navigation, delete confirmation, successful delete snackbar.onNavigateToEditFolderScreencallback.📸 Screenshots
Verified on device:
Test plan