Skip to content

Use selectedItems composable in GridList #20018

New issue

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

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

Already on GitHub? # to your account

Draft
wants to merge 16 commits into
base: dev
Choose a base branch
from

Conversation

ahmedhamidawan
Copy link
Member

Uses the newly added composable in grids as well.

Depends on #19973

TODO:

Use this as an opportunity to add documentation for the composable as well.

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.

Handles selections as well as keyboard navigation.

Currently aims to replace `client/src/components/History/Content/SelectedItems.js`. Made it a reusable composable instead of just scoped to history items.
The structure of the `itemRefs` can be variable since we can have either a Component, DOM Element or an array of either as the ref.
Also improves how the existing arrow navigation is emitted (simpler `keydown` event in child `WorkflowCard` rather than what we had in `WorkflowCardList`).
Goes off of the (to be removed) existing `client/src/components/History/Content/SelectedItems.test.js` test, some parts still a TODO.
Uses the newly added composable in grids as well.

Depends on galaxyproject#19973

Use this as an opportunity to add documentation for the composable as well.
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant