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 C+ newdot payment] [$1000] Burger menu overlaps with "Expensify" logo in top left corner of the page #25646

Closed
2 of 6 tasks
kavimuru opened this issue Aug 22, 2023 · 48 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Aug 22, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

1.Login and then open Settings.
2.open help.

Expected Result:

Drawer button should not overlay on Expensify logo.

Actual Result:

Drawer button is overlaying on Expensify logo.

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.56-2
Reproducible in staging?: y
Reproducible in production?: y
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

Screenrecorder-2023-08-12-14-49-47-769.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a5ada1183af69b00
  • Upwork Job ID: 1693866584422825984
  • Last Price Increase: 2023-08-22
  • Automatic offers:
    • getusha | Contributor | 26399647
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 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

@spcheema
Copy link
Contributor

spcheema commented Aug 22, 2023

Proposed solution

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

Burger menu overlaps with "Expensify" logo in top left corner of the page. Also search icon is requires some padding/margin.

image

What is the root cause of that problem?
There is no margin added to Logo and search icon.

Since the position is absolute other elements can take the space so that overlap is visible.

App/docs/_sass/_main.scss

Lines 277 to 292 in 120bcbf

.logo {
width: 160px;
align-content: center;
display: block;
margin-left: auto;
margin-right: auto;
@include breakpoint($breakpoint-tablet) {
width: 210px;
align-content: normal;
display: flex;
margin-left: 0;
margin-right: 0;
}
}
}

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

There are two changes are required:

  • Add 30px margin to logo
  • Set logo with 200 for min devices (i.e. 800)
        .logo {
            width: 160px;
            align-content: center;
            display: block;
            margin-right: auto;
-           margin-left: auto;
+           margin-left: 30px;
            @include breakpoint($breakpoint-tablet) {
-           width: 210px;
+           width: 200px;
                align-content: normal;
                display: flex;
                margin-left: 0;
                margin-right: 0;
            }
        }

Screen devices with 800px width
image

Mobile devices
image

image

Additionally, I suggest reducing the padding of the header container. Then there won't be any need to change the logo size.

Result with padding: 30px;
image

Result with padding: 40px;

image

Just noticed that 24px margin/padding used everywhere so update it to keep consistent.

What alternative solutions did you explore? (Optional)

N/A

@kadiealexander kadiealexander added the External Added to denote the issue can be worked on by a contributor label Aug 22, 2023
@melvin-bot melvin-bot bot changed the title Burger menu overlaps with "Expensify" logo in top left corner of the page [$1000] Burger menu overlaps with "Expensify" logo in top left corner of the page Aug 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

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

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

melvin-bot bot commented Aug 22, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

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

@getusha
Copy link
Contributor

getusha commented Aug 22, 2023

Proposal

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

LHN toggle icon overlaps with 'expensify' logo

What is the root cause of that problem?

The header button is positioned absolute which makes it overlap with any other element if the viewport is resized to it's break point.

position: absolute;

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

We should remove the position absolute from here:

position: absolute;

and add padding-right: 24px which seems the standard in our case (used on the header padding)

then we will move the header button to the element below inside "flex"

<div id="header-button">
<img id="angle-up-icon" src="/assets/images/arrow-up.svg" class="base-icon hide"></img>
<img id="bars-icon" src="/assets/images/menu.svg" class="base-icon"></img>
</div>

move this to inside

<div class="flex">
<div>
<a href="/">
<img src="/assets/images/expensify-help.svg" class="logo" />
</a>
</div>
<!-- Search icons that'll open the Sidebar Search sections -->
{% include search-toggle.html %}
</div>

we can also improve the search icon by resizing the logo on the right break point.

@include breakpoint($breakpoint-tablet) {

we will change $breakpoint-tablet with $breakpoint-desktop

Screenshot 2023-08-22 at 10 04 04 AM Screenshot 2023-08-22 at 10 23 40 AM

What alternative solutions did you explore? (Optional)

@alitoshmatov
Copy link
Contributor

I think it is regression of #24299

@studentofcoding
Copy link
Contributor

studentofcoding commented Aug 22, 2023

Nope, It's not regression, as It's already like that before the PR of #24299

@neonbhai
Copy link
Contributor

neonbhai commented Aug 22, 2023

Proposal

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

Burger menu overlaps with "Expensify" logo in top left corner of the page

What is the root cause of that problem?

The logo element is not padded for the burger icon that appears for small screen devices.

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

We should add padding-left: 44px to the logo when it is rendered in a small screen device to compensate for the burger icon's presence.

Two ways to accomplish this:

  • We can leverage the breakpoint logic to clearly express adding padding for small screen devices in an elegant way. I would recommend doing it this way.
    This means:

    • Adding this here:
      @include maxBreakpoint($breakpoint-tablet) {
           padding-left: 44px; 
      }
    • As we already have styles defined for large screen devices here, where we are resetting other css values. We would add padding-left: 0 after this line.
  • We can add the padding normally, and remove it for large screens. This would mean:

    • Adding padding-left: 44px here:

      App/docs/_sass/_main.scss

      Lines 277 to 282 in 6609308

      .logo {
      width: 160px;
      align-content: center;
      display: block;
      margin-left: auto;
      margin-right: auto;
      This would accomplish the change for mobile devices.

    • Adding padding-left: 0 here:

      App/docs/_sass/_main.scss

      Lines 284 to 289 in 6609308

      @include breakpoint($breakpoint-tablet) {
      width: 210px;
      align-content: normal;
      display: flex;
      margin-left: 0;
      margin-right: 0;
      This would remove the padding when the burger icon vanishes.

Result final: ![Screenshot from 2023-08-22 18-13-11](https://github.com/Expensify/App/assets/64629613/c5151505-5fa2-403d-9211-d2b374e48279)

What alternative solutions did you explore? (Optional)

xx

@spcheema
Copy link
Contributor

Proposal updated to reduce margin size to 24 which looks better and seems consistent.

@studentofcoding
Copy link
Contributor

Proposal

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

Burger menu overlaps with "Expensify" logo in top left corner of the page

What is the root cause of that problem?

The Mobile Menu, Logo, and Search Toggle still do not have an exact structure on Mobile.

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

The Mobile Menu, Logo, and Search Toggle should have different wrappers instead so we can use justify-content: space-between; and make them in one Flex wrapper.

  1. Make Mobile Menu, Logo, and Search Toggle have separate wrapper On default.html
<div class="lhn-header">
            <div id="header-button">
                <img id="angle-up-icon" src="/assets/images/arrow-up.svg" class="base-icon hide"></img>
                <img id="bars-icon" src="/assets/images/menu.svg" class="base-icon"></img>
            </div>
            <div class="flex">
                <div>
                    <a href="/">
                        <img src="/assets/images/expensify-help.svg" class="logo" />
                    </a>
                </div>
            </div>
            <div class="flex search-icon-wrapper">
                <!-- Search icons that'll open the Sidebar Search sections -->
                {% include search-toggle.html %}
            </div>
        </div>
  1. Add display: flex; & justify-content: space-between; on .lhn-header _main.scss

  2. Add search-icon-wrapper class into _search-bar.scss

.search-icon-wrapper {
    margin: auto 0;
}

What alternative solutions did you explore? (Optional)

None

Result

Fix.Burger.Menu.Demo.mov

@yoodule-dev
Copy link

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

Fix burger menu overlapping with "Expensify" logo in top left corner of the page. Also search icon is requires some padding/margin.

What is the root cause of that problem?

The header button is positioned absolute which makes it overlap with any other element if the view-port is resized to it's break point.

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

A good design approach will be to reduce the number of items displayed in the header
We can update the header to only have an hamburger icon and show a search box in the Burger menu

What alternative solutions did you explore? (Optional)

Giving a margin left to the logo on smaller screen.
But the issue is that we will have much item there which might still be an issue when a screen is much smaller

Attached is a sample of what the solution should look like
https://www.loom.com/share/0af59e8066c74e3db45c1b3b6e0183be?sid=952a2ece-2066-486e-92eb-b0694804e9ba

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

📣 @yoodule-dev! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

2 similar comments
@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

@yoodule-dev
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~019fb991cf334b5944

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot
Copy link

melvin-bot bot commented Aug 22, 2023

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

@melvin-bot melvin-bot bot added the Overdue label Aug 24, 2023
@Hanawa02
Copy link

Proposal

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

The burger menu overlaps with the Expensify logo, which makes it difficult for users to be able to see that a burger menu actually exists.

What is the root cause of that problem?

The root cause is an absolute positioning applied to the burger menu.

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

  • I would simplify the header structure, currently, there are some unnecessary divs that do not provide any benefit, the flex class applied to one of the divs can be transferred to the div with lhn-header class.

  • I would remove the absolute positioning from the burger menu, and add an adequate, responsive margin-right to the burger menu.

  • For accessibility purposes, I would also suggest changing the burger menu from a div to a button, but that is not related to the issue.

@melvin-bot
Copy link

melvin-bot bot commented Aug 24, 2023

📣 @Hanawa02! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.62-4 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-09-11. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

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:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 Daily KSv2 Overdue labels Sep 11, 2023
@kadiealexander
Copy link
Contributor

kadiealexander commented Sep 12, 2023

Payouts due:

Eligible for 50% #urgency bonus? Yes

Upwork job is here.

@allroundexperts
Copy link
Contributor

Requested payment. On to the checklist.

@allroundexperts
Copy link
Contributor

Checklist

  1. fix styles for hub pages and article page #9765
  2. https://github.com/Expensify/App/pull/9765/files#r1328147846
  3. This was a real small UI issue which could have been caught by thorough testing. I don't think a Slack discussion is required here.
  4. Regression test would be helpful here.

Regression test steps

  1. Open Expensify help page on a small screen.

Verify that the burger menu icon does not overlap with the Expensify logo in the top left corner of the page.

Do we 👍 or 👎 ?

@melvin-bot melvin-bot bot added the Overdue label Sep 20, 2023
@kadiealexander kadiealexander changed the title [HOLD for payment 2023-09-11] [$1000] Burger menu overlaps with "Expensify" logo in top left corner of the page [HOLD for C+ newdot payment] [$1000] Burger menu overlaps with "Expensify" logo in top left corner of the page Sep 20, 2023
@kadiealexander
Copy link
Contributor

This can be closed after @allroundexperts is paid via NewDot. Payment summary is here.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 20, 2023
@kadiealexander kadiealexander added Weekly KSv2 and removed Daily KSv2 labels Sep 25, 2023
@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2023
@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2023
@kadiealexander
Copy link
Contributor

Not overdue.

@melvin-bot melvin-bot bot removed the Overdue label Oct 3, 2023
@JmillsExpensify
Copy link

$1,500 payment for @allroundexperts approved based on BZ summary.

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests