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 for payment 2023-04-07] [$1000] Workspace - Default currency field doesn't look good if the field is disabled #15877

Closed
2 of 6 tasks
kbecciv opened this issue Mar 11, 2023 · 53 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Waiting for copy User facing verbiage needs polishing

Comments

@kbecciv
Copy link

kbecciv commented Mar 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. Launch the app
  2. Log in with expensifail account which has Control policy ( you can use appluasetester+0901abb@applause.expensifail.com)
  3. Go to Settings - Workspace - Tap on Avatar
  4. Check Workspace Settings

Expected Result:

Default currency field looks good if the field is disabled.

Actual Result:

Default currency field doesn't look good if the field is disabled

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.2.82.3

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0113fa5fec5ef1c2ae
  • Upwork Job ID: 1635970689731641344
  • Last Price Increase: 2023-03-22
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 11, 2023
@melvin-bot melvin-bot bot locked and limited conversation to collaborators Mar 11, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Mar 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

@twisterdotcom
Copy link
Contributor

@kbecciv what do you mean by "looks good" here?

@kbecciv
Copy link
Author

kbecciv commented Mar 13, 2023

@twisterdotcom User should not seen greenish color under Default currency field, or it should completely cover the surface without gap.

image

@melvin-bot melvin-bot bot added the Overdue label Mar 14, 2023
@twisterdotcom
Copy link
Contributor

Okay here it is. It can only be disabled when the workspace as a VBA added:

2023-03-15_07-44-38 (1)

Not sure what @Expensify/design would prefer here. Making External

@melvin-bot melvin-bot bot removed the Overdue label Mar 15, 2023
@twisterdotcom twisterdotcom added the External Added to denote the issue can be worked on by a contributor label Mar 15, 2023
@melvin-bot melvin-bot bot unlocked this conversation Mar 15, 2023
@melvin-bot melvin-bot bot changed the title Workspace - Default currency field doesn't look good if the field is disabled [$1000] Workspace - Default currency field doesn't look good if the field is disabled Mar 15, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~0113fa5fec5ef1c2ae

@MelvinBot
Copy link

Current assignee @twisterdotcom 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 - @rushatgabhane (External)

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

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

@allroundexperts
Copy link
Contributor

allroundexperts commented Mar 15, 2023

Proposal

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

The disabled state picker looks ugly.

What is the root cause of that problem?

As explained above, we're setting a highlight colour on disabled picker and adding a border as well.

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

As pointed by @kbecciv, we can either remove the border by adding the following here:

this.props.isDisabled && {borderBottomWidth: 0},

Or remove the background colour altogether by removing this line. We can keep the border or remove it depending on the requirement.

If there is any other change, @shawnborton can mention it.

Note: These changes can be applied to Native platforms only if we don't want these on desktop and web. But the idea will remain the same.

Result
Without border:
Screenshot 2023-03-15 at 5 03 41 PM

Without border and highlight colour:
Screenshot 2023-03-15 at 5 04 12 PM

With border and without highlight colour:
Screenshot 2023-03-15 at 5 04 37 PM

What alternative solutions did you explore? (Optional)

None

@Pujan92
Copy link
Contributor

Pujan92 commented Mar 15, 2023

Proposal

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

Inconsistent background color for Disabled RNPickerSelect

What is the root cause of that problem?

For disabled RNPickerSelect, we are applying the green bg to parent View here which makes the look inconsistent.

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

Remove the disabled style from the RNPickerSelect's parent View from here which will help to remove the incorrect BG.

this.props.isDisabled && styles.inputDisabled,

The border is valid and consistent with other inputs.

@melvin-bot melvin-bot bot added the Overdue label Mar 17, 2023
@cristipaval
Copy link
Contributor

I think this one is delayed due to ECX.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 17, 2023
@cristipaval
Copy link
Contributor

Melvin? Are you ok? Just remove it, don't add it again.

@melvin-bot melvin-bot bot removed the Overdue label Mar 20, 2023
@shawnborton
Copy link
Contributor

If the field can't be edited, we should just use our standard way of display this kind of input content in a "read-only" fashion. For example, how we display things in a user profile:
image

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Mar 31, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Workspace - Default currency field doesn't look good if the field is disabled [HOLD for payment 2023-04-07] [$1000] Workspace - Default currency field doesn't look good if the field is disabled Mar 31, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 31, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Mar 31, 2023

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

If no regressions arise, payment will be issued on 2023-04-07. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@MelvinBot
Copy link

MelvinBot commented Mar 31, 2023

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:

  • [@rushatgabhane / @cristipaval] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane / @cristipaval] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@rushatgabhane / @cristipaval] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@JmillsExpensify / @twisterdotcom] Determine if we should create a regression test for this bug.
  • [@rushatgabhane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@JmillsExpensify / @twisterdotcom] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Apr 7, 2023
@MelvinBot
Copy link

@JmillsExpensify, @twisterdotcom, @cristipaval, @rushatgabhane, @allroundexperts Whoops! This issue is 2 days overdue. Let's get this updated quick!

@MelvinBot
Copy link

@JmillsExpensify, @twisterdotcom, @cristipaval, @rushatgabhane, @allroundexperts Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@cristipaval
Copy link
Contributor

cristipaval commented Apr 10, 2023

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:

  • [@rushatgabhane / @cristipaval] The PR that introduced the bug has been identified. Link to the PR:
  • [@rushatgabhane / @cristipaval] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@rushatgabhane / @cristipaval] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

@rushatgabhane Could you have a look at these?

@melvin-bot melvin-bot bot removed the Overdue label Apr 10, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Apr 11, 2023

@cristipaval this is a feature request to add a disabled style and a hint to Picker component.

I believe BZ checklist isn't applicable here.

@cristipaval
Copy link
Contributor

Thanks for checking @rushatgabhane ! We're good then.

@melvin-bot melvin-bot bot added the Overdue label Apr 14, 2023
@MelvinBot
Copy link

@JmillsExpensify, @twisterdotcom, @cristipaval, @rushatgabhane, @allroundexperts Eep! 4 days overdue now. Issues have feelings too...

@cristipaval
Copy link
Contributor

I think this is on you, @twisterdotcom. Payments are the only leftovers.

@melvin-bot melvin-bot bot removed the Overdue label Apr 17, 2023
@twisterdotcom
Copy link
Contributor

Sent invites for payment to you @rushatgabhane and @allroundexperts.

@twisterdotcom
Copy link
Contributor

@rushatgabhane and @JmillsExpensify Can this regress now, it's a feature. I suppose we could ensure that the currency field can't be edited once a VBA is added, and it would be fairly easy to add.

@JmillsExpensify
Copy link

I thought we agreed for these small cosmetic things that we wouldn't create a regression?

@rushatgabhane
Copy link
Member

rushatgabhane commented Apr 17, 2023

I suppose we could ensure that the currency field can't be edited once a VBA is added, and it would be fairly easy to add.

im pretty sure we already have a regression test for this.
because i have seen issues that were created whenever it broke.

@kbecciv maybe can confirm if there's a regression test for "currency field shouldn't be editable if a workspace has VBA linked"

@JmillsExpensify
Copy link

I'll check quickly and see if I can find it.

@JmillsExpensify
Copy link

I didn't see it in the Workspace folder of tests, so we'll wait for Applause to confirm.

@rushatgabhane
Copy link
Member

rushatgabhane commented Apr 17, 2023

Okay then we should definitely add regression steps
how about?

  1. Login
  2. Create a new workplace (if you don't have one already)
  3. Connect a bank account to the workspace (if you don't have one already)
  4. Go to Workspace Settings
  5. Verify that the default currency can't be edited

@twisterdotcom
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Waiting for copy User facing verbiage needs polishing
Projects
None yet
Development

No branches or pull requests

9 participants