from django.contrib import admin
from .models import MCPToolRequest, HumanResponse, SlackSettings

@admin.register(SlackSettings)
class SlackSettingsAdmin(admin.ModelAdmin):
    list_display = ('__str__', 'updated_at')

@admin.register(MCPToolRequest)
class MCPToolRequestAdmin(admin.ModelAdmin):
    list_display = ('id', 'tool_name', 'status', 'created_at')
    list_filter = ('status', 'tool_name')
    readonly_fields = ('id', 'created_at', 'updated_at')

@admin.register(HumanResponse)
class HumanResponseAdmin(admin.ModelAdmin):
    list_display = ('id', 'request', 'user_name', 'created_at')
    readonly_fields = ('id', 'created_at')