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

Emit filterText to HistoryPanel from historyStore #15926

Merged

Conversation

ahmedhamidawan
Copy link
Member

@ahmedhamidawan ahmedhamidawan commented Apr 12, 2023

Added a variable in historyStore called currentFilterText that tracks the filter in the current history in the history panel.
filterText can then be emitted to the active historyPanel from anywhere in Galaxy.
E.g.: Clicking on the related filter button (sitemap icon) on a history content item will emit filter text: related:hid and change the history to the history containing that item

Screen.Recording.2023-04-24.at.4.33.28.PM.mov

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.

@ahmedhamidawan ahmedhamidawan changed the title Emit Related filter to HistoryPanel from historyStore Emit filterText to HistoryPanel from historyStore Apr 12, 2023
@bgruening
Copy link
Member

Nice! Those integrations are really cool. Great to see what is possible now.

@ahmedhamidawan ahmedhamidawan force-pushed the emit_related_filter_without_panel branch from 9699a9c to e095db5 Compare April 24, 2023 19:31
@ahmedhamidawan ahmedhamidawan marked this pull request as ready for review April 24, 2023 20:31
@github-actions github-actions bot added this to the 23.1 milestone Apr 24, 2023
Copy link
Member

@itisAliRH itisAliRH left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@@ -55,7 +55,7 @@
<b-button
v-if="showHighlight"
class="highlight-btn px-1"
title="Show Inputs for this item"
title="Show Related Items"
Copy link
Member

Choose a reason for hiding this comment

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

Thanks, I saw this text was out of date when looking at the other related filter PR, glad to see it fixed here! :)

@dannon dannon merged commit bc7d871 into galaxyproject:dev Apr 25, 2023
18 checks passed
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

4 participants