Alexandre Segura
Alexandre Segura
It is because the courier usernames are pretty close, and the hashing algorithm that generates colors is generating the same color for all of them
Actually, it's because we don't use `formatted_address` https://github.com/coopcycle/coopcycle-web/blob/d957b75fd9329252ac05b381eda7c9424a6735c4/js/app/components/AddressAutosuggest/google.js#L27-L31
We can use [php-color-hash](https://github.com/shahonseven/php-color-hash) to generate a stable color based on the username.
### Step 1 Add properties to the `/api/restaurants` endpoint, so that it's possible right now to build the filters on the app. ``` "hydra:member":[ { "@id":"/api/restaurants/1", "@*@": "@*@", "cuisines": ["asian"],...
To avoid having to replicate translations on the app, the API would need to return data already translated. We could use the `Accept-Language` header to send the language, and the...
It seems to be because what is stored in the `task_rrule.template` column in database is wrong. It contains at the same time an `@id` column, and properties. Example: ```json {...
There is some code in [TaskRecurrenceRuleSubscriber](https://github.com/coopcycle/coopcycle-web/blob/28be69c966988d4aa24d0cfa0889d7a260e0e259/src/Doctrine/EventSubscriber/TaskRecurrenceRuleSubscriber.php) that persists the adresses entered in the modal (this is why we end up with addresses with an `@id`). We do this, to avoid...
We are using [BeautifyMarker](https://github.com/masajid390/BeautifyMarker), but maybe we would need to use another, more up-to-date custom marker library? Anyway, the changes need to be done here: https://github.com/coopcycle/coopcycle-web/blob/28be69c966988d4aa24d0cfa0889d7a260e0e259/js/app/MapHelper.js#L45-L53
Hey @stof please check my last commit, hope this is ok now
Hello @stof sorry for the delay to fix this I added assertions to avoid the fatal errors, does it look good ?