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 Image from "next/image";
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { Copy, Trash2 } from "lucide-react";
|
||||
|
||||
import {
|
||||
@@ -38,6 +39,7 @@ export function SceneThumbnailBlock({
|
||||
onDuplicate,
|
||||
onDelete,
|
||||
}: SceneThumbnailBlockProps) {
|
||||
const t = useTranslations("auto.componentsStudioTimelineSceneThumbnailBlock");
|
||||
const [resizeDuration, setResizeDuration] = useState<number | null>(null);
|
||||
const [isEditing, setIsEditing] = useState(false);
|
||||
const [editName, setEditName] = useState(scene.name);
|
||||
@@ -154,7 +156,7 @@ export function SceneThumbnailBlock({
|
||||
onDuplicate();
|
||||
}}
|
||||
className="flex h-6 w-6 items-center justify-center rounded bg-black/60 text-white hover:bg-black/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500"
|
||||
aria-label={`Duplicate ${scene.name}`}
|
||||
aria-label={t("duplicateScene", { name: scene.name })}
|
||||
>
|
||||
<Copy className="h-3 w-3" aria-hidden />
|
||||
</button>
|
||||
@@ -166,7 +168,7 @@ export function SceneThumbnailBlock({
|
||||
onDelete();
|
||||
}}
|
||||
className="flex h-6 w-6 items-center justify-center rounded bg-black/60 text-white hover:bg-red-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500"
|
||||
aria-label={`Delete ${scene.name}`}
|
||||
aria-label={t("deleteScene", { name: scene.name })}
|
||||
>
|
||||
<Trash2 className="h-3 w-3" aria-hidden />
|
||||
</button>
|
||||
@@ -184,7 +186,7 @@ export function SceneThumbnailBlock({
|
||||
<div
|
||||
role="separator"
|
||||
aria-orientation="vertical"
|
||||
aria-label={`Resize ${scene.name} duration`}
|
||||
aria-label={t("resizeSceneDuration", { name: scene.name })}
|
||||
onMouseDown={(event) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
@@ -211,7 +213,7 @@ export function SceneThumbnailBlock({
|
||||
}
|
||||
}}
|
||||
className="mt-1 w-full rounded border border-gray-300 bg-white px-1 py-0.5 text-[10px] text-gray-800 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-blue-500"
|
||||
aria-label="Scene name"
|
||||
aria-label={t("sceneNameLabel")}
|
||||
/>
|
||||
) : (
|
||||
<p
|
||||
@@ -221,7 +223,7 @@ export function SceneThumbnailBlock({
|
||||
event.stopPropagation();
|
||||
setIsEditing(true);
|
||||
}}
|
||||
title="Double-click to rename"
|
||||
title={t("doubleClickToRename")}
|
||||
>
|
||||
{scene.name}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user