-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Hold, Testing][$500] Theme - Theme is always reset to "Use Device Settings" after relogin #33160
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0146344d6185cdc37b |
Triggered auto assignment to @michaelhaxhiu ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @danieldoglas ( |
ProposalPlease re-state the problem that we are trying to solve in this issueThe theme is reset to "Use Device Settings" after relogin. What is the root cause of that problem?The theme onyx data is cleared when logout is performed. What changes do you think we should make in order to solve the problem?We can pass Changed code:...src/libs/actions/Session/index.ts
+ let preferredTheme: ValueOf<typeof CONST.THEME> | null = null;
+ Onyx.connect({
+ key: ONYXKEYS.PREFERRED_THEME,
+ callback: (val) => (preferredTheme = val),
+ });
/**
* Clears the Onyx store and redirects user to the sign in page
*/
function signOut() {
...
+ const successData = [
+ {
+ onyxMethod: Onyx.METHOD.SET,
+ key: ONYXKEYS.PREFERRED_THEME,
+ value: preferredTheme,
+ },
+ ];
+ API.write('LogOut', params, {successData});
...
What alternative solutions did you explore? (Optional)App/src/libs/actions/SignInRedirect.ts Line 15 in 121ca59
Preserve theme value in Both solutions fulfil the expected result. VideosMacOS: Chrome / SafariScreen.Recording.2023-12-15.at.16.32.24.mov |
ProposalPlease re-state the problem that we are trying to solve in this issueTheme - Theme is always reset to "Use Device Settings" after relogin What is the root cause of that problem?We are not preserving What changes do you think we should make in order to solve the problem?We should preserve the Line App/src/libs/actions/SignInRedirect.ts Lines 19 to 22 in 121ca59
|
This shouldn't block deploy, removing the label |
ProposalPlease re-state the problem that we are trying to solve in this issue.Theme is always reset to "Use Device Settings" after relogin What is the root cause of that problem?When the User Logs Out we are Flushing Most of Values Stored in Onyx Store. What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) |
@situchan please review the proposals |
Also, I think it makes sense to assign @grgia to this issue since she's the person with the most knowledge on our side |
I am fixing this internally in https://github.com/Expensify/Web-Expensify/pull/40078 |
Current assignee @situchan is eligible for the Internal assigner, not assigning anyone new. |
Although @situchan maybe we should go with one of these proposals on App side. Do you have thoughts on this? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@michaelhaxhiu, @grgia, @situchan Huh... This is 4 days overdue. Who can take care of this? |
@michaelhaxhiu, @grgia, @situchan 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@michaelhaxhiu @grgia @situchan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@michaelhaxhiu, @grgia, @situchan 10 days overdue. Is anyone even seeing these? Hello? |
@michaelhaxhiu, @grgia, @situchan 10 days overdue. I'm getting more depressed than Marvin. |
@michaelhaxhiu, @grgia, @situchan 12 days overdue now... This issue's end is nigh! |
Let me check possibility to fix in frontend |
Otherwise I believe this will be fixed by https://github.com/Expensify/Web-Expensify/pull/40078 (internal) |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@michaelhaxhiu @grgia @situchan this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
We've merged internal auth PR, will retest after changes are deployed |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.13-4
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
Precondition: App theme is set to Light mode.
Expected Result:
The theme preference before logout is preserved.
Actual Result:
The theme is reset to "Use Device Settings" after relogin.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6314462_1702641664249.RPReplay_Final1702620718.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: