devhausleipzigacademy / camp10-finalProject

2 stars 2 forks source link

Board component - creating and deleting columns buggy #59

Closed Hottinho closed 1 year ago

Hottinho commented 1 year ago

I noticed when you create a new column and later delete one or more, more than just the deleted columns disappear from the Kanban board. Sometimes also a column other than the created one disappear.

In parts this seems to be a visual/rendering problem because after a manual refresh or the browser the deleted column is gone and the others who were not deleted re-appear again. Since I have deleted all standard columns and created a bunch of new ones for my user, I'm not sure of the exact steps for reproduction, but it seems to have to do with the color assigned to the newly created column.

  1. Add a column with the + Button
  2. Give it a name of your liking.
  3. Add another column and name it.

Expected behaviour: New column will be added. Shown behaviour (if new column has same color as other new column): New column will be added but other column disappears.

  1. Reload - columns are now both there.
  2. Delete the column you first added.

Expected behaviour: Column will be deleted. Shown behaviour: All user created columns with same color will disappear, too.

  1. Reload
pswu11 commented 1 year ago

Hi @Hottinho thanks for documenting this! When I worked on this part I also noticed there're still some weird issues but sometimes I also failed to reproduce, hence fixing the obvious issues first. It's a combination of dnd + react query lol. I'll try to reproduce the bug on main and if I can't you could show me tmr. :)

pswu11 commented 1 year ago

One confirmed bug - when deleting a column that has a card inside, it will fail.

Potential solutions are:

Hottinho commented 1 year ago

There seems to be a problem with a position being assigned twice (see "positioninBoard" in prisma studio screenshot)

grafik