Settings fixes: - MAX_SITES_PER_USER, USER_RATE_LIMIT_PER_MIN/HR now read from DB settings table (DB > ENV > default), so dashboard/settings changes apply without restart. Sync cache refreshed on every save or delete. - /api/me reports the live DB value for max_sites_per_user. Admin improvements: - Admin users bypass per-user rate limiting entirely (role=admin or ADMIN_EMAILS). - Admin Overview now shows platform stats: registered users, new users (7d), total user sites, available tools. Plugin cleanup: - Appwrite and Directus plugins removed from the active registry (8 plugins now: WordPress, WooCommerce, WordPress Specialist, Gitea, n8n, Supabase, OpenPanel, Coolify). Plugin code is retained for future re-enabling. - Settings page plugin visibility list updated to match. Mobile onboarding: - Stepper steps on narrow viewports stack vertically with correct full border and rounded corners on each step. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
69 lines
1.5 KiB
Python
69 lines
1.5 KiB
Python
"""
|
|
WordPress Pydantic Schemas
|
|
|
|
Type-safe validation schemas for WordPress data structures.
|
|
Part of Option B clean architecture refactoring.
|
|
"""
|
|
|
|
from plugins.wordpress.schemas.common import (
|
|
ErrorResponse,
|
|
PaginationParams,
|
|
StatusFilter,
|
|
SuccessResponse,
|
|
)
|
|
from plugins.wordpress.schemas.media import MediaBase, MediaResponse, MediaUpdate, MediaUpload
|
|
from plugins.wordpress.schemas.order import (
|
|
OrderBase,
|
|
OrderCreate,
|
|
OrderLineItem,
|
|
OrderResponse,
|
|
OrderUpdate,
|
|
)
|
|
from plugins.wordpress.schemas.post import PostBase, PostCreate, PostResponse, PostUpdate
|
|
from plugins.wordpress.schemas.product import (
|
|
ProductBase,
|
|
ProductCategory,
|
|
ProductCreate,
|
|
ProductResponse,
|
|
ProductUpdate,
|
|
ProductVariation,
|
|
)
|
|
from plugins.wordpress.schemas.seo import SEOData, SEOUpdate
|
|
|
|
# Database / bulk / system schemas live on wordpress_specialist
|
|
# (companion-backed; legacy wordpress_advanced was sunset 2026-05-04).
|
|
|
|
__all__ = [
|
|
# Common
|
|
"PaginationParams",
|
|
"StatusFilter",
|
|
"ErrorResponse",
|
|
"SuccessResponse",
|
|
# Posts
|
|
"PostBase",
|
|
"PostCreate",
|
|
"PostUpdate",
|
|
"PostResponse",
|
|
# Media
|
|
"MediaBase",
|
|
"MediaUpload",
|
|
"MediaUpdate",
|
|
"MediaResponse",
|
|
# Products
|
|
"ProductBase",
|
|
"ProductCreate",
|
|
"ProductUpdate",
|
|
"ProductResponse",
|
|
"ProductCategory",
|
|
"ProductVariation",
|
|
# Orders
|
|
"OrderBase",
|
|
"OrderCreate",
|
|
"OrderUpdate",
|
|
"OrderResponse",
|
|
"OrderLineItem",
|
|
# SEO
|
|
"SEOData",
|
|
"SEOUpdate",
|
|
]
|