-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 #27392] [$500] mWeb-Profile-Asia/Calcutta is displayed as Asia/Kolkata & selected timezone not shown with tick mark #27927
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01e2fd5178e62c26f5 |
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When user taps Asia/Calcutta, the option Asia/Calcutta with tick mark is not found on top. When user enters Asia in search and scroll down, the option Asia/Calcutta with tick mark not found, but shown Asia/Kolkata , and that also without tick mark What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?Simply adding this option into the list fixes the issue. When timezone option is selected, after adding this item in the list, it comes preselected with a tickmark which is the expected result of this issue. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Some timezone names have different variations. What is the root cause of that problem?This is due to our migration from What changes do you think we should make in order to solve the problem?
This is what we have done before removing What alternative solutions did you explore? (Optional)Keep the timezone list minimal as currently but allow searching/displaying by alias just like we did with searching for emojis. |
@tienifr, I feel like you make a good point, let's wait and see how to standardize the timezone data to thoroughly fix this issue. : ) |
@ntdiary is this being worked on elsewhere? |
Strictly speaking, not yet. Step 1 in the proposal could potentially be implemented in issue #27392. I personally lean towards this approach, but still need to look further into the timezone data size. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
The same root cause with this issue so I would like to bring out a proposal for this issue ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb-Profile-Asia/Calcutta is displayed as Asia/Kolkata & selected timezone not shown with tick mark What is the root cause of that problem?When a user turns on Line 1 in bb32cc5
What changes do you think we should make in order to solve the problem?We should get data from a timezone database and I have parse List of tz database time zones upload here we can replace for TIMEZONES.js What alternative solutions did you explore? (Optional)We will create timezoneBackwardMap from tz_database const timezoneBackwardMap = {
'Africa/Accra': 'Africa/Abidjan',
'Africa/Addis_Ababa': 'Africa/Nairobi',
.....
}; At function getUserTimezone if timezone not exits on TIMEZONES.ts we will get backward link from timezoneBackwardMap const getUserTimezone = (currentUserPersonalDetails) => {
const timezone = lodashGet(currentUserPersonalDetails, 'timezone', CONST.DEFAULT_TIME_ZONE);
if(TIMEZONES.includes(timezone)) {
return timezone;
}
return timezoneBackwardMap[timezone]
}; Then At function updateAutomaticTimezone also check if timezone not exits on TIMEZONES.ts we will get backward link from timezoneBackwardMap const parameters: UpdateAutomaticTimezoneParams = {
timezone: TIMEZONES.includes(timezone.selected) ? JSON.stringify(timezone) : JSON.stringify({ selected: timezoneBackwardMap[timezone.selected], automatic: timezone.automatic }),
}; |
Hi @ntdiary From my proposal we don't need to depend on blockers because the issue #27392 handle for |
@tienifr At TimezoneSelectPage the list of timezone imports direct from TIMEZONES.js and the timezoneOptions for selection list only parse from imported timezones without
My alternative proposal may be able to resolve your issue |
@ntdiary proposals for you here! |
Reviewing now. : ) |
@hayata-suenaga this is waiting on your review: #27927 (comment) |
📣 @ntdiary 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
sorry for the delay in assignment |
@ntdiary, @NicMendonca, @hayata-suenaga, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick! |
the draft PR is up ⬆️ |
The proposal for this issue has two parts: the first part is to use polyfill to prevent crash which would be fixed via #27392. The mentioned PR above is to fix it. Also, as suggested by C+, let's HOLD this to see if the polyfill approach actually works. |
This issue has not been updated in over 15 days. @ntdiary, @NicMendonca, @hayata-suenaga, @tienifr eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@tienifr could you check if the issue was fixed by the other PR? |
That PR was reverted due to crash on macOS Sonoma |
Then should we proceed with the proposed solution? |
Actually, I think we can close as #27392 should cover this issue as well. |
@ntdiary, @NicMendonca, @hayata-suenaga, @tienifr, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Pre-condition: change device time zone to India
Go to https://staging.new.expensify.com/
Tap profile icon
Tap profile
Tap timezone
Toggle on "automatically determine your location" and note Asia/Calcutta is displayed
Toggle off "automatically determine your location"
Tap Asia/Calcutta to note selected option not shown with tick mark on top
Enter Asia
Scroll down to find Asia/Calcutta, then Asia/Kolkata
Expected Result:
When user taps Asia/Calcutta, the option Asia/Calcutta with tick mark should be displayed inside on top. Both automatically determine location and time zone options must show same spelling and not Calcutta/Kolkata and tapping on it, inside the same timezone option must be displayed with tick mark on top.
Actual Result:
When user taps Asia/Calcutta, the option Asia/Calcutta with tick mark is not found on top. When user enters Asia in search and scroll down, the option Asia/Calcutta with tick mark not found, but shown Asia/Kolkata , and that also without tick mark.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.72-6
Reproducible in staging?: Y
Reproducible in production?: Y
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
Notes/Photos/Videos: Any additional supporting documentation
Bug6208333_timw.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: