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-07-10] [HOLD for payment 2024-07-02] Chat - Suggestion list appears above composer when selecting all text with @ via CMD+A #44100

Closed
2 of 6 tasks
lanitochka17 opened this issue Jun 20, 2024 · 14 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 20, 2024

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


Version Number: 1.4.86-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to any chat
  3. Enter long paragraph until the composer is scrollable
  4. Type @ at the end of the paragraph
  5. Press CTRL + A

Expected Result:

The suggestion list should appear above the @

Actual Result:

The suggestion list appears above the composer. Sometimes it appears slightly above the composer (with space between the composer and the 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

Bug6519561_1718899495422.20240621_000346.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 20, 2024
Copy link

melvin-bot bot commented Jun 20, 2024

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

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.

@lanitochka17
Copy link
Author

@aldo-expensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@aldo-expensify
Copy link
Contributor

I think this change came from this PR: #42630

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Jun 20, 2024

Maybe the we should close the autocomplete if the user selects text?

Before selecting all:

cursorCoordinates.x 1157
xCoordinatesOfCursor 1552
windowWidth 1728
leftValueForBigScreen 1428

after selecting all:

cursorCoordinates.x 12
xCoordinatesOfCursor 407
windowWidth 1728
leftValueForBigScreen 407

These variables here determine the position of the autocomplete box:

const xCoordinatesOfCursor = x + cursorCoordinates.x;
const leftValueForBigScreen =
xCoordinatesOfCursor + CONST.AUTO_COMPLETE_SUGGESTER.BIG_SCREEN_SUGGESTION_WIDTH > windowWidth
? windowWidth - CONST.AUTO_COMPLETE_SUGGESTER.BIG_SCREEN_SUGGESTION_WIDTH
: xCoordinatesOfCursor;
let bottomValue = windowHeight - y - cursorCoordinates.y + scrollValue - (keyboardHeight || bottomInset);
const widthValue = isSmallScreenWidth ? width : CONST.AUTO_COMPLETE_SUGGESTER.BIG_SCREEN_SUGGESTION_WIDTH;
const contentMaxHeight = measureHeightOfSuggestionRows(suggestionsLength, true);

@melvin-bot melvin-bot bot added the Reviewing Has a PR in review label Jun 20, 2024
@aldo-expensify
Copy link
Contributor

PR up: #44113

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Hourly KSv2 labels Jun 20, 2024
@mountiny
Copy link
Contributor

Per https://expensify.slack.com/archives/C035J5C9FAP/p1718916284226989 we can demote this one, seems minor and Aldo already fixed it but we probably do not need to CP. Thank you!

@mountiny mountiny removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 20, 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 Jun 25, 2024
@melvin-bot melvin-bot bot changed the title Chat - Suggestion list appears above composer when selecting all text with @ via CMD+A [HOLD for payment 2024-07-02] Chat - Suggestion list appears above composer when selecting all text with @ via CMD+A Jun 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 25, 2024
Copy link

melvin-bot bot commented Jun 25, 2024

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

Copy link

melvin-bot bot commented Jun 25, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.1-19 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-07-02. 🎊

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Jul 2, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Jul 2, 2024
Copy link

melvin-bot bot commented Jul 2, 2024

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-02] Chat - Suggestion list appears above composer when selecting all text with @ via CMD+A [HOLD for payment 2024-07-10] [HOLD for payment 2024-07-02] Chat - Suggestion list appears above composer when selecting all text with @ via CMD+A Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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-07-10. 🎊

Copy link

melvin-bot bot commented Jul 10, 2024

Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO.

@melvin-bot melvin-bot bot added the Overdue label Jul 12, 2024
@aldo-expensify
Copy link
Contributor

No payment needed (No C+ review or contributor hired)

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 Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

3 participants