-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD for payment 2023-08-16] [$1000] Desktop - Chat - “Paste as plain text” isn't present on command in the context menu #23567
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
Comments
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Currently, when using the desktop chat, there is no option in the context menu to "Paste as plain text". What is the root cause of that problem?The existing code enables the context menu, but it lacks the feature to paste as plain text. Lines 28 to 40 in 96c765d
What changes do you think we should make in order to solve the problem?To introduce this functionality, we can modify the existing code to include a new menu item that enables the "Paste as plain text" feature. This feature will only be visible and enabled in an editable context where paste is supported. Here is the updated code:
Please note that the shortcut (accelerator) can be changed as per preference. This solution is straightforward and simple but open to any adjustments as per feedback or testing outcomes. 2023-07-27.20-32-24.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~0134ff08ce327769dc |
Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new. |
Moving forward 👍 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
@ygshbht's proposal looks good. But I have a few questions @ygshbht.
🎀 👀 🎀 C+ Reviewed. |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mananjadhav isnt this related to the fact that the "paste without formatting" has not worked well recently? |
Yes @mountiny. I checked few of the previous versions and it seems to be broken for quite sometime? I had gone through the threads, do you have the info on when was it last working? |
No i dont unfortunately |
do we have any videos, etc. from the previous versions that we can refer to? |
Thanks @mananjadhav
If I may add a bit about shortcuts, CmdShiftV is generally used for Pasting as Plain text and Command + Option + Shift + V for Paste and Match style |
Sharing my thought: I think Paste as Plain Text never exists in our code and instead, we have Paste and Match style. This menu by default is only available on MacOS and looks like it's the same as Paste as Plain Text. We can compare it with other apps, such as browsers, mail, etc. where only Paste and Match style is available (except the app has a custom name, see quote below). On Windows, Paste as Plain Text will be available instead of Paste and Match style.
From https://tidbits.com/2022/04/18/five-solutions-for-pasting-plain-text-on-a-mac/
From https://www.makeuseof.com/tag/5-ways-strip-formatting-copy-paste-text/ Windows: Paste as Plain Text However, the Expensify desktop app uses Electron which does not have a default context menu, so we use https://github.com/sindresorhus/electron-context-menu and append Paste and Match Style. If we use Mac, it makes sense to see Paste and Match Style menu, but maybe not in case we use Windows/Linux? If so, maybe we should rename it conditionally? |
I don't have any Windows machine to check, but I do think we could have Some of default apps from MacOS Notes, TextEdit, also doesn't have Paste and Match styles for me. |
I'm not against having a custom context menu, but I feel it's redundant to have both Paste and Match Style & Paste as Plain Text if they do the same thing.
I believe it's the default menu for a desktop (Mac) app.
From my previous comment quote.
Anyway, it's all your decision. Thanks for reading 😄! |
Agreed @bernhardoj. My bad all default apps in the MacOS have the |
@mountiny Thoughts on the above discussion? Are we looking to keep this to platform specific defaults? or enable Plain and text for macOS? |
Triggered auto assignment to @isabelastisser ( |
Hi @isabelastisser I am going OOO for a week, so tapping you in to help out in the interim. Thanks! |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
The bonus should apply here, it took me long to merge because I am ooo now |
@kevinksullivan @mountiny Is the issue due for payment, can I process it now? I'm confused because we're missing the payment title and deadline. |
@isabelastisser this is still pending to be deployed on staging and production. Hence the title isn't updated. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.51-2 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 2023-08-16. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
This is more of a feature request than a bug. I am not sure how regression test works for feature request. But if we're adding a new test for this, we can add from the Test steps. cc - @mountiny @isabelastisser |
@mananjadhav Lets add a test for this, notmally lets use the steps from the QA |
@isabelastisser @kevinksullivan Can you please add the QA steps as a test for this feature? and also help with the payment summary here? |
Can I get a payment summary from the BZ member on this one? We have a payment outstanding in NewDot that I'd like to process. |
Payment summary:
|
Payment made in Upwork to @ygshbht
https://github.com/Expensify/Expensify/issues/308932 @mananjadhav please complete the checklist and I will close the issue, thanks! |
@isabelastisser as I mentioned here, this is a feature request hence it doesn’t have an regression PR, but we do need to add test steps as mentioned here. |
Thanks @mananjadhav ! I talked to Vit too and fixed it. We should be all set here! |
Reviewed the details for @mananjadhav. this $1,500 payment is approved via NewDot based on the BZ summary above. |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
“Paste as plain text” should present on command in the context menu.
Actual Result:
“Paste as plain text” isn't present on command in the context menu
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.45-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/3549733
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6141165_desktop.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: