diff --git a/lib/towerops_web/live/changelog_live.ex b/lib/towerops_web/live/changelog_live.ex deleted file mode 100644 index d8364c94..00000000 --- a/lib/towerops_web/live/changelog_live.ex +++ /dev/null @@ -1,102 +0,0 @@ -defmodule ToweropsWeb.ChangelogLive do - @moduledoc """ - LiveView for displaying the user-facing changelog ("What's New"). - """ - use ToweropsWeb, :live_view - - @impl true - def mount(_params, _session, socket) do - entries = ToweropsWeb.ChangelogParser.parse_file() - latest_date = ToweropsWeb.ChangelogParser.latest_date() - - socket = - socket - |> assign(:page_title, "What's New") - |> assign(:entries, entries) - |> assign(:latest_date, latest_date) - - {:ok, socket} - end - - @impl true - def handle_params(_params, _url, socket) do - {:noreply, socket} - end - - @impl true - def render(assigns) do - ~H""" - -
-
-

- <.icon name="hero-sparkles" class="h-7 w-7 text-blue-500" /> - What's New -

-

- Recent updates, improvements, and fixes to Towerops -

-
- -
- -
-
-
- -
- <%= for entry <- @entries do %> -
-
-
- -
-
-
- - - — {entry.title} - -
-
- -
    - <%= for item <- entry.items do %> -
  • - {type_icon(item.type)} - {item.text} -
  • - <% end %> -
-
-
- <% end %> -
-
-
-
- """ - end - - defp format_date(date_str) do - case Date.from_iso8601(date_str) do - {:ok, date} -> - Calendar.strftime(date, "%B %-d, %Y") - - _ -> - date_str - end - end - - defp type_icon(:new), do: "✨" - defp type_icon(:fix), do: "🔧" - defp type_icon(:improvement), do: "📊" - defp type_icon(:security), do: "🔒" - defp type_icon(_), do: "•" -end