-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Handle context menu format command #54983
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 🚀
|
@@ -76,7 +76,7 @@ | |||
}, | |||
"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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop