Private
Public Access
1
0

feat: add network analysis link to firewall logs and enhance statistics filtering for improved user navigation and interaction

This commit is contained in:
2025-12-03 17:48:04 -05:00
parent b6c79ac26d
commit 048693481f
2 changed files with 81 additions and 1 deletions

View File

@@ -347,6 +347,28 @@
padding-top: 0.5rem;
border-top: 1px solid rgba(var(--color-neutral), 0.3);
}
/* Network Analysis Link */
.firewall-network-link {
display: inline-flex;
align-items: center;
gap: 0.375rem;
padding: 0.25rem 0.5rem;
font-size: 0.7rem;
font-weight: 500;
border-radius: 0.375rem;
background-color: rgba(var(--color-primary), 0.1);
color: rgba(var(--color-primary), 1);
border: 1px solid rgba(var(--color-primary), 0.3);
text-decoration: none;
transition: all 0.15s ease;
white-space: nowrap;
}
.firewall-network-link:hover {
background-color: rgba(var(--color-primary), 0.2);
border-color: rgba(var(--color-primary), 0.5);
color: rgba(var(--color-primary), 1);
}
</style>
<div class="space-y-6">
@@ -1067,6 +1089,9 @@
<span x-show="sortField === 'destination_port'" x-text="sortDirection === 'asc' ? '▲' : '▼'" class="text-[10px]"></span>
</button>
</th>
<th class="text-left py-3 px-4 font-semibold text-sm">
Actions
</th>
</tr>
</thead>
<tbody>
@@ -1438,6 +1463,18 @@
</template>
</div>
</td>
<!-- Actions -->
<td class="py-3 px-4 text-sm">
<template x-if="log.source && log.source !== '-'">
<a :href="'{{ route('proxmox.server.statistics', ['server' => $server->id]) }}?network_search=' + encodeURIComponent(log.source) + '#network-analysis-card'"
class="firewall-network-link"
title="View connection in Network Analysis">
<x-ri-line-chart-line style="width: 14px; height: 14px;" />
<span>Network</span>
</a>
</template>
</td>
</tr>
</template>
</tbody>