Skip to content

Unstable - Confusing '1 resource selected' text when having selected a folder with resources #4650

@pcenov

Description

@pcenov

Observed behavior

When I select a folder with resources, in the main table I see the following text: '1 folder, N resources' which is mostly correct as clicking the 'Move', 'Copy' and 'Delete' icons will result in the change being applied to the folder and all of the resources within the folder. But if I go ahead and select one of the new editing icons such as 'Edit categories' then I see the incorrect text 1 resource selected under the title of the modal. The text is incorrect because it says 'resource' while I have selected a folder with resources. So it seems that changing it to 'N folders, N resources selected' will be a step in the right direction, however when we have nested folders with resources the text can become something like '4 folders, 15 resources' which will still be confusing. The same is valid if I've selected several folder and resources in which case currently the text is just N resources selected

Expected behavior

To be further discussed.

Steps to reproduce the issue

  1. Go to https://unstable.studio.learningequality.org/en/accounts/#/ and sign in
  2. Open a channel with folders and all of the supported resources
  3. Click the checkbox of a folder with resources and observe the '1 folder, N resources' text above the table
  4. Click the 'Edit categories' icon and observe the text '1 resource selected' in the modal

Additional information

number.of.selected.resources.mp4

Console logs

no errors observed in the console

Usage Details

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions