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

UHF-10773: Helsinki near you - Services block #793

Merged
merged 11 commits into from
Dec 17, 2024
Merged

UHF-10773: Helsinki near you - Services block #793

merged 11 commits into from
Dec 17, 2024

Conversation

teroelonen
Copy link
Contributor

@teroelonen teroelonen commented Dec 10, 2024

UHF-10773

What was done

  • Add services near you block to Helsinki near you results page with dummy links.

How to install

  • Make sure your instance is up and running on correct branch.
    • git checkout UHF-10773
    • composer require drupal/hdbt:dev-UHF-10773
    • make fresh
  • Run make drush-cr

How to test

Sketch: https://www.figma.com/design/udh2zu4J95VYDIzT7DtbXW/Alueellisuus?node-id=4161-11902&t=v6YlVbP2sDsyihz1-4

Continuous documentation

  • This feature has been documented/the documentation has been updated
  • This change doesn't require updates to the documentation

Translations

  • Translations have been added to .po -files and included in this PR

Other PRs

@jeremysteerio jeremysteerio marked this pull request as ready for review December 13, 2024 07:17
@juho-lehmonen juho-lehmonen self-requested a review December 13, 2024 08:46
Copy link
Contributor

@juho-lehmonen juho-lehmonen left a comment

Choose a reason for hiding this comment

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

Looks good, just found a small issue with the address XSS filtering.

* The request.
*
* @return array
* A renderable array.
*/
public function content(Request $request) : array|RedirectResponse {
$address = $request->query->get('q');
$address = Xss::filter($request->query->get('q'));
Copy link
Contributor

Choose a reason for hiding this comment

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

This causes a deprecated function warning if the query parameter is left empty. Should we check if this is NULL or empty before running it through the filter?

Copy link

@jeremysteerio jeremysteerio merged commit e6dacbb into dev Dec 17, 2024
3 checks passed
@jeremysteerio jeremysteerio deleted the UHF-10773 branch December 17, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants