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

persists hiding of FAB when user manually hides it #7741

Merged

Conversation

grahamlangford
Copy link
Collaborator

What does this PR do?

Reviewer Tips

  • Main fix was adding the PersistGate to FloatingActionsContainer

Discussion

  • Noticed we had the wrong migrations version for one of the persistor configs. Added tests to keep them in sync with the latest migration versions

Demo

https://www.loom.com/share/56c0eea9677d4cc8b3707bfb5cfbb4e4

Checklist

  • Add tests
  • Designate a primary reviewer @BLoe

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 72.16%. Comparing base (c430712) to head (cefc3ac).
Report is 1 commits behind head on main.

❗ Current head cefc3ac differs from pull request most recent head 5cc78b6. Consider uploading reports for the commit 5cc78b6 to get more accurate results

Files Patch % Lines
src/components/floatingActions/store.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7741      +/-   ##
==========================================
+ Coverage   72.15%   72.16%   +0.01%     
==========================================
  Files        1267     1267              
  Lines       39695    39696       +1     
  Branches     7369     7369              
==========================================
+ Hits        28640    28645       +5     
+ Misses      11055    11051       -4     

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

<FloatingActions />
</Stylesheets>
</EmotionShadowRoot.div>
<PersistGate loading={<Loader />} persistor={persistor}>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the fix

flag: "isFloatingActionButtonEnabled",
value: false,
}),
SettingsSlice.actions.setFloatingActionButtonEnabled(false),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just simplifying code since this already exists.

Copy link

When the PR is merged, the first loom link found on this PR will be posted to #sprint-demo on Slack. Do not edit this comment manually.

@grahamlangford grahamlangford enabled auto-merge (squash) February 27, 2024 17:51
@grahamlangford grahamlangford merged commit 7b088d6 into main Feb 27, 2024
23 checks passed
@grahamlangford grahamlangford deleted the enforce-latest-migration-version-in-persistor-configs branch February 27, 2024 17:58
@twschiller twschiller added the bug Something isn't working label Feb 27, 2024
@grahamlangford grahamlangford added this to the 1.8.10 milestone Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants