diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e56983e..6d204879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,10 @@ OIDC_REDIRECT_URI=https://your-dawarich-url.com/users/auth/openid_connect/callba - Support for KML file uploads. #350 - Added a commented line in the `docker-compose.yml` file to use an alternative PostGIS image for ARM architecture. +- User can now create a place directly from the map and add tags and notes to it. If reverse geocoding is enabled, list of nearby places will be shown as suggestions. +- User can create and manage tags for places. + - [ ] Tags can be added when creating or editing a place. +- User can enable or disable places layers on the map to show/hide all or just some of their places based on tags. ## Fixed diff --git a/app/controllers/api/v1/places_controller.rb b/app/controllers/api/v1/places_controller.rb index 1d30b07d..2579cce6 100644 --- a/app/controllers/api/v1/places_controller.rb +++ b/app/controllers/api/v1/places_controller.rb @@ -75,7 +75,7 @@ module Api end def place_params - params.require(:place).permit(:name, :latitude, :longitude, :source) + params.require(:place).permit(:name, :latitude, :longitude, :source, :note) end def tag_ids @@ -102,6 +102,7 @@ module Api latitude: place.latitude, longitude: place.longitude, source: place.source, + note: place.note, icon: place.tags.first&.icon, color: place.tags.first&.color, visits_count: place.visits.count, diff --git a/app/javascript/maps/places.js b/app/javascript/maps/places.js index 694831ef..2a221536 100644 --- a/app/javascript/maps/places.js +++ b/app/javascript/maps/places.js @@ -143,6 +143,7 @@ export class PlacesManager {
${this.escapeHtml(place.note)}
` : ''} ${place.visits_count ? `Visits: ${place.visits_count}
` : ''}