-
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 BugZero Checklist] [$1000] current currency is not highlighted and not marked with ✔️ #17372
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
@NicMendonca please click the currency marked with yellow square in your image, it will open Select currency screen. On that screen CA is not highlighted with bold and marked with green check mark. So in this issue we are talking about it. You can go to Timezone, Pronouns page to see the exact behaviour what should be expected result for this issue. Here is quick video I recorded to make it more clear. So this issue should not be closed. Currency.mov |
@NicMendonca I too think this issue is about the list itself, not the label |
ProposalPosting proposal early as per new guidelines for the eventual review Please re-state the problem that we are trying to solve in this issue.In this issue, we can notice that on the What is the root cause of that problem?Unlike other pages, we do not have a In order for an item to be checkmarked, when we are creating the objects for the options that will be displayed on the What changes do you think we should make in order to solve the problem?To solve this issue, we need to account for the selected currency that is chosen by the user by default and set the custom icon to a green checkmark and apply a bold style to that currency. In order to do that, we will have to perform the following additions:
What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.Current currency is not highlighted and not marked with checkmark. What is the root cause of that problem?Within App/src/pages/iou/IOUCurrencySelection.js Lines 77 to 83 in 42bea4b
We can see that here there is not any condition to highlight the selected currency. This is the root cause of the problem. What changes do you think we should make in order to solve the problem?We have to update // Add this const
const greenCheckmark = {src: Expensicons.Checkmark, color: themeColors.success};
getCurrencyOptions() {
return _.map(this.props.currencyList, (currencyInfo, currencyCode) => {
const isCurrentCurrency = currencyCode === this.props.iou.selectedCurrencyCode;
return {
text: `${currencyCode} - ${CurrencySymbolUtils.getLocalizedCurrencySymbol(this.props.preferredLocale, currencyCode)}`,
currencyCode,
keyForList: currencyCode,
customIcon: isCurrentCurrency ? greenCheckmark : undefined,
boldStyle: isCurrentCurrency,
};
});
} We have to import export default compose(
....
withOnyx({
...
iou: {key: ONYXKEYS.IOU}, // ADD THIS LINE
}),
....
)(IOUCurrencySelection); It will solve the issue and works as expected as shown in results video. What alternative solutions did you explore? (Optional)None ResultsWeb.mov |
bump @NicMendonca |
Hmmm, I still think this is a stylistic preference and not a bug. Timezone and Pronouns are setting you set in your profile, and the currency you use for sending/ requesting money is ad-hoc but seems to be some passion about it here 😊 |
Triggered auto assignment to @iwiznia ( |
Job added to Upwork: https://www.upwork.com/jobs/~015d6db25e1b8518af |
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 - @rushatgabhane ( |
Current assignee @iwiznia is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Curret currency is not highlighted and not marked with checkmark icon What is the root cause of that problem?To highlight and mark option that is selected, each option need to has App/src/pages/settings/Profile/TimezoneSelectPage.js Lines 83 to 94 in 32b1e01
App/src/pages/iou/IOUCurrencySelection.js Lines 77 to 83 in 32b1e01
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)NA ResultScreencast.from.14-04-2023.16.53.18.webm |
@iwiznia, @NicMendonca, @rushatgabhane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@rushatgabhane any feedback on this proposal? |
Don't forget to apply to the job: https://www.upwork.com/jobs/~015d6db25e1b8518af |
@NicMendonca applied, Thanks! |
applied with account "Satish Gabhane" - https://www.upwork.com/freelancers/~01212e8255b02ae924 all context: https://expensify.slack.com/archives/C02NK2DQWUX/p1683614947522329 |
@mananjadhav paid! |
@NicMendonca it's @gadhiyamanan not mananjadhav 😅 |
@mananjadhav you did not get paid lol @gadhiyamanan I'm sorry!! |
accepted offer |
@rushatgabhane thanks! Paid! @dukenv0307 just need you to accept the offer - thanks! |
@NicMendonca accepted, thank you! |
Everyone has been paid! bump @rushatgabhane on this checklist |
@iwiznia, @NicMendonca, @rushatgabhane, @dukenv0307 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Going OOO until June 5th so assigning a buddy to this GH to watch over the checklist. Bump @rushatgabhane on the checklist! #17372 (comment) |
Triggered auto assignment to @sonialiap ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
@rushatgabhane checklist please :) #17372 (comment) |
|
Hi @sonialiap, I completed the checklist. We can now close this issue. |
Thanks @rushatgabhane ! |
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:
Expected Result:
current currency should be highlighted and marked with ✔️ (same as Timezone, Pronouns)
Actual Result:
current currency not highlighted
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.2.99-4
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
Recording.218.mp4
Screen.Recording.2023-04-12.at.4.57.17.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681298924546589
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: