hasadna / open-bus-map-search

open-bus-map-search
https://open-bus-map-search.hasadna.org.il/dashboard
MIT License
48 stars 85 forks source link

Feature | Add complaint button to bus tooltip #774

Open NoamGaash opened 1 month ago

NoamGaash commented 1 month ago

We want a button that will allow users to complaint about the bus.

When clicking the button, a new modal should be opened.

The modal will contain a form that will contain all information required for MOT complaint (הטופס יכיל את כל מה שהכרחי בשביל שנוכל להעביר את התלונה למשרד התחבורה):

After the user fill the form, all information available on the point will be attached to a data attribute, and the following object should be created:

{
    "userData": {
        "firstName": "",
        "lastName": "",
        ...
    },
    "databusData": {
        "operator": "",
        ...
    }
}

image

curl -X "PUT" -H "Content-Type: application/json" -d "{\"id\": \"1234\", \"name\": \"Hello, world\!\"}" https://isz2k63tl2.execute-api.us-west-2.amazonaws.com/complaints
LiadOvdat5 commented 4 weeks ago

Hi! I think I can handle it, please assign me :)

NoamGaash commented 4 weeks ago

@LiadOvdat5 Thank you! Good luck