Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.49k stars 2.84k forks source link

[HOLD for payment 2023-04-24] [$1000] Done button increases font size on click #17180

Closed kavimuru closed 1 year ago

kavimuru commented 1 year ago

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:

  1. Go to Settings -> Click profile picture
  2. Click Personal details -> Home address
  3. Click on country to open picker
  4. Click on Done button

Expected Result:

Done button text size should stay same when clicked

Actual Result:

Done button font size changes on click

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Version Number: Reproducible in staging?: needs reproduction Reproducible in production?: needs reproduction 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

https://user-images.githubusercontent.com/43996225/230700569-dc01f1cb-5650-46da-af8e-52bd291bae82.MP4

Expensify/Expensify Issue URL: Issue reported by: @dinaljivani Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680905677209739

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fb9a225908cf716a
  • Upwork Job ID: 1645622506297696256
  • Last Price Increase: 2023-04-11
MelvinBot commented 1 year ago

Triggered auto assignment to @arielgreen (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

MelvinBot commented 1 year ago

Bug0 Triage Checklist (Main S/O)

arielgreen commented 1 year ago

I was able to reproduce using the described steps.

MelvinBot commented 1 year ago

Job added to Upwork: https://www.upwork.com/jobs/~01fb9a225908cf716a

MelvinBot commented 1 year ago

Current assignee @arielgreen is eligible for the External assigner, not assigning anyone new.

MelvinBot commented 1 year ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External)

allroundexperts commented 1 year ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

Done button increases font size on click

What is the root cause of that problem?

The root cause is that the styles defined in react-native-picker-select library for the done button in depressed state has different font size than the one in non depressed state. This can be seen here.

What changes do you think we should make in order to solve the problem?

We need to add the following styles to our implementation of react-native-picker-select here and here.

doneDepressed: {
    fontSize: defaultPickerStyles.done.fontSize,
}

The defaultPickerStyles can be imported using:

import {defaultStyles  as  defaultPickerStyles} from  'react-native-picker-select/src/styles';

This will fix the issue but if required, we can customise this further to use Expensify styles instead of the default ones defined in the library.

What alternative solutions did you explore? (Optional)

None

MelvinBot commented 1 year ago

Triggered auto assignment to @luacmartins (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

etechall commented 1 year ago

Issue is in the Defined style, Can be corrected through done.fontSize by using Expensify Style.

MelvinBot commented 1 year ago

📣 @etechall! 📣

Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.

Screen Shot 2022-11-16 at 4 42 54 PM

Format:

Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
etechall commented 1 year ago

Contributor details Your Expensify account email: admin@snologies.com Upwork Profile Link: https://www.upwork.com/freelancers/~01edeb68c8157883fc

MelvinBot commented 1 year ago

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

hellohublot commented 1 year ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

Done button increases font size on click

What is the root cause of that problem?

defaultStyles.done.fontSize = 17 but defaultStyles.doneDepressed.fontSize = 19, the text is enlarged

What changes do you think we should make in order to solve the problem?

We can clear defaultStyles.doneDepressed.fontSize, It won't clear the defaultStyles.done.fontSize, because it is not in the same style array https://github.com/Expensify/App/blob/3abe7b2f9e38dba42edf406ca1b1e19087f5599d/src/styles/styles.js#L943-L945

+   doneDepressed: {
+       fontSize: undefined
+   },

What alternative solutions did you explore? (Optional)

Not Yet

luacmartins commented 1 year ago

@allroundexperts your proposal looks good and is consistent with how we set other picker styles. Assigning you to the job!

MelvinBot commented 1 year ago

📣 @allroundexperts You have been assigned to this job by @luacmartins! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻 Keep in mind: Code of Conduct | Contributing 📖

MateenAla commented 1 year ago

Hi sir, I want to know if the done button is fixed or not. Please, Let me know.

MelvinBot commented 1 year ago

📣 @MateenAla! 📣

Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.

Screen Shot 2022-11-16 at 4 42 54 PM

Format:

Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
MateenAla commented 1 year ago

Contributor details Your Expensify account email: muteen.alam40@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/~011147135e48f9e95d

MelvinBot commented 1 year ago

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

luacmartins commented 1 year ago

@MateenAla Thanks for the interest in this issue. I already assigned a contributor for this job. However, we have many others issues waiting for proposals

allroundexperts commented 1 year ago

PR created https://github.com/Expensify/App/pull/17314

MelvinBot commented 1 year ago

Reviewing label has been removed, please complete the "BugZero Checklist".

MelvinBot commented 1 year ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.0-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-04-24. :confetti_ball:

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

MelvinBot commented 1 year ago

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:

arielgreen commented 1 year ago

@eVoloshchak do you think we need to create a regression test for this?

eVoloshchak commented 1 year ago

Is it easy to test for this bug?

Yes

Is the bug related to an important user flow? (For example, adding a bank account)

This is purely a visual bug that doesn't prevent user from using the app

Is it an impactful bug?

No, it's a small visual bug that is present on a single platform. Additionally, we will be moving away from the native picker (not sure if that applies to this page, haven't seen the designs).

@arielgreen, all in all, I think the regression test isn't needed, this is a very low-impact bug

I'll finish the first 3 items of the BZ checklist tomorrow

arielgreen commented 1 year ago

@allroundexperts @eVoloshchak @DinalJivani please be sure to apply to the posting on Upwork so I can send payment: https://www.upwork.com/jobs/~01fb9a225908cf716a

eVoloshchak commented 1 year ago
DinalJivani commented 1 year ago

@arielgreen
Applied on Upwork!

allroundexperts commented 1 year ago

@allroundexperts @eVoloshchak @DinalJivani please be sure to apply to the posting on Upwork so I can send payment: https://www.upwork.com/jobs/~01fb9a225908cf716a

@arielgreen Applied.

arielgreen commented 1 year ago

Offers sent, just waiting on acceptance and then ready to issue payments

allroundexperts commented 1 year ago

@arielgreen I think you were supposed to send an offer of 1500 but instead sent 2000. Can you please check?

luacmartins commented 1 year ago

Just waiting on payment. @arielgreen can you check the previous comment please? Seems like the offer amount might be incorrect.

arielgreen commented 1 year ago

@allroundexperts thank you so much for catching that! You are correct. I modified and resent the offer.

@eVoloshchak I did the same thing for your contract as well 😅 Apologies.

luacmartins commented 1 year ago

just waiting on payments

luacmartins commented 1 year ago

Are we still waiting on payment here?

arielgreen commented 1 year ago

Payments have been issued, @luacmartins and @eVoloshchak this can be closed once the checklist is completed.

luacmartins commented 1 year ago

@eVoloshchak would you mind completing the checklist?

eVoloshchak commented 1 year ago

@arielgreen, the last 3 checklist items are here: https://github.com/Expensify/App/issues/17180#issuecomment-1521694473