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

Fix alignment of hyperlink in ValidateStep message within VBA flow #5319

Closed
kevinksullivan opened this issue Sep 17, 2021 · 11 comments
Closed
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.

Comments

@kevinksullivan
Copy link
Contributor

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


Action Performed:

  1. Create workspace
  2. Go through VBA flow with test credentials in (1)
  3. Arrive at ValidateStep explaining there is a message from concierge with next steps

Expected Result:

The here hyperlink should be aligned with the other text in the rightpane.

Actual Result:

The here hyperlink it misaligned.

Platform:

  • iOS
  • Android

Reproducible in staging?: Yes
Reproducible in production?: Yes

Notes/Photos/Videos:

image

Expensify/Expensify Issue URL:

View all open jobs on GitHub

@kevinksullivan kevinksullivan added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Sep 17, 2021
@MelvinBot
Copy link

Triggered auto assignment to @jboniface (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Sep 17, 2021
@jboniface jboniface added Improvement Item broken or needs improvement. Engineering labels Sep 17, 2021
@MelvinBot
Copy link

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

@jboniface jboniface removed their assignment Sep 17, 2021
@PrashantMangukiya
Copy link
Contributor

PrashantMangukiya commented Sep 18, 2021

If considered as external, this could be solution:

We have to change line 232-234 from below code:

<Text style={[styles.mh5, styles.mb5, styles.flex1]}>
{this.props.translate('validationStep.reviewingInfo')}
<TextLink onPress={this.navigateToConcierge}>
{this.props.translate('common.here')}
</TextLink>
{this.props.translate('validationStep.forNextSteps')}
</Text>


Method 1: Adjust iOS/Android bottom margin. Not accurate. (I will not suggest) Other serious problem is, If link text goes to multiline then link text will mangle with other text. So I will not suggest to go with this at moment.

<TextLink onPress={this.navigateToConcierge} style={[{marginBottom: Platform.OS === CONST.PLATFORM.IOS ? -3 : -4}]}>
    {this.props.translate('common.here')}
</TextLink>

As per guideline inline style not preferred, so we can create style within src/styles/styles.js and refactor as under:

textNormalSupporting: os => ({
    marginBottom: os === CONST.PLATFORM.IOS ? -3 : -4,
}),

<TextLink onPress={this.navigateToConcierge}  style={[styles.textNormalSupporting(Platform.OS)]} >
    {this.props.translate('common.here')}
</TextLink>

Method 2: Change <TextLink> to <Text> (Suggested)
Aligned proper with other text in all platform. One minus point is mouse over (hover) color change effect does not show in web and desktop.

<Text onPress={this.navigateToConcierge} style={styles.link} accessible accessibilityLabel={this.props.translate('common.here')}>
    {this.props.translate('common.here')}
</Text>

Below are Screenshots having Method 1 and Method 2 written side by side

iOS

Simulator Screen Shot - iPhone 12 - 2021-09-18 at 18 18 33

Android

Screenshot_1631969317

Web

Screenshot 2021-09-18 at 6 18 57 PM

Mobile Web

Simulator Screen Shot - iPhone 12 - 2021-09-18 at 18 20 08

Desktop

Screenshot 2021-09-18 at 6 18 44 PM

@MelvinBot
Copy link

@jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@isagoico
Copy link

This is also reproducible in other hyperlinks around the app (Only on Android)

Android - Links - Links are not aligned with text.

Action Performed:

  1. Launch the app
  2. Log in with any account
  3. Go to Concierge

Expected Result:

Links are rendered on the same line as text.

Actual Result:

Links are not aligned with text. This can bee seen in any hyperlinked text around the app.

Workaround:

None need. Visual issue.

Platform:

Where is this issue occurring?

  • Android

Version Number: 1.1.0

Reproducible in staging?: yes
Reproducible in production?: yes

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

Notes/Photos/Videos: Any additional supporting documentation

image

Expensify/Expensify Issue URL:

Issue reported by: Applause
Slack conversation:

View all open jobs on GitHub

@jasperhuangg
Copy link
Contributor

Hey! Sorry, plate super full lately with User-Created Policy Rooms and midterm season fast approaching.

This issue looks totally doable by an external contributor. Specifically, I like @PrashantMangukiya's second solution 👍

@MelvinBot MelvinBot removed the Overdue label Sep 21, 2021
@jasperhuangg jasperhuangg added the External Added to denote the issue can be worked on by a contributor label Sep 21, 2021
@MelvinBot
Copy link

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

@jasperhuangg
Copy link
Contributor

@puneetlath Please let whoever is working on this know to request me for review!

@MelvinBot
Copy link

@puneetlath, @jasperhuangg Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@jasperhuangg
Copy link
Contributor

@puneetlath Friendly bump!

@MelvinBot MelvinBot removed the Overdue label Sep 27, 2021
@MitchExpensify
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests

8 participants