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

Facility > Users - The Options drop-down is not functioning correctly when there are multiple users #9631

Closed
pcenov opened this issue Aug 17, 2022 · 8 comments
Assignees
Labels
APP: Facility Re: Facility App (user/class management, facility settings, csv import/export, etc.) DEV: frontend P2 - normal Priority: Nice to have TODO: needs QA re-review For stale issues that need to be revisited

Comments

@pcenov
Copy link
Member

pcenov commented Aug 17, 2022

Observed behavior

See the video. If there are a lot of users so that there is a scrollbar being displayed and you scroll down when you click the Options drop-down the scrollbar is pushed back up the page and you need to scroll down again to click the Options.

Steps to reproduce the issue

  1. Install the latest 0.16 develop build
  2. Go to the Facility > Users
  3. Scroll down the Users table and click the Options drop-down

Video

2022-08-16_14-55-38.mp4

Usage Details

Windows 10 and Ubuntu 20 - Chrome, Firefox, Edge

Additional References/Related Issues

Please see learningequality/kolibri-design-system#432

@pcenov
Copy link
Member Author

pcenov commented Aug 17, 2022

@radinamatic

@radinamatic radinamatic added this to the 0.16.0 milestone Aug 17, 2022
@radinamatic radinamatic added P2 - normal Priority: Nice to have APP: Facility Re: Facility App (user/class management, facility settings, csv import/export, etc.) DEV: frontend labels Aug 17, 2022
@Kej-r03
Copy link
Contributor

Kej-r03 commented Dec 26, 2022

Hi, I was working on this issue, and I find that the issue is most probably in the KDropdownMenu component, as the same issue is faced elsewhere too where KDropdownMenu is used.
But I am unable to locate the file where the component is defined in the codebase. It would be great if you can help me out with its location.

@rtibbles
Copy link
Member

@akolson I think you mentioned something on slack that is pertinent to this - do you know how this might be fixed?

@akolson
Copy link
Member

akolson commented Apr 15, 2023

@rtibbles yes, I suspect this is the same issue under discussion on slack, just manifesting in a different way. Below is my comment from slack on its potential fix;

Regarding Amelia's comment on positioning of the menu, we could achieve this behavior by adding support for the constrainToScrollParent prop in KDropdownMenu . This is a Keen Ui's UiPopover prop that by default is set to true to prevent overflows. Under the hood, we are using it to support the KDropdownMenu component. I think it would be a good to have an override to the default behavior. Below is a extract from keen UI regarding the prop:
image

@Kej-r03 for your next steps, you will need to make the fix in Kolibri Design System(KDS), our UI library. Because fixes in KDS are propagated across all platforms, you will need to do the following;

  1. Fix and test your changes locally. To test your changes locally, follow the instructions detailed here
  2. Once you have successfully resolved the issue locally, proceed to open a pull request and follow the instructions below. Thanks @MisRob for the detailed notes on this.
  1. Prepare a Kolibri PR for testing KDS change in Kolibri
  2. Updated Kolibri's core/package.json KDS dependency to the last commit of your KDS PR (this will be a commit on your fork, so its URL will be something like https://github.com/<your GH username>/kolibri-design-system#<commit hash>).
  3. Run yarn install to update yarn.lock
  4. Open a temporary Kolibri PR with updated core/package.json and yarn.lock. Indicate that the PR is only for testing. As an author of KDS changes to be tested, in either of these two related PRs, please mention some areas that may be prone to regression to @radinamatic so that she knows what places to test in Kolibri. Please add @radinamatic as a reviewer of your PR too.
  5. Close Kolibri PR after QA

This issue is related to learningequality/kolibri-design-system#432

cc @thanksameeelian

@akolson
Copy link
Member

akolson commented Apr 24, 2023

Hi @Kej-r03, Any progress regarding this issue? Incase you are experiencing any blockers, we are happy to help. Thanks

@thanksameeelian
Copy link
Contributor

@pcenov i picked up this issue but have been unable to replicate it. i was wondering if you might be able to re-review the scenario when you have a chance, to see if it's still occurring for you. here's a screen recording of one of my attempts to replicate - if i'm accidentally missing part of the process that's potentially triggering this issue, please let me know 🙂

unable-to-replicate-observed-dropdown-bug.mov

@thanksameeelian thanksameeelian added the TODO: needs QA re-review For stale issues that need to be revisited label May 12, 2023
@pcenov
Copy link
Member Author

pcenov commented May 15, 2023

@thanksameeelian @radinamatic I'm also no longer able to replicate this one - must have been fixed by some other changes.

@radinamatic
Copy link
Member

Closing as not extant anymore! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Facility Re: Facility App (user/class management, facility settings, csv import/export, etc.) DEV: frontend P2 - normal Priority: Nice to have TODO: needs QA re-review For stale issues that need to be revisited
Projects
None yet
Development

No branches or pull requests

6 participants