From 78ac365c008e87dd8eebc8d79606d30b39db87d4 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sun, 23 Nov 2025 00:43:31 +0100 Subject: [PATCH] Some fixes --- CHANGELOG.md | 12 ++++++++++++ .../controllers/color_picker_controller.js | 7 ++++++- app/views/imports/_form.html.erb | 2 +- app/views/settings/index.html.erb | 2 +- app/views/tags/_form.html.erb | 14 ++++++-------- .../20251028130433_add_omniauth_to_users.rb | 5 +++-- .../20251116184506_add_user_id_to_places.rb | 6 ++++-- ...20251118204141_add_privacy_radius_to_tags.rb | 17 +++++++++++++++-- db/migrate/20251118210506_add_note_to_places.rb | 2 +- 9 files changed, 49 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5bfb34b..dc1e9553 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +## TEST + +- [ ] KML upload +- [ ] OIDC login with Authentik + - [ ] How does it work with existing settings to disable registrations? +- [ ] Place creation +- [ ] Tag creation + management +- [ ] Place privacy zones +- [ ] Settings panel is scrollable +- [ ] Family members can enable their location sharing and see each other on the map +- [ ] Home location + # OIDC and KML support release To configure your OIDC provider, set the following environment variables: diff --git a/app/javascript/controllers/color_picker_controller.js b/app/javascript/controllers/color_picker_controller.js index 035584ae..e6f562b9 100644 --- a/app/javascript/controllers/color_picker_controller.js +++ b/app/javascript/controllers/color_picker_controller.js @@ -3,7 +3,7 @@ import { Controller } from "@hotwired/stimulus" // Enhanced Color Picker Controller // Based on RailsBlocks pattern: https://railsblocks.com/docs/color-picker export default class extends Controller { - static targets = ["picker", "display", "input", "swatch"] + static targets = ["picker", "display", "displayText", "input", "swatch"] static values = { default: { type: String, default: "#6ab0a4" } } @@ -49,6 +49,11 @@ export default class extends Controller { this.displayTarget.style.backgroundColor = color } + // Update display text + if (this.hasDisplayTextTarget) { + this.displayTextTarget.textContent = color + } + // Update active swatch styling this.updateActiveSwatchWithColor(color) diff --git a/app/views/imports/_form.html.erb b/app/views/imports/_form.html.erb index 9b928b0d..fca03032 100644 --- a/app/views/imports/_form.html.erb +++ b/app/views/imports/_form.html.erb @@ -7,7 +7,7 @@
  • ✅ GPX: Track files (.gpx)
  • ✅ GeoJSON: Feature collections (.json)
  • ✅ OwnTracks: Recorder files (.rec)
  • -
  • ✅ KML: KML files (.kml)
  • +
  • ✅ KML: KML files (.kml, .kmz)
  • File format is automatically detected during upload. diff --git a/app/views/settings/index.html.erb b/app/views/settings/index.html.erb index d33d86b1..94e70556 100644 --- a/app/views/settings/index.html.erb +++ b/app/views/settings/index.html.erb @@ -69,7 +69,7 @@
    - <% unless DawarichSettings.self_hosted? %> + <% unless DawarichSettings.self_hosted? || current_user.provider.blank? %>

    <%= icon 'link', class: "text-primary mr-1" %> Connected Accounts diff --git a/app/views/tags/_form.html.erb b/app/views/tags/_form.html.erb index e9e5e609..8f35a923 100644 --- a/app/views/tags/_form.html.erb +++ b/app/views/tags/_form.html.erb @@ -71,13 +71,11 @@
    @@ -92,7 +90,7 @@

    - <%= f.hidden_field :color, data: { color_picker_target: "input" } %> + <%= f.hidden_field :color, value: tag.color.presence || '#6ab0a4', data: { color_picker_target: "input" } %>