from django.shortcuts import render

from .services import build_knowledge_base_context, get_platform_demo_context


def knowledge_base(request):
    context = build_knowledge_base_context(request.GET.get("view", ""))
    return render(request, "platform_ui/knowledge_base.html", context)


def mcp_center(request):
    context = get_platform_demo_context()
    return render(request, "platform_ui/mcp_center.html", context)


def skill_studio(request):
    context = get_platform_demo_context()
    return render(request, "platform_ui/skill_studio.html", context)


def command_center(request):
    context = get_platform_demo_context()
    return render(request, "platform_ui/command_center.html", context)


def command_center_v2(request):
    context = get_platform_demo_context()
    return render(request, "platform_ui/command_center_v2.html", context)
