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 2024-11-05] [$250] Some table rows have > right caret #51053

Closed
8 tasks done
m-natarajan opened this issue Oct 17, 2024 · 19 comments
Closed
8 tasks done
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

Comments

@m-natarajan
Copy link

m-natarajan commented Oct 17, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.50-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1729177128009089

Action Performed:

  1. Open the workspace members page, Expenses page
  2. Open categories and tags pages

Expected Result:

Should not have > at the right

Actual Result:

Right now some table rows use a right caret (>) at the end of the row, whereas others don't.
It's pretty obvious that we can tap any table row, so all of the carets from any table rows should be removed

Workaround:

unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence ![CleanShot 2024-10-17 at 17 03 20@2x](https://github.com/user-attachments/assets/9b5c4cdd-7dd5-4f50-9a7e-8b532a856381) ![CleanShot 2024-10-17 at 17 03 08@2x](https://github.com/user-attachments/assets/a4ebcbe3-4e56-4a33-b1db-d4ac434d54ba) ![CleanShot 2024-10-17 at 17 02 56@2x](https://github.com/user-attachments/assets/a647692d-8bda-4171-80c9-4736b0067d0a)
Recording.668.mp4

CleanShot 2024-10-17 at 16 58 56@2x

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021847349478186381538
  • Upwork Job ID: 1847349478186381538
  • Last Price Increase: 2024-10-18
  • Automatic offers:
    • ChavdaSachin | Contributor | 104524082
Issue OwnerCurrent Issue Owner: @slafortune
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 17, 2024
Copy link

melvin-bot bot commented Oct 17, 2024

Triggered auto assignment to @slafortune (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@daledah
Copy link
Contributor

daledah commented Oct 17, 2024

Proposal

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

Some table rows have >

What is the root cause of that problem?

In some tables we set right element is ListItemRightCaretWithLabel with props shouldShowCaret=true like Distance Rates page here...

rightElement: <ListItemRightCaretWithLabel labelText={value.enabled ? translate('workspace.common.enabled') : translate('workspace.common.disabled')} />,

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

  1. We should add props shouldShowCaret={false} to component ListItemRightCaretWithLabel
rightElement: <ListItemRightCaretWithLabel shouldShowCaret={false} labelText={value.enabled ? translate('workspace.common.enabled') : translate('workspace.common.disabled')} />,
  1. We should delete the right padding because it is redundant. Remove styles.pr8 here

<View style={[styles.flex1, styles.flexRow, styles.justifyContentBetween, styles.pl3, styles.pr8, !canSelectMultiple && styles.m5]}>

Do the same way with categories page, tags page, tax page,...

web

What alternative solutions did you explore? (Optional)

NA

@Nodebrute
Copy link
Contributor

Nodebrute commented Oct 17, 2024

Edited by proposal-police: This proposal was edited at 2024-10-17 19:30:06 UTC.

Proposal

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

Some table rows have > right caret

What is the root cause of that problem?

Feature request

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

We can remove this caret from here. If we want to remove caret from all pages

{shouldShowCaret && (
<View style={[styles.pl2]}>
<Icon
src={Expensicons.ArrowRight}
fill={theme.icon}
/>
</View>
)}

We also don't need this style={styles.flexRow}

Other minor styling can be adjusted in the pR

What alternative solutions did you explore? (Optional)

Instead of using component ListItemRightCaretWithLabel we can only use this in all the places

{!!labelText && <Text style={[styles.alignSelfCenter, styles.textSupporting, styles.pl2, styles.label]}>{labelText}</Text>}

@Nodebrute
Copy link
Contributor

Proposal Updated

@ChavdaSachin
Copy link
Contributor

Proposal

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

Some table rows have > right caret

What is the root cause of that problem?

Default value for shouldShowCaret is true here.

function ListItemRightCaretWithLabel({labelText, shouldShowCaret = true}: ListItemRightCaretWithLabelProps) {

And we pass shouldShowCaret={false} on some pages while don't pass prop on few other pages.

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

Option 1: If we want to keep this component for future use.
Let's change default value to false here and remove shouldShowCaret prop from following pages.



Option 2: If we don't want to keep this component for future use then rename and redesign it.

function ListItemWithLabel({labelText}) {
    const styles = useThemeStyles();
    const theme = useTheme();

    return (
        <View style={styles.flexRow}>
            {!!labelText && <Text style={[styles.alignSelfCenter, styles.textSupporting, styles.pl2, styles.label]}>{labelText}</Text>}        
         </View>
    );
}

and replace ListItemRightCaretWithLabel with new ListItemWithLabel component throughout.

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@slafortune slafortune added the External Added to denote the issue can be worked on by a contributor label Oct 18, 2024
@melvin-bot melvin-bot bot changed the title Some table rows have > right caret [$250] Some table rows have > right caret Oct 18, 2024
Copy link

melvin-bot bot commented Oct 18, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 18, 2024
Copy link

melvin-bot bot commented Oct 18, 2024

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

@fedirjh
Copy link
Contributor

fedirjh commented Oct 21, 2024

Thank you, everyone, for your proposals. After reviewing all the options, I think we should proceed with @ChavdaSachin proposal option 1; It’s an efficient solution that reduces the number of changed files while maintaining the flexibility to show the caret in the future if needed.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Oct 21, 2024

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

@dangrous
Copy link
Contributor

sounds good to me! Let's keep the flexibility for the future.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 21, 2024
Copy link

melvin-bot bot commented Oct 21, 2024

📣 @ChavdaSachin 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@ChavdaSachin
Copy link
Contributor

PR is ready for review.
cc. @fedirjh

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Oct 25, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 29, 2024
@melvin-bot melvin-bot bot changed the title [$250] Some table rows have > right caret [HOLD for payment 2024-11-05] [$250] Some table rows have > right caret Oct 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 29, 2024
Copy link

melvin-bot bot commented Oct 29, 2024

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

Copy link

melvin-bot bot commented Oct 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.54-11 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 2024-11-05. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Oct 29, 2024

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:

  • [@fedirjh] The PR that introduced the bug has been identified. Link to the PR:
  • [@fedirjh] 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:
  • [@fedirjh] 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:
  • [@fedirjh] Determine if we should create a regression test for this bug.
  • [@fedirjh] 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.
  • [@slafortune] 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 and removed Weekly KSv2 labels Nov 4, 2024
@slafortune
Copy link
Contributor

@fedirjh can you please complete the checklist?

@fedirjh
Copy link
Contributor

fedirjh commented Nov 5, 2024

BugZero Checklist:

  • Link to the PR: N/A This is a feature request.
  • Link to comment: N/A
  • Link to discussion: N/A
  • Determine if we should create a regression test for this bug: Yes

Regression Test Proposal

Prerequisite : A workspace with Distance Rates, Categories, Tags, Taxes, Report Fields.

1. Navigate to Settings -> workspaces -> workspace
2. Open Distance Rates
3. Verify that '>' is not visible for list items
4. Repeat step 2-3 for Categories, Tags, Taxes, Report Fields
  • Do we agree 👍 or 👎

@slafortune
Copy link
Contributor

@fedirjh role C+ requires payment through NewDot Manual Requests - Due $250
@ChavdaSachin role Contributor requires payment via Upworks - Paid $250

@garrettmknight
Copy link
Contributor

$250 approved for @fedirjh

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
Projects
Development

No branches or pull requests

8 participants