- Service/category pills are now clickable: click to filter by that service - Result pills (Success, Failure, etc.) are now clickable: click to filter by that result - Click again to clear the filter (toggle behavior) - Change default page size from 100 to 25 - Add DEFAULT_PAGE_SIZE config (env var, default 25), exposed via /api/config/features - Change footer brand from CQRE to CQRE.NET - Add pill--clickable hover styles - Bump CSS cache-buster to v=10
31 lines
663 B
Python
31 lines
663 B
Python
from config import (
|
|
AI_FEATURES_ENABLED,
|
|
AUTH_CLIENT_ID,
|
|
AUTH_ENABLED,
|
|
AUTH_SCOPE,
|
|
AUTH_TENANT_ID,
|
|
DEFAULT_PAGE_SIZE,
|
|
)
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/config/auth")
|
|
def auth_config():
|
|
return {
|
|
"auth_enabled": AUTH_ENABLED,
|
|
"tenant_id": AUTH_TENANT_ID,
|
|
"client_id": AUTH_CLIENT_ID,
|
|
"scope": AUTH_SCOPE,
|
|
"redirect_uri": None, # frontend uses window.location.origin by default
|
|
}
|
|
|
|
|
|
@router.get("/config/features")
|
|
def features_config():
|
|
return {
|
|
"ai_features_enabled": AI_FEATURES_ENABLED,
|
|
"default_page_size": DEFAULT_PAGE_SIZE,
|
|
}
|