task(H1): simple/pro mode - uiModeService with localStorage persistence, ribbon basic-tag filter, commandline pro-only, topbar toggle

This commit is contained in:
Agent Zero
2026-08-29 02:55:53 +02:00
parent ed71100178
commit 8774fea773
5 changed files with 205 additions and 1 deletions
+4
View File
@@ -1,6 +1,7 @@
import React, { useState, useRef, useMemo, useEffect } from 'react';
import type { CommandLineProps } from '../types/ui.types';
import { getCommandRegistry, type CommandDefinition } from '../services/commandRegistry';
import { useUIMode } from '../services/uiModeService';
const defaultHistory = [
{ prefix: '·' as const, text: 'Bereit · Werkzeug: Auswahl · 110 Objekte · 5 Ebenen', type: 'info' as const },
@@ -20,6 +21,9 @@ const categoryColors: Record<string, string> = {
};
const CommandLine: React.FC<CommandLineProps> = ({ history, onCommand }) => {
const uiMode = useUIMode();
if (uiMode === 'simple') return null;
const [input, setInput] = useState('');
const [selectedSuggestion, setSelectedSuggestion] = useState(0);
const [commandHistory, setCommandHistory] = useState<string[]>([]);