diff --git a/CHANGELOG.md b/CHANGELOG.md index 2214351..b4525a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # CHANGELOG (v0.1.X) +## 0.1.10 🚀 (2025-05-26) + +### Backwards incompatible changes for 0.1.9 + * None + +### Bug fixes + * None + +### Enhancements + * [[`PR-18`](https://github.com/thiagoesteves/observer_web/pull/18)] Normalizing functions and adding highlight to nodes that are current online for metrics + ## 0.1.9 🚀 (2025-05-07) ### Backwards incompatible changes for 0.1.8 diff --git a/lib/web/components/metrics/phx_lv_socket.ex b/lib/web/components/metrics/phx_lv_socket.ex index 361bf93..b8ba93b 100644 --- a/lib/web/components/metrics/phx_lv_socket.ex +++ b/lib/web/components/metrics/phx_lv_socket.ex @@ -5,6 +5,7 @@ defmodule Observer.Web.Components.Metrics.PhxLvSocket do use Phoenix.Component alias Observer.Web.Components.Metrics.Common + alias Observer.Web.Helpers attr :title, :string, required: true attr :service, :string, required: true @@ -18,7 +19,7 @@ defmodule Observer.Web.Components.Metrics.PhxLvSocket do :if={String.match?(@metric, ~r/^phoenix\.liveview\.socket\..+\.total$/)} style={"grid-column: span #{@cols};"} > - <% id = String.replace("#{@service}-#{@metric}", ["@", ".", "/"], "-") %> + <% id = Helpers.normalize_id("#{@service}-#{@metric}") %>