Skip to content

Edit comment - Spaces are not displayed in edit box #2847

Closed

Description

@isagoico

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


Expected Result:

Spaces should be visible in edit comment box

Actual Result:

Spaces are not visible in edit comment box.

Action Performed:

  1. Navigate to a conversation
  2. Send a message with the following text
Hello 
Space
Test
  1. Right click on the message and click edit comment.

Workaround:

N/a

Platform:

Where is this issue occurring?

Web ✔️
iOS
Android
Desktop App
Mobile Web

Version Number: 1.0.43-0

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

Notes/Photos/Videos:

image

Expensify/Expensify Issue URL: https://www.upwork.com/jobs/~01aab2d470107fe14c

View all open jobs on Upwork


From @roryabraham https://expensify.slack.com/archives/C01GTK53T8Q/p1620849222131700

When editing a comment, newlines do not appear in the text box.

Activity

  1. added
    AutoAssignerTriageAuto assign issues for triage to an available triage team member
    on May 13, 2021
  2. MelvinBot commented on May 13, 2021

    @MelvinBot
    Contributor

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

  3. removed
    AutoAssignerTriageAuto assign issues for triage to an available triage team member
    on May 13, 2021
  4. removed their assignment
    on May 13, 2021
  5. MelvinBot commented on May 13, 2021

    @MelvinBot
    Contributor

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

  6. stitesExpensify commented on May 14, 2021

    @stitesExpensify
    Contributor

    @roryabraham this can probably be external unless you're working on it already, right?

  7. roryabraham commented on May 14, 2021

    @roryabraham
    Contributor

    Yep I'm not working on this, so let's get this on Upwork!

  8. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on May 14, 2021
  9. MelvinBot commented on May 14, 2021

    @MelvinBot
    Contributor

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

  10. NicMendonca commented on May 14, 2021

    @NicMendonca
    Contributor
  11. 25 remaining items

  12. roryabraham commented on May 21, 2021

    @roryabraham
    Contributor

    Created a tracking issue for other HTML ---> MD conversions here

  13. NicMendonca commented on May 26, 2021

    @NicMendonca
    Contributor

    hey @pranshuchittora! how are you getting on with the PR? Is there anything you need help with?

  14. pranshuchittora commented on May 26, 2021

    @pranshuchittora
    Contributor

    hey @pranshuchittora! how are you getting on with the PR? Is there anything you need help with?

    Hi @NicMendonca I am working on it but the version of expensify-common on GitHub is 1.0.0 but on npm it's 1.0.1.

    https://github.com/Expensify/expensify-common/blob/f9156da06752046c1df8a32461e46fb51684b32d/package.json#L3

    https://www.npmjs.com/package/expensify-common

  15. pranshuchittora commented on May 26, 2021

    @pranshuchittora
    Contributor

    Thought @roryabraham @marcaaron

    Peek.2021-05-27.01-12.mp4

    Current Implementation
    As of now, there's only one rule for HTML -> Markdown. Which parses and modifies the string

    Future Architecture
    We can have a set of pre and post rules as we have now. for text parser.


    Blockers

    Version of expensify-common on GitHub is 1.0.0 but on npm it's 1.0.1.

    https://github.com/Expensify/expensify-common/blob/f9156da06752046c1df8a32461e46fb51684b32d/package.json#L3

    https://www.npmjs.com/package/expensify-common

  16. roryabraham commented on May 26, 2021

    @roryabraham
    Contributor

    Until recently, we were pointing Expensify.cash at an expensify-common commit hash rather than actually publishing expensify-common on npm. It looks like @jasperhuangg changed that here.

    @marcaaron since you wrote the SO that @jasperhuangg references in that PR, do you have any comment on whether or not we should be publishing expensify-common on NPM vs just using a commit hash?

  17. tgolen commented on May 26, 2021

    @tgolen
    Contributor

    The SO that Jasper linked to is a very general SO that was written with the context of web-e, web-s, and mobile. It wasn't really meant to cover e.cash. @AndrewGable talked about this a lot in the beginning and I think our takeaway was:

    • As long as we can maintain strict control over what gets published to NPM, then it is OK to use semver.

    At the time, there were doubts if we could maintain the strict control we needed, which is why we used the hash. Here is the full context behind it: https://github.com/Expensify/Expensify/issues/147306 and it looks like the concern was never resolved.

  18. tgolen commented on May 26, 2021

    @tgolen
    Contributor

    I think we should revert Jasper's change until the solution recommended in that linked issue is solved.

  19. roryabraham commented on May 26, 2021

    @roryabraham
    Contributor

    Agreed @tgolen.

    So @pranshuchittora your process should probably be something like this:

    1. Create a pull request in expensify-common to update ExpensiMark with your changes.
    2. Once that pull request is merged, create an Expensify.cash pull request to update package.json in Expensify.cash to point at the merge commit ref for your expensify-common pull request, instead of the npm package.
  20. marcaaron commented on May 26, 2021

    @marcaaron
    Contributor

    @marcaaron since you wrote the SO that @jasperhuangg references in that PR, do you have any comment on whether or not we should be publishing expensify-common on NPM vs just using a commit hash?

    That SO is out of date and should be deleted. I wrote those instructions thinking we would adopt that plan (we didn't) and then went OOO and it slipped my mind. Amending it now, but we should revert @jasperhuangg's changes.

  21. marcaaron commented on May 26, 2021

    @marcaaron
    Contributor

    Sorry, I've updated those instructions so we can avoid this in the future.

  22. jasperhuangg commented on May 27, 2021

    @jasperhuangg
    Contributor

    Hey! Sorry for missing this. I wasn't aware that there was a difference, apologies for failing to notice this. I guess something felt slightly off when it was startimg off at version 1.0.0, but I didn't think much of it. Glad you were able to revert the change!

  23. pranshuchittora commented on May 27, 2021

    @pranshuchittora
    Contributor

    To summarise

    1. Successfully merge the PR in expensify-common.
    2. Change the version of expensify-common to the merge commit hash in E.cash repo (this repo).

    Is this correct?

    cc @jasperhuangg @marcaaron

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

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions