Skip to content

feat: add contextual zoom #282

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

Merged
merged 2 commits into from
May 6, 2023
Merged

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented May 6, 2023

Introduction

This PR introduces a major feature called "contextual zoom". The idea is to see different level of details at different zoom levels, so that users can focus on a small subsets of content to work on. Think of it as Google maps where you zoom in & out to see different levels of details.

The feature contains roughly two significant behaviors:

  1. different levels in the hierarchy have different font sizes
  2. when zooming out, the pods and scopes that become too small to view will be collapsed into a block, with large text summarizing its content. These blocks can be dragged and moved easily (which is pretty easy to use).

This feature is experimental and disabled by default. There's a setting contextual zoom in the sidebar to enable it.

Future work

  • expose font-size ladder configuration for different levels (currently 8, 16, 24, 32, 48, defined in settingSlice.tsx)
  • display more meaningful summary information

Fully expanded (zoomed in):

Screenshot from 2023-05-06 06-38-14

Zoom out:

Screenshot from 2023-05-06 06-38-21

Zoom out:

Screenshot from 2023-05-06 06-38-25

Zoom out:

Screenshot from 2023-05-06 06-38-36

@lihebi lihebi merged commit 9e2fcb5 into codepod-io:main May 6, 2023
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.

1 participant