-
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
[HOLD for payment 2023-07-06] [$1000] Emoji Picker don't hide when composer is hide #20765
Comments
Triggered auto assignment to @arielgreen ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When room permissions are changed (from all members can post to only admins) and the members have What is the root cause of that problem?We hide the App/src/pages/home/report/ReportFooter.js Lines 63 to 64 in 24945f2
But EmojiPicker is not rendered conditionally in ReportScreen -App/src/pages/home/ReportScreen.js Line 352 in 24945f2
I tested and the same issue also happens when workspace is archived or there are errors. What changes do you think we should make in order to solve the problem?We should use the same conditions while rendering const isAllowedToComment = ReportUtils.isAllowedToComment(props.report);
const hideComposer = isArchivedRoom || !_.isEmpty(props.errors) || !isAllowedToComment; But to keep the code DRY we should make a new utility function in What alternative solutions did you explore? (Optional)NA |
Job added to Upwork: https://www.upwork.com/jobs/~012f927fc251d62d87 |
Current assignee @arielgreen is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Triggered auto assignment to @Beamanator ( |
Proposed solutionPlease re-state the problem that we are trying to solve in this issue.Emoji Picker should be hide like main composer What is the root cause of that problem? Emoji picker is not wrapped inside conditions like https://github.com/spcheema/expensify-app/blob/main/src/pages/home/report/ReportFooter.js#L82 What changes do you think we should make in order to solve the problem? Following changes are to hide Emoji picker
/**
* Returns true if a given report is eligible for composable actions like comment, reply or reactions
* @param {Object} report
* @returns {Boolean}
*/
function isComposableReport(report) {
return !isArchivedRoom(report) && isAllowedToComment(report);
}
{ ReportUtils.isComposableReport(this.props.report) && (
<EmojiPicker ref={EmojiPickerAction.emojiPickerRef} />
)}
function ReportFooter(props) {
const chatFooterStyles = {...styles.chatFooter, minHeight: !props.isOffline ? CONST.CHAT_FOOTER_MIN_HEIGHT : 0};
const isArchivedRoom = ReportUtils.isArchivedRoom(props.report);
const hideComposer = !ReportUtils.isComposableReport(props.report);
// ... rest of the code
} What alternative solutions did you explore? (Optional)NA |
@spcheema I have already written in my proposal that I would use a utility function in ReportUtils for doing this to follow DRY. You have posted the code diff of the same which is not a new approach but exactly same as my proposal. |
@Nikhil-Vats I spend my time finding the solution and posted it here. Not sure why it's hurting you. You have written that but I did use complete POC so not sure why you are here to with useless argue. |
Hey @spcheema, it is mentioned in the contribution guidelines.
|
@Nikhil-Vats if there is room one can make different proposal. Right? |
I believe my proposal is different because it has got complete POC where you just talk about things can be done without any POC/testing |
ProposalPlease re-state the problem that we are trying to solve in this issue.Emoji Picker don't hide when composer is hide What is the root cause of that problem?We don't have a condition to hide emoji picker when permission is changed, room is archived or has error same as composer App/src/pages/home/report/ReportFooter.js Lines 63 to 64 in 24945f2
What changes do you think we should make in order to solve the problem?We can create a function like App/src/pages/home/report/ReportFooter.js Lines 63 to 64 in 24945f2
And in ReportScreen we need to add two emoji picker like this to the user can open emoji picker when editing the message that is sent by the user before permission changed
What alternative solutions did you explore? (Optional)We also hide the emoji picker when Permission change to only admin
We also move this code to the utils function to avoid duplicated code ResultBoth Proposal work well Screencast.from.15-06-2023.12.34.58.webm |
Reassigning, team change |
Triggered auto assignment to @bfitzexpensify ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
@thesahindia few proposals for you to review when you get a chance! |
@spcheema, would you mind explaining how your solution is similar to @dukenv0307's alternative solution? |
@thesahindia pls ignore just realised now. Thanks for reading out. |
📣 @dukenv0307 You have been assigned to this job by @Beamanator! |
Hi @thesahindia The PR is ready for review |
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 🚀 |
Just noting here I'm going to consider this eligible for the #urgency bonus. It missed by a whisker (30 minutes) and that mostly came down to timezone differences. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.34-1 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-07-06. 🎊 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.
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:
|
Offers sent out @thesahindia @dukenv0307 @thesahindia, please complete the BZ checklist when you get a chance - thanks! |
It wasn't a regression. Just an edge case, so we can skip the checklist. We can add a test case for this. Steps -
|
@bfitzexpensify, I am going to request money on new dot, so no need to pay me on Upwork. |
Thanks @thesahindia - proposed the test steps in https://github.com/Expensify/Expensify/issues/298637. So, we're all done here! Thanks everyone |
@bfitzexpensify Can you please provide a payment summary on this issue so that I can issue payment via NewDot? Thanks! |
Payment summary: C+: @thesahindia - $1500 (C+ review & urgency bonus). To be paid via manual request |
Reviewed the details for @thesahindia. $1,500 approved for payment via NewDot based on BZ summary above. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Action Performed:
Expected Result:
Emoji Picker should be hide like main composer
Actual Result:
Emoji Picker don't hide
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.27-6
Reproducible in staging?: yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-06-08.at.15.04.50.1.1.mov
Recording.718.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686211761685699
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: