Update esbuild 0.27.4 and tailwind 4.2.2, add viewshed logging

This commit is contained in:
Graham McIntire 2026-03-31 13:15:56 -05:00
parent bfd9ed6339
commit 6e5409bcd9
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
2 changed files with 7 additions and 3 deletions

View file

@ -9,7 +9,7 @@ import Config
# Configure esbuild (the version is required)
config :esbuild,
version: "0.25.4",
version: "0.27.4",
microwaveprop: [
args:
~w(js/app.js --bundle --target=es2022 --outdir=../priv/static/assets/js --external:/fonts/* --external:/images/* --alias:@=.),
@ -67,7 +67,7 @@ config :phoenix, :json_library, Jason
# Configure tailwind (the version is required)
config :tailwind,
version: "4.1.12",
version: "4.2.2",
microwaveprop: [
args: ~w(
--input=assets/css/app.css

View file

@ -6,6 +6,8 @@ defmodule MicrowavepropWeb.MapLive do
alias Microwaveprop.Propagation.BandConfig
alias Microwaveprop.Terrain.Viewshed
require Logger
@default_band 10_000
@initial_bounds %{
"south" => 29.5,
@ -121,6 +123,7 @@ defmodule MicrowavepropWeb.MapLive do
@impl true
def handle_async(:viewshed, {:ok, result}, socket) do
points = Enum.map(result.boundary, fn p -> %{lat: p.lat, lon: p.lon} end)
Logger.info("Viewshed complete: #{length(points)} boundary points")
socket =
push_event(socket, "viewshed_result", %{
@ -131,7 +134,8 @@ defmodule MicrowavepropWeb.MapLive do
{:noreply, socket}
end
def handle_async(:viewshed, {:exit, _reason}, socket) do
def handle_async(:viewshed, {:exit, reason}, socket) do
Logger.warning("Viewshed computation failed: #{inspect(reason)}")
{:noreply, socket}
end