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 animation options to a collapsible section #1705

Closed

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Oct 5, 2023

preview

Description of proposed changes

Previously, the animation controls and options were very far away from each other. Move the options to where the controls are and make it a collapsible section.

Default to the section being hidden under the assumption that this is not a commonly used feature. This allows the the default view to take up ~the same amount of vertical space as the previous layout.

Related issue(s)

Checklist

@victorlin victorlin self-assigned this Oct 5, 2023
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-move--yho8mx October 5, 2023 22:33 Inactive
@victorlin
Copy link
Member Author

@jameshadfield again, unfinished, but would like to get feedback on general implementation direction.

@victorlin victorlin mentioned this pull request Oct 5, 2023
15 tasks
@victorlin victorlin force-pushed the victorlin/move-animation-options branch from 7017678 to 18435a6 Compare October 9, 2023 23:18
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-move--yho8mx October 9, 2023 23:18 Inactive
@victorlin victorlin changed the base branch from victorlin/move-panel-toggles to victorlin/move-panel-toggles-preview1 October 9, 2023 23:18
This keeps the styling closer to where it is used.
Do this by extending annotatedHeader to take an optional toggle, then
using it for all available panels.

Simplify headers and translations to just the panel name (e.g. Tree)
instead of "Show <panel name>" / "<panel name> Options".

Repurpose and move the section "Panel Options" to the top as "Layout".
Conditionally render that entire section including the header.
Previously, the animation controls and options were very far away from
each other. Move the options to where the controls are and make it a
collapsible section.

Default to the section being hidden under the assumption that this is
not a commonly used feature. This allows the the default view to take up
~the same amount of vertical space as the previous layout.
@victorlin victorlin force-pushed the victorlin/move-animation-options branch from 18435a6 to 6591d18 Compare October 12, 2023 19:20
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-move--yho8mx October 12, 2023 19:20 Inactive
@victorlin victorlin changed the base branch from victorlin/move-panel-toggles-preview1 to victorlin/move-panel-toggles October 12, 2023 19:22
@victorlin victorlin force-pushed the victorlin/move-panel-toggles branch 7 times, most recently from f080bcb to a69a067 Compare October 23, 2023 20:56
@victorlin victorlin force-pushed the victorlin/move-panel-toggles branch 3 times, most recently from 830b73d to 6753065 Compare November 9, 2023 23:46
@victorlin
Copy link
Member Author

This was discussed on a call a while back. Efforts have shifted to the related PR #1704 and this has gotten out of sync. Once that's merged, these changes are not as needed. Maybe re-consider in the future.

@victorlin victorlin closed this Nov 10, 2023
@victorlin victorlin deleted the victorlin/move-animation-options branch November 10, 2023 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants