remove dedicated capacity page from nav and routing

Capacity functionality will be surfaced through insights instead.
This commit is contained in:
Graham McIntire 2026-03-12 12:20:23 -05:00
parent 904ced77b9
commit 1b8fb606a5
No known key found for this signature in database
2 changed files with 1 additions and 20 deletions

View file

@ -312,7 +312,7 @@ defmodule ToweropsWeb.Layouts do
}
class={[
"inline-flex items-center gap-1 h-14 sm:h-16 px-2 text-sm font-medium border-b-2 transition-colors",
if(@active_page in ["network-map", "insights", "trace", "activity", "capacity"],
if(@active_page in ["network-map", "insights", "trace", "activity"],
do:
"border-gray-900 text-gray-900 font-semibold dark:border-white dark:text-white",
else:
@ -385,19 +385,6 @@ defmodule ToweropsWeb.Layouts do
>
<.icon name="hero-clock" class="h-4 w-4 inline mr-2" />{t("Activity")}
</.link>
<.link
navigate={~p"/capacity"}
role="menuitem"
class={[
"block px-4 py-2 text-sm hover:bg-gray-100 dark:hover:bg-white/5",
if(@active_page == "capacity",
do: "text-gray-900 font-medium dark:text-white",
else: "text-gray-700 dark:text-gray-300"
)
]}
>
<.icon name="hero-signal" class="h-4 w-4 inline mr-2" />{t("Capacity")}
</.link>
</div>
</div>
</div>
@ -610,9 +597,6 @@ defmodule ToweropsWeb.Layouts do
<.mobile_nav_link navigate={~p"/activity"} active={@active_page == "activity"}>
<.icon name="hero-clock" class="size-5" /> {t("Activity")}
</.mobile_nav_link>
<.mobile_nav_link navigate={~p"/capacity"} active={@active_page == "capacity"}>
<.icon name="hero-signal" class="size-5" /> {t("Capacity")}
</.mobile_nav_link>
</div>
<!-- Organization & account -->

View file

@ -424,9 +424,6 @@ defmodule ToweropsWeb.Router do
# Alert routes
live "/alerts", AlertLive.Index, :index
# Capacity route
live "/capacity", CapacityLive, :index
# Agent routes
live "/agents", AgentLive.Index, :index
live "/agents/:id/edit", AgentLive.Edit, :edit