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

Retain plot order when toggling off/on #2147

Merged
merged 2 commits into from
Aug 4, 2022
Merged

Retain plot order when toggling off/on #2147

merged 2 commits into from
Aug 4, 2022

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Aug 4, 2022

Closes #2116

This PR adds the following logic to the ordering of plots.

If a plot is hidden retain the order of all plots until such time that the plot is either unhidden or any other plot is moved. If the plot is unhidden show it in the same place, if any other plot is moved send it to the last position in the order.

Demo

Screen.Recording.2022-08-04.at.2.28.33.pm.mov

@mattseddon mattseddon added the product PR that affects product label Aug 4, 2022
@mattseddon mattseddon self-assigned this Aug 4, 2022
@mattseddon mattseddon marked this pull request as ready for review August 4, 2022 21:33
@codeclimate
Copy link

codeclimate bot commented Aug 4, 2022

Code Climate has analyzed commit b50721c and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.8% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit a5b432e into main Aug 4, 2022
@mattseddon mattseddon deleted the retain-plot-order branch August 4, 2022 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keep the order of the plots when toggling their visibility on and off
2 participants