Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDB-10692 - Change toggle behavior of import checkbox #1690

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

DesiBorisova
Copy link
Contributor

@DesiBorisova DesiBorisova commented Nov 7, 2024

What

The way the checkbox and drop-down in the Import page works will be as follows:

  • When the user selects the checkbox next to the drop-down, all files will be selected.

  • When the user deselects the checkbox next to the drop-down, all files will be deselected.

  • When the user clicks the checkbox next to the drop-down while it is indeterminate, all files will be deselected.

  • Selecting from the drop-down ("All", "None", "Imported", "Not imported") will not show the selected option next to the checkbox drop-down. Only the applicable files will be checked in the list.

  • Manually selecting all the files will check the checkbox by the drop-down list.

  • Manually deselecting all the files will uncheck the checkbox by the drop-down list.

Why

This behavior was agreed with our UX specialist and matches the prototype in the task comment. The behavior is more intuitive for users, as it closely matches the Gmail email list checkbox drop-down.

How

I added logic to switch the checkbox states, depending on the conditions. I refactored the directive and added a wrapper class for the resource list. I edited the styles, so that the independent checkbox can appear as part of the button as before.

Testing

Test added for this functionality.

Screenshots

Screenshot from 2024-11-07 12-29-18

Screenshot from 2024-11-07 12-29-33

Screenshot from 2024-11-07 12-29-41

Checklist

  • Branch name
  • Target branch
  • Commit messages
  • MR name
  • MR Description
  • Tests

@svilenvelikov
Copy link
Collaborator

svilenvelikov commented Nov 7, 2024

There should be some padding between the dropdown menu and the next button. Right now they are stuck to each other.
Also style the dropdown-toggle to have it's arrow icon centered horizontally, because it looks odd right now.

@svilenvelikov
Copy link
Collaborator

Can you style the cursor when it's over checkboxexto be like a pointer?

…o make the checkbox look like the dropdown button.
…ue: main checkbox goes out of sync with list after indeterminate click
@DesiBorisova DesiBorisova force-pushed the GDB-10692-import-checkbox-improvement branch from f31535d to 4e35494 Compare November 12, 2024 09:22
@DesiBorisova DesiBorisova marked this pull request as draft November 12, 2024 09:22
@DesiBorisova DesiBorisova marked this pull request as ready for review November 14, 2024 08:36
Copy link

Quality Gate Failed Quality Gate failed for 'graphdb-workbench'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@svilenvelikov svilenvelikov marked this pull request as draft November 15, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants