plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: able to remove all the states from a group

Open aaryan610 opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

According to the current workflow, I see that a project cannot have an empty state group. If I try to delete the last state of any group, it doesn't allow me to do so.

image

However, there's a loophole I found, the user cannot delete the only state of a group, but they can change the group of that state by using the dropdown menu, like this-

image

Steps to reproduce

  1. Go to project settings.
  2. Go to the States menu.
  3. Try changing the group of any state that is the only one in its group.

Browser

Google Chrome

Version

Cloud

aaryan610 avatar Jun 19 '23 17:06 aaryan610

Hey @aaryan610, I indeed was able to reproduce this!

Just so I could confirm it once, could you please clarify what would be the intended ideal workflow?

A possible flow could be on the lines of not allowing the flow to change the "only" state of the group by essentially disabling the dropdown (i.e. by showing the current group's name and showing a message on hover indicating the same) if only a single state is present in the group?

Palanikannan1437 avatar Jun 20 '23 07:06 Palanikannan1437

Hi @Palanikannan1437, that'd be the desired workflow.

aaryan610 avatar Jun 20 '23 07:06 aaryan610