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

Enhance form drilldown #18074

Merged
merged 6 commits into from
May 20, 2024
Merged

Conversation

hujambo-dunia
Copy link
Contributor

@hujambo-dunia hujambo-dunia commented Apr 30, 2024

Addresses #16044
Changes to recursively structured drill-down components: (1) implemented select-all feature for all infinite descendants (2) adjusted styling to improve visual alignment, grouping.

demo video 2024 05 09

before-after

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

…(2) replaced *square* plus/minus icons with caret right/down icons for clearer visual distinction from *square* checkbox, and (3) added descendant-lines for improved visual group of child-parent nodes after 1st nested child group of nodes.
@extend .far;
margin-right: 5px;
content: fa-content($fa-var-square);
.ui-form-field {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these used anywhere else? This would be a good time to move the styling to the drilldown component.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had already done a code search - didn't find anything so thusly named that commit: Removed long-deprecated, unused css. (But let me know if I missed anything!)

Same-page css Vue scoping restriction plus the two recursive Vue components (FormDrilldownOption.vue and FormDrilldownList.vue) means I need access to the higher-level component (if we go with suggested design to select "all except first nested drilldown") so that would put the drill-down scss in FormElement.vue, right? Otherwise, maybe I should try v-deep to break out of the Vue scoping restriction to get it into the drill-down Vue component itself... but that may lack browser compatibility.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v-deep does not require browser support. It is a compile time directive for Vue to control scoping.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ElectronicBlueberry that is super-helpful, I probably had read some older information, so your reply is reassuring.

@hujambo-dunia hujambo-dunia changed the title [WIP] Enhance form drilldown Enhance form drilldown May 10, 2024
@hujambo-dunia hujambo-dunia marked this pull request as ready for review May 10, 2024 13:58
@github-actions github-actions bot added this to the 24.1 milestone May 10, 2024
Comment on lines 112 to 137
<style lang="scss">
@import "theme/blue.scss";
@import "~@fortawesome/fontawesome-free/scss/_variables";
.ui-form-field {
div > .ui-drilldown {
$ui-drilldown-padding: 1rem;
$ui-drilldown-border: 0.5px solid $gray-500;

.indent {
padding-left: calc($ui-drilldown-padding + $ui-drilldown-padding/2);
}
.align-indent {
display: inline-block;
width: $ui-drilldown-padding;
border-bottom: $ui-drilldown-border;
}
.align-checkbox {
width: $ui-drilldown-padding;
}
/* selector: all except first nested drilldown */
& > * .descendant-lines {
border-left: $ui-drilldown-border;
}
}
}
</style>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move these styles to the component which uses the ui-drilldown class. That way you can also use scoping, and the selectors can be much simpler.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ElectronicBlueberry Once again, I appreciate you explaining the "purpose" behind the change which allows me to address the issue on a deeper level. Let me know if this commit is more along the lines of what you had in mind.

@dannon dannon merged commit 1d345d6 into galaxyproject:dev May 20, 2024
30 of 31 checks passed
Copy link

This PR was merged without a "kind/" label, please correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants