Phase 1 (Foundation): - Project restructure (presenton-main → backend/ + frontend/) - Database schema (8 new models, Alembic config, seed script) - Auth (Azure AD SSO + dev bypass, JWT sessions, AuthMiddleware) - RBAC (access_service, rbac_middleware, admin routers) - Audit logging (fire-and-forget, AuditMiddleware, admin router) - i18n (react-i18next with 5 namespace files) Phase 2 (Admin Panel & Client Management): - Admin panel shell (sidebar layout, role guard, 12 pages) - Redux admin slice with 18 async thunks - User management (role changes, deactivation) - Client management (CRUD, brand config, team management) - Brand config editor (colors, fonts, logos, voice rules) - Master deck upload & parser (PPTX → HTML → React pipeline) - Audit log viewer with filters and CSV/JSON export Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
from typing import List
|
|
from pydantic import Field
|
|
from models.presentation_outline_model import (
|
|
PresentationOutlineModel,
|
|
SlideOutlineModel,
|
|
)
|
|
from models.presentation_structure_model import PresentationStructureModel
|
|
|
|
|
|
def get_presentation_outline_model_with_n_slides(n_slides: int):
|
|
class SlideOutlineModelWithNSlides(SlideOutlineModel):
|
|
content: str = Field(
|
|
description="Markdown content for each slide",
|
|
min_length=100,
|
|
max_length=300,
|
|
)
|
|
|
|
class PresentationOutlineModelWithNSlides(PresentationOutlineModel):
|
|
slides: List[SlideOutlineModelWithNSlides] = Field(
|
|
description="List of slide outlines",
|
|
min_items=n_slides,
|
|
max_items=n_slides,
|
|
)
|
|
|
|
return PresentationOutlineModelWithNSlides
|
|
|
|
|
|
def get_presentation_structure_model_with_n_slides(n_slides: int):
|
|
class PresentationStructureModelWithNSlides(PresentationStructureModel):
|
|
slides: List[int] = Field(
|
|
description="List of slide layouts",
|
|
min_items=n_slides,
|
|
max_items=n_slides,
|
|
)
|
|
|
|
return PresentationStructureModelWithNSlides
|