github CESNET/inventory-monitor-plugin v13.5.0

latest releases: v15.3.0, v15.2.0, v15.1.0...
3 months ago

Added

  • Color-coded Service End and Warranty End dates. The Service End and
    Warranty End columns in asset tables (and Service End in asset service
    tables) now render each date as a badge — red when the date has passed,
    orange when it falls within the configured warning window, green
    when it is further out or open-ended. Hovering a badge shows the same
    human-readable message as the status bars ("Expired 11 years ago",
    "Expires in 45 days"). Assets with several services get one badge per
    service, aligned with the Service Start and Service Status columns. A
    period with a start but no end is open-ended coverage and shows a green ∞
    badge; a record with no dates at all keeps the usual placeholder. The badges
    export as plain ISO dates, matching the other date columns. (#22)
  • Asset type badges in the asset table now pick black or white text based on
    the type color, using NetBox's fgcolor filter. Dark type colors such as
    blue or purple were previously unreadable. (#22)
  • Expired and expiring date badges carry an icon in addition to their color, so
    the "needs attention" states survive color blindness and greyscale printing
    (WCAG 1.4.1). Every badge and status bar also exposes an aria-label. (#22)
  • Status bars on contract, invoice, asset and asset service detail pages now
    show the date range on hover, which previously only the asset list did.
  • Service Status and Warranty Status filters on the Asset list, matching
    the color bands above: Expired / Expiring soon / Valid / No service
    records
    (Not set for warranty). Both are multi-select and return the union
    of the selected bands. Service Status uses any-match semantics — an asset with
    one expired and one valid service appears under both. Available in the UI and
    over REST (?service_status=expired). (#22)

Fixed

  • The date badges and the status bars could disagree. The badges used a
    second, parallel status function, so a period that had not started yet showed
    blue "Starts in 30 days" in the status column but green "Valid until …" in the
    end-date column, and an object with no dates at all showed a placeholder in one
    and a green badge in the other. Both now read the same
    get_<type>_status() through the get_status template filter, so they cannot
    diverge. Verified across 244 rendered row/column pairs. (#22)
  • Warranty Start (asset tables) and Service Start (asset service tables)
    rendered dates in the localized long format, e.g. "June 3, 2022", while every
    other date in the plugin uses ISO YYYY-MM-DD. Both now use NetBox's
    DateColumn, so all date columns and CSV exports agree. (#22)
  • Date status messages said "Expired in 0 days" for a date falling on today.
    They now read "Expired today" / "Expires today". This also affects the
    existing Service, Warranty and Invoicing status bars.

Changed

  • Status bars and date badges are rendered by two shared includes
    (inc/status_badge.html, inc/date_badge.html) instead of hand-built
    template strings. role="progressbar" was dropped from the bars — they are
    always full width, so they label a state rather than measure progress, and the
    role made screen readers announce a progress bar with nothing to report. All
    tooltips now use data-bs-toggle="tooltip" rather than a mix of Bootstrap and
    bare title attributes.
  • warning_days now falls back to defaults (service: 60, warranty: 60,
    invoicing: 30) when a key is not configured, so color indicators work out of
    the box. Previously a missing key meant no colors at all. Deployments that
    relied on omitting warning_days to suppress color indicators will now see
    them
    — set the key explicitly to None (e.g. "warning_days": {"service": None}) to keep them off.

Don't miss a new inventory-monitor-plugin release

NewReleases is sending notifications on new releases.