-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FAU-418] Implement live search in the degree programs overview form #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed, the approach is a bit complicated because it uses a REST API JSON response, which requires generating HTML additionally. However, I like it because it's aligned with the general idea of using REST API. It could even be the first step to generating a degree program overview by getting REST API data from the providing website in real-time.
It works locally as expected.
Thanks!
resources/ts/degree-program-overview/degree-program-overview.ts
Outdated
Show resolved
Hide resolved
resources/ts/degree-program-overview/degree-program-overview.ts
Outdated
Show resolved
Hide resolved
resources/ts/degree-program-overview/degree-program-overview.ts
Outdated
Show resolved
Hide resolved
resources/ts/degree-program-overview/degree-program-overview.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for taking care of this, LGTM and works nicely locally.
There are only two things that I noticed:
- When typing something in the search input and then clear the search input, the search doesn't trigger, and previous keyword remains applied. same happens if you remove letter by letter, it works until 3 characters left.
- When triggering search, order and orderby are not preserved and get removed when filters are applied.
Thank you for the review!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for incorporating the changes, LGTM 💪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you a lot for working on this! It's a massive job 💪🏽 and working beautifully in my local tests.
Left very minor comments that don't stop me from approving. Thanks!
Co-authored-by: Philipp Bammes <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general. Left an a11y related comment.
Co-authored-by: Philipp Bammes <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature
What is the current behavior? (You can also link to an open issue here)
https://inpsyde.atlassian.net/browse/FAU-418
What is the new behavior (if this is a feature change)?
Added live search functionality, instead of page reloading we receive data via REST API.
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No
Other information:
Psalm issue should be fixed after we merge this PR.