-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Hide suggestion box #45076
Hide suggestion box #45076
Conversation
…/margelo/expensify-app-fork into perunt/suggestion-box-scroll-hide
…/margelo/expensify-app-fork into perunt/suggestion-box-scroll-hide
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.
Left a few comments.
When a PR depends on another one to be merged, @perunt please add Thanks! |
…/margelo/expensify-app-fork into perunt/suggestion-box-scroll-hide
…uggestion-box-scroll-hide
Thanks, @lakchote, for the review and renaming PR! |
Cool, yeah thank you for explaining everything in such detail! I think it would be great if you brought this into Slack, just for posterity's sake - I think we'll arrive at the same place, but I just want to make sure the decision has more visibility than the few people who will see this PR. Thanks! |
Sure, I raised it here https://expensify.slack.com/archives/C01GTK53T8Q/p1721047319091279 |
…uggestion-box-scroll-hide
@rayane-djouah, we have discussed this and concluded that this is the approach we want to use. Could you please continue reviewing this PR? |
friendly bump @rayane-djouah in case you've missed this. |
@perunt - Could you please include test steps in the author checklist? I suggest these steps:
|
@Expensify/design What's the expected cursor type in the area outside the box? |
Good testing. I think the Slack approach is ideal. Where the hand cursor is inside the suggestion box, but default cursor outside it. |
100% agree with Puneet! |
...oCompleteSuggestions/AutoCompleteSuggestionsPortal/TransparentOverlay/TransparentOverlay.tsx
Outdated
Show resolved
Hide resolved
...oCompleteSuggestions/AutoCompleteSuggestionsPortal/TransparentOverlay/TransparentOverlay.tsx
Outdated
Show resolved
Hide resolved
BUG: TAB key does not select the emoji/mention in the edit mode composer like in the main composer: Screen.Recording.2024-07-17.at.5.08.09.PM.mov |
fixed hotkey handling, added cursor styles |
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.
Thank you!
Changes look good to me and test well. The reviewer checklist is also complete.
🎀👀🎀 C+ reviewed
🎯 @rayane-djouah, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #45676. |
@lakchote all yours |
Thank you @rayane-djouah LGTM |
🚀 Deployed to staging by https://github.com/lakchote in version: 9.0.9-1 🚀
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.0.9-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.9-5 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.10-7 🚀
|
Details
Currently, when using the suggestion box, there are only two ways to close it: by picking something from the suggestions or by pressing on another touchable area. Additionally, the suggestion box remains in the same position when scrolling down.
In this PR, I added the ability to close the suggestion box by tapping on any area outside the box. Also, scrolling is now disabled while the suggestion box is open to avoid misclicks.
Fixed Issues
$
PROPOSAL: #44720 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
RPReplay_Final1720604012.MP4
iOS: mWeb Safari
MacOS: Chrome / Safari
Untitled.mov
MacOS: Desktop
Desct.mov