-
Notifications
You must be signed in to change notification settings - Fork 4k
Remove the hideIntro override and default preview modal to false #3768
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
Remove the hideIntro override and default preview modal to false #3768
Conversation
9478fc6 to
7d00d3d
Compare
benjiwheeler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good! I'm hoping that the logic can be clarified a bit... LMK if the direction I'm suggesting makes any sense.
|
@benjiwheeler thanks for the comments, restructuring the negative "if" is definitely more clear. I don't love the mini reducers in GUI either, but I do not really see a better way to have the initial state be something other than what the reducer says it is. It doesn't really make sense to dispatch to make this change, because there is no user action that is happening, it is just that the initial state is different between gui/www. |
|
This looks good, but could you wait for ChrisG to merge the much simpler #3725 , which also touches hideIntro? Should land today |
The use of an "override" prop that allowed the preview modal to be hidden without actually changing the redux state was causing a problem where the block editors where not closing when modals were opening. That is because it relied on the modal reducer being accurate. I defaulted the preview state to false to make it simpler to consume the GUI, as www will not want the preview info to be true. I made it true in the playground instead. This fixes scratchfoundation#3710
67d06cf to
3f1666c
Compare
|
LGTM |
The use of an "override" prop that allowed the preview modal to be hidden without actually changing the redux state was causing a problem where the block editors where not closing when modals were opening. That is because it relied on the modal reducer being accurate.
I defaulted the preview state to false to make it simpler to consume the GUI, as www will not want the preview info to be true. I made it true in the playground instead.
This fixes #3710
I can't write an integration test for that specific issue yet because it only happens when embedded, but the current integration tests ensure that the preview modal is still there in the playground the way we want. I confirmed the fix for #3710 by manually linking and testing.