-
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
Implement suggestion for edit composer #35226
Conversation
@eVoloshchak Please 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] |
@eVoloshchak My native devices don't work. please help to test on these platforms. |
@@ -39,6 +39,7 @@ function BaseAutoCompleteSuggestions<TSuggestion>( | |||
suggestions, | |||
isSuggestionPickerLarge, | |||
keyExtractor, | |||
shouldBelowParentContainer = false, |
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.
shouldBelowParentContainer = false, | |
shouldBeDisplayedBelowParentContainer = false, |
src/libs/SuggestionUtils.ts
Outdated
const borderAndPadding = CONST.AUTO_COMPLETE_SUGGESTER.SUGGESTER_PADDING + 2; | ||
let suggestionHeight = 0; | ||
|
||
if (isSuggestionPickerLarge) { |
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.
if (isSuggestionPickerLarge) { | |
if (isSuggestionsPickerLarge) { |
And all of the occurances below (i.e. suggestionHeight)
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.
Let's rename this to SuggestionsActions
src/styles/utils/index.ts
Outdated
@@ -782,7 +782,7 @@ type GetBaseAutoCompleteSuggestionContainerStyleParams = { | |||
*/ | |||
function getBaseAutoCompleteSuggestionContainerStyle({left, bottom, width}: GetBaseAutoCompleteSuggestionContainerStyleParams): ViewStyle { | |||
return { | |||
...positioning.pFixed, | |||
// ...positioning.pFixed, |
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.
I think this was missed
There are a couple of bugs (not native-specific)
Screen.Recording.2024-02-07.at.15.07.20.mov
Screen.Recording.2024-02-07.at.15.10.25.mov
Screen.Recording.2024-02-07.at.15.14.00.mov |
Updating now. |
It doesn't happend for me Screen.Recording.2024-02-20.at.15.35.26.mov
I'm closing suggestion for edit composer since the suggestion has a fixed position when it's opened, it will not move when we scroll the report screen. |
Updated your suggestion. |
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.
Suggestions container for edit composer has a smaller width than for the default composer (notice the blue avatar is partially visible)
The key here is to have two avatars alongside
- Press FAB -> Request Money
- Enter an amount, press next
- Add two participants to Split, press
Split..
to confirm - Click on split to open the details, select one of the participants, select
Message participant
- Open emoji suggestion modal for normal and edit composer to observe the difference
Screen.Recording.2024-02-23.at.14.29.51.mov
I can reproduce now. |
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.
@dukenv0307, could you include some test steps so the QA team could test this?
@eVoloshchak Updated the test steps. |
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.
LGTM
Awesome work, @dukenv0307!
@stitesExpensify Please help to review the PR when you have a chance. |
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.
Looks great! Super excited for this feature. Just 2 quick questions
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.
LGTM! Excited for this feature
✋ 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/stitesExpensify in version: 1.4.65-0 🚀
|
Hey @stitesExpensify @dukenv0307. I think this Android bug is liked to these changes. I don't think it's serious enough to revert, but it would be great to get it fixed asap. Any thoughts? |
@dukenv0307 looks like we had to revert this pr due to deploy blockers it spawned. Can you create a revert revert and fix those problems so we can try again please? |
@stitesExpensify mountiny created the revert PR. |
Right, I meant a revert of the revert so that you get all of your code back and we can work from there :) However you want to handle it is fine though |
Got it, will create PR v2 soon. |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.65-5 🚀
|
Details
Fixed Issues
$ #34442
PROPOSAL: #34442 (comment)
Tests
Edit message
@
and verify that the mention suggestion is opened:sm
and verify that the emoji suggestion is openedOffline tests
Same as above
QA Steps
Edit message
@
and verify that the mention suggestion is opened:sm
and verify that the emoji suggestion is openedPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
Screen.Recording.2024-03-20.at.14.38.57.mov
Android: mWeb Chrome
Screen.Recording.2024-02-06.at.23.41.33.mov
iOS: Native
Screen.Recording.2024-03-20.at.14.40.28.mov
iOS: mWeb Safari
Screen.Recording.2024-02-06.at.23.38.26.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-06.at.23.36.55.mov
MacOS: Desktop
Screen.Recording.2024-02-06.at.23.44.50.mov