-
Notifications
You must be signed in to change notification settings - Fork 987
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
fixes Not visible status bar on light theme #21105
Conversation
Jenkins BuildsClick to see older builds (8)
|
a308b95
to
852829e
Compare
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.
LGTM, thanks @Parveshdhull
(rf/defn update-theme-and-init-root | ||
{:events [:update-theme-and-init-root]} | ||
[_ root-id] | ||
{:fx [[:dispatch [:theme/switch {:view-id root-id}]] |
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.
Looks like a proper solution to use ordering from :fx
👍🏼, but haven't tested to be sure the fix is good.
@@ -45,7 +45,7 @@ | |||
:colors [colors/neutral-100-opa-0 colors/neutral-100-opa-80]}]) | |||
[quo/button | |||
{:on-press (fn [] | |||
(rf/dispatch [:init-root :shell-stack]) | |||
(rf/dispatch [:update-theme-and-init-root :shell-stack]) |
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.
It's not the first, nor will be the last time that I think we should have some convention for names of events that are sort of private and should not be used directly. Clearly from now on, dispatching :init-root
will lead to potential bugs, so something about the name of :init-root
should indicate that. A comment or docstring is not as potent.
And idea for us to think about :)
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.
Thank you @ilmotta for reminding. I wrote the docstring, but forget to add before pushing. (Added now)
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.
Created an issue, we will explore it. Thank you
#21108
86% of end-end tests have passed
Failed tests (1)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Passed tests (6)Click to expandClass TestCommunityOneDeviceMerged:
Class TestWalletMultipleDevice:
Class TestWalletOneDevice:
Class TestCommunityMultipleDeviceMerged:
|
100% of end-end tests have passed
Passed tests (1)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
|
@Parveshdhull thanks for fix. Ready to be merged and cherry-picked. |
a5c63e6
to
351d68f
Compare
The issue occurred because we updated the theme value after setting the root (not before), which caused the root to be initialized with the old theme value.
Hi @Parveshdhull @ilmotta ! I observe the same behaviour on release iOS build. When user change theme from dark to light the status bar becomes invisible. |
Hi @mariia-skrypnyk, Thank you very much for bringing up this issue. Unfortunately, this is a limitation or bug within the library, and we are currently unable to fix it. You can find more details here: #15596 and #19089
I’m not certain, but hopefully, if we migrate to the React Navigation library, this issue can be resolved. (Currently out of scope?) cc @flexsurfer |
Hey @Parveshdhull, to give some visibility here, the scope of 2.32 is still being defined. Just today Volo and I aligned that we need to proactively start to assess from scratch our push notification solution so that by 2.33 we can do something about it because it's very strategic to the success of Status, and it's not currently working in our favor. Another example, next week there will be a call to define the Keycard scope for 2.32. So as you can see, there are other things in the scope and the migration to React Navigation may need to wait a bit longer. Most likely will be in the scope 2.33. |
fixes #21101
Summary
The issue occurred because we updated the theme value after setting the root (not before), which caused the root to be initialized with the old theme value.
PR only addresses bug fixing because its urgent. Other improvements related to naming and doc-string are done in #21107
status: ready