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

Move history multiview item actions to top #18265

Merged
merged 16 commits into from
Jul 26, 2024

Conversation

ahmedhamidawan
Copy link
Member

@ahmedhamidawan ahmedhamidawan commented May 29, 2024

  • Moves multiview item actions to the top, and adds a dropdown menu for Managing a pinned history as well
  • Adds a pinnedHistoriesSummarizedStatus computed ref to historyStore that Returns a string that indicates whether all the pinned histories have annotations, tags, both, or none of them. This is used to then adjust the DetailsLayout header height accordingly.

image

Fixes #18210

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 [WIP] Move history multiview item actions to top Move history multiview item actions to top May 30, 2024
@ahmedhamidawan ahmedhamidawan marked this pull request as ready for review May 30, 2024 16:45
@davelopez
Copy link
Contributor

Very cool!
I guess it will be better to wait for #18234 to get merged forward to dev before getting this in. It will be easier to solve potential conflicts here and check that everything still looks as expected for other kinds of histories like purged, archived, etc.

@ahmedhamidawan ahmedhamidawan marked this pull request as draft May 31, 2024 13:45
@ahmedhamidawan ahmedhamidawan force-pushed the multiview_top_bar branch 3 times, most recently from d33d461 to 8ce94b5 Compare July 22, 2024 18:15
@ahmedhamidawan
Copy link
Member Author

@davelopez This should take care of canMutateHistory cases, and allows for deleted and purged histories to be pinned as well:

image

@ahmedhamidawan ahmedhamidawan marked this pull request as ready for review July 22, 2024 18:18
@github-actions github-actions bot added this to the 24.2 milestone Jul 22, 2024
@ahmedhamidawan ahmedhamidawan force-pushed the multiview_top_bar branch 2 times, most recently from c386dd9 to c2adaf6 Compare July 24, 2024 17:17
Adds a `pinnedHistoriesSummarizedStatus` computed ref to `historyStore` that Returns a string that indicates whether all the pinned histories have annotations, tags, both, or none of them. This is used to then adjust the `DetailsLayout` header height accordingly.
Add `HistoryNavigation` to the top section as well.

WIP: There is a bug right now that applies the dropdown action to all pinned histories in multiview (e.g.: You try to delete a history from the dropdown, but a modal opens up for each pinned history
Using `v-b-modal:modal-id` had the disadvantage that if we had multiple components containing modals with same ids, they would all open simultaneously. Using `v-modal` to open modals instead removes this side effect.
So that the dropdown item says "Purge this history" instead of delete for a history that is already deleted.
Move summarized type to its own file as well.
ahmedhamidawan and others added 2 commits July 25, 2024 11:45
To use updated message for permanently deleted history
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.

Awesome! Thank you so much @ahmedhamidawan for addressing all the comments!
It looks great!

I've added a last commit to adapt the unit test message.

@davelopez davelopez merged commit 65838ae into galaxyproject:dev Jul 26, 2024
31 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.

Move multi-history switch to button to top
2 participants