Skip to content

[HOLD for payment 2024-06-20] [$250] mWeb -Room - Inconsistency while pasting highlighted mention in room and expense description #41919

Closed

Description

@lanitochka17

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: 1.4.72
Reproducible in staging?: Y
Reproducible in production?: Y
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 https://staging.new.expensify.com/
2. Tap FAB > Start a Chat > create a new room
3. Copy the following text in chat

@ApplauseTester++0411km
@jaihanumanblog@gmail.com
(notice: first mention selected from list, second mention is highlighted)

  1. Tap header

  2. Paste text in room description

  3. Note second mention is not highlighted

  4. Navigate to LHN

  5. Tap fab -- track expense

  6. Enter amount and tap next

  7. Paste the same above text in track expense description

  8. Note now second mention is highlighted and displayed

Expected Result:

There should not be inconsistency while pasting highlighted mention in room and expense description

Actual Result:

Inconsistency while pasting highlighted mention in room and expense description

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

Bug6475789_1715253066288.inconsistency.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c4a08b3d6f351b65
  • Upwork Job ID: 1790309855227322368
  • Last Price Increase: 2024-05-14
  • Automatic offers:
    • shubham1206agra | Reviewer | 0
    • tienifr | Contributor | 0
    • bernhardoj | Contributor | 0
Issue OwnerCurrent Issue Owner: @garrettmknight / @Christinadobrzyn

Activity

  1. added
    Daily
    Bug
    on May 9, 2024
  2. melvin-bot commented on May 9, 2024

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (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.

  3. lanitochka17 commented on May 9, 2024

    @lanitochka17
    Author

    @Christinadobrzyn 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

  4. lanitochka17 commented on May 9, 2024

    @lanitochka17
    Author

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

  5. bernhardoj commented on May 9, 2024

    @bernhardoj
    Contributor

    Proposal

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

    When pasting a mention to room description, it's not rendered as a mention but still as a plain text. But if we paste it to money request description, the mention is rendered as mention markdown.

    What is the root cause of that problem?

    In money request description page, we enable the live markdown preview

    but we don't enable it in the room description.

    <InputWrapper
    InputComponent={TextInput}
    inputID={INPUT_IDS.REPORT_DESCRIPTION}
    label={translate('reportDescriptionPage.roomDescription')}
    accessibilityLabel={translate('reportDescriptionPage.roomDescription')}
    role={CONST.ROLE.PRESENTATION}
    autoGrowHeight
    maxAutoGrowHeight={variables.textInputAutoGrowMaxHeight}
    maxLength={CONST.REPORT_DESCRIPTION.MAX_LENGTH}
    ref={(el: BaseTextInputRef | null): void => {
    if (!el) {
    return;
    }
    reportDescriptionInputRef.current = el;
    updateMultilineInputRange(el);
    }}
    value={description}
    onChangeText={handleReportDescriptionChange}
    autoCapitalize="none"
    />

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

    Enable the live markdown in room description by passing isMarkdownEnabled to the input.

    we can do the same for other input that support markdown too

  6. Christinadobrzyn commented on May 10, 2024

    @Christinadobrzyn
    Contributor

    I don't think this is a bug,

    From what I can test, the only time the
    @jaihanumanblog@gmail.com isn't highlighted is after it's copied and pasted but before it's 'saved' in the room/expense/description. Once saved it turns into a mention and is highlighted.

    @bernhardoj let me know if you feel otherwise but I'm going to close this as an edge case, small incident.

  7. bernhardoj commented on May 10, 2024

    @bernhardoj
    Contributor

    From what I can test, the only time the
    @jaihanumanblog@gmail.com isn't highlighted is after it's copied and pasted but before it's 'saved' in the room/expense/description. Once saved it turns into a mention and is highlighted.

    @Christinadobrzyn That's true. To simplify it, the room description page currently doesn't enable the live markdown preview, while the expense/task description enables it. So, if we want to enable the live markdown preview for room description too, then we can reopen this.

    Btw, there is a previous discussion here to enable the live markdown preview on some inputs, but looks like the room description page is missing from the list.

  8. bernhardoj commented on May 14, 2024

    @bernhardoj
    Contributor
  9. Christinadobrzyn commented on May 14, 2024

    @Christinadobrzyn
    Contributor

    Ah sorry @bernhardoj this GH was closed so I didn't see this. Ah yes, we should work on this based on this convo - https://expensify.slack.com/archives/C01GTK53T8Q/p1711641837108169

    Although, I'm wondering if these markdowns are on hold based on this Slack convo - https://expensify.slack.com/archives/C01GTK53T8Q/p1711641837108169 I'll ask in that chat: Answer - no need to hold- let's work on these now.

  10. added
    External
    on May 14, 2024
  11. changed the title [-]mWeb -Room - Inconsistency while pasting highlighted mention in room and expense description[/-] [+][$250] mWeb -Room - Inconsistency while pasting highlighted mention in room and expense description[/+] on May 14, 2024
  12. 46 remaining items

  13. melvin-bot commented on Jun 13, 2024

    @melvin-bot

    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:

    • [@shubham1206agra] The PR that introduced the bug has been identified. Link to the PR:
    • [@shubham1206agra] 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:
    • [@shubham1206agra] 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:
    • [@shubham1206agra] Determine if we should create a regression test for this bug.
    • [@shubham1206agra] 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.
    • [@garrettmknight / @Christinadobrzyn] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  14. garrettmknight commented on Jun 17, 2024

    @garrettmknight
    Contributor

    @bernhardoj @tienifr updated offers sent to you to split the bounty.

  15. bernhardoj commented on Jun 18, 2024

    @bernhardoj
    Contributor

    Accepted

  16. added
    Daily
    and removed
    Weekly
    on Jun 19, 2024
  17. garrettmknight commented on Jun 20, 2024

    @garrettmknight
    Contributor

    All paid out - @shubham1206agra can you complete the checklist when you get a chance?

  18. added
    Weekly
    and removed
    Daily
    on Jun 20, 2024
  19. shubham1206agra commented on Jun 21, 2024

    @shubham1206agra
    Contributor

    @garrettmknight I am still not paid. Can you please recheck?

  20. Christinadobrzyn commented on Jun 24, 2024

    @Christinadobrzyn
    Contributor

    @shubham1206agra can you check again? I think I just paid you through Upwork. @bernhardoj and @tienifr did you receive payment?

  21. bernhardoj commented on Jun 25, 2024

    @bernhardoj
    Contributor

    @Christinadobrzyn yes, I get the payment

  22. shubham1206agra commented on Jun 25, 2024

    @shubham1206agra
    Contributor

    @Christinadobrzyn Yes, I got the payment.

  23. shubham1206agra commented on Jun 25, 2024

    @shubham1206agra
    Contributor

    Since this is a new feature. No checklist required here.

  24. Christinadobrzyn commented on Jul 2, 2024

    @Christinadobrzyn
    Contributor

    okay I think this can be closed - payment summary here - #41919 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions