from django.contrib import admin

from .models import PostizInstallBrief


@admin.register(PostizInstallBrief)
class PostizInstallBriefAdmin(admin.ModelAdmin):
    list_display = (
        "title",
        "public_url",
        "node_version",
        "package_manager",
        "ready_services_count",
        "updated_at",
    )
    list_filter = ("node_version", "package_manager", "email_provider", "upload_strategy")
    search_fields = ("title", "public_url", "notes")
    readonly_fields = ("created_at", "updated_at", "readiness_percent", "status_label")
