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

[$250] Live markdown for private notes #39194

Closed
6 tasks done
roryabraham opened this issue Mar 28, 2024 · 26 comments
Closed
6 tasks done

[$250] Live markdown for private notes #39194

roryabraham opened this issue Mar 28, 2024 · 26 comments
Assignees
Labels
External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Reviewing Has a PR in review Weekly KSv2

Comments

@roryabraham
Copy link
Contributor

roryabraham commented Mar 28, 2024

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


Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1711641837108169

Action Performed:

  1. Open any DM
  2. click on the header
  3. Click on Private Notes
  4. Enter markdown text in the text input

Expected Result:

The markdown styling should render in real-time, as it does for the main chat composer.

Actual Result:

No live markdown formatting.

Workaround:

n/a

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01ea926bc5d1af45b0
  • Upwork Job ID: 1773389834867847168
  • Last Price Increase: 2024-03-28
@roryabraham roryabraham added External Added to denote the issue can be worked on by a contributor Daily KSv2 NewFeature Something to build that is a new item. labels Mar 28, 2024
@melvin-bot melvin-bot bot changed the title Live markdown for private notes [$500] Live markdown for private notes Mar 28, 2024
Copy link

melvin-bot bot commented Mar 28, 2024

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

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

melvin-bot bot commented Mar 28, 2024

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

Copy link

melvin-bot bot commented Mar 28, 2024

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Mar 28, 2024
Copy link

melvin-bot bot commented Mar 28, 2024

⚠️ It looks like this issue is labelled as a New Feature but not tied to any GitHub Project. Keep in mind that all new features should be tied to GitHub Projects in order to properly track external CAP software time ⚠️

@roryabraham roryabraham changed the title [$500] Live markdown for private notes [$250] Live markdown for private notes Mar 28, 2024
Copy link

melvin-bot bot commented Mar 28, 2024

Upwork job price has been updated to $250

@nexarvo
Copy link
Contributor

nexarvo commented Mar 28, 2024

Proposal

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

Live markdown for private notes

What is the root cause of that problem?

This is new feature.

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

Use RNMarkdownTextInput in private notes of chat as we're doing for Composer here

<InputWrapper
InputComponent={TextInput}
role={CONST.ROLE.PRESENTATION}
inputID={INPUT_IDS.PRIVATE_NOTES}
label={translate('privateNotes.composerLabel')}
accessibilityLabel={translate('privateNotes.title')}
autoCompleteType="off"
maxLength={CONST.MAX_COMMENT_LENGTH}
autoCorrect={false}
autoGrowHeight
containerStyles={[styles.autoGrowHeightMultilineInput]}
defaultValue={privateNote}
value={privateNote}
onChangeText={(text: string) => {
debouncedSavePrivateNote(text);

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Mar 28, 2024
@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Mar 28, 2024

Proposal

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

Live markdown for private notes

What is the root cause of that problem?

New feature

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

To fix this issue we can need make some changes

For details page we use InputWrapperWithRef

<InputWrapper
InputComponent={TextInput}
role={CONST.ROLE.PRESENTATION}
inputID={INPUT_IDS.PRIVATE_NOTES}
label={translate('privateNotes.composerLabel')}
accessibilityLabel={translate('privateNotes.title')}
autoCompleteType="off"
maxLength={CONST.MAX_COMMENT_LENGTH}
autoCorrect={false}
autoGrowHeight
containerStyles={[styles.autoGrowHeightMultilineInput]}
defaultValue={privateNote}
value={privateNote}
onChangeText={(text: string) => {
debouncedSavePrivateNote(text);
setPrivateNote(text);
}}
ref={(el: AnimatedTextInputRef) => {
if (!el) {
return;
}
privateNotesInput.current = el;
updateMultilineInputRange(privateNotesInput.current);
}}
/>
</OfflineWithFeedback>

So we need change InputComponent={TextInput} to InputComponent={RNMarkdownTextInput}

And if needed check that everything works

What alternative solutions did you explore? (Optional)

NA

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Mar 28, 2024

@nexarvo
Add a comment that you add link after me )

@nexarvo
Copy link
Contributor

nexarvo commented Mar 28, 2024

@ZhenjaHorbach sorry but I just added markdown to make review process easy. You also updated problem statement which is core of the issue :)

@melvin-bot melvin-bot bot added the Overdue label Apr 1, 2024
@allroundexperts
Copy link
Contributor

I can review this since @situchan is OoO for a month.

@puneetlath
Copy link
Contributor

Sounds good.

@melvin-bot melvin-bot bot removed the Overdue label Apr 1, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 1, 2024
@puneetlath puneetlath added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 1, 2024
@allroundexperts
Copy link
Contributor

Thanks for the proposals everyone. I think we can move forward with @nexarvo's proposal. Since this was a super simple issue, I don't feel like adding the link to the component adds a lot of value to the proposal.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Apr 3, 2024

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

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

melvin-bot bot commented Apr 4, 2024

📣 @nexarvo You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added the Overdue label Apr 8, 2024
@puneetlath
Copy link
Contributor

How's it going @nexarvo?

@melvin-bot melvin-bot bot removed the Overdue label Apr 9, 2024
@nexarvo
Copy link
Contributor

nexarvo commented Apr 9, 2024

@puneetlath @allroundexperts Right now we have a PR under review #39519 which is implementing live markdown for task description and it has code to configure Live Markdown in BaseTextInput. Once that PR is merged we can pass markdownEnabled Prop in InputWrapper in private notes and it will enable the live markdown for private notes. I have tested it and it works well. I think we should hold this one for the mentioned issue and once that is merged we can go ahead with this one.

@puneetlath puneetlath changed the title [$250] Live markdown for private notes [HOLD #39519] [$250] Live markdown for private notes Apr 10, 2024
@puneetlath puneetlath added Weekly KSv2 and removed Daily KSv2 labels Apr 10, 2024
@puneetlath
Copy link
Contributor

Sounds good. I updated this to be on hold for that.

@roryabraham roryabraham changed the title [HOLD #39519] [$250] Live markdown for private notes [$250] Live markdown for private notes Apr 12, 2024
@roryabraham
Copy link
Contributor Author

taking this off HOLD

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Apr 15, 2024
@nexarvo
Copy link
Contributor

nexarvo commented Apr 17, 2024

PR is ready for review.

@nexarvo
Copy link
Contributor

nexarvo commented May 2, 2024

Hi @puneetlath, this issue was merged into prod 1.2 weeks ago(24 Apr) and the automation for assigning BZ team member did not applied to this issue. Can you please check. Thanks

@puneetlath
Copy link
Contributor

Looks like you're right and this is ready to pay. Looks like the Upwork job has expired. Can you send me a link to your upwork profile so I can send you an offer?

@nexarvo
Copy link
Contributor

nexarvo commented May 2, 2024

Thanks, here is my Upwork profile link: https://www.upwork.com/freelancers/~01b5c4ee99eace8e60

@puneetlath
Copy link
Contributor

Offer here: https://www.upwork.com/nx/wm/offer/102135211

@nexarvo please ping me on this issue when you've accepted.

@nexarvo
Copy link
Contributor

nexarvo commented May 2, 2024

@puneetlath offer accepted

@puneetlath
Copy link
Contributor

Payment summary:

@allroundexperts please request on NewDot.

Thanks everyone!

@thienlnam thienlnam moved this from Todo to Done in Live Markdown Jun 18, 2024
@JmillsExpensify
Copy link

$250 approved for @allroundexperts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Reviewing Has a PR in review Weekly KSv2
Projects
Status: Done
Development

No branches or pull requests

7 participants