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

2031-In-health-page---on-first-load-we-hide-passing-ones-by-default-However-the-Hide-Passing-toggle-is-switched-off #2040

Conversation

mainawycliffe
Copy link
Contributor

@mainawycliffe mainawycliffe commented Jun 20, 2024

Fixes #2031

Copy link

vercel bot commented Jun 20, 2024

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

Name Status Preview Updated (UTC)
flanksource-ui ✅ Ready (Inspect) Visit Preview Jun 26, 2024 2:09pm

Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for flanksource-demo-stable ready!

Name Link
🔨 Latest commit 59454ff
🔍 Latest deploy log https://app.netlify.com/sites/flanksource-demo-stable/deploys/667c207004f1fd0008400c8a
😎 Deploy Preview https://deploy-preview-2040--flanksource-demo-stable.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for clerk-saas-ui ready!

Name Link
🔨 Latest commit 59454ff
🔍 Latest deploy log https://app.netlify.com/sites/clerk-saas-ui/deploys/667c2070933a760008ba0e76
😎 Deploy Preview https://deploy-preview-2040--clerk-saas-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for goofy-euclid-75956c ready!

Name Link
🔨 Latest commit 59454ff
🔍 Latest deploy log https://app.netlify.com/sites/goofy-euclid-75956c/deploys/667c20700ba9a50008958068
😎 Deploy Preview https://deploy-preview-2040--goofy-euclid-75956c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mainawycliffe mainawycliffe marked this pull request as ready for review June 21, 2024 05:05
@mainawycliffe mainawycliffe force-pushed the 2031-In-health-page---on-first-load-we-hide-passing-ones-by-default-However-the-Hide-Passing-toggle-is-switched-off branch from 8113c5e to b8bc226 Compare June 21, 2024 05:06
@mainawycliffe mainawycliffe force-pushed the 2031-In-health-page---on-first-load-we-hide-passing-ones-by-default-However-the-Hide-Passing-toggle-is-switched-off branch from b8bc226 to 3355756 Compare June 21, 2024 21:21
@moshloop
Copy link
Member

@mainawycliffe this doesn't seem to work - The UI is taking it value from query params and the query is using local storage

Can we not just use atomWithStorage, I don't think hidePassing should update the URL state

@mainawycliffe
Copy link
Contributor Author

@moshloop we can, but I thought when sharing a link, you would want to share exactly what you looking at in terms of state?

@mainawycliffe mainawycliffe force-pushed the 2031-In-health-page---on-first-load-we-hide-passing-ones-by-default-However-the-Hide-Passing-toggle-is-switched-off branch from 3355756 to c687994 Compare June 26, 2024 10:05
@moshloop
Copy link
Member

@mainawycliffe - This doesn't seem to work - the toggle reflects the local storage state but the view does not

@mainawycliffe mainawycliffe force-pushed the 2031-In-health-page---on-first-load-we-hide-passing-ones-by-default-However-the-Hide-Passing-toggle-is-switched-off branch from c687994 to 0ef0515 Compare June 26, 2024 14:01
Fixes #2031

fix: switch hidePassing to local storage only

Fixes #2031

fix: fix hide passing defaulting to false, while default is true

Fixes #2031

refactor: improve how hide passing toggle works

fix: switch hidePassing to local storage only

fix: move user settings/preference to local storage
@mainawycliffe mainawycliffe force-pushed the 2031-In-health-page---on-first-load-we-hide-passing-ones-by-default-However-the-Hide-Passing-toggle-is-switched-off branch from 0ef0515 to 59454ff Compare June 26, 2024 14:06
@moshloop moshloop merged commit 491aafb into main Jun 27, 2024
14 of 16 checks passed
@moshloop moshloop deleted the 2031-In-health-page---on-first-load-we-hide-passing-ones-by-default-However-the-Hide-Passing-toggle-is-switched-off branch June 27, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants