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

[$500] Tag - Extra padding above Recent section in Tag list #35423

Closed
6 tasks done
kbecciv opened this issue Jan 30, 2024 · 22 comments
Closed
6 tasks done

[$500] Tag - Extra padding above Recent section in Tag list #35423

kbecciv opened this issue Jan 30, 2024 · 22 comments
Assignees
Labels
Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Jan 30, 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: v1.4.33-4
Reproducible in staging?: y
Reproducible in production?: n
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: Applause- Internal Team
Slack conversation:

Action Performed:

Precondition:

  • User is an employee of Collect workspace.
  • The Collect workspace has categories and tags, each has more than 8 items in the list.
  • There are recent list in Category and Tag.
  1. Go to workspace chat.
  2. Open manual request page.
  3. Enter amount > Next > Show more.
  4. Open Category and Tag list.

Expected Result:

In Tag list, there will be no extra padding above Recent, just like the Category list.

Actual Result:

There is extra padding above Recent in Tag list.

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

image

Bug6361193_1706637788623.20240130_234328.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~019c2250ecc51e6cc7
  • Upwork Job ID: 1752408936209432576
  • Last Price Increase: 2024-01-30
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Jan 30, 2024
Copy link
Contributor

👋 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.

Copy link

melvin-bot bot commented Jan 30, 2024

Triggered auto assignment to @danieldoglas (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@kbecciv
Copy link
Author

kbecciv commented Jan 30, 2024

We think that this bug might be related to #wave6-collect-submitters
CC @greg-schroeder

@francoisl
Copy link
Contributor

Here's production (left) vs. staging (right) side by side, it's a pretty minor gap so I'm thinking we can fix it later.

image image

@ghost
Copy link

ghost commented Jan 30, 2024

I think, since it is a such a minor issue. We should fix it right away. So, can we do it ?

@francoisl
Copy link
Contributor

Yeah I'll remove the blocker label for now and open this to contribution ideas to fix. Thanks!

@francoisl francoisl added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jan 30, 2024
@melvin-bot melvin-bot bot changed the title Tag - Extra padding above Recent section in Tag list [$500] Tag - Extra padding above Recent section in Tag list Jan 30, 2024
Copy link

melvin-bot bot commented Jan 30, 2024

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

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

melvin-bot bot commented Jan 30, 2024

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

@allgandalf
Copy link
Contributor

Proposal

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

Extra padding above Recent section in Tag list

What is the root cause of that problem?

In tag picker we set the top margin as 5.

<OptionsSelector
contentContainerStyles={[{paddingBottom: StyleUtils.getSafeAreaMargins(insets).marginBottom}]}
optionHoveredStyle={styles.hoveredComponentBG}
sectionHeaderStyle={styles.mt5}

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

Set the top margin to lower value or remove it.

What alternative solutions did you explore? (Optional)

N/A

@FitseTLT
Copy link
Contributor

FitseTLT commented Jan 30, 2024

Proposal

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

Extra padding above Recent section in Tag list

What is the root cause of that problem?

Caused by #32470
Previous check of isEmpty is now changed to selectedOptions the array itself will be truthy although empty

if (selectedOptions) {
const selectedTagOptions = selectedOptions.map((option) => {

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

We should check it is empty as checking its length

    if (selectedOptions?.length >0) {

What alternative solutions did you explore? (Optional)

@aimane-chnaif
Copy link
Contributor

Since this was deploy blocker, there should be offending PR

@FitseTLT
Copy link
Contributor

@aimane-chnaif Found the offending pr. Updated proposal

@FitseTLT
Copy link
Contributor

@francoisl @danieldoglas @DylanDylann The root cause is found and we can fix it ASAP. WDYT

@DylanDylann
Copy link
Contributor

@FitseTLT's proposal looks good to me
🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jan 31, 2024

Current assignee @danieldoglas is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@danieldoglas
Copy link
Contributor

Wait, if this was caused by a recent PR (less than 7 days of the regression period), the original author of that PR needs to fix it.

@danieldoglas
Copy link
Contributor

cc @kubabutkiewicz can you please take a look into this, since it's still part of the regression period?

@DylanDylann
Copy link
Contributor

@danieldoglas Thanks for pointing out that. I will note that for next issues

@situchan
Copy link
Contributor

I tagged original author/reviewer already in #24921 (comment)

@kubabutkiewicz
Copy link
Contributor

Will create PR shortly

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 1, 2024
@kubabutkiewicz
Copy link
Contributor

PR ready: #35541

@DylanDylann
Copy link
Contributor

DylanDylann commented Feb 20, 2024

@danieldoglas The author of the offending PR fixed this issue. Let's close this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants