-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add dropdown for postcode radius search on directory service list #425
base: master
Are you sure you want to change the base?
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.
Dropdown isn't defaulting to 2 miles, it's empty.
Dropdown is appearing grey - I'd assumed disabled - but it isn't.
Should dropdown be useable if postcode isn't entered?
{ title: '2 miles', value: '2' }, | ||
{ title: '5 miles', value: '5' }, | ||
{ title: '10 miles', value: '10' }, | ||
{ title: '20+ miles', value: '50' }, |
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.
Description and limit don't match - should this be a limit of 20 or a limit of 50?
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.
The radius has to be an integer, so setting to 50 to include most of West Northamptonshire.
The new meilisearch will use the _geoRadius method so needs a distance value (the backend will turn the miles into metres.
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.
So shouldn't the title be '50 miles'? As 51 is '20+' but wouldn't be included.
More research and feedback needed for this feature so converting to a draft pull request. |
Testing
npm run dev