-
Notifications
You must be signed in to change notification settings - Fork 4
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
Gh-524-search-page #587
Gh-524-search-page #587
Conversation
441dcb2
to
56b2e15
Compare
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.
Overall this is very good @OButlerOcc . It works as expected, and your inclusion of test cases are well thought out.
I have left a few minor things for you cleanup before we'll consider this finished, if you see to them please.
src/app/catalogue-search/catalogue-search-form/catalogue-search-form.component.html
Show resolved
Hide resolved
src/app/catalogue-search/catalogue-search-form/catalogue-search-form.component.html
Outdated
Show resolved
Hide resolved
src/app/catalogue-search/catalogue-search-form/catalogue-search-form.component.html
Outdated
Show resolved
Hide resolved
} | ||
|
||
reset() { | ||
this.formGroup.controls.context.setValue(null); |
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.
I've noticed that clicking the "Reset" button doesn't actually clear the context selection tree control. Because that is a custom control, perhaps you need to manually reset the inputs for it.
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.
Did not fix for now, using the MDMTreeSearchComponent as a view child binds the components together and want to avoid modifying MDMTreeSearchComponent if possible. Could also use the broadcast service but that seems out of scope for a small change
src/app/catalogue-search/catalogue-search-form/catalogue-search-form.component.scss
Outdated
Show resolved
Hide resolved
src/app/catalogue-search/catalogue-search/catalogue-search.component.scss
Outdated
Show resolved
Hide resolved
src/app/catalogue-search/catalogue-search-listing/catalogue-search-listing.component.ts
Outdated
Show resolved
Hide resolved
src/app/catalogue-search/catalogue-search/catalogue-search.component.spec.ts
Show resolved
Hide resolved
Co-authored-by: Peter Monks <Peter.Monks@oxfordcc.co.uk>
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.
Excellent! 👍 🥇 Thanks for your hard work.
Approved ✔️
Rewrote search page.
Search page routes to search listing with url params
Tests for each part of the form