revert(frontend): Frontend auf letzten funktionierenden Stand 5680179 zurückgesetzt — i18n-Massen-Batch brach Dashboard-Shell in Produktion; Render-Loop-Fix und DSGVO-Antrags-UI liegen sicher in Historie für kontrollierten Wiedereinspiel

This commit is contained in:
Agent Zero
2026-08-27 09:14:21 +02:00
parent bea479bfad
commit 66c11d3d64
119 changed files with 925 additions and 1477 deletions
@@ -8,14 +8,12 @@ import VideoBlock from './VideoBlock';
import FileBlock from './FileBlock';
import { getBlockComponent } from './registry';
import './registrations'; // plugin-contributed block registrations
import { useTranslation } from 'react-i18next';
interface BlockRendererProps {
blocks: MessageBlock[];
}
const BlockRenderer: React.FC<BlockRendererProps> = ({ blocks }) => {
const { t } = useTranslation();
if (!blocks || blocks.length === 0) {
return null;
}
@@ -57,7 +55,7 @@ const BlockRenderer: React.FC<BlockRendererProps> = ({ blocks }) => {
// Fallback for unknown block types
return (
<div className="text-xs text-secondary-400 italic p-2 rounded bg-secondary-50">
{t('blockRenderer.unbekannterblocktyp')} {block.block_type}
Unbekannter Block-Typ: {block.block_type}
</div>
);
}
@@ -1,14 +1,12 @@
import React from 'react';
import type { MessageBlock } from '@/store/commStore';
import { ChevronRight } from 'lucide-react';
import { useTranslation } from 'react-i18next';
interface ContactCardBlockProps {
block: MessageBlock;
}
const ContactCardBlock: React.FC<ContactCardBlockProps> = ({ block }) => {
const { t } = useTranslation();
const { contact_id, name } = block.block_data;
const contactName: string = name || 'Unbekannter Kontakt';
@@ -32,7 +30,7 @@ const ContactCardBlock: React.FC<ContactCardBlockProps> = ({ block }) => {
</div>
<div className="flex-1 min-w-0">
<p className="text-sm font-medium text-secondary-700 truncate">{contactName}</p>
<p className="text-xs text-secondary-400">{t('contactCardBlock.kontaktanzeigen')}</p>
<p className="text-xs text-secondary-400">Kontakt anzeigen</p>
</div>
<ChevronRight className="w-4 h-4 text-secondary-400 flex-shrink-0" aria-hidden="true" strokeWidth={2} />
</a>
@@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
import type { MessageBlock } from '@/store/commStore';
import { AppWindow, Loader2 } from 'lucide-react';
import { apiClient } from '@/api/client';
import { useTranslation } from 'react-i18next';
interface MiniAppBlockProps {
block: MessageBlock;
@@ -18,7 +17,6 @@ interface MiniAppDef {
}
const MiniAppBlock: React.FC<MiniAppBlockProps> = ({ block }) => {
const { t } = useTranslation();
const { app_id, config } = block.block_data;
const [appDef, setAppDef] = useState<MiniAppDef | null>(null);
const [loading, setLoading] = useState(false);
@@ -90,7 +88,7 @@ const MiniAppBlock: React.FC<MiniAppBlockProps> = ({ block }) => {
)}
{!hasConfig && !hasSchema && (
<p className="text-xs text-secondary-400 text-center py-2">{t('miniAppBlock.keinekonfiguration')}</p>
<p className="text-xs text-secondary-400 text-center py-2">Keine Konfiguration</p>
)}
</div>
);