Skip to content

[Feature]: Custom OS Icon & Category for Templates #536

Description

@Dickboom

Feature Description

Summary

Currently, the Templates page only supports a fixed set of OS categories and icons. Any non-standard OS (e.g. Anolis OS, openEuler, Rocky Linux, AlmaLinux, etc.) falls into the "Custom" bucket with a generic icon, making it hard to visually distinguish templates at a glance, especially when managing a large number of them.

This request covers two related improvements:


Problem / Use Case

Problem 1: No custom OS icon support

When a template is created from a non-mainstream distribution, ProxCenter displays a generic/default icon. There is no way to assign a custom icon to a template or override the auto-detected one.

Expected behavior: Users should be able to upload or specify a custom icon (e.g. PNG/SVG) for a template, which is then displayed in the template list and detail view.


Problem 2: Fixed OS category list — custom OSes all grouped under "Custom"

The Templates page groups templates by OS category using a hardcoded list. Any OS not in that list is lumped into a single "Custom" category, which becomes cluttered and unhelpful when you have multiple different custom distributions.

Expected behavior: Users should be able to define their own OS categories (e.g. "Anolis OS", "openEuler", "Internal Build") and assign templates to them. These custom categories should appear alongside the built-in ones in the category filter/sidebar.


Use Case

I use Anolis OS 8.9 (a RHEL-compatible distro maintained by Alibaba Cloud) as my primary OS template. It currently shows a generic icon and is grouped under "Custom" alongside unrelated templates. Being able to give it a proper icon and its own category would make the template library much easier to navigate.


Proposed Solution

Suggested Implementation

  • Add an "Edit Template Metadata" action on each template card/row
  • Allow setting:
    • Custom icon: file upload (PNG/SVG) or URL input
    • OS category: free-text input or select from existing + option to create new
  • Custom categories should be persisted (in ProxCenter's own DB, not in Proxmox)
  • The category filter on the Templates page should dynamically include user-defined categories
  • Fallback to auto-detection if no custom value is set

Alternatives Considered

No response

Category

UI / UX

How important is this feature to you?

Nice to have

Additional Context

No response

Contribution

  • I would be willing to help implement this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions