Skip to content

Conversation

nidhigupta13-ey
Copy link
Contributor

@nidhigupta13-ey nidhigupta13-ey commented Mar 7, 2023

Description (*)

Fixed the issue in mobile for checkout progress bar. Now it's showing in mobile and tablet view.

Related Pull Requests

#36856

Fixed Issues (if relevant)

  1. Fixes No link to shipping when in payments in checkout in mobile phone view #36856

Manual testing scenarios (*)

  1. We need to test it in mobile view.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)
@m2-assistant
Copy link

m2-assistant bot commented Mar 7, 2023

Hi @nidhigupta13-ey. Thank you for your contribution!
Here are some useful tips on how you can test your changes using Magento test environment.

Add the comment under your pull request to deploy test or vanilla Magento instance:
  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names.

Allowed build names are:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here
ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.


For more details, review the Code Contributions documentation.
Join Magento Community Engineering Slack and ask your questions in #github channel.

@m2-community-project m2-community-project bot added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Mar 7, 2023
@m2-github-services m2-github-services added Partner: EY partners-contribution Pull Request is created by Magento Partner labels Mar 7, 2023
@nidhigupta13-ey
Copy link
Contributor Author

@magento run all tests

@magento-automated-testing
Copy link

The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time.

//
// Desktop
// _____________________________________________

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason of remove this media mixin ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this issue is working fine in blank theme. So I compared the code and there as well we don't have any mixin and using the progress bar code irrespective of view. So the progress bar will show in each device.


//
// Mobile max width 600px
//
Copy link
Contributor

@mrtuvn mrtuvn Mar 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should target for mobile device. These lines will also maybe duplicated for desktop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not duplicated. Some kind of thing like margin and width is only changing based on screen size.

Copy link
Contributor

@mrtuvn mrtuvn Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without wrap between media mixins your code styles probably duplicated in both final output files styles-m.css and styles-l.css as i remember before
That's why code base use mixins for target mobile or desktop

Copy link
Contributor

@mrtuvn mrtuvn Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want apply for mobile move code between for apply also mobile and desktop

& when (@media-common = true) { //Your code here }
@media (min-width: 280px) and (max-width: 320px) {
.opc-progress-bar-item {
.lib-css(width, @checkout-progress-bar-item__width__mobile_small);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also you should use screen variables instead hardcoded fix value

@nidhigupta13-ey nidhigupta13-ey requested a review from mrtuvn March 14, 2023 13:18
@cptX
Copy link

cptX commented Mar 18, 2023

Is there any final solution to this problem yet?

I copied the _progress-bar.less file from the dev to my 2.4.6 installation but I didn't see any change!
Where should I place it? I placed it in my custom theme.

@nidhigupta13-ey
Copy link
Contributor Author

@cptX app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_progress-bar.less this is the path of the file. You can copy your file in this path.

@cptX
Copy link

cptX commented Mar 20, 2023

Hi @nidhigupta13-ey ,
I placed the file to my custom theme but I didn't see any change

app/design/frontend/MyName/MyCustomTheme/Magento_Checkout/web/css/source/module/checkout/_progress-bar.less

Should I place it exactly with the "Magento/luma" path or can it work with the above path as well? If it should work with my custom theme then unfortunately it didn't work...

@nidhigupta13-ey
Copy link
Contributor Author

@cptX try to place it with "Magento/luma" path

@cptX
Copy link

cptX commented Mar 20, 2023

@cptX try to place it with "Magento/luma" path

It didn't work even in Magento/luma path... I cannot see the progress bar in the checkout page in mobile...
As I said I'm using a custom Luma theme. Maybe this makes a difference, but still I think the solution is not working because I tried to place the file even in my custom theme...

@cptX
Copy link

cptX commented Mar 20, 2023

Also I see that in checkout in mobile the menu button (3 horizontal lines) is also missing. Is this expected? Does it make sense?

@nidhigupta13-ey
Copy link
Contributor Author

@cptX those three lines are not there in desktop view as well, so I don't think so it should be there in mobile view.

@cptX
Copy link

cptX commented Mar 21, 2023

OK regarding the Menu lines just ignore it. I still believe that the progress bar is not visible in mobile after the patch. Whatever I tried didn't work.
Is there any other workaround?

@Priyakshic Priyakshic added the Project: Community Picked PRs upvoted by the community label Nov 13, 2024
@engcom-Hotel
Copy link
Contributor

@magento run all tests

@engcom-Bravo
Copy link
Contributor

Hi @nidhigupta13-ey,

Thanks for the collaboration & contribution!

✔️ QA Passed

Preconditions:

  • Install fresh Magento 2.4-develop

Steps to reproduce

Use a mobile phone or mobile view in browser dev tools

  • Add an item to checkout
  • Go to checkout
  • Fill in the shipping data and click next
  • Being in payment mode there is no way to go back. There is no link to shipping. The checkout titles/links "Shipping" and "Review & Payments" are hidden from the top of the page.

Before: ✖️ 

Screenshot 2024-11-15 at 10 10 55

After: ✔️

Screenshot 2024-11-15 at 10 16 36 Screenshot 2024-11-15 at 10 17 26

Builds are failed. Hence, moving this PR to Extended Testing.

Thanks.

@engcom-Dash engcom-Dash self-assigned this Nov 20, 2024
@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

@magento run Unit Tests, Functional Tests CE, Functional Tests B2B

@engcom-Dash
Copy link
Contributor

@magento run Functional Tests CE, Functional Tests B2B

1 similar comment
@engcom-Dash
Copy link
Contributor

@magento run Functional Tests CE, Functional Tests B2B

@engcom-Dash
Copy link
Contributor

@magento run all tests

1 similar comment
@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

@magento run Integration Tests, Functional Tests CE, Functional Tests B2B

@magento-devops-reposync-svc magento-devops-reposync-svc merged commit 1022693 into magento:2.4-develop Dec 4, 2024
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Partner: EY partners-contribution Pull Request is created by Magento Partner Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: accept Project: Community Picked PRs upvoted by the community
9 participants