-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: master
Are you sure you want to change the base?
Conversation
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
There should be some padding between the dropdown menu and the next button. Right now they are stuck to each other. |
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
Can you style the cursor when it's over checkboxexto be like a pointer? |
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
…o make the checkbox look like the dropdown button.
…ue: main checkbox goes out of sync with list after indeterminate click
f31535d
to
4e35494
Compare
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
src/js/angular/models/import/checkbox-control-resource-wrapper.js
Outdated
Show resolved
Hide resolved
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
…tor wrapper class. Introduce test
src/js/angular/models/import/checkbox-control-resource-wrapper.js
Outdated
Show resolved
Hide resolved
…urceTreeElement class
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
src/js/angular/import/directives/import-resource-tree.directive.js
Outdated
Show resolved
Hide resolved
…portResourceTreeElement class" This reverts commit 03426f7.
Quality Gate failed for 'graphdb-workbench'Failed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
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
Checklist