Skip to content
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-06-05] [$1000] No hover effect on reactions list #18905

Closed
6 tasks done
kavimuru opened this issue May 14, 2023 · 44 comments
Closed
6 tasks done

[HOLD for payment 2023-06-05] [$1000] No hover effect on reactions list #18905

kavimuru opened this issue May 14, 2023 · 44 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented May 14, 2023

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:

  1. open group > send message > react with 2 or more accounts
  2. hover over the members in list

Expected results:

hover effect should be there like other similar components in the app (like start a call menu). Additionally, open the user detail page when the user clicks on a user profile (more details here).

Actual results:

no hover effect

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.13.
Reproducible in staging?: y
Reproducible in production?:
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

bandicam.2023-05-13.16-31-29-472.mp4
Untitled

Expensify/Expensify Issue URL:
Issue reported by: @chiragxarora
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683975718761019

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c0b60ca5f036fe39
  • Upwork Job ID: 1658661267676348416
  • Last Price Increase: 2023-05-17
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 14, 2023

Triggered auto assignment to @JmillsExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented May 14, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@PrashantMangukiya
Copy link
Contributor

PrashantMangukiya commented May 14, 2023

Proposal

Posting proposal early as per new guidelines

Please re-state the problem that we are trying to solve in this issue.

No hover effect on reactions list

What is the root cause of that problem?

Reaction list render via OptionRow as shown below:

const renderItem = ({item}) => (
<OptionRow
item={item}
boldStyle
isDisabled
style={{maxWidth: variables.mobileResponsiveWidthBreakpoint}}
option={{
text: Str.removeSMSDomain(item.displayName),
alternateText: Str.removeSMSDomain(item.login),
participantsList: [item],
icons: [
{
source: ReportUtils.getAvatar(item.avatar, item.login),
name: item.login,
type: CONST.ICON_TYPE_AVATAR,
},
],
keyForList: item.login,
}}
/>
);

We can see hoverStyle not passed to OptionRow. So it will not show hover effect, this is the root cause of the problem.

What changes do you think we should make in order to solve the problem?

We have to pass hoverStyle prop to OptionRow component as shown code below:

const renderItem = ({item}) => (
    <OptionRow
        hoverStyle={styles.hoveredComponentBG}   // ** ADD THIS ***
        ...
    />
);

This will solve the issue and show hover effect as shown in result.

What alternative solutions did you explore? (Optional)

None

Result
Web.mov

@dhairyasenjaliya
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

  • No hover effect on reactions list

What is the root cause of that problem?

  • The root cause is we using <OptionRow> with isDisable props that make it hover stated disable as well

What changes do you think we should make in order to solve the problem?

  • We have 2 option to solve this problem

Solution 1

  • In order to show hover effect we can remove isDisable props and add hoverStyle={styles.hoveredComponentBG} inside BaseReactionList.js

  • We also need to add blank onSelectRow() event (cursor disable style optionally)

  • Also we can create new Props to show hovers state on disabled onSelectRow()

Solution 2

  • While enabling the onSelectRow() We can open drawer with user details (drawer) onPress(onSelectRow) of particular user this is specially useful on larger group chat we can directly see user profile detail on press

  • In order to open user detail drawer we need to add Navigation.navigate(ROUTES.getDetailsRoute(email)) to onSelectRow

What alternative solutions did you explore? (Optional)

  • None

Result for Solution 2

Untitled.mp4

Result for Solution 1

onlyHovered.mov

@melvin-bot
Copy link

melvin-bot bot commented May 14, 2023

Looks like something related to react-navigation may have been mentioned in this issue discussion.

As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

Feel free to drop a note in #expensify-open-source with any questions.

@melvin-bot melvin-bot bot added the Overdue label May 16, 2023
@JmillsExpensify
Copy link

Hmm, this "bug" is debatable vs a new feature, though I'm triaging it to keep the issue moving while I'm at a conference.

@melvin-bot melvin-bot bot removed the Overdue label May 17, 2023
@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label May 17, 2023
@melvin-bot melvin-bot bot changed the title No hover effect on reactions list [$1000] No hover effect on reactions list May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01c0b60ca5f036fe39

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 17, 2023

Triggered auto assignment to @marcochavezf (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@dhairyasenjaliya
Copy link
Contributor

@thesahindia
Copy link
Member

thesahindia commented May 17, 2023

This is expected. There is no hover effect because the contacts in the list aren't clickable.

@dhairyasenjaliya posted a feature request to make the items/contacts clickable and it looks like we agree with the feature.

We should close this bug and create a new ticket for the feature request because this is not a bug and the bug report is invalid, but since we already have a proposal here (solution 2) which looks good to me, let's assign @dhairyasenjaliya and update the OP. Also please add @dhairyasenjaliya as the reporter since they posted the feature request in the channel.

C+ reviewed 🎀👀🎀

cc: @marcochavezf @JmillsExpensify

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label May 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 19, 2023

📣 @dhairyasenjaliya You have been assigned to this job by @marcochavezf!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@dhairyasenjaliya
Copy link
Contributor

hm do we create a new GH to handle this feature rather than modifying this bug GH? @thesahindia @marcochavezf

@melvin-bot melvin-bot bot added the Overdue label May 22, 2023
@JmillsExpensify
Copy link

Quick heads up that I'm out of office this week, so if someone from the BugZero team is needed then please re-apply the bug label.

@melvin-bot melvin-bot bot removed the Overdue label May 22, 2023
@marcochavezf
Copy link
Contributor

@thesahindia @dhairyasenjaliya let's re-use this GH atm. I agree that this can be debatable, and maybe we'd need to discuss it to define how we can consider this one since it was reported as a bug before the proposal (improvement) was reported/proposed. I will update the OP

@JmillsExpensify
Copy link

Ah yes, thanks. We still need to close out the BZ checklist first and agree on payment. @thesahindia would you mind helping us cross off everything but the last item in the checklist above?

@JmillsExpensify
Copy link

As for the payments, this is what I'm seeing:

Issue reporter: @chiragxarora $250
Contributor: @dhairyasenjaliya $1,000
Contributor+: @thesahindia $1,000

Are we aligned on the above before I issue contracts and what not in Upwork?

@dhairyasenjaliya
Copy link
Contributor

@JmillsExpensify I believe this is eligible for an urgency bonus as well coz once the issue was assigned I was waiting for #18905 (comment) for a new GH since this bug report is not valid but we just continue here context here #18905 (comment) and I have posted this as a feature request https://expensify.slack.com/archives/C01GTK53T8Q/p1684246281785029

@thesahindia
Copy link
Member

Yeah the bug report was invalid since it was not a bug. We just implemented a new feature that @dhairyasenjaliya had reported.

@thesahindia
Copy link
Member

Since this was not a bug we can skip the first three items of the checklist and I think there is no test case needed for this but if we want we can use the steps below -

  1. Go to a group chat > send message > react with 2 or more accounts
  2. Right click on any reaction
  3. Click on any user in the list
  4. Verify you see the user details page

@chiragxarora
Copy link
Contributor

Am I not eligible for the reporting bonus since one way or another the feature originated from this report only.
@JmillsExpensify ?

2 similar comments
@chiragxarora
Copy link
Contributor

Am I not eligible for the reporting bonus since one way or another the feature originated from this report only.
@JmillsExpensify ?

@chiragxarora
Copy link
Contributor

Am I not eligible for the reporting bonus since one way or another the feature originated from this report only.
@JmillsExpensify ?

@dhairyasenjaliya
Copy link
Contributor

Not sure since this bug was invalid at the first place as we don't have any click event there was no use of hover, and we were about to close this GH but instead we just re-use to save time

@JmillsExpensify
Copy link

@chiragxarora Sorry I'm not clear what you're referring to. The bonus only applies to PRs.

@JmillsExpensify
Copy link

As for the bonus, @marcochavezf can you please clear up the bonus before we issue payments? Let's make sure we're all on the same page.

@JmillsExpensify
Copy link

As for who to award the reporting payment to, can someone help me determine where @dhairyasenjaliya was the report and not @chiragxarora? Perhaps more importantly, we don't pay for feature requests, so if this is not a bug then there is no reporting payment either.

@dhairyasenjaliya
Copy link
Contributor

alright then as I have made feature requests https://expensify.slack.com/archives/C01GTK53T8Q/p1684246281785029 and on this GH we have added that so there is no compensation due for reporting @JmillsExpensify

@melvin-bot melvin-bot bot added the Overdue label Jun 12, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 12, 2023

@JmillsExpensify, @marcochavezf, @dhairyasenjaliya, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!

@marcochavezf
Copy link
Contributor

@JmillsExpensify for this case, I also think it's appropriate to reward @chiragxarora as the issue reporter. This issue resides in a gray area between bug and improvement. However, since we have similar hover effects in other parts of the app, a natural solution would be to show a list of the reactions. Also, the issue was reported before (May 13) @dhairyasenjaliya reported the improvement (May 16).

Regarding the bonus for urgency, yeah I agree with it.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 14, 2023
@dhairyasenjaliya
Copy link
Contributor

bump on above replay @JmillsExpensify

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 22, 2023

@JmillsExpensify, @marcochavezf, @dhairyasenjaliya, @thesahindia Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

@JmillsExpensify, @marcochavezf, @dhairyasenjaliya, @thesahindia Still overdue 6 days?! Let's take care of this!

@JmillsExpensify
Copy link

Ok thanks for walking me through this one.

So that leaves us:

Issue reporter: @chiragxarora $250
Contributor: @dhairyasenjaliya $1,500
Contributor+: @thesahindia $1,500

Upwork job is here. I'll issue bonuses on final payout.

@melvin-bot melvin-bot bot removed the Overdue label Jun 27, 2023
@JmillsExpensify
Copy link

Everyone should have an offer in their Upwork inbox. Let me know if you don't.

@JmillsExpensify
Copy link

Contributor and issue reporter have been paid out. @thesahindia you have an offer outstanding in Upwork when you have a chance to get to it.

@thesahindia
Copy link
Member

Accepted, thanks!

@JmillsExpensify
Copy link

Awesome! Everyone is now paid out. Closing this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants