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-07-26] [$250] mWeb splash screen displays the iconmark logo at a very small size #44624

Closed
1 of 6 tasks
m-natarajan opened this issue Jun 28, 2024 · 31 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

@m-natarajan
Copy link

m-natarajan commented Jun 28, 2024

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


Version Number: 9.0.3-2
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
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1719557303345799

Action Performed:

  1. Go to staging.new.expensify.com and refresh the page
  2. Login and refresh the page

Expected Result:

Splash screen icon mark logo should be same across all platform

Actual Result:

mWeb splash screen displays the iconmark logo at a very small size when compared with native app

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a88bc54afc480cd3
  • Upwork Job ID: 1807909799628982429
  • Last Price Increase: 2024-07-01
  • Automatic offers:
    • ahmedGaber93 | Reviewer | 103095834
    • ShridharGoel | Contributor | 103095836
Issue OwnerCurrent Issue Owner: @adelekennedy
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 28, 2024
Copy link

melvin-bot bot commented Jun 28, 2024

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@ShridharGoel
Copy link
Contributor

ShridharGoel commented Jun 28, 2024

Proposal

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

mWeb splash screen displays the iconmark logo at a very small size.

What is the root cause of that problem?

Size is set to 52x52 for devices with width 479 px and less.

App/web/index.html

Lines 91 to 96 in 937c418

@media screen and (max-width: 479px) {
.splash-logo > svg {
width: 52px;
height: 52px;
}
}

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

We can update the width and height to some value decided by the design team.

@media screen and (max-width: 479px) {
    .splash-logo > svg {
        width: 80px;
        height: 80px;
    }
}

Else, we can also use the same size on all devices.

Then, we'll not need the max-width or min-width conditional items.

@ShridharGoel
Copy link
Contributor

CC: @shawnborton

@shawnborton
Copy link
Contributor

I kind of think the best solution is to just get rid of any mobile-only styles here and just use the same thing we use on desktop.

@neonbhai
Copy link
Contributor

Proposal

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

mWeb splash screen displays the iconmark logo at a very small size

What is the root cause of that problem?

We have different svg sizes defined for small screens here

App/web/index.html

Lines 91 to 96 in 937c418

@media screen and (max-width: 479px) {
.splash-logo > svg {
width: 52px;
height: 52px;
}
}

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

We should have the same logo size for all devices, we will:

Remove the width limit for the desktop size svg style here:

App/web/index.html

Lines 84 to 89 in 937c418

@media screen and (min-width: 480px) {
.splash-logo > svg {
width: 104px;
height: 104px;
}
}

Remove the mobile size svg style here:

