No visual message when geolocate returns nothing

Created on 21 May 2025, 15 days ago

Problem/Motivation

Trying to geolocate on a non existing address fails and displays no visual error or notice to end user.

Steps to reproduce

Try to geolocate a non existing address.

Proposed resolution

Display a nice error to end user when trying to geolocate a non existing address.

Remaining tasks

Create MR.

User interface changes

Nice error when trying to geolocate a non exsiting address.

API changes

None.

Data model changes

None.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium tim-diels Belgium 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @tim-diels
  • Merge request !7Provide console logs with helpfull info → (Open) created by tim-diels
  • Pipeline finished with Success
    15 days ago
    Total: 144s
    #503344
  • 🇧🇪Belgium tim-diels Belgium 🇧🇪

    I added some console logs to make it clear what is happening. Also did a check on the address if not empty and then don't call the geolocation provider.

    This can however be improved and show a message in the website itself. I was looking at https://www.drupal.org/node/2930536but that will print the message on top of the webpage and is not ideally. The message should appear inside the fieldset? I would suggest on adding a message container in the fieldset and attach the messages there. But other ideas are welcome on how to tackle this.

  • 🇧🇪Belgium tim-diels Belgium 🇧🇪

    I did not find a quick solution to have the messages in an own container. So for now I added them to the global container as we're going to use Toastify to print the messages in a better way. If someone wants to improve this, feel free to do so.

  • Pipeline finished with Success
    15 days ago
    Total: 145s
    #503741
Production build 0.71.5 2024