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

Replace History Dataset Picker in Library Folder #18518

Conversation

itisAliRH
Copy link
Member

@itisAliRH itisAliRH commented Jul 9, 2024

This PR is a follow-up on #18488. It introduces a new datasets selector, HistoryDatasetPicker, which is a generic component that utilizes SelectionDialog to allow users to explore their histories and select datasets.
Also, add total_matches header to the "/api/datasets" GET request.

History.Dataset.Picker.in.Library.Folder.mp4

SelectionDialog improvements:

  • Make folder icon, title, and ok button text customizable
  • Use FilterMenu when it's needed
  • Improve types

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. Open a library in Data Libraries
    2. Click on Datasets > from History
    3. Select history and datasets to add to the library

License

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

@github-actions github-actions bot added this to the 24.2 milestone Jul 9, 2024
@itisAliRH itisAliRH marked this pull request as draft July 9, 2024 14:36
@itisAliRH itisAliRH force-pushed the libraries-modernization-1-history-dataset-picker branch 3 times, most recently from 796bb43 to 64f8c7c Compare July 26, 2024 16:06
@itisAliRH itisAliRH force-pushed the libraries-modernization-1-history-dataset-picker branch from 33d4717 to 84de504 Compare August 2, 2024 12:39
@itisAliRH itisAliRH force-pushed the libraries-modernization-1-history-dataset-picker branch 2 times, most recently from e67ee2f to 0fdbe92 Compare August 2, 2024 13:38
@itisAliRH itisAliRH changed the title Libraries Modernisation: History Dataset Picker Replace History Dataset Picker in Library Folder Aug 2, 2024
itisAliRH and others added 18 commits September 11, 2024 14:41
…teral types for selection states and rename `selectAllIcon` prop to `selectAllVariant` in `SelectionDialog`
…tes_galaxy` and update `libraries_dataset_import_from_history_select`
Co-authored-by: Arash Kadkhodaei <arash77.kad@gmail.com>
@itisAliRH itisAliRH force-pushed the libraries-modernization-1-history-dataset-picker branch from 0fdbe92 to 73c1f49 Compare September 11, 2024 13:03
@itisAliRH itisAliRH marked this pull request as ready for review September 11, 2024 17:36
Copy link
Contributor

@davelopez davelopez left a comment

Choose a reason for hiding this comment

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

Some very minor suggestions :)

@itisAliRH
Copy link
Member Author

@davelopez thank you for the review! I have pushed the changes we discussed.

@itisAliRH itisAliRH marked this pull request as draft September 13, 2024 12:29
@itisAliRH itisAliRH marked this pull request as ready for review September 13, 2024 15:39
Copy link
Contributor

@davelopez davelopez left a comment

Choose a reason for hiding this comment

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

Thank you so much! It looks pretty cool to me!

@davelopez davelopez added the kind/refactoring cleanup or refactoring of existing code, no functional changes label Sep 13, 2024
@itisAliRH
Copy link
Member Author

The failed tests are not relevant.

@davelopez davelopez merged commit fc8dc87 into galaxyproject:dev Sep 16, 2024
54 of 56 checks passed
@itisAliRH itisAliRH deleted the libraries-modernization-1-history-dataset-picker branch September 16, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/UI-UX kind/enhancement kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants