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 2024-02-07] [$500] [Wave 8 - Ideal Nav Skeleton] Update the placement of the user status icon #34380

Closed
trjExpensify opened this issue Jan 11, 2024 · 26 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.

Comments

@trjExpensify
Copy link
Contributor

trjExpensify commented Jan 11, 2024

👋 Coming from here.

With the new ideal nav layout the status indicator will end up looking like this:

image

So we want to update it to this:

image

I don't see why we can't go ahead and have this be worked on now, but let me know if anyone thinks otherwise.

CC: @hayata-suenaga @mountiny @JmillsExpensify @kosmydel @adamgrzybowski

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f723a88aa92b6d67
  • Upwork Job ID: 1745482711625039872
  • Last Price Increase: 2024-01-11
  • Automatic offers:
    • mollfpr | Reviewer | 28104631
    • jayeshmangwani | Contributor | 28104634
@trjExpensify trjExpensify added External Added to denote the issue can be worked on by a contributor Daily KSv2 NewFeature Something to build that is a new item. labels Jan 11, 2024
@trjExpensify trjExpensify self-assigned this Jan 11, 2024
Copy link

melvin-bot bot commented Jan 11, 2024

Current assignee @trjExpensify is eligible for the NewFeature assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added the Weekly KSv2 label Jan 11, 2024
@melvin-bot melvin-bot bot changed the title [Wave 8 - Ideal Nav Skeleton] Update the placement of the user status icon [$500] [Wave 8 - Ideal Nav Skeleton] Update the placement of the user status icon Jan 11, 2024
Copy link

melvin-bot bot commented Jan 11, 2024

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

@melvin-bot melvin-bot bot added Help Wanted Apply this label when an issue is open to proposals by contributors and removed Daily KSv2 labels Jan 11, 2024
Copy link

melvin-bot bot commented Jan 11, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 11, 2024
@gijoe0295

This comment was marked as outdated.

@ishpaul777
Copy link
Contributor

ishpaul777 commented Jan 11, 2024

@gijoe0295 Please be descriptive about the solution and refrain from adding vague speed run Proposals.

Screenshot 2024-01-11 at 10 17 47 PM

@gijoe0295
Copy link
Contributor

@ishpaul777 Sure.

@ishpaul777
Copy link
Contributor

ishpaul777 commented Jan 11, 2024

Just my opinion, this might make difficult to navigate to status directly as size is too small on touch screen, and may somtimes result in unexpected navigation to stauspage when use expect to go to settings.

@jayeshmangwani
Copy link
Contributor

Proposal

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

Update the placement of the user status icon

What is the root cause of that problem?

this is a new feature

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

We are using AvatarWithOptionalStatus component for showing the LHN avatar with status emoji,

here we are using the parent component that has width of 84, we should update styling here, and width will be 44, same as height of the Avatar in this case,

width: 84,

in above styling we only need height, width and margin other styling can be removed

we have to place the emoji to the bottom so, we have adjust 2 views

<PressableAvatarWithIndicator isCreateMenuOpen={isCreateMenuOpen} />

PressableAvatarWithIndicator will be on top and beneath we will add the emoji View, so View hierarchy will be like this

<PressableAvatarWithIndicator />
<PressableWithoutFeedback>
</PressableWithoutFeedback>

next we have to update the styling for the status parent View in this case, sidebarStatusAvatar styles, we can directly apply style to the View or we can apply it to the main PressableWithoutFeedback, I have tested with parent View

for the styling we can pass the height/width 22 (as subscript is half of the main view), but here we are passing the fontsize 22 to the emoji Text,so we can adjust style accordingly, I have used below style to achieve the desired outcome in the Results

sidebarStatusAvatar: {
    backgroundColor: theme.componentBG,
    height: 30,
    width: 30,
    borderRadius: 15,
    alignItems: 'center',
    justifyContent: 'center',
    position: 'absolute',
    right: -5,
    bottom: -5,
}
Result Screenshot 2024-01-11 at 10 30 10 PM

Simulator Screenshot - iPhone SE (3rd generation) - 2024-01-11 at 22 29 50

What alternative solutions did you explore? (Optional)

none

@mollfpr
Copy link
Contributor

mollfpr commented Jan 13, 2024

The proposal from @jayeshmangwani looks good to me! We still need to ask the design team for the correct size.

🎀 👀 🎀 C+ reviewed!

Copy link

melvin-bot bot commented Jan 13, 2024

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

@trjExpensify
Copy link
Contributor Author

Just my opinion, this might make difficult to navigate to status directly as size is too small on touch screen, and may somtimes result in unexpected navigation to stauspage when use expect to go to settings.

Yeah, I don't think you can navigate to the status directly anymore in the new design -- it's an incredibly small press area. We talked about using like a popover menu for things like status, switching accounts etc but that didn't materialise. So I think there's only one press action on the account avatar that navigates to the account setting page going forward. CC: @shawnborton @dannymcclain @dubielzyk-expensify

@shawnborton
Copy link
Contributor

We could increase the hitSlop area of the status button just a tad, so you gain a little more tappable space. Otherwise yeah, we're going to have to live with this one until we implement something a bit more drastic as Tom is describing above.

But I actually still think we should keep the two separate link paths - the rest of the avatar goes to your profile, and the status button - even as small as it is - still goes to the status page.

@trjExpensify
Copy link
Contributor Author

Fine by me! 👍

@dubielzyk-expensify
Copy link
Contributor

I'm okay with the direction Shawn mentions, but my gut says that it'll be too hard to distinguish the taps especially on mobile. Let's go with it though and adjust from there

@shawnborton
Copy link
Contributor

Sweet, let's try it! Agree, mobile might be tricky to hit the correct target but at least desktop users will be able to take advantage of it.

@trjExpensify
Copy link
Contributor Author

Nice! @johnmlee101, can you give a secondary of this proposal please?

@johnmlee101
Copy link
Contributor

LGTM! 👍

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 16, 2024
Copy link

melvin-bot bot commented Jan 16, 2024

📣 @mollfpr 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Jan 16, 2024

📣 @jayeshmangwani 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer 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 📖

@melvin-bot melvin-bot bot added the Overdue label Jan 18, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Overdue Daily KSv2 labels Jan 19, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 31, 2024
@melvin-bot melvin-bot bot changed the title [$500] [Wave 8 - Ideal Nav Skeleton] Update the placement of the user status icon [HOLD for payment 2024-02-07] [$500] [Wave 8 - Ideal Nav Skeleton] Update the placement of the user status icon Jan 31, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 31, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jan 31, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 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 2024-02-07. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jan 31, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@mollfpr] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@trjExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 6, 2024
@mollfpr
Copy link
Contributor

mollfpr commented Feb 7, 2024

Regression test

  1. Open the App, Go to Settings > Profile > Status
  2. Select an emoji and Press Save
  3. Now go to the main chat app and observe the user icon and status placement
  4. Verify the emoji is showing beneath the user profile
  5. Press on the emoji from step 4
  6. Verify it's redirect to the status page
  7. 👍 or 👎

@trjExpensify Could you give the payment summary for manual request? Thank you!

@trjExpensify
Copy link
Contributor Author

Yo yo! Thanks! I'm going to hold off on that regression test, as it'll get encapsulated into the changes for ideal nav 👍

Payment summary as follows:

@trjExpensify
Copy link
Contributor Author

@jayeshmangwani - paid!
@mollfpr - feel free to request.

Closing!

@JmillsExpensify
Copy link

$500 approved for @mollfpr based on summary above.

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 Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.
Projects
No open projects
Development

No branches or pull requests

9 participants