-
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
The form error message isn't showing up correctly in spanish - reported by @Tushu17 #11410
Comments
Triggered auto assignment to @sonialiap ( |
Proposalwe need to keep Text component as a parent in App/src/components/FormAlertWrapper.js Lines 66 to 80 in 3e03f08
- <>
<Text style={styles.mutedTextLabel}>
{`${props.translate('common.please')} `}
- </Text>
<TextLink
style={styles.label}
onPress={props.onFixTheErrorsPressed}
>
{props.translate('common.fixTheErrors')}
</TextLink>
- <Text style={styles.mutedTextLabel}>
{` ${props.translate('common.inTheFormBeforeContinuing')}.`}
</Text>
- </> OR - <>
+ <Text>
<Text style={styles.mutedTextLabel}>
{`${props.translate('common.please')} `}
</Text>
<TextLink
style={styles.label}
onPress={props.onFixTheErrorsPressed}
>
{props.translate('common.fixTheErrors')}
</TextLink>
<Text style={styles.mutedTextLabel}>
{` ${props.translate('common.inTheFormBeforeContinuing')}.`}
</Text>
- </>
+ </Text> |
Proposal I would go with replacing the + <View style={[styles.dInline, styles.w100]}>
- <>
<Text style={styles.mutedTextLabel}>
{`${props.translate('common.please')} `}
</Text>
<TextLink
style={styles.label}
onPress={props.onFixTheErrorsPressed}
>
{props.translate('common.fixTheErrors')}
</TextLink>
<Text style={styles.mutedTextLabel}>
{` ${props.translate('common.inTheFormBeforeContinuing')}.`}
</Text>
+ </View>
- <> Because based on my experience, having nested |
Triggered auto assignment to @bondydaa ( |
hmm I've had a few style/design things come up on various views (this is the other one #11148) cc @Expensify/design can you take a look and confirm how the spacing should look for Brick Road errors on this and #11148 Then we can take care of all of these in one go instead of playing wack-a-mole with styles on one view that then breaks another view that then breaks another view. |
Triggered auto assignment to @shawnborton ( |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
Well I think two things are happening here:
|
@shawnborton Yes, because the blue link is using Also for the second point do you mean replacing the red exclamation mark with the red brick road? That would mean the replacing the following line in App/src/components/FormAlertWrapper.js Line 59 in 6748e8a
- <Icon src={Expensicons.Exclamation} fill={colors.red} />
+ <Icon
+ src={Expensicons.DotIndicator}
+ fill={colors.red}
+ height={variables.iconSizeSmall}
+ width={variables.iconSizeSmall}
+ /> |
Instead of replacing |
I can do that if that's what is expected, but
We can either change the whole component with all the above points or just put the Red indicator like previous proposal. |
hmmmm besides the points made above, the behavior also feels quite different for both components, so not sure if unifying them is good. |
Got it. I'm mostly just saying that the exact style/format of the red dot indicator with message should be used here, so maybe there is a way to DRY it up. Either way works for me though, but from a design standpoint, they should look the same. |
So what is expected here @iwiznia @shawnborton ? Are we good with the red dot indicator here #11410 (comment)? |
I think so |
I think we should refactor the |
If we can do that without many hacks, sounds good. The main problem I see is that both use different formats (one supports just one message and apparently html (?) and the other supports multiple ones and no html. |
I believe it can be done without hacks because we can use props to tell about what type of message
IIRC |
Ionatan has been OOO for most of this week so will wait for him to get back to help us decide how we want to approach this. |
If we can reuse, then sounds better, but not exactly sure I follow the LabelComponent proposal |
Not overdue, but what's the latest update here? |
@shawnborton I think #11908 will fix this issue automatically so I'd rather say put on HOLD until #12098 is merged. |
That works for me! Will comment over there shortly. |
should we just close this out then since it's covered by #11908? i'm just going to do that, feel free to reopen if necessary. |
Reporting compensation is pending here. |
I'll handle that, one second. |
Upwork issue is here for reporting: https://www.upwork.com/jobs/~01fce977f1f5d66b7a. Please apply and I'll issue payment. |
Okay applied, Thanks @JmillsExpensify |
Offer extended via Upwork. |
@JmillsExpensify Thanks, Offer accepted |
Thanks! I issued payment in Upwork, so I'm closing the issue again. |
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:
Error message shouldn't leave any blank space on side.
Actual Result:
It is leaving blank space on side.
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.7-0
Reproducible in staging?: Y
Reproducible in production?: Y
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: @Tushu17
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1663317764966639
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: