ui/remove-device-type-column (#49)

Co-authored-by: Forgejo Actions <actions@git.mcintire.me>
Reviewed-on: graham/towerops-web#49
This commit is contained in:
Graham McIntire 2026-03-16 16:38:00 -05:00 committed by graham
parent c5481c2cd3
commit 06c5d14455
3 changed files with 2 additions and 34 deletions

View file

@ -32,7 +32,7 @@ spec:
type: RuntimeDefault
initContainers:
- name: migrate
image: git.mcintire.me/graham/towerops-web:production-1773686604-cdc40b3
image: git.mcintire.me/graham/towerops-web:production-1773688540-020a55c
imagePullPolicy: IfNotPresent
command: ["/app/bin/migrate"]
securityContext:
@ -104,7 +104,7 @@ spec:
cpu: "500m"
containers:
- name: towerops
image: git.mcintire.me/graham/towerops-web:production-1773686604-cdc40b3
image: git.mcintire.me/graham/towerops-web:production-1773688540-020a55c
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false

View file

@ -453,13 +453,6 @@ defmodule ToweropsWeb.DeviceLive.Index do
}
end
defp device_type_icon(:router), do: "hero-signal"
defp device_type_icon(:switch), do: "hero-squares-2x2"
defp device_type_icon(:wireless), do: "hero-wifi"
defp device_type_icon(:server), do: "hero-server"
defp device_type_icon(:workstation), do: "hero-computer-desktop"
defp device_type_icon(_), do: "hero-question-mark-circle"
defp device_type_label(type) do
type |> to_string() |> String.capitalize()
end

View file

@ -276,12 +276,6 @@
>
{t("Status")}
</th>
<th
scope="col"
class="hidden md:table-cell px-3 py-2 text-left text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-gray-400"
>
{t("Type")}
</th>
<th
scope="col"
class="hidden md:table-cell px-3 py-2 text-left text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-gray-400"
@ -462,25 +456,6 @@
</span>
</.link>
</td>
<td class="hidden md:table-cell p-0 whitespace-nowrap">
<.link
navigate={~p"/devices/#{row.device.id}"}
class={[
"flex items-center gap-1.5 px-3 text-inherit no-underline",
"py-2"
]}
>
<.icon
name={device_type_icon(row.device.device_role)}
class="h-3.5 w-3.5 text-gray-400 dark:text-gray-500 dark:text-gray-400 flex-shrink-0"
/>
<span class="text-xs text-gray-600 dark:text-gray-400">
{(row.device.device_role || :unknown)
|> to_string()
|> String.capitalize()}
</span>
</.link>
</td>
<td class="hidden md:table-cell p-0 whitespace-nowrap">
<.link
navigate={~p"/devices/#{row.device.id}"}