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>
21 lines
No EOL
958 B
TypeScript
21 lines
No EOL
958 B
TypeScript
import React from "react";
|
|
import Header from "@/app/(presentation-generator)/dashboard/components/Header";
|
|
|
|
export const APIKeyWarning: React.FC = () => {
|
|
return (
|
|
<div className="min-h-screen font-roboto bg-gradient-to-br from-slate-50 to-slate-100">
|
|
<Header />
|
|
<div className="flex items-center justify-center aspect-video mx-auto px-6">
|
|
<div className="text-center space-y-2 my-6 bg-white p-10 rounded-lg shadow-lg">
|
|
<h1 className="text-xl font-bold text-gray-900">
|
|
Please add "GOOGLE_API_KEY" to enable template creation via AI.
|
|
</h1>
|
|
<h1 className="text-xl font-bold text-gray-900">Please add your OpenAI API Key to process the layout</h1>
|
|
<p className="text-lg text-gray-600 max-w-2xl mx-auto">
|
|
This feature requires an OpenAI model GPT-5. Configure your key in settings or via environment variables.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|