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:
@@ -1,7 +1,6 @@
|
||||
import { useState } from 'react';
|
||||
import { useSuggestions } from '@/api/aiProactive';
|
||||
import { SuggestionCard } from '@/components/ai/SuggestionCard';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
interface SuggestionSidebarProps {
|
||||
isOpen: boolean;
|
||||
@@ -21,7 +20,6 @@ const filterOptions = [
|
||||
* Used inside the AISidebar proactive tab.
|
||||
*/
|
||||
export function SuggestionList() {
|
||||
const { t } = useTranslation();
|
||||
const { suggestions, connected, dismiss, act } = useSuggestions();
|
||||
const [filter, setFilter] = useState<string>('all');
|
||||
|
||||
@@ -66,8 +64,8 @@ export function SuggestionList() {
|
||||
{filteredSuggestions.length === 0 ? (
|
||||
<div className="flex flex-col items-center justify-center h-full text-secondary-400">
|
||||
<div className="text-4xl mb-3">🤖</div>
|
||||
<p className="text-sm">{t('suggestionSidebar.keinevorschlägevorhanden')}</p>
|
||||
<p className="text-xs mt-1">{t('suggestionSidebar.diekianalysiertdeinenkontext')}</p>
|
||||
<p className="text-sm">Keine Vorschläge vorhanden</p>
|
||||
<p className="text-xs mt-1">Die KI analysiert deinen Kontext...</p>
|
||||
</div>
|
||||
) : (
|
||||
<div className="space-y-2">
|
||||
@@ -91,7 +89,6 @@ export function SuggestionList() {
|
||||
* Uses SuggestionList internally.
|
||||
*/
|
||||
export function SuggestionSidebar({ isOpen, onClose }: SuggestionSidebarProps) {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<>
|
||||
{/* Overlay */}
|
||||
@@ -111,7 +108,7 @@ export function SuggestionSidebar({ isOpen, onClose }: SuggestionSidebarProps) {
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between p-4 border-b border-gray-200">
|
||||
<div className="flex items-center gap-2">
|
||||
<h2 className="font-semibold text-gray-800">{t('suggestionSidebar.kivorschläge')}</h2>
|
||||
<h2 className="font-semibold text-gray-800">KI Vorschläge</h2>
|
||||
</div>
|
||||
<button
|
||||
onClick={onClose}
|
||||
|
||||
Reference in New Issue
Block a user