diff --git a/lib/towerops_web/components/layouts.ex b/lib/towerops_web/components/layouts.ex index 66166a87..13b6224a 100644 --- a/lib/towerops_web/components/layouts.ex +++ b/lib/towerops_web/components/layouts.ex @@ -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 - 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")} - @@ -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 navigate={~p"/capacity"} active={@active_page == "capacity"}> - <.icon name="hero-signal" class="size-5" /> {t("Capacity")} - diff --git a/lib/towerops_web/router.ex b/lib/towerops_web/router.ex index e45a946b..24bc6377 100644 --- a/lib/towerops_web/router.ex +++ b/lib/towerops_web/router.ex @@ -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