feat: client software overview based on netbox-slm

New page "Client Software Übersicht" in a "Software" group of the netbox-inventory
menu (fallback: own Hardware menu). It shows, per tenant or tenant group
including subgroups, the software products recorded with netbox-slm, their
versions and the clients they are installed on: key figures, charts of the most
widespread products and their version distribution, a sortable and searchable
product list, a drill-down per product/version with the list of clients, and a
CSV export. Without an own selection the global tenant filter applies; the
device role filter is pre-set to the configured client roles.

Devices with a client role (software_device_roles, default "Clients") get a
"Software" tab listing their installations with add, edit and delete actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-18 14:18:59 +01:00
1 parent 5d6c4c9cd8
commit 63b3b31763
15 files changed
+1209 -3

No files matched your search

@@ -562,3 +562,146 @@ a.nbu-disk-slot[draggable="true"] {
border-color: #fd7e14 transparent transparent transparent;
background: none;
}
/* Client Software Übersicht */
.nbu-sw-kpi-label {
color: var(--tblr-secondary);
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.nbu-sw-kpi-value {
font-size: 1.75rem;
font-weight: 700;
line-height: 1.2;
font-variant-numeric: tabular-nums;
}
.nbu-sw-kpi-hint {
color: var(--tblr-secondary);
font-size: 0.8125rem;
margin-top: 0.25rem;
}
.nbu-sw-kpi-warning {
border-left: 4px solid var(--tblr-danger);
}
.nbu-sw-kpi-warning .nbu-sw-kpi-value {
color: var(--tblr-danger);
}
.nbu-sw-bars li + li {
margin-top: 0.25rem;
}
.nbu-sw-bar-row {
display: grid;
grid-template-columns: minmax(6rem, 13rem) 1fr minmax(5.5rem, auto);
gap: 0.75rem;
align-items: center;
padding: 0.3rem 0.5rem;
border-radius: var(--tblr-border-radius);
color: inherit;
text-decoration: none;
}
.nbu-sw-bar-row:hover,
.nbu-sw-bar-row:focus-visible,
.nbu-sw-bar-row.active {
background: var(--tblr-bg-surface-secondary, rgba(var(--tblr-primary-rgb), 0.06));
color: inherit;
text-decoration: none;
}
.nbu-sw-bar-row.active {
outline: 2px solid rgba(var(--tblr-primary-rgb), 0.5);
}
.nbu-sw-bar-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nbu-sw-bar-track {
height: 0.75rem;
border-radius: 999px;
background: rgba(var(--tblr-secondary-rgb, 108, 122, 145), 0.15);
overflow: hidden;
}
.nbu-sw-bar-fill {
display: block;
height: 100%;
min-width: 2px;
border-radius: 999px;
background: color-mix(in srgb, var(--tblr-primary) var(--nbu-sw-shade, 100%), transparent);
}
.nbu-sw-bar-value {
text-align: right;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
/* Versionsverteilung als gestapelter Balken, neueste Version links und am kräftigsten */
.nbu-sw-stack {
display: flex;
gap: 2px;
height: 0.75rem;
min-width: 6rem;
border-radius: 999px;
overflow: hidden;
}
.nbu-sw-stack-part {
min-width: 3px;
background: color-mix(in srgb, var(--tblr-primary) var(--nbu-sw-shade, 100%), transparent);
}
.nbu-sw-stack-part.nbu-sw-expired,
.nbu-sw-bar-fill.nbu-sw-expired {
background: repeating-linear-gradient(
135deg,
var(--tblr-danger) 0 4px,
color-mix(in srgb, var(--tblr-danger) 45%, transparent) 4px 8px
);
}
.nbu-sw-sortable {
cursor: pointer;
user-select: none;
white-space: nowrap;
}
.nbu-sw-sortable::after {
content: "\F04BF"; /* mdi-unfold-more-horizontal */
font-family: "Material Design Icons";
margin-left: 0.25rem;
opacity: 0.35;
}
.nbu-sw-sortable[aria-sort="ascending"]::after {
content: "\F0143"; /* mdi-chevron-up */
opacity: 1;
}
.nbu-sw-sortable[aria-sort="descending"]::after {
content: "\F0140"; /* mdi-chevron-down */
opacity: 1;
}
@media (max-width: 575.98px) {
.nbu-sw-bar-row {
grid-template-columns: 1fr minmax(4.5rem, auto);
}
.nbu-sw-bar-row .nbu-sw-bar-track,
.nbu-sw-bar-row .nbu-sw-stack {
grid-column: 1 / -1;
grid-row: 2;
}
}