This PR addresses Issue #68 which requests a fix for the ability to rename an existing group. This was broken after a refactoring of the PopUpModal and was missed because I admittedly am missing testing which is becoming more critical to future changes without regression.
Changes
Created an EditGroupName component to hold the form and logic to ensure the new group name is not empty or a duplicate of another groups' name.
Created renameGroup function for the useGroupStore.
Tweaked styling of headers. There was interaction between the GroupDetails and EditGroupName components which were each displaying an h2.
Summary
This PR addresses Issue #68 which requests a fix for the ability to rename an existing group. This was broken after a refactoring of the
PopUpModal
and was missed because I admittedly am missing testing which is becoming more critical to future changes without regression.Changes
EditGroupName
component to hold the form and logic to ensure the new group name is not empty or a duplicate of another groups' name.renameGroup
function for theuseGroupStore
.GroupDetails
andEditGroupName
components which were each displaying anh2
.