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

[Course Search] Refinements to search modal UX #211

Closed
bradenmacdonald opened this issue Apr 22, 2024 · 8 comments · Fixed by openedx/frontend-app-authoring#980
Closed
Labels
enhancement Relates to new features or improvements to existing features

Comments

@bradenmacdonald
Copy link
Contributor

bradenmacdonald commented Apr 22, 2024

Fixes to Paragon:

  1. The focus state of the button outline has a rounded edge when it should have a square edge (to match the button shape).
    image

Fixes to our content search modal:

  1. Please increase the spacing between the search keywords field and "This Course" so that there are a few pixels between them when the button is focused.
    image
  2. For each result, the course/library name should only appear in the breadcrumbs when “all courses” is selected. (Currently, it shows for the results in “this course” too.)
  3. If I enter a search term that yields no results, I am unable to open the “type” filter. Change it to behave like the "Tags" filter and display a message like "No types in current results" in that case.
  4. When the search modal opens, focus on the search keywords field so the user can start typing right away.
  5. NEW the number is not visible next to longer filter names (see “Open Response Assessmen...” below. Is it possible to ensure the number is always displayed (if necessary by making the menu wider, or wrapping the text to the next line)?
    image
  6. NEW Please order the options in the type filter by hierarchy:
    • Section
    • Subsection
    • Unit
    • and then the components in whichever order (perhaps alphabetical)

Other fixes if possible:

  1. After selecting a search result, the page zooms to the result in the course outline, but it seems to be “pinned” to the bottom of the page, rather than the top. It should appear closer to the top of the page.
    image
@bradenmacdonald bradenmacdonald added the enhancement Relates to new features or improvements to existing features label Apr 22, 2024
@yusuf-musleh
Copy link

@bradenmacdonald Just had a few questions about this:

  1. The focus state of the button outline has a rounded edge when it should have a square edge (to match the button shape).

For this one we want to make the changes in the paragon repo rather than styling in the course authoring mfe right?

  1. For each result, the course/library name should only appear in the breadcrumbs when “all courses” is selected. (Currently, it shows for the results in “this course” too.)

I wasn't able to reproduce this. I only get the Section onwards in the breadcrumbs when searching in "This course". It only shows the course name in the breadcrumb when searching "All courses".

This course

Screenshot 2024-04-23 at 10 39 33 AM

All courses

Screenshot 2024-04-23 at 10 48 39 AM

Was this a specific case/condition where this occurs?

  1. If I enter a search term that yields no results, I am unable to open the “type” filter. Change it to behave like the "Tags" filter and display a message like "No types in current results" in that case.

I wasn't able to reproduce this as well. I can still open the "Type" filter when there are no results found, and shows me a similar message to the "Tags" filter:

Screenshot 2024-04-23 at 10 45 35 AM

I tried it for both searching "This course" and "All courses". Was there also a special condition where this happens?

@bradenmacdonald
Copy link
Contributor Author

@yusuf-musleh

For this one we want to make the changes in the paragon repo rather than styling in the course authoring mfe right?

That's right, it should be fixed as generally as possible. You can see the bug on https://paragon-openedx.netlify.app/components/searchfield/#with-the-submit-button-outside-the-input .

For the others, hmm, maybe the latest version wasn't on the sandbox. Let's check again in a few days after all the current PRs are merged. Perhaps it's already done.

@yusuf-musleh
Copy link

@bradenmacdonald Got it 👍 , thanks!

@yusuf-musleh
Copy link

@bradenmacdonald Regarding the paragon bug, after looking into it I just wanted to confirm I understood the issue properly. In both cases, in our keyword search field and in the searchfield in the paragon docs you linked, the border radius in both is being set in the styles to be 0 (making it a square/rectangle), but the focus state remains on the original border radius.

The original border radius is being set/calculated here, from what I understand from the code, that should be automatically handling border radius overrides but the bug is that it currently isn't?

@bradenmacdonald
Copy link
Contributor Author

@yusuf-musleh Ah, I see. I forgot how it worked. I guess it would be enough to just fix the CSS in course-authoring, where it makes the border square to also make the focus rectangle square. But we should open an issue on Paragon saying that the current Open edX theme doesn't provide a way to "force" buttons to be square easily, and show that the "SearchField"'s default submit button's focus rect doesn't match its border shape.

@yusuf-musleh
Copy link

@bradenmacdonald Make sense, thanks for the clarification. I'll make the style change in course authoring and create a issue in paragon mentioning the above.

@yusuf-musleh
Copy link

@bradenmacdonald Opened the issue on Paragon: openedx/paragon#3038

@bradenmacdonald
Copy link
Contributor Author

@yusuf-musleh Based on some feedback from @ali-hugo, I added two items above in the description (6 and 7) - please take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Relates to new features or improvements to existing features
Projects
Development

Successfully merging a pull request may close this issue.

2 participants