Skip to content

Fix problem actions dropdown positioned incorrect #31413

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

Conversation

mrtuvn
Copy link
Contributor

@mrtuvn mrtuvn commented Dec 23, 2020

Issue seem related with styles code. Before this patch dropdown position always show in right of grid and not correct position anymore when we move action to left.
Annoying issue when owner store move action column to near center of grid and grid have lot of columns
Issue can reproduce at cms page listing page with draggable actions column with some extra additional column

Before the fix
Screen Shot 2020-12-23 at 14 06 22

After apply this fix
Screen Shot 2020-12-23 at 14 07 02

Only small problem but i think this can acceptable
at the last item row. When click on actions link, downdown show but come with scroll vertical overlap some parts of dropdown content. May require user have to scroll down a bit to view entire all actions.

Here is example grid in product variants configurable product page in admin
action

Test case 1
Actions column drag to middle of grid have multiple columns
Previously: When user click active action, dropdown moved to far right side, unaccessable to click require scroll to last column to visible
Current: dropdown show in correct position right below action link

Test case 2
Re-test in smaller screen (1200px)
Actions column at last position when active dropdown display correct without jump of of block

Test case 3
No overflow with table have long width. Scrollbar horizontal will auto-show on demand at small screen resolution

Description (*)

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes Actions dropdown positioned against the last column, not against "Actions" colum #31379

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

As long as this action column at the last of table this issue will not able to happen. Dropdown will show correct as we expected
Should we allow admin can draggable this column ? In some case we will drag it to the end

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)
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Dec 23, 2020

Hi @mrtuvn. Thank you for your contribution
Here is some useful tips 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

You can find more information about the builds here

ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review.

For more details, please, review the Magento Contributor Guide documentation.

⚠️ According to the Magento Contribution requirements, all Pull Requests must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@m2-community-project m2-community-project bot added Priority: P3 May be fixed according to the position in the backlog. Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround. Progress: pending review labels Dec 23, 2020
@mrtuvn mrtuvn force-pushed the fix-action-dropdown-position-against branch 6 times, most recently from 07ef2c1 to 034f3e2 Compare December 26, 2020 05:54
@mrtuvn mrtuvn force-pushed the fix-action-dropdown-position-against branch from 034f3e2 to e3b6de7 Compare December 30, 2020 15:49
@mrtuvn mrtuvn force-pushed the fix-action-dropdown-position-against branch from e3b6de7 to 0931730 Compare January 6, 2021 23:30
@mrtuvn
Copy link
Contributor Author

mrtuvn commented Jan 6, 2021

code rebased

@ihor-sviziev ihor-sviziev self-assigned this Jan 12, 2021
@ihor-sviziev ihor-sviziev added the Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests label Jan 12, 2021
@ihor-sviziev
Copy link
Contributor

@magento run all tests

Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

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

Hi @mrtuvn,
It seems like this change caused a regression - some links became not clickable. Could you double-check and fix that?

@mrtuvn
Copy link
Contributor Author

mrtuvn commented Jan 13, 2021

Can you share any screenshot ?
From my setup actions link can clickable
Screen Shot 2021-01-13 at 16 34 37

@ihor-sviziev
Copy link
Contributor

@mrtuvn
Copy link
Contributor Author

mrtuvn commented Jan 13, 2021

i will check that again

@mrtuvn mrtuvn force-pushed the fix-action-dropdown-position-against branch from 0931730 to 291f3d1 Compare January 13, 2021 10:33
@ihor-sviziev
Copy link
Contributor

@magento run all tests

@magento-engcom-team
Copy link
Contributor

Hi @ihor-sviziev, thank you for the review.
ENGCOM-8626 has been created to process this Pull Request

@ihor-sviziev
Copy link
Contributor

ihor-sviziev commented Jul 26, 2021

@sivaschenko @gabrieldagama @sdzhepa , can we increase priority for this PR? It significantly improves user experience, when you're working with long-width grids.

PS: This issue was already fixed in 2017 in #10082, then it came back :(

@mrtuvn mrtuvn force-pushed the fix-action-dropdown-position-against branch from 52f2147 to 2c67e3c Compare July 27, 2021 01:03
@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.

@mrtuvn mrtuvn force-pushed the fix-action-dropdown-position-against branch from 2c67e3c to 8428645 Compare July 27, 2021 01:29
@mrtuvn
Copy link
Contributor Author

mrtuvn commented Jul 27, 2021

@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.

@sdzhepa sdzhepa added Priority: P2 A defect with this priority could have functionality issues which are not to expectations. and removed Priority: P3 May be fixed according to the position in the backlog. labels Jul 29, 2021
@engcom-Charlie engcom-Charlie self-assigned this Jul 30, 2021
@ihor-sviziev
Copy link
Contributor

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Unit 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.

@ihor-sviziev
Copy link
Contributor

@magento run Functional Tests CE, Functional Tests EE

@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.

@engcom-Charlie
Copy link
Contributor

✔️ QA Passed

Manual testing scenario:

  1. Go to Admin >> CMS >> Pages section or any grid
  2. Try to see the position of Action column's options when Action column is dragged to almost center of grid or towards left side.
  3. Try to see the position of Action column's options when grid have lot of extra columns in it and Action column is dragged to almost center of grid or towards left side.

Actual Result: ✔️

  1. Action Column moved to left side with original grid settings.

After: ✔️

image
Before: ✖️

image

  1. Action Column moved to left side with lots of extra columns added to grid.

After: ✔️

image
Before: ✖️

image

  1. See the Action drop down in smaller screens

After: ✔️

image

image

  1. The Action Option's link are working fine. Ex. Click on Delete of Enable Cookies record.

After: ✔️
image

Tested all the manual scenarios, no impact on regression testing.

@sidolov
Copy link
Contributor

sidolov commented Oct 14, 2021

@magento run Functional Tests B2B

@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.

@m2-community-project m2-community-project bot added the Priority: P3 May be fixed according to the position in the backlog. label Oct 24, 2021
@magento-engcom-team magento-engcom-team merged commit 0eeb76f into magento:2.4-develop Oct 24, 2021
@m2-assistant
Copy link

m2-assistant bot commented Oct 24, 2021

Hi @mrtuvn, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Design/Frontend Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Award: bug fix Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Priority: P3 May be fixed according to the position in the backlog. Progress: accept Release Line: 2.4 Severity: S3 Affects non-critical data or functionality and does not force users to employ a workaround.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Actions dropdown positioned against the last column, not against "Actions" colum
6 participants