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

[fix] responsive onboarding setup wizard #11847

Merged
merged 4 commits into from
Feb 26, 2024

Conversation

FidalMathew
Copy link
Contributor

Summary

Made the setup wizard responsive for screen size by eliminating max-width.

video.mp4

References

fixes #7997

Reviewer guidance


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
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@github-actions github-actions bot added APP: Setup Wizard Re: Setup Wizard (facility import, superuser creation, settings, etc.) DEV: frontend SIZE: very small labels Feb 8, 2024
Copy link
Member

@AlexVelezLl AlexVelezLl left a comment

Choose a reason for hiding this comment

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

Hi @FidalMathew! Unfortunately, this doesn't seem like the right change. The issue referred to the fact that the number of items in the language list changed even though the width of the card container did not change, but instead changed depending on the width of the window.
Look at these two cases:

image

image

In both of them, the width of the card is the same, 700px, but in the second one there is one less item than in the first one, and that is because the window is narrower, but it shouldn't be like that.

It is an issue with the way we calculate the number of visible languages.

@AlexVelezLl AlexVelezLl self-assigned this Feb 8, 2024
@FidalMathew
Copy link
Contributor Author

@AlexVelezLl Thanks for the clarification. I am considering fetching the width of the OnboardingStepBase component and passing its width as props to LanguageSwitcherList. Using width, we can set the breakpoints for numVisibleLanguageBtns. Is this a good approach to solving the issue?

@AlexVelezLl
Copy link
Member

Oh @FidalMathew I think you can add a ref to the div container and obtain its width

@FidalMathew
Copy link
Contributor Author

FidalMathew commented Feb 9, 2024

Oh @FidalMathew I think you can add a ref to the div container and obtain its width

Got it! Thanks @AlexVelezLl

@FidalMathew
Copy link
Contributor Author

@AlexVelezLl Could you take a look at the PR?

@MisRob MisRob added the TODO: needs review Waiting for review label Feb 12, 2024
@pcenov
Copy link
Member

pcenov commented Feb 15, 2024

Hi @FidalMathew and @AlexVelezLl - can we do something for the position of the 'More languages' label - currently when I select a language different than English there are some cases where it goes on the second line which should be avoided if possible:

2024-02-15_14-18-41.mp4

@FidalMathew
Copy link
Contributor Author

Hi @FidalMathew and @AlexVelezLl - can we do something for the position of the 'More languages' label - currently when I select a language different than English there are some cases where it goes on the second line which should be avoided if possible:

2024-02-15_14-18-41.mp4

Thanks @pcenov, I'll look into this issue.

@FidalMathew
Copy link
Contributor Author

@pcenov do you have any suggestions on how to approach this issue?

@AlexVelezLl
Copy link
Member

AlexVelezLl commented Feb 20, 2024

Hi @FidalMathew, we are devleoping a new KDS component that I think would fit good for doing this. But could take some more time.

@pcenov, Can we accept this as a solution for the original issue regarding the items hiding regardless of whether there is still space in the container?, and make a follow up issue about it only taking a single line? Since for this there are some other dependencies that we should develop first.

@FidalMathew
Copy link
Contributor Author

Hi @FidalMathew, we are devleoping a new KDS component that I think would fit good for doing this. But could take some more time.

@pcenov, Can we accept this as a solution for the original issue regarding the items hiding regardless of whether there is still space in the container?, and make a follow up issue about it only taking a single line? Since for this there are some other dependencies that we should develop first.

Thanks for letting me know! 😄

@pcenov pcenov self-requested a review February 23, 2024 08:05
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.

Hi @AlexVelezLl - yes, certainly!

Copy link
Member

@AlexVelezLl AlexVelezLl left a comment

Choose a reason for hiding this comment

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

Thank you all! LGTM :). We will follow it up in #11923.

@AlexVelezLl AlexVelezLl merged commit 18c297c into learningequality:release-v0.16.x Feb 26, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Setup Wizard Re: Setup Wizard (facility import, superuser creation, settings, etc.) DEV: frontend SIZE: small SIZE: very small TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants