Skip to content

Clipboard indeterminate selection incorrect #4636

@bjester

Description

@bjester

Observed behavior

When a topic or folder has descendants selected, but itself isn't selected, it shows as unselected, with ancestors selected.
image_720

Additionally, there's also a minor cosmetic fix for the alignment of the checkbox, which could be fixed along with this issue.

Expected behavior

A topic/folder should be shown as indeterminately unselected when it has descendants selected, but itself isn't selected.
image_720

User-facing consequences

The indeterminate states are meant to make all possible selection states clear to the user. While this is inherently complex in its nature, it's the appropriate manner for visualizing each state, without overlap.

Additional behavior

Replicate the behavior that currently exists in production. As this is likely a regression in the checkbox itself, the state management is unlikely the issue, so attention should be focused towards producing the desired states with the checkbox. Since we migrated to using KDS checkboxes, the issue might be the lack of support for the indeterminately unselected state.

State Description Screenshot
All selected All items within a channel are selected image
Channel partially selected A subset of a channel's items are selected image
Folder unselected A folder itself is unselected, while its descendants are at least partially selected image
Folder partially selected A folder itself is selected but its descendants are partially selected image

Steps to reproduce the issue

  1. Copy a folder to the clipboard
  2. Open the clipboard
  3. Select a subset of the folder's nodes
  4. Observe the folder is shown as indeterminately selected instead of indeterminately unselected

Usage Details

  • Browser: Chrome
  • URL:
  • Other information that may be relevant: unstable branch

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions