App icon indicating copy to clipboard operation
App copied to clipboard

Red field outlines are not displayed when entering incorrect information

Open isagoico opened this issue 5 years ago • 22 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Issue is failing https://github.com/Expensify/App/pull/4431

Action Performed:

  1. Navigate to /bank-account/company
  2. Enter incorrect information in the text fields.
  3. Submit the form.

Expected Result:

When trying to submit the form, the incorrect field should be highlighted in red.

Actual Result:

No red outline is seen in the incorrect fields after trying to submit the form.

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.0.86-2

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:

image

https://user-images.githubusercontent.com/44479856/129938592-f082c5cb-e40c-46dd-8dd1-25f281fd5438.mp4

Expensify/Expensify Issue URL:

View all open jobs on GitHub

isagoico avatar Aug 18 '21 16:08 isagoico

Triggered auto assignment to @aldo-expensify (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Aug 18 '21 16:08 MelvinBot

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

OSBotify avatar Aug 18 '21 16:08 OSBotify

Working on this...

aldo-expensify avatar Aug 18 '21 17:08 aldo-expensify

I can see in the render method of <CompanyStep> that we pass down the error text like <ExpensiTextInput errorText={error} ...>, then this eventually uses <BaseExpensiTextInput> to render the input. <BaseExpensiTextInput> receives the errorText with the error, but this component doesn't handle this prop.

I saw that there is another component that actually does something with this prop: <TextInputWithLabel>

aldo-expensify avatar Aug 18 '21 17:08 aldo-expensify

PR up, I tested in desktop.. seems to work, I'm testing in other platforms now.

aldo-expensify avatar Aug 18 '21 18:08 aldo-expensify

How can we get to this view from the Desktop/Mobile native versions? Follow flow VBA flow: Add Bank account, then company.

aldo-expensify avatar Aug 18 '21 18:08 aldo-expensify

@aldo-expensify should this have closed?

kevinksullivan avatar Aug 23 '21 16:08 kevinksullivan

How can we get to this view from the Desktop/Mobile native versions? Follow flow VBA flow: Add Bank account, then company.

You should be able to get to this step on mobile/desktop using the same information in (3) of this SO

https://stackoverflow.com/c/expensify/questions/342

kevinksullivan avatar Aug 23 '21 17:08 kevinksullivan

@aldo-expensify should this have closed?

Hey @kevinksullivan , I think this should be closed, the problem described in this issue was fixed in the PR: https://github.com/Expensify/App/issues/4748

I would suggest opening a new issue/pr if we wanted to work on the show all error messages at the same time stuff.

aldo-expensify avatar Aug 23 '21 17:08 aldo-expensify

but the relevant PR is not deployed, correct @aldo-expensify ?

https://github.com/Expensify/App/pull/4741

kevinksullivan avatar Aug 23 '21 18:08 kevinksullivan

but the relevant PR is not deployed, correct @aldo-expensify ?

#4741

oh, it has not been deployed , you are right

aldo-expensify avatar Aug 23 '21 18:08 aldo-expensify

Reopening this since we found an issue when retesting the fix https://github.com/Expensify/App/pull/4741#issuecomment-904075947

isagoico avatar Aug 23 '21 23:08 isagoico

Error message is not displayed for all the fields if multiple fields have incorrect information entered

Expected Result:

The fields which are all have incorrect information should have error message with red border

Actual Result:

Only for the zip code it displays error message, After the zip code field is fixed and clicking Submit next field throws error message. Also there is no error message for City, phone number and Company Address for incorrect information

Actions Performed:

  1. Navigate to /bank-account/company
  2. Enter incorrect information in multiple fields (Zip code, phone number, Company Website, Tax ID Number etc
  3. Submit the form.

Platform:

Web ✔️

Build:

1.0.86-8

Notes/Images/Video:

https://user-images.githubusercontent.com/43996225/130534885-a57f12cc-8a5b-4b7b-86c0-87c295cd81fc.mp4

87

kavimuru avatar Aug 24 '21 00:08 kavimuru

@aldo-expensify has brought to our attention that the multiple errors should not be expected yet. We are still implementing it so we can remove the deploy blocker label.

marcaaron avatar Aug 24 '21 00:08 marcaaron

I'll investigate what's the problem with the android version, it is not working there, right? Or at least that is what I understand from this: https://github.com/Expensify/App/pull/4741#issuecomment-904075947

aldo-expensify avatar Aug 24 '21 00:08 aldo-expensify

Ok I think this is a blocker actually after talking to @aldo-expensify. 😂

Android is failing for some reason so we must figure that out first ? https://github.com/Expensify/App/runs/3403823191?check_suite_focus=true#step:12:1483

This comment is not a blocker and is being handled in https://github.com/Expensify/Expensify/issues/174749 https://github.com/Expensify/App/issues/4730#issuecomment-904217825

marcaaron avatar Aug 24 '21 00:08 marcaaron

I tested this in an android emulator and found this incorrect behaviour:

https://user-images.githubusercontent.com/87341702/130544242-8db867f4-d0c5-4507-986a-dbd91fceda30.mov

Basically, the value of the field with the error disappears, but once we focus it again, the value appears again. Would be good to know if this happens in a real android device.

aldo-expensify avatar Aug 24 '21 02:08 aldo-expensify

Yes that is weird. The value of this field should not disappear at all, but is it a regression?

marcaaron avatar Aug 24 '21 02:08 marcaaron

Yes that is weird. The value of this field should not disappear at all, but is it a regression?

I would say it is a regression. In the production app we don't have this red outline with the red message under the field, you just have the growl, and the value of the field doesn't disappear

I just tried it on an android device, and the behaviour is the same (the value disappearing until I touch the field).

aldo-expensify avatar Aug 24 '21 19:08 aldo-expensify

There seem to be something with the size of the actual text input, I can scroll inside the "input" and then I see the value.

aldo-expensify avatar Aug 24 '21 20:08 aldo-expensify