Skip to content

Todo items added without section are not handled properly in Kanban view #118

@WahabAfridi789

Description

@WahabAfridi789

Description:

When a user adds a new todo item in the Kanban board and no section exists, the following unexpected behaviors occur:

  • The todo item is saved in the state, but no section is created, so it doesn't appear visually.
  • If all sections are deleted and a new one is added later, those previously added todos automatically appear under the newly created section.
  • This can result in confusing UI behavior and data misplacement.

Expected Behavior:

  1. The user should not be able to add a todo item without a section.

  2. If a user attempts to add a todo and no section exists:

    • Either show an alert/message asking them to create a section first
    • Or automatically create a default section (e.g., "Uncategorized") and place the todo there
  3. When all sections are removed, the associated todos should also be handled appropriately:

    • Either removed
    • Or stored separately without being auto-assigned later

Steps to Reproduce:

  1. Go to the Kanban board.

  2. Ensure there are no sections created.

  3. Try to add a new todo item.

  4. Observe:

    • The todo is saved but not visible due to the absence of a section.
  5. Now create a section.

  6. Observe:

    • The previously added todo appears automatically under this new section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions