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

fix: remove implicit state toggling for spatial underlay in favor of explicit state setting #876

Merged
merged 3 commits into from
Apr 4, 2024

Conversation

seve
Copy link
Contributor

@seve seve commented Apr 3, 2024

Old redux action handling image underlay display state was error-prone. This PR removes the reducer's implicit state toggling with explicit state sent via the action payload

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.27%. Comparing base (2a3b298) to head (304c83f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #876   +/-   ##
=======================================
  Coverage   77.27%   77.27%           
=======================================
  Files          90       90           
  Lines        7024     7024           
=======================================
  Hits         5428     5428           
  Misses       1596     1596           
Flag Coverage Δ
frontend 77.27% <ø> (ø)
javascript 77.27% <ø> (ø)
unitTest 77.27% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@seve seve force-pushed the seve/875-fix-spatial-mode-toggle branch from 85cc506 to d18fe93 Compare April 3, 2024 22:26
Copy link
Contributor

@kaloster kaloster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Copy link
Contributor

@tihuan tihuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just one optimization to do 👌 Thanks so much, Seve! 🚀

client/src/reducers/controls.ts Show resolved Hide resolved
@seve seve enabled auto-merge (squash) April 4, 2024 18:49
Copy link
Contributor

@tihuan tihuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update!!

@seve seve merged commit a0a3322 into main Apr 4, 2024
6 of 7 checks passed
@seve seve deleted the seve/875-fix-spatial-mode-toggle branch April 4, 2024 22:51
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.

bug: spatial mode is toggling to off on switch to other embedding and back when it should remain on
3 participants