-
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 for payment 2024-02-07] [$500] Web - Chat - There is a cancelled request where isDarkMode=true is present #34669
Comments
👋 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 @tgolen ( |
Since this has no user impact, I'm removing the deploy blocker label. Please correct me if I'm wrong about the impact level. |
Triggered auto assignment to @muttmuure ( |
Job added to Upwork: https://www.upwork.com/jobs/~01656e05b8d4b00139 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is a cancelled request in network panel when WalletStatementPage is loaded What is the root cause of that problem?On the WalletStatementPage, the statementPageUrl for WalletStatementModal is constructed as follows:
Note that the url utilises the The themePreference is derived from the App/src/hooks/useThemePreference.ts Lines 12 to 21 in 4b7b8f2
Initially, themePreference is set to CONST.THEME.FALLBACK and later updated to the current theme by the effect. App/src/hooks/useThemePreference.ts Line 8 in 4b7b8f2
When the user is on light theme, WalletStatementPage first receives the themePreference value as What changes do you think we should make in order to solve the problem?The dependency on the useThemePreference hook is the fundamental issue. We should instead utilize the useTheme hook to directly read the current color scheme. Since the ThemeProvider has already loaded the theme preference, the function WalletStatementPage(props) {
const theme = useTheme();
// use theme.colorScheme to construct the url
const url = `${CONFIG.EXPENSIFY.EXPENSIFY_URL}statement.php?period=${yearMonth}${theme.colorScheme === CONST.THEME.DARK ? '&isDarkMode=true' : ''}`; What changes do you think we should make in order to solve the problem?An alternative would be to not rely on the colorScheme field in the theme. Instead, we could introduce a specific currentTheme field in the ThemeContext to represent the active theme. |
Please re-state the problem that we are trying to solve in this issue.Web - Chat - There is a cancelled request where isDarkMode=true is present What is the root cause of that problem?The dependency on the What changes do you think we should make in order to solve the problem?Optimize the
Video:-https://drive.google.com/file/d/15I1YNuGJ6ChQKgj1bh_2yMg-f7VZ0UFy/view?usp=sharing |
@c3024 Do you need some help giving these initial proposals a look or can you get to this soon? |
I'm on it. Will complete today. |
Thank you for your proposals. I think the correct way to fix is fixing the useThemePreference hook. I don't see the need to have the themePreference as a state variable and set it with useEffect afterwards in the useThemePreference hook. So, proposal here by @kaushiktd looks good to me. 🎀 👀 🎀 C+ Reviewed |
Current assignee @tgolen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Handling |
Automation seems to have hired the wrong person for reviewer and nobody for contributor |
This comment was marked as off-topic.
This comment was marked as off-topic.
Amm, I did not receive any payment on Upwork! Where did you pay me @muttmuure ? |
This comment was marked as off-topic.
This comment was marked as off-topic.
I was paid correctly. I was the reviewer. I got a notification on Upwork asking for refund . 🤔 @muttmuure |
Ah OK, so it worked correctly then |
Let me cancel that refund request |
OK @kaushiktd should have an offer on Upwork |
Thanks, @muttmuure Offer is accepted. |
contract extended |
@c3024 maybe you just decline the refund request |
I don't see a decline option. Maybe I will just ignore it? |
Sounds fine then - let's do that |
I am not seeing any milestone paid in my account. |
@muttmuure Can you please try withdrawing and creating new offer? |
@muttmuure New offer is accepted and payment milestone requested |
@tgolen, @kaushiktd, @muttmuure, @c3024 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
All paid |
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: 1.4.26.1
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:
Issue found when executing PR #34395
Action Performed:
in any 1:1 chat
Expected Result:
There shouldn't be a cancelled request
Actual Result:
There is a cancelled request where isDarkMode=true is present
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6345667_1705518203570.bandicam_2024-01-17_17-41-00-835.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: