feat: AI SEO generator, full admin panel, i18n sweep, new logo + auth/RTL fixes
Build backend images / build content-svc (push) Failing after 3m39s
Build backend images / build file-svc (push) Failing after 52s
Build backend images / build gateway (push) Failing after 58s
Build backend images / build identity-svc (push) Failing after 1m21s
Build backend images / build notification-svc (push) Failing after 1m0s
Build backend images / build render-svc (push) Failing after 58s
Build backend images / build studio-svc (push) Failing after 55s
Build backend images / build content-svc (push) Failing after 3m39s
Build backend images / build file-svc (push) Failing after 52s
Build backend images / build gateway (push) Failing after 58s
Build backend images / build identity-svc (push) Failing after 1m21s
Build backend images / build notification-svc (push) Failing after 1m0s
Build backend images / build render-svc (push) Failing after 58s
Build backend images / build studio-svc (push) Failing after 55s
AI SEO content generator - content-svc: per-tenant OpenAI config (ai_settings) + /v1/ai endpoints (settings GET/PUT, seo-post) with SEO-expert prompt → structured article - admin UI to configure token/base-url/model and generate + save as blog - configurable base URL for restricted networks Full data-driven admin panel - generic /api/admin/resource proxy + reusable AdminResource component - categories/tags/fonts/blogs (CRUD), users (list + ban), plans/slides - AI content section; nav + i18n i18n localization sweep - localized 116 user-facing + studio/editor components to next-intl (fa+en) under the auto.* namespace; merge tooling in scripts/merge-i18n.js Branding + assets - Monoline F logo (LogoMark + favicon) - offline SVG placeholder generator (/api/placeholder), dropped picsum.photos Fixes - JWT issuer mismatch on content/studio (flatrender → flatrender-identity) - missing role claim → [Authorize(Roles="Admin")] now works (RBAC) - Secure cookies broke HTTP sessions → gated behind AUTH_COOKIE_SECURE - Radix RTL via DirectionProvider (right-aligned menus in fa) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useCallback, useRef, useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { Crown, Loader2 } from "lucide-react";
|
||||
|
||||
import { VideoPlayOverlay } from "@/components/sections/VideoPlayOverlay";
|
||||
@@ -23,6 +24,7 @@ export function VideoTemplateCompactCard({
|
||||
isUsing = false,
|
||||
className,
|
||||
}: VideoTemplateCompactCardProps) {
|
||||
const t = useTranslations("auto.componentsTemplatesVideoVideoTemplateCompactCard");
|
||||
const [isHovered, setIsHovered] = useState(false);
|
||||
const videoRef = useRef<HTMLVideoElement>(null);
|
||||
const imageSrc = getVideoTemplateImageSrc(template.id);
|
||||
@@ -64,7 +66,7 @@ export function VideoTemplateCompactCard({
|
||||
<Link
|
||||
href={detailHref}
|
||||
className="absolute inset-0 z-0 block no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2"
|
||||
aria-label={`View ${template.name} template`}
|
||||
aria-label={t("viewTemplateAria", { name: template.name })}
|
||||
>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
@@ -115,7 +117,7 @@ export function VideoTemplateCompactCard({
|
||||
onClick={handleUseClick}
|
||||
className="w-full rounded-lg bg-blue-600 px-3 py-2 text-xs font-semibold text-white shadow-lg transition-colors hover:bg-blue-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 disabled:opacity-70"
|
||||
>
|
||||
{isUsing ? "Opening…" : "Use Template"}
|
||||
{isUsing ? t("opening") : t("useTemplate")}
|
||||
</button>
|
||||
</div>
|
||||
) : null}
|
||||
@@ -134,7 +136,7 @@ export function VideoTemplateCompactCard({
|
||||
{template.name}
|
||||
</Link>
|
||||
<p className="mt-0.5 text-xs text-neutral-500">
|
||||
{template.sceneCount} scenes
|
||||
{t("sceneCount", { count: template.sceneCount })}
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user