"""
Subscriptions Frontend Views
"""
from fastapi import APIRouter, Request
from fastapi.responses import HTMLResponse
from fastapi.templating import Jinja2Templates
import logging

logger = logging.getLogger(__name__)
router = APIRouter()
templates = Jinja2Templates(directory="app")


@router.get("/subscriptions", response_class=HTMLResponse)
async def subscriptions_list(request: Request):
    """List all active subscriptions."""
    return templates.TemplateResponse("subscriptions/frontend/list.html", {
        "request": request
    })


@router.get("/subscriptions/simply-imports", response_class=HTMLResponse)
async def subscriptions_simply_imports(request: Request):
    """Dedicated page for Simply subscription import parking/staging overview."""
    return templates.TemplateResponse("subscriptions/frontend/simply_imports.html", {
        "request": request
    })
