Skip to content
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 14322] [$1000] Selecting a new date on the date picker and then clicking on CANCEL doesn’t show the green border #15080

Closed
1 task
kavimuru opened this issue Feb 11, 2023 · 23 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Feb 11, 2023

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. Open app > Go to Settings > Go to Personal Information.
  2. Go to Date
  3. Click on date field to select a new date
  4. Select a new date and cancel it
  5. Result: You can see the green border or focus doesn’t appear on the date field
  6. Repeat the same process on MWEB CHROME and see that the date field is highlighted or focused in green after clicking on the cancel button just after when you select a new date. Thus, there should be consistency in both platforms.

Expected Result:

Cancelling a new chosen date on ANDROID should also focus on the date field with a green border in the same way how WEB CHROME does it. Consistency should be maintained.

Actual Result:

Cancelling a new chosen date on ANDROID doesn’t focus on the date field with a green border.

Workaround:

unknown

Platforms:

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

  • Android / native

Version Number: 1.2.70-1
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:

border.mp4
az_recorder_20230210_224956.2.mp4

Expensify/Expensify Issue URL:
Issue reported by: @avi-shek-jha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1676008585054109

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01359a690b085f5180
  • Upwork Job ID: 1625358634084769792
  • Last Price Increase: 2023-02-14
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 11, 2023
@melvin-bot melvin-bot bot locked and limited conversation to collaborators Feb 11, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Feb 11, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot melvin-bot bot added the Overdue label Feb 13, 2023
@kadiealexander
Copy link
Contributor

kadiealexander commented Feb 14, 2023

I was able to reproduce this:

2023-02-14_17-40-47.mp4

I also noticed it happens in other areas of the app:

2023-02-14_17-49-23.mp4

@melvin-bot melvin-bot bot removed the Overdue label Feb 14, 2023
@kadiealexander kadiealexander added the External Added to denote the issue can be worked on by a contributor label Feb 14, 2023
@melvin-bot melvin-bot bot unlocked this conversation Feb 14, 2023
@melvin-bot melvin-bot bot changed the title Selecting a new date on the date picker and then clicking on CANCEL doesn’t show the green border [$1000] Selecting a new date on the date picker and then clicking on CANCEL doesn’t show the green border Feb 14, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~01359a690b085f5180

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 14, 2023
@MelvinBot
Copy link

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

@bernhardoj
Copy link
Contributor

bernhardoj commented Feb 14, 2023

Proposal

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

The focused (green) border of the date picker field does not show after we close the datepicker dialog on native.

What is the root cause of that problem?

Currently, our date picker the text input editable to false. A text input that is not editable can't receive a focus event (ref). But why the border is showing when we click it? That's because we set the border style based on the visibility of the date picker dialog.

textInputContainerStyles={this.state.isPickerVisible ? [styles.borderColorFocus] : []}

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

We should call this.onFocus directly inside BaseTextInput onPress function if the input is not editable. Else, we can go with the input focus function.

@eVoloshchak
Copy link
Contributor

I think we might put this on HOLD for the datepicker redesign

@neil-marcellini
Copy link
Contributor

I agree, let's hold this one.

@neil-marcellini neil-marcellini changed the title [$1000] Selecting a new date on the date picker and then clicking on CANCEL doesn’t show the green border [HOLD 14322] [$1000] Selecting a new date on the date picker and then clicking on CANCEL doesn’t show the green border Feb 14, 2023
@kadiealexander kadiealexander added Weekly KSv2 and removed Daily KSv2 labels Feb 14, 2023
@kadiealexander
Copy link
Contributor

Sounds good! Moving to weekly while this is on hold.

@melvin-bot melvin-bot bot added the Overdue label Feb 22, 2023
@neil-marcellini
Copy link
Contributor

Still holding

@melvin-bot melvin-bot bot removed the Overdue label Feb 23, 2023
@melvin-bot melvin-bot bot added the Overdue label Mar 3, 2023
@neil-marcellini
Copy link
Contributor

^

@melvin-bot melvin-bot bot removed the Overdue label Mar 4, 2023
@melvin-bot melvin-bot bot added the Overdue label Mar 13, 2023
@kadiealexander
Copy link
Contributor

Still on hold

@melvin-bot melvin-bot bot removed the Overdue label Mar 14, 2023
@melvin-bot melvin-bot bot added the Overdue label Mar 22, 2023
@neil-marcellini
Copy link
Contributor

Still holding, apparently #14322 is almost done.

@melvin-bot melvin-bot bot removed the Overdue label Mar 22, 2023
@s77rt
Copy link
Contributor

s77rt commented Mar 22, 2023

@neil-marcellini The related PR has been merged and deployed already. I think we can open this issue again, although don't think the issue would still be reproducible.

@neil-marcellini
Copy link
Contributor

@kadiealexander or @eVoloshchak would you please see if we can still reproduce the issue on Android staging if you have an android device? Once the PR for #14322 is deployed to production I can test it with Browserstack.

@eVoloshchak
Copy link
Contributor

I have an android device, will test in a couple of hours

@eVoloshchak
Copy link
Contributor

You can't click 'cancel' anymore, but after selecting the date picker doesn't have the green border on Android. While on mWeb chrome it does. So the issue is still there, not when you press 'cancel', but when you select a date

Screen_Recording_20230323-235512_Chrome.mp4

@s77rt
Copy link
Contributor

s77rt commented Mar 23, 2023

@eVoloshchak Can you please test the mWeb on staging? The PR has been only deployed to staging.

@eVoloshchak
Copy link
Contributor

eVoloshchak commented Mar 23, 2023

My bad, the behavior is consistent with mWeb also, thanks @s77rt
Can't reproduce the issue

@neil-marcellini
Copy link
Contributor

Ok, unless we need to pay someone for reporting I think we can close this. @kadiealexander do you know if we pay a reporting bonus if another issue / feature ends up fixing the bug?

@kadiealexander
Copy link
Contributor

kadiealexander commented Mar 30, 2023

According to our guidelines:

If the bug is fixed by a PR that is not associated with your bug report, then you will not be eligible for the corresponding compensation unless you can find the PR that fixed it and prove your bug report came first.

Since the issue for the PR that fixed this came before this bug report, no reporting bonus is required here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants