Handle context menu format command#54983
Conversation
|
@dubielzyk-expensify @mananjadhav One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Ohh that is neat! Looks good to me 😄 I'll let @Expensify/design do a double/triple check |
|
This looks good to me too! Have we considered also supporting things like |
|
Yeah looks rad!
I've asked about this before as well—I think it would be SO lovely to have these common keyboard shortcuts! Maybe not as part of this PR, but we should definitely consider adding it at some point. |
|
@Expensify/design @bernhardoj What do you think the behavior should be if the user clicks on the selected twice? ie
web-ios-formatting.mov |
|
Great questions. I think Github handles those situations pretty well. CleanShot.2025-01-09.at.14.08.46.mp4
I think it would be ideal if it reverted back to unbolded
This one I think is fine as is... I don't really know what else we could be expected to do in this situation. |
|
Yup, agree with Danny |
|
Thanks for the quick response. @bernhardoj can you please take a look the expected behavior and the PR comment? |
|
Agree with y'all and would love to see those keyboard shortcuts make its way in as well 😄 |
We already discussed this before on the live markdown PR here |
|
I understand but I think this should be an implementation detail and bought this up here again. @Expensify/design can you take a look at @bernhardoj's comment? |
|
Sorry, but what is the exact question you need help getting answered? |
|
The comment from @bernhardoj highlighted that we will use WhatsApp behavior ie not toggling bold and un-bold. But the previous comments mention we’ll toggle. So confirming the expected behavior again. |
|
Got it. Per @dannymcclain's comment, I think he is suggesting that we should do the toggle behavior if it's possible. |
|
Yeah that is what I was suggesting. It sounds like in that other PR they decided we could handle the un-formatting in a follow up/enhancement to this. I honestly don't feel too strongly, I'm just saying the ideal behavior would be to un-format the selection if they selected the option again. |
|
Cool cool, I can totally get down with that. |
|
I think we should do this as a follow up. I don't see a straight forward solution and best to consider it along with the keyboard shortcuts. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb Safariweb-ios-formatting.movMacOS: Chrome / Safariweb-formatting-context-menu.movMacOS: Desktop |
mananjadhav
left a comment
There was a problem hiding this comment.
Approving the changes after the testing and review.
@blimpich one non-blocking comment for your review and @dubielzyk-expensify pending design approval.
Yeah I think ideally we should've been more clear in the proposal stage as to what the ideal design is before selecting a proposal. We're already here though so I think lets just move forward with this and do a follow up (I'll create a issue) to do the toggle and keyboard shortcuts. I'll also add @dubielzyk-expensify to that issue so that they can audit the design. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.0.84-0 🚀
|
| "dependencies": { | ||
| "@dotlottie/react-player": "^1.6.3", | ||
| "@expensify/react-native-live-markdown": "0.1.210", | ||
| "@expensify/react-native-live-markdown": "0.1.215", |
There was a problem hiding this comment.
@mananjadhav Please make sure to build and test changes with the hybrid app setup, this change is causing hybrid app build to fail as there is a patch that has to be updated https://github.com/Expensify/App/actions/runs/12720655080/job/35462635073
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.84-7 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.84-7 🚀
|
Explanation of Change
Fixed Issues
$ #53145
PROPOSAL: #53145 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Only for iOS mWeb Safari and Web Safari
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop