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

feat(web): add checkboxes to control plot bubbles and confidence lines #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivan-aksamentov
Copy link
Member

@ivan-aksamentov ivan-aksamentov commented May 15, 2023

Suggested followup of: #11

/!\ WORK IN PROGRESS

As I suggested in the PR above, here I add recoil atoms to keep state (and remember it in the Local Storage), as well as checkbox elements, which would control display of bubbles and lines.

I hooked up the shouldShowBubbles state to completely disable the rendering of CustomizedDot. The rest is not connected yet.

This is merely a suggestion. We may or may not take this path. The exact logic may change according to projects' needs. We may keep checkboxes or use other UI elemets as appropriate. The 3 checkboxes give 9 combinations 8 combinations* of possible plot experiences. Not all of them may make sense. We can try to limit number of checkboxes, or to use for example 2-way switch toggles (or 3-way, or N-way) or a dropdown menu instead.

(Click "Visit preview" to see the preview deployment app on Vercel)

--

* - combinatorics is hard, sigh

@vercel
Copy link

vercel bot commented May 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
flu-frequencies ✅ Ready (Inspect) Visit Preview May 15, 2023 8:45am

@ivan-aksamentov ivan-aksamentov mentioned this pull request May 15, 2023
@ArtPoon ArtPoon marked this pull request as ready for review May 15, 2023 08:59
Base automatically changed from plot-tweaks to master May 16, 2023 10:25
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