@media screen and (max-width: 479px) {

@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

@adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!

@adelekennedy adelekennedy added the External Added to denote the issue can be worked on by a contributor label Jul 1, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

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

@melvin-bot melvin-bot bot changed the title mWeb splash screen displays the iconmark logo at a very small size [$250] mWeb splash screen displays the iconmark logo at a very small size Jul 1, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 1, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@adelekennedy
Copy link

made external - let's goooo

@huult
Copy link
Contributor

huult commented Jul 2, 2024

Proposal

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

mWeb splash screen displays the iconmark logo at a very small size

What is the root cause of that problem?

The iconmark logo appears very small because the width (52px) and height (52px) values set in the media query for screens with a max-width of 479px.

App/web/index.html

Lines 91 to 96 in 937c418

@media screen and (max-width: 479px) {
.splash-logo > svg {
width: 52px;
height: 52px;
}
}

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

The iconmark logo should resize with each screen to avoid the iconmark logo being too big or too small.

// App/blob/main/web/index.html#L90
+.splash-logo {
+   position: absolute;
+   left: 50%;
+   top: 50%;
+   transform: translate(-50%, -50%);
+   text-align: center;
+}

// App/blob/main/web/index.html#L91
@media screen and (max-width: 479px) {
   .splash-logo > svg {
-    width: 52px;
+    width: 50%;
-    height: 52px;
+    height: 50%;
+    max-width: 208px;
   }
 }
POC
Screen.Recording.2024-07-02.at.23.59.46.mov

What alternative solutions did you explore? (Optional)

@Mmore35
Copy link

Mmore35 commented Jul 3, 2024

Proposal

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

splash screen displays the iconmark logo at a very small size

What is the root cause of that problem?

These two styles change the size of the icon based on screen size. The icon's size should be constant for any screen size.

App/web/index.html

Lines 84 to 96 in 937c418

@media screen and (min-width: 480px) {
.splash-logo > svg {
width: 104px;
height: 104px;
}
}
@media screen and (max-width: 479px) {
.splash-logo > svg {
width: 52px;
height: 52px;
}
}

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

These two styles should be removed and replaced with one style that covers all screen sizes. This change will address this bug and ensure a consistent UX going forward.

Remove lines 84-96 and replace it with:

//App/web/index.html#L84
.splash-logo > svg {
                width: 104px;
                height: 104px;
}

Copy link

melvin-bot bot commented Jul 3, 2024

📣 @Mmore35! 📣
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. Make sure you've read and understood the contributing guidelines.
  2. 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.
  3. 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.
  4. 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>

@Mmore35
Copy link

Mmore35 commented Jul 3, 2024

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

Copy link

melvin-bot bot commented Jul 3, 2024

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

@ahmedGaber93
Copy link
Contributor

@ShridharGoel's proposal LGTM!

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 3, 2024

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

@huult
Copy link
Contributor

huult commented Jul 3, 2024

@ahmedGaber93 Why did you choose a proposal with hard-coded width and height? It's not good because it doesn't resize well on small devices.

@ahmedGaber93
Copy link
Contributor

I don't think we need to make it resizable based on screen dimensions like what we do in medium and large screen on web, the icon size is fixed, and the green background fit the screen

@huult
Copy link
Contributor

huult commented Jul 4, 2024

While a fixed solution might be okay, I believe a responsive icon mark logo will improve the user experience, making it feel more like a native platform.

@shawnborton
Copy link
Contributor

I really don't think we need multiple sizes for this. I think the size we already use on desktop/web will look great on mobile, and this way we don't need to maintain multiple sizes across devices.

@ahmedGaber93
Copy link
Contributor

@grgia bump for assignment

@melvin-bot melvin-bot bot added the Overdue label Jul 11, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

📣 @ahmedGaber93 🎉 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 Jul 12, 2024

📣 @ShridharGoel 🎉 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 removed the Overdue label Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

@ShridharGoel @grgia @ahmedGaber93 @adelekennedy this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Jul 15, 2024
@ahmedGaber93
Copy link
Contributor

@ShridharGoel please let me know when PR is ready

@ShridharGoel
Copy link
Contributor

#45405

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 19, 2024
@melvin-bot melvin-bot bot changed the title [$250] mWeb splash screen displays the iconmark logo at a very small size [HOLD for payment 2024-07-26] [$250] mWeb splash screen displays the iconmark logo at a very small size Jul 19, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 19, 2024
Copy link

melvin-bot bot commented Jul 19, 2024

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

Copy link

melvin-bot bot commented Jul 19, 2024

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

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

Copy link

melvin-bot bot commented Jul 19, 2024

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:

  • [@ahmedGaber93] The PR that introduced the bug has been identified. Link to the PR:
  • [@ahmedGaber93] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@ahmedGaber93] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@ahmedGaber93] Determine if we should create a regression test for this bug.
  • [@ahmedGaber93] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@adelekennedy] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@adelekennedy
Copy link

payment due next week - @ahmedGaber93 will you fill out the checklist when you have a moment?

@ahmedGaber93
Copy link
Contributor

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:

  • [@ahmedGaber93] The PR that introduced the bug has been identified. Link to the PR: Animate splash screen #17477
  • [@ahmedGaber93] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: No need this is a design change, not a bug
  • [@ahmedGaber93] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: N/A
  • [@ahmedGaber93] Determine if we should create a regression test for this bug. No
  • [@ahmedGaber93] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

This a small change in the icon size. I think no need for regression test.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 26, 2024
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
No open projects
Archived in project
Development

No branches or pull requests

9 participants