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

Overrides prop default flipping behaviour #12015

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

kafukoM
Copy link
Contributor

@kafukoM kafukoM commented Mar 22, 2024

Summary

This pull request extends the enhancements introduced in the recent KDS component update addressing this issue (learningequality/kolibri-design-system#432). It adjusts the constrainToScrollParent prop of the KDropdownMenu component within Kolibri. Previously, we updated the KDropdownMenu in the KDS repo to support a new prop allowing for more flexible dropdown positioning. This PR leverages that enhancement in Kolibri by setting constrainToScrollParent to false for a specific instance (Facility Settings template) of KDropdownMenu, ensuring that the dropdown always displays downwards, improving UX under specific layout conditions.

References

Issue in KDS - learningequality/kolibri-design-system#432
PR in KDS - learningequality/kolibri-design-system#586

Reviewer guidance

Steps to test

Go to Facility
Click Settings
Scroll down and create PIN if non-existent
Click Options button


Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional

@github-actions github-actions bot added APP: Facility Re: Facility App (user/class management, facility settings, csv import/export, etc.) DEV: frontend SIZE: very small labels Mar 22, 2024
@kafukoM
Copy link
Contributor Author

kafukoM commented Mar 22, 2024

@akolson @MisRob Kindly requesting for a review

@akolson akolson requested review from akolson and MisRob March 22, 2024 12:26
Copy link
Member

@akolson akolson left a comment

Choose a reason for hiding this comment

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

This change looks correct to me. Thanks @kafukoM.
I'll however add a blocker as this should only be merged after learningequality/kolibri-design-system#586 is merged and a new kds npm package published. Also, the KDS version in your pr should be updated accordingly before the merge.

@MisRob please be sure to let me know whenever the npm release from this fix is ready so this can be updated and merged as well. Thanks

@akolson akolson changed the title Overrides prop default flipping behaviour [DO NOT MERGE] Overrides prop default flipping behaviour Mar 22, 2024
@MisRob
Copy link
Member

MisRob commented Mar 22, 2024

@akolson I will release it by the beginning of next week

@akolson
Copy link
Member

akolson commented Mar 22, 2024

Thanks @MisRob!

@MisRob MisRob removed their request for review March 25, 2024 13:41
@akolson
Copy link
Member

akolson commented Mar 29, 2024

Hi @kafukoM, could you please update the KDS version of this pr to 3.1.1 so we can have manual QA on it?

"kolibri-design-system": "3.0.1",

@akolson
Copy link
Member

akolson commented Mar 29, 2024

Please remember to run yarn install and test it. Let me know when ready so I can tag manual QA. Feel free to add images, videos so QA is able to better understand what was fixed. Thanks

@akolson akolson changed the title [DO NOT MERGE] Overrides prop default flipping behaviour Overrides prop default flipping behaviour Mar 29, 2024
@kafukoM
Copy link
Contributor Author

kafukoM commented Apr 3, 2024

Hello @akolson. I have made the requested changes to the package.json file.

@akolson akolson requested review from pcenov and radinamatic April 3, 2024 12:43
Copy link
Member

@akolson akolson left a comment

Choose a reason for hiding this comment

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

This looks correct me. Tagging QA to have a look before the merge. Thanks @kafukoM!

Copy link
Member

@pcenov pcenov left a comment

Choose a reason for hiding this comment

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

Thanks @kafukoM - I confirm that this is implemented as specified and there are no issues observed while manually testing the drop-down.

@akolson
Copy link
Member

akolson commented Apr 9, 2024

Thanks @pcenov @kafukoM.

@akolson akolson merged commit 92a18c9 into learningequality:develop Apr 9, 2024
31 checks passed
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 SIZE: very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants