@decido/shell 1.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/package.json +17 -14
- package/.turbo/turbo-build.log +0 -13
- package/src/AgentPlayer.tsx +0 -105
- package/src/DecidoPlayer.tsx +0 -117
- package/src/bridge/BridgeAgent.ts +0 -443
- package/src/components/DecidoIcon.tsx +0 -56
- package/src/components/JsonTreeEditor.tsx +0 -117
- package/src/components/PanelSplitter.tsx +0 -71
- package/src/components/PluginErrorBoundary.tsx +0 -69
- package/src/components/SafeLiquidUI.tsx +0 -114
- package/src/components/TransientLayer.tsx +0 -92
- package/src/components/agent/AgentChat.tsx +0 -134
- package/src/components/chat-extensions/IntentCatalogPanel.tsx +0 -81
- package/src/components/chat-extensions/chatSlashCommands.ts +0 -101
- package/src/components/controls/CreatorInputBar.tsx +0 -144
- package/src/components/controls/OSToolbar.tsx +0 -90
- package/src/components/controls/TimelineTape.tsx +0 -43
- package/src/components/debug/ActionTimelineTab.tsx +0 -111
- package/src/components/debug/CSSInspectorTab.tsx +0 -436
- package/src/components/debug/ExportTab.tsx +0 -192
- package/src/components/debug/FlowHealthTab.tsx +0 -86
- package/src/components/debug/LogsTab.tsx +0 -110
- package/src/components/debug/MorphStackTab.tsx +0 -241
- package/src/components/debug/NetworkTab.tsx +0 -173
- package/src/components/debug/PerformanceTab.tsx +0 -171
- package/src/components/debug/ProfilesTab.tsx +0 -238
- package/src/components/debug/ReplayTab.tsx +0 -70
- package/src/components/debug/StoresTab.tsx +0 -255
- package/src/components/debug/TopologyTab.tsx +0 -59
- package/src/components/debug/debugConfig.tsx +0 -66
- package/src/components/playground/DebugPanel.tsx +0 -112
- package/src/components/playground/HeaderCenterControls.tsx +0 -92
- package/src/components/playground/KeyframeListItem.tsx +0 -70
- package/src/components/playground/PlaygroundAppSidebar.tsx +0 -171
- package/src/components/playground/PlaygroundBottomControls.tsx +0 -132
- package/src/components/playground/PlaygroundCanvas.tsx +0 -87
- package/src/components/playground/PlaygroundChat.tsx +0 -236
- package/src/components/playground/PlaygroundErrorBoundary.tsx +0 -63
- package/src/components/playground/PlaygroundFloatingInput.tsx +0 -352
- package/src/components/playground/PlaygroundHeader.tsx +0 -222
- package/src/components/playground/PlaygroundSidebar.tsx +0 -136
- package/src/components/playground/PlaygroundTerminal.tsx +0 -44
- package/src/components/playground/SuggestionCards.tsx +0 -29
- package/src/components/playground/demos/ClinicaAINode.tsx +0 -221
- package/src/components/playground/demos/FinanceAINode.tsx +0 -226
- package/src/components/playground/demos/KiaAcademyNode.tsx +0 -250
- package/src/components/playground/demos/KiaBotNode.tsx +0 -207
- package/src/components/playground/demos/KiaCampaignNode.tsx +0 -191
- package/src/components/playground/demos/KiaComplianceNode.tsx +0 -140
- package/src/components/playground/demos/KiaCustomerJourneyNode.tsx +0 -220
- package/src/components/playground/demos/KiaCyberNode.tsx +0 -203
- package/src/components/playground/demos/KiaDashboardNode.tsx +0 -399
- package/src/components/playground/demos/KiaEmbudoOverviewNode.tsx +0 -168
- package/src/components/playground/demos/KiaExecutiveNode.tsx +0 -169
- package/src/components/playground/demos/KiaGamificationNode.tsx +0 -229
- package/src/components/playground/demos/KiaIntelligenceHubNode.tsx +0 -165
- package/src/components/playground/demos/KiaInventoryNode.tsx +0 -183
- package/src/components/playground/demos/KiaLeadScoringNode.tsx +0 -226
- package/src/components/playground/demos/KiaLiveSimulationNode.tsx +0 -177
- package/src/components/playground/demos/KiaMultiDealerNode.tsx +0 -223
- package/src/components/playground/demos/KiaNPSVoiceNode.tsx +0 -214
- package/src/components/playground/demos/KiaOmnichannelNode.tsx +0 -162
- package/src/components/playground/demos/KiaPBIBudgetNode.tsx +0 -152
- package/src/components/playground/demos/KiaPBIConversionNode.tsx +0 -206
- package/src/components/playground/demos/KiaPBIFunnelNode.tsx +0 -184
- package/src/components/playground/demos/KiaPBIOwnershipNode.tsx +0 -113
- package/src/components/playground/demos/KiaPBIPartnerNode.tsx +0 -143
- package/src/components/playground/demos/KiaPBIPreciosNode.tsx +0 -120
- package/src/components/playground/demos/KiaPBIRuntNode.tsx +0 -205
- package/src/components/playground/demos/KiaPartnerScoreNode.tsx +0 -206
- package/src/components/playground/demos/KiaPredictiveNode.tsx +0 -226
- package/src/components/playground/demos/KiaShowroomNode.tsx +0 -194
- package/src/components/playground/demos/KiaStoreNode.tsx +0 -215
- package/src/components/playground/demos/KiaSustainabilityNode.tsx +0 -173
- package/src/components/playground/demos/KiaUsedVehiclesNode.tsx +0 -163
- package/src/components/playground/demos/KiaWorkshopNode.tsx +0 -221
- package/src/components/playground/demos/SmartCityNode.tsx +0 -205
- package/src/components/playground/demos/kia_campaign_manifest.json +0 -112
- package/src/components/playground/input-parts/AIModelSelector.tsx +0 -156
- package/src/components/playground/input-parts/InputActions.tsx +0 -80
- package/src/components/playground/input-parts/InputToolbar.tsx +0 -245
- package/src/components/playground/input-parts/ResourceLibraryPanel.tsx +0 -287
- package/src/components/playground/sidebarDsdIO.ts +0 -82
- package/src/components/settings/SettingsPanel.tsx +0 -267
- package/src/components/shell/AppHeader.tsx +0 -9
- package/src/components/shell/AppShell.tsx +0 -139
- package/src/components/shell/ArtifactBar.tsx +0 -97
- package/src/components/shell/BootScreen.tsx +0 -19
- package/src/components/shell/CenterComposite.tsx +0 -87
- package/src/components/shell/CodeEditorPanel.tsx +0 -88
- package/src/components/shell/GlobalOverlays.tsx +0 -228
- package/src/components/shell/LayoutConfigurator.tsx +0 -209
- package/src/components/shell/LayoutGrid.tsx +0 -178
- package/src/components/shell/MorphShell.tsx +0 -368
- package/src/components/shell/PluginViewer.tsx +0 -147
- package/src/components/shell/ShellNexusPreview.tsx +0 -458
- package/src/components/shell/SlotRenderer.tsx +0 -115
- package/src/components/shell/TabBar.tsx +0 -94
- package/src/components/shell/TemplateLibrary.tsx +0 -195
- package/src/components/shell/layoutConstants.ts +0 -35
- package/src/components/shell/morphStageMeta.ts +0 -15
- package/src/components/shell/shells/BuiltInShells.tsx +0 -443
- package/src/components/shell/shells/DatawayChatShell.tsx +0 -42
- package/src/components/shell/shells/TokenPreview.tsx +0 -339
- package/src/components/shell/shells/bootShells.ts +0 -31
- package/src/components/shells/CreatorShell.tsx +0 -37
- package/src/components/shells/DecidoShell.tsx +0 -447
- package/src/components/shells/ExperimentalChatShell.tsx +0 -245
- package/src/components/shells/UserCanvas.tsx +0 -44
- package/src/components/studio/BlueprintManagerPanel.tsx +0 -137
- package/src/components/studio/DependencyTreePanel.tsx +0 -192
- package/src/components/studio/NodePalette.tsx +0 -92
- package/src/components/studio/NodePropertiesPanel.tsx +0 -81
- package/src/components/studio/ReactFlowEditor.tsx +0 -242
- package/src/components/studio/TimelineEditor.tsx +0 -122
- package/src/components/studio/TimelineKeyframeCard.tsx +0 -99
- package/src/components/studio/VariablePanel.tsx +0 -181
- package/src/components/studio/blueprint/BlueprintCard.tsx +0 -82
- package/src/components/studio/editor/CanvasContextMenu.tsx +0 -107
- package/src/components/studio/editor/EditorToolbar.tsx +0 -80
- package/src/components/studio/editor/StageContentRenderer.tsx +0 -134
- package/src/components/studio/editor/TrackPropertyEditors.tsx +0 -133
- package/src/components/studio/editor/TreeNodeItem.tsx +0 -91
- package/src/components/studio/editor/edgeStyles.ts +0 -43
- package/src/components/studio/editor/editorKeyHandler.ts +0 -95
- package/src/components/studio/editor/nodeTypeRegistry.ts +0 -137
- package/src/components/studio/editor/paletteCatalog.tsx +0 -84
- package/src/components/studio/nodes/shell/InteractionNodes.tsx +0 -82
- package/src/components/studio/nodes/shell/LayoutControlNodes.tsx +0 -69
- package/src/components/studio/nodes/shell/RegisterActionNode.tsx +0 -20
- package/src/components/studio/nodes/shell/RegisterButtonNode.tsx +0 -22
- package/src/components/studio/nodes/shell/RegisterPanelNode.tsx +0 -19
- package/src/components/studio/nodes/shell/RegisterSidebarNode.tsx +0 -19
- package/src/components/studio/nodes/shell/RegisterStatusBarNode.tsx +0 -22
- package/src/components/studio/nodes/shell/RegisterTabNode.tsx +0 -21
- package/src/components/studio/nodes/shell/RegisterTopBarNode.tsx +0 -22
- package/src/components/studio/nodes/shell/ShellConfigNode.tsx +0 -51
- package/src/components/studio/nodes/shell/ShellNodeBase.tsx +0 -100
- package/src/components/studio/nodes/shell/ThemeNodes.tsx +0 -51
- package/src/components/studio/nodes/shell/index.ts +0 -12
- package/src/components/widgets/BroadcastWidget.tsx +0 -93
- package/src/components/widgets/MarketplaceWidget.tsx +0 -298
- package/src/components/widgets/McpToolsWidget.tsx +0 -231
- package/src/components/widgets/OpsDashboard.tsx +0 -59
- package/src/components/widgets/QuickActionsWidget.tsx +0 -60
- package/src/components/widgets/UsageWidget.tsx +0 -112
- package/src/components/widgets/WidgetRenderer.tsx +0 -892
- package/src/components/widgets/WidgetSlotPanel.tsx +0 -213
- package/src/config/IconRegistry.ts +0 -126
- package/src/contexts/NetworkProvider.tsx +0 -162
- package/src/core/AIDirector.ts +0 -71
- package/src/core/EventBus.ts +0 -37
- package/src/core/PluginContext.tsx +0 -141
- package/src/hooks/listeners/useUIStateListener.ts +0 -59
- package/src/hooks/listeners/useWhatsAppListener.ts +0 -110
- package/src/hooks/morphBridge.ts +0 -82
- package/src/hooks/useAIModelSelector.ts +0 -144
- package/src/hooks/useAgentStream.ts +0 -220
- package/src/hooks/useAutoUpdater.ts +0 -89
- package/src/hooks/useBootSequence.ts +0 -20
- package/src/hooks/useExportDSD.ts +0 -53
- package/src/hooks/useFullscreen.ts +0 -35
- package/src/hooks/useGeminiStream.ts +0 -282
- package/src/hooks/useIntentLens.ts +0 -224
- package/src/hooks/useKeyboardShortcuts.ts +0 -69
- package/src/hooks/useLoggerBridge.ts +0 -32
- package/src/hooks/useMcpClient.ts +0 -112
- package/src/hooks/useNexusaiDeploy.ts +0 -118
- package/src/hooks/usePlaybackEngine.ts +0 -21
- package/src/hooks/usePlaygroundCommander.ts +0 -475
- package/src/hooks/usePluginEngine.ts +0 -165
- package/src/hooks/useScreenRecorder.ts +0 -73
- package/src/hooks/useShellKeyboard.ts +0 -40
- package/src/hooks/useShellShortcuts.ts +0 -118
- package/src/hooks/useSoundEffects.ts +0 -35
- package/src/hooks/useStudioConfig.ts +0 -72
- package/src/hooks/useSystemBoot.ts +0 -84
- package/src/hooks/useSystemTelemetry.ts +0 -62
- package/src/lib/debugLogger.ts +0 -80
- package/src/lib/networkInterceptor.ts +0 -100
- package/src/mocks/decido.tsx +0 -41
- package/src/plugins/pluginAPI.ts +0 -190
- package/src/store/McpStore.ts +0 -69
- package/src/store/UpdaterStore.ts +0 -60
- package/src/store/engine.ts +0 -392
- package/src/store/index.ts +0 -4
- package/src/store/layoutPresets.ts +0 -66
- package/src/store/playgroundTypes.ts +0 -98
- package/src/store/useActionTimelineStore.ts +0 -48
- package/src/store/useDebugPanelStore.ts +0 -98
- package/src/store/useDebugProfileStore.ts +0 -130
- package/src/store/useLayoutStore.ts +0 -205
- package/src/store/useMorphInstanceStore.ts +0 -289
- package/src/store/useMorphologyStore.ts +0 -103
- package/src/store/usePlaygroundStore.ts +0 -236
- package/src/store/useShellRegistry.ts +0 -123
- package/src/store/useSuggestionsStore.ts +0 -57
- package/src/store/useThemeStore.ts +0 -399
- package/src/store/useUIComponentStore.ts +0 -179
- package/src/types/DecidoStoryDefinition.ts +0 -43
- package/src/utils/ai/ai-architect.ts +0 -92
- package/src/utils/ai/ai-code.ts +0 -187
- package/src/utils/ai/ai-core.ts +0 -50
- package/src/utils/ai/ai-media.ts +0 -292
- package/src/utils/layoutGraph.ts +0 -67
- package/tsconfig.json +0 -17
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "kia-campaign-engine",
|
|
3
|
-
"header": {
|
|
4
|
-
"title": "CAMPAIGN ENGINE",
|
|
5
|
-
"subtitle": "Grecco Motors",
|
|
6
|
-
"icon": "megaphone",
|
|
7
|
-
"color": "purple"
|
|
8
|
-
},
|
|
9
|
-
"layout": "tabs",
|
|
10
|
-
"metrics": [
|
|
11
|
-
{ "id": "budget", "label": "Budget", "valueKey": "metrics.totalBudget", "format": "currency", "color": "blue" },
|
|
12
|
-
{ "id": "spent", "label": "Spent", "valueKey": "metrics.totalSpent", "format": "currency", "color": "yellow" },
|
|
13
|
-
{ "id": "leads", "label": "Leads", "valueKey": "metrics.totalLeads", "format": "number", "color": "green" },
|
|
14
|
-
{ "id": "conv", "label": "Conv", "valueKey": "metrics.totalConversions", "format": "number", "color": "purple" }
|
|
15
|
-
],
|
|
16
|
-
"tabs": [
|
|
17
|
-
{
|
|
18
|
-
"id": "campaigns",
|
|
19
|
-
"label": "📢 Campañas",
|
|
20
|
-
"elements": [
|
|
21
|
-
{
|
|
22
|
-
"id": "c1",
|
|
23
|
-
"type": "progress-bar",
|
|
24
|
-
"title": "EV6 Launch",
|
|
25
|
-
"subtitleKey": "campaigns.ev6.channel",
|
|
26
|
-
"dataKey": "campaigns.ev6.spent",
|
|
27
|
-
"color": "fuchsia",
|
|
28
|
-
"props": { "max": 15000000 }
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"id": "c2",
|
|
32
|
-
"type": "progress-bar",
|
|
33
|
-
"title": "Sportage HEV Q1",
|
|
34
|
-
"subtitleKey": "campaigns.sportage.channel",
|
|
35
|
-
"dataKey": "campaigns.sportage.spent",
|
|
36
|
-
"color": "blue",
|
|
37
|
-
"props": { "max": 12000000 }
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "c3",
|
|
41
|
-
"type": "progress-bar",
|
|
42
|
-
"title": "Test Drive Weekend",
|
|
43
|
-
"subtitleKey": "campaigns.testdrive.channel",
|
|
44
|
-
"dataKey": "campaigns.testdrive.spent",
|
|
45
|
-
"color": "green",
|
|
46
|
-
"props": { "max": 5000000 }
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"id": "abtesting",
|
|
52
|
-
"label": "🧪 A/B Tests",
|
|
53
|
-
"elements": [
|
|
54
|
-
{
|
|
55
|
-
"id": "ab1",
|
|
56
|
-
"type": "ab-test-row",
|
|
57
|
-
"title": "CTA Color Test",
|
|
58
|
-
"dataKey": "ab.cta.winner",
|
|
59
|
-
"props": { "variant": "Rojo KIA", "lift": 12.3 }
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"id": "ab2",
|
|
63
|
-
"type": "ab-test-row",
|
|
64
|
-
"title": "CTA Color Test",
|
|
65
|
-
"dataKey": "ab.cta.winner",
|
|
66
|
-
"props": { "variant": "Azul Premium", "lift": 8.7 }
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"id": "ab3",
|
|
70
|
-
"type": "ab-test-row",
|
|
71
|
-
"title": "Landing Page Test",
|
|
72
|
-
"dataKey": "ab.landing.winner",
|
|
73
|
-
"props": { "variant": "Video Hero", "lift": 18.5 }
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"id": "ab4",
|
|
77
|
-
"type": "ab-test-row",
|
|
78
|
-
"title": "Landing Page Test",
|
|
79
|
-
"dataKey": "ab.landing.winner",
|
|
80
|
-
"props": { "variant": "Imagen Estática", "lift": 11.2 }
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"id": "roi",
|
|
86
|
-
"label": "💰 ROI Canal",
|
|
87
|
-
"elements": [
|
|
88
|
-
{
|
|
89
|
-
"id": "roi1",
|
|
90
|
-
"type": "stat-row",
|
|
91
|
-
"title": "WhatsApp Bot",
|
|
92
|
-
"dataKey": "roi.whatsapp.percentage",
|
|
93
|
-
"color": "#22c55e"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"id": "roi2",
|
|
97
|
-
"type": "stat-row",
|
|
98
|
-
"title": "Instagram",
|
|
99
|
-
"dataKey": "roi.instagram.percentage",
|
|
100
|
-
"color": "#e040fb"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"id": "roi3",
|
|
104
|
-
"type": "stat-row",
|
|
105
|
-
"title": "Meta Ads",
|
|
106
|
-
"dataKey": "roi.meta.percentage",
|
|
107
|
-
"color": "#3b82f6"
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AIModelSelector — Multi-provider model dropdown
|
|
3
|
-
*
|
|
4
|
-
* Shows providers grouped (Local → Cloud), with status dots
|
|
5
|
-
* and model tags. Uses the Decido Aura token system.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useState, useRef, useEffect } from 'react';
|
|
9
|
-
import { ChevronDown, Cpu } from 'lucide-react';
|
|
10
|
-
import type { AIProviderGroup, AIModel } from '../../../hooks/useAIModelSelector';
|
|
11
|
-
|
|
12
|
-
interface AIModelSelectorProps {
|
|
13
|
-
selectedModelId: string;
|
|
14
|
-
selectedModel: AIModel;
|
|
15
|
-
providerGroups: AIProviderGroup[];
|
|
16
|
-
onSelect: (modelId: string) => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const TAG_STYLES: Record<string, string> = {
|
|
20
|
-
fast: 'bg-cyan-500/20 text-cyan-400',
|
|
21
|
-
smart: 'bg-purple-500/20 text-purple-400',
|
|
22
|
-
stable: 'bg-emerald-500/20 text-emerald-400',
|
|
23
|
-
new: 'bg-emerald-500/20 text-emerald-400',
|
|
24
|
-
code: 'bg-amber-500/20 text-amber-400',
|
|
25
|
-
local: 'bg-emerald-500/15 text-emerald-400',
|
|
26
|
-
balanced: 'bg-purple-500/15 text-purple-400',
|
|
27
|
-
vision: 'bg-pink-500/20 text-pink-400',
|
|
28
|
-
audio: 'bg-amber-500/20 text-amber-400',
|
|
29
|
-
lite: 'bg-surface-glass text-text-secondary',
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const STATUS_DOT: Record<string, string> = {
|
|
33
|
-
online: 'bg-emerald-400 shadow-[0_0_6px_rgba(52,211,153,0.5)]',
|
|
34
|
-
offline: 'bg-red-400/60',
|
|
35
|
-
unknown: 'bg-surface-tertiary',
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export const AIModelSelector = React.memo(function AIModelSelector({
|
|
39
|
-
selectedModelId, selectedModel, providerGroups, onSelect,
|
|
40
|
-
}: AIModelSelectorProps) {
|
|
41
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
42
|
-
const containerRef = useRef<HTMLDivElement>(null);
|
|
43
|
-
|
|
44
|
-
// Close on outside click
|
|
45
|
-
useEffect(() => {
|
|
46
|
-
if (!isOpen) return;
|
|
47
|
-
const handler = (e: MouseEvent) => {
|
|
48
|
-
if (containerRef.current && !containerRef.current.contains(e.target as Node)) {
|
|
49
|
-
setIsOpen(false);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
document.addEventListener('mousedown', handler);
|
|
53
|
-
return () => document.removeEventListener('mousedown', handler);
|
|
54
|
-
}, [isOpen]);
|
|
55
|
-
|
|
56
|
-
const localGroups = providerGroups.filter(g => g.isLocal);
|
|
57
|
-
const cloudGroups = providerGroups.filter(g => !g.isLocal);
|
|
58
|
-
|
|
59
|
-
return (
|
|
60
|
-
<div ref={containerRef} className="relative">
|
|
61
|
-
{/* Trigger */}
|
|
62
|
-
<button
|
|
63
|
-
type="button"
|
|
64
|
-
onClick={(e) => { e.stopPropagation(); setIsOpen(!isOpen); }}
|
|
65
|
-
className="flex items-center gap-1.5 px-2 py-1.5 rounded-xl text-text-muted
|
|
66
|
-
hover:text-text-primary hover:bg-surface-glass transition-all text-[10px] font-mono"
|
|
67
|
-
title={`Modelo AI: ${selectedModel.label}`}
|
|
68
|
-
>
|
|
69
|
-
<Cpu size={14} />
|
|
70
|
-
<ChevronDown size={10} />
|
|
71
|
-
</button>
|
|
72
|
-
|
|
73
|
-
{/* Dropdown */}
|
|
74
|
-
{isOpen && (
|
|
75
|
-
<div
|
|
76
|
-
className="absolute left-0 w-64 bg-white/90 dark:bg-surface-tertiary border border-black/[0.06] dark:border-border-default
|
|
77
|
-
rounded-xl shadow-xl dark:shadow-2xl z-50 max-h-[360px] overflow-y-auto custom-scrollbar"
|
|
78
|
-
style={{ bottom: '100%', marginBottom: '0.5rem' }}
|
|
79
|
-
>
|
|
80
|
-
{/* Local providers */}
|
|
81
|
-
{localGroups.length > 0 && (
|
|
82
|
-
<>
|
|
83
|
-
<div className="px-3 py-1.5 text-[9px] text-text-muted font-mono uppercase tracking-wider
|
|
84
|
-
border-b border-border-subtle flex items-center gap-1.5">
|
|
85
|
-
<span className="text-emerald-400">●</span> Local
|
|
86
|
-
</div>
|
|
87
|
-
{localGroups.map(group => (
|
|
88
|
-
<ProviderSection
|
|
89
|
-
key={group.provider}
|
|
90
|
-
group={group}
|
|
91
|
-
selectedModelId={selectedModelId}
|
|
92
|
-
onSelect={(id) => { onSelect(id); setIsOpen(false); }}
|
|
93
|
-
/>
|
|
94
|
-
))}
|
|
95
|
-
</>
|
|
96
|
-
)}
|
|
97
|
-
|
|
98
|
-
{/* Cloud providers */}
|
|
99
|
-
{cloudGroups.length > 0 && (
|
|
100
|
-
<>
|
|
101
|
-
<div className="px-3 py-1.5 text-[9px] text-text-muted font-mono uppercase tracking-wider
|
|
102
|
-
border-b border-border-subtle flex items-center gap-1.5">
|
|
103
|
-
<span className="text-cyan-400">☁</span> Cloud (BYOK)
|
|
104
|
-
</div>
|
|
105
|
-
{cloudGroups.map(group => (
|
|
106
|
-
<ProviderSection
|
|
107
|
-
key={group.provider}
|
|
108
|
-
group={group}
|
|
109
|
-
selectedModelId={selectedModelId}
|
|
110
|
-
onSelect={(id) => { onSelect(id); setIsOpen(false); }}
|
|
111
|
-
/>
|
|
112
|
-
))}
|
|
113
|
-
</>
|
|
114
|
-
)}
|
|
115
|
-
</div>
|
|
116
|
-
)}
|
|
117
|
-
</div>
|
|
118
|
-
);
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
function ProviderSection({
|
|
122
|
-
group, selectedModelId, onSelect,
|
|
123
|
-
}: { group: AIProviderGroup; selectedModelId: string; onSelect: (id: string) => void }) {
|
|
124
|
-
return (
|
|
125
|
-
<div>
|
|
126
|
-
{/* Provider header */}
|
|
127
|
-
<div className="flex items-center gap-2 px-3 py-1.5 text-[10px] font-semibold text-text-secondary">
|
|
128
|
-
<span>{group.icon}</span>
|
|
129
|
-
<span>{group.label}</span>
|
|
130
|
-
<span className={`w-1.5 h-1.5 rounded-full ml-auto ${STATUS_DOT[group.status]}`} />
|
|
131
|
-
</div>
|
|
132
|
-
|
|
133
|
-
{/* Models */}
|
|
134
|
-
{group.models.map(m => (
|
|
135
|
-
<button
|
|
136
|
-
key={m.id}
|
|
137
|
-
type="button"
|
|
138
|
-
onClick={(e) => { e.stopPropagation(); onSelect(m.id); }}
|
|
139
|
-
className={`w-full text-left px-3 py-2 text-xs flex items-center justify-between transition-colors
|
|
140
|
-
${selectedModelId === m.id
|
|
141
|
-
? 'text-text-primary'
|
|
142
|
-
: 'text-text-secondary hover:bg-surface-glass hover:text-text-primary'
|
|
143
|
-
}`}
|
|
144
|
-
style={selectedModelId === m.id ? { background: `${group.color}20` } : undefined}
|
|
145
|
-
>
|
|
146
|
-
<span className="font-mono truncate">{m.label}</span>
|
|
147
|
-
{m.tag && (
|
|
148
|
-
<span className={`text-[9px] px-1.5 py-0.5 rounded-full font-semibold shrink-0 ${TAG_STYLES[m.tag] || 'bg-surface-glass text-text-muted'}`}>
|
|
149
|
-
{m.tag}
|
|
150
|
-
</span>
|
|
151
|
-
)}
|
|
152
|
-
</button>
|
|
153
|
-
))}
|
|
154
|
-
</div>
|
|
155
|
-
);
|
|
156
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* InputActions — Right-side action buttons for the floating input
|
|
3
|
-
*
|
|
4
|
-
* Send, STT microphone, Voice Live activation, and Stop (when generating).
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import { Send, Mic, Square, Sparkles } from 'lucide-react';
|
|
9
|
-
|
|
10
|
-
interface InputActionsProps {
|
|
11
|
-
inputHasText: boolean;
|
|
12
|
-
isGenerating?: boolean;
|
|
13
|
-
isTranscribing: boolean;
|
|
14
|
-
onToggleTranscribing: () => void;
|
|
15
|
-
onSend: () => void;
|
|
16
|
-
setIsVoiceActive?: (active: boolean) => void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const InputActions = React.memo(function InputActions({
|
|
20
|
-
inputHasText, isGenerating, isTranscribing,
|
|
21
|
-
onToggleTranscribing, onSend, setIsVoiceActive,
|
|
22
|
-
}: InputActionsProps) {
|
|
23
|
-
if (isGenerating) {
|
|
24
|
-
return (
|
|
25
|
-
<div className="flex items-center gap-2 min-w-[100px] justify-end">
|
|
26
|
-
<button
|
|
27
|
-
type="button"
|
|
28
|
-
onClick={(e) => e.stopPropagation()}
|
|
29
|
-
className="w-12 h-12 rounded-full text-text-primary bg-red-500/80 hover:bg-red-500 flex items-center justify-center
|
|
30
|
-
transition-colors shadow-[0_0_15px_rgba(239,68,68,0.3)]"
|
|
31
|
-
title="Detener generación"
|
|
32
|
-
>
|
|
33
|
-
<Square size={18} />
|
|
34
|
-
</button>
|
|
35
|
-
</div>
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<div className="flex items-center gap-2 min-w-[100px] justify-end">
|
|
41
|
-
{/* STT microphone */}
|
|
42
|
-
<button
|
|
43
|
-
type="button"
|
|
44
|
-
onClick={(e) => { e.stopPropagation(); onToggleTranscribing(); }}
|
|
45
|
-
className={`w-10 h-10 rounded-full flex items-center justify-center transition-all
|
|
46
|
-
${isTranscribing
|
|
47
|
-
? 'text-red-400 bg-red-400/10 animate-pulse'
|
|
48
|
-
: 'text-text-secondary hover:text-text-primary hover:bg-surface-glass'}`}
|
|
49
|
-
title="Reconocimiento de voz (STT)"
|
|
50
|
-
>
|
|
51
|
-
<Mic size={20} />
|
|
52
|
-
</button>
|
|
53
|
-
|
|
54
|
-
{/* Send or Voice Live */}
|
|
55
|
-
{inputHasText ? (
|
|
56
|
-
<button
|
|
57
|
-
type="button"
|
|
58
|
-
onClick={(e) => { e.stopPropagation(); onSend(); }}
|
|
59
|
-
className="w-12 h-12 rounded-full text-text-inverse bg-cyan-400 hover:bg-cyan-300 flex items-center justify-center
|
|
60
|
-
transition-colors shadow-[0_0_15px_rgba(34,211,238,0.3)]"
|
|
61
|
-
title="Enviar"
|
|
62
|
-
>
|
|
63
|
-
<Send size={20} className="ml-1" />
|
|
64
|
-
</button>
|
|
65
|
-
) : setIsVoiceActive ? (
|
|
66
|
-
<button
|
|
67
|
-
type="button"
|
|
68
|
-
onClick={(e) => { e.stopPropagation(); setIsVoiceActive(true); }}
|
|
69
|
-
className="w-12 h-12 rounded-full text-cyan-400 bg-cyan-500/10 hover:bg-cyan-500/20 flex items-center justify-center
|
|
70
|
-
border border-cyan-500/20 transition-all shadow-[0_0_15px_rgba(6,182,212,0.15)]
|
|
71
|
-
hover:shadow-[0_0_20px_rgba(6,182,212,0.3)] group relative overflow-hidden"
|
|
72
|
-
title="Hablar con la IA (Live)"
|
|
73
|
-
>
|
|
74
|
-
<Sparkles size={22} className="relative z-10 transition-transform group-hover:scale-110" />
|
|
75
|
-
<div className="absolute inset-0 bg-linear-to-r from-cyan-400 to-purple-500 rounded-full opacity-0 group-hover:opacity-20 transition-opacity" />
|
|
76
|
-
</button>
|
|
77
|
-
) : null}
|
|
78
|
-
</div>
|
|
79
|
-
);
|
|
80
|
-
});
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* InputToolbar — Central toolbar for the floating input
|
|
3
|
-
*
|
|
4
|
-
* Contains: AI Model selector, Shell selector, and a consolidated Options Menu
|
|
5
|
-
* for Advanced Agent Settings (Intents, Canvas, Brand).
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import React, { useState, useMemo, useRef, useEffect } from 'react';
|
|
9
|
-
import { MonitorPlay, Code2, ChevronDown, Zap, Brain, Box, Settings2 } from 'lucide-react';
|
|
10
|
-
import { getRegisteredShellTypes, getShellMeta } from '../../../store/useShellRegistry';
|
|
11
|
-
import { AIModelSelector } from './AIModelSelector';
|
|
12
|
-
import type { AIProviderGroup, AIModel } from '../../../hooks/useAIModelSelector';
|
|
13
|
-
|
|
14
|
-
interface InputToolbarProps {
|
|
15
|
-
// Model selector
|
|
16
|
-
selectedModelId: string;
|
|
17
|
-
selectedModel: AIModel;
|
|
18
|
-
providerGroups: AIProviderGroup[];
|
|
19
|
-
onModelSelect: (id: string) => void;
|
|
20
|
-
// Shell selector
|
|
21
|
-
selectedShell: string | null;
|
|
22
|
-
onShellSelect: (shell: string | null) => void;
|
|
23
|
-
// Canvas
|
|
24
|
-
showCanvas?: boolean;
|
|
25
|
-
setShowCanvas?: (show: boolean) => void;
|
|
26
|
-
// Brand
|
|
27
|
-
prototypeBrand?: string;
|
|
28
|
-
setPrototypeBrand?: (brand: string) => void;
|
|
29
|
-
// Intent
|
|
30
|
-
intentEnabled: boolean;
|
|
31
|
-
onIntentToggle: () => void;
|
|
32
|
-
showIntentPanel: boolean;
|
|
33
|
-
onIntentPanelToggle: () => void;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const InputToolbar = React.memo(function InputToolbar({
|
|
37
|
-
selectedModelId, selectedModel, providerGroups, onModelSelect,
|
|
38
|
-
selectedShell, onShellSelect,
|
|
39
|
-
showCanvas, setShowCanvas,
|
|
40
|
-
prototypeBrand = 'decido', setPrototypeBrand,
|
|
41
|
-
intentEnabled, onIntentToggle, showIntentPanel, onIntentPanelToggle,
|
|
42
|
-
}: InputToolbarProps) {
|
|
43
|
-
const [showOptionsMenu, setShowOptionsMenu] = useState(false);
|
|
44
|
-
const [showShellMenu, setShowShellMenu] = useState(false);
|
|
45
|
-
const optionsRef = useRef<HTMLDivElement>(null);
|
|
46
|
-
const shellRef = useRef<HTMLDivElement>(null);
|
|
47
|
-
|
|
48
|
-
const shellTypes = useMemo(() => {
|
|
49
|
-
try { return getRegisteredShellTypes(); } catch { return []; }
|
|
50
|
-
}, []);
|
|
51
|
-
|
|
52
|
-
const cycleBrand = () => {
|
|
53
|
-
if (!setPrototypeBrand) return;
|
|
54
|
-
const brands = ['startup_demo', 'enterprise_demo', 'industrial_demo'];
|
|
55
|
-
setPrototypeBrand(brands[(brands.indexOf(prototypeBrand) + 1) % brands.length]);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
// Close menus on outside click
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
if (!showOptionsMenu) return;
|
|
61
|
-
const handler = (e: MouseEvent) => {
|
|
62
|
-
if (optionsRef.current && !optionsRef.current.contains(e.target as Node)) {
|
|
63
|
-
setShowOptionsMenu(false);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
document.addEventListener('mousedown', handler);
|
|
67
|
-
return () => document.removeEventListener('mousedown', handler);
|
|
68
|
-
}, [showOptionsMenu]);
|
|
69
|
-
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
if (!showShellMenu) return;
|
|
72
|
-
const handler = (e: MouseEvent) => {
|
|
73
|
-
if (shellRef.current && !shellRef.current.contains(e.target as Node)) {
|
|
74
|
-
setShowShellMenu(false);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
document.addEventListener('mousedown', handler);
|
|
78
|
-
return () => document.removeEventListener('mousedown', handler);
|
|
79
|
-
}, [showShellMenu]);
|
|
80
|
-
|
|
81
|
-
const shellMeta = selectedShell ? getShellMeta(selectedShell) : null;
|
|
82
|
-
const hasActiveTool = showCanvas || intentEnabled || showIntentPanel;
|
|
83
|
-
|
|
84
|
-
return (
|
|
85
|
-
<div className="flex flex-wrap items-center justify-center gap-0.5 sm:gap-1 xl:gap-2 relative flex-1 min-w-0">
|
|
86
|
-
|
|
87
|
-
{/* AI Model Selector */}
|
|
88
|
-
<AIModelSelector
|
|
89
|
-
selectedModelId={selectedModelId}
|
|
90
|
-
selectedModel={selectedModel}
|
|
91
|
-
providerGroups={providerGroups}
|
|
92
|
-
onSelect={onModelSelect}
|
|
93
|
-
/>
|
|
94
|
-
|
|
95
|
-
<div className="w-px h-4 bg-surface-glass/80 mx-1" />
|
|
96
|
-
|
|
97
|
-
{/* Shell Selector */}
|
|
98
|
-
<div ref={shellRef} className="relative">
|
|
99
|
-
<button
|
|
100
|
-
type="button"
|
|
101
|
-
onClick={(e) => { e.stopPropagation(); setShowShellMenu(!showShellMenu); setShowOptionsMenu(false); }}
|
|
102
|
-
className={`flex items-center gap-1 px-2 py-1.5 rounded-xl hover:bg-surface-glass transition-all text-[10px] font-mono
|
|
103
|
-
${selectedShell ? '' : 'text-text-muted hover:text-cyan-400'}`}
|
|
104
|
-
style={selectedShell && shellMeta ? { color: shellMeta.color } : undefined}
|
|
105
|
-
title={`Destino de salida: ${shellMeta?.label || selectedShell || 'Ninguna (chat)'}`}
|
|
106
|
-
>
|
|
107
|
-
<span className="text-sm">{shellMeta?.icon || '💬'}</span>
|
|
108
|
-
<ChevronDown size={10} />
|
|
109
|
-
</button>
|
|
110
|
-
|
|
111
|
-
{showShellMenu && (
|
|
112
|
-
<div
|
|
113
|
-
className="absolute left-1/2 -translate-x-1/2 sm:left-auto sm:translate-x-0 w-[220px] bg-white/95 dark:bg-surface-tertiary border border-black/[0.06] dark:border-border-default
|
|
114
|
-
rounded-2xl shadow-xl dark:shadow-2xl z-[100] max-h-[300px] overflow-y-auto custom-scrollbar flex flex-col backdrop-blur-xl"
|
|
115
|
-
style={{ bottom: '100%', marginBottom: '0.6rem' }}
|
|
116
|
-
>
|
|
117
|
-
<div className="px-3 py-2 text-[10px] text-text-muted font-mono uppercase tracking-wider bg-surface-base/50">
|
|
118
|
-
Destino de Salida
|
|
119
|
-
</div>
|
|
120
|
-
<div className="p-1 pb-2">
|
|
121
|
-
<button
|
|
122
|
-
type="button"
|
|
123
|
-
onClick={(e) => { e.stopPropagation(); onShellSelect(null); setShowShellMenu(false); }}
|
|
124
|
-
className={`w-full text-left px-3 py-2.5 rounded-xl text-xs transition-colors font-mono flex items-center gap-2.5
|
|
125
|
-
${!selectedShell ? 'bg-cyan-500/10 text-cyan-400 font-semibold' : 'text-text-secondary hover:bg-surface-glass hover:text-text-primary'}`}
|
|
126
|
-
>
|
|
127
|
-
<span className="text-base leading-none w-4 text-center">💬</span>
|
|
128
|
-
<span>Ninguna (Chat)</span>
|
|
129
|
-
</button>
|
|
130
|
-
<div className="h-px bg-border-subtle my-1 mx-1" />
|
|
131
|
-
{shellTypes.map(st => {
|
|
132
|
-
const meta = getShellMeta(st);
|
|
133
|
-
return (
|
|
134
|
-
<button
|
|
135
|
-
key={st}
|
|
136
|
-
type="button"
|
|
137
|
-
onClick={(e) => { e.stopPropagation(); onShellSelect(st); setShowShellMenu(false); }}
|
|
138
|
-
className={`w-full text-left px-3 py-2.5 mt-0.5 rounded-xl text-xs transition-colors font-mono flex items-center gap-2.5
|
|
139
|
-
${selectedShell === st ? 'text-text-primary font-semibold' : 'text-text-secondary hover:bg-surface-glass hover:text-text-primary'}`}
|
|
140
|
-
style={selectedShell === st ? { background: `${meta.color}20` } : undefined}
|
|
141
|
-
>
|
|
142
|
-
<span className="text-base leading-none w-4 text-center">{meta.icon}</span>
|
|
143
|
-
<span className="flex-1 truncate">{meta.label}</span>
|
|
144
|
-
<span className="w-1.5 h-1.5 rounded-full shrink-0" style={{ background: meta.color }} />
|
|
145
|
-
</button>
|
|
146
|
-
);
|
|
147
|
-
})}
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
)}
|
|
151
|
-
</div>
|
|
152
|
-
|
|
153
|
-
<div className="w-px h-4 bg-surface-glass/80 mx-1" />
|
|
154
|
-
|
|
155
|
-
{/* Unified Options Menu */}
|
|
156
|
-
<div ref={optionsRef} className="relative">
|
|
157
|
-
<button
|
|
158
|
-
type="button"
|
|
159
|
-
onClick={(e) => { e.stopPropagation(); setShowOptionsMenu(!showOptionsMenu); setShowShellMenu(false); }}
|
|
160
|
-
className={`w-8 h-8 rounded-xl flex items-center justify-center transition-all relative
|
|
161
|
-
${showOptionsMenu || hasActiveTool ? 'text-text-primary bg-surface-glass' : 'text-text-secondary hover:text-text-primary hover:bg-surface-glass'}`}
|
|
162
|
-
title="Opciones del Agente"
|
|
163
|
-
>
|
|
164
|
-
<Settings2 size={16} />
|
|
165
|
-
{hasActiveTool && (
|
|
166
|
-
<div className="absolute top-1.5 right-1.5 w-1.5 h-1.5 rounded-full bg-cyan-400" />
|
|
167
|
-
)}
|
|
168
|
-
</button>
|
|
169
|
-
|
|
170
|
-
{showOptionsMenu && (
|
|
171
|
-
<div
|
|
172
|
-
className="absolute left-1/2 -translate-x-1/2 sm:left-auto sm:translate-x-0 sm:-right-2 w-[240px] sm:w-[260px] bg-white/95 dark:bg-surface-tertiary border border-black/[0.06] dark:border-border-default
|
|
173
|
-
rounded-2xl shadow-xl dark:shadow-2xl z-[100] max-h-[380px] overflow-y-auto custom-scrollbar flex flex-col backdrop-blur-xl"
|
|
174
|
-
style={{ bottom: '100%', marginBottom: '0.6rem' }}
|
|
175
|
-
>
|
|
176
|
-
{/* Section: Agente y Contexto */}
|
|
177
|
-
<div className="px-3 py-2 text-[10px] text-text-muted font-mono uppercase tracking-wider bg-surface-base/50">
|
|
178
|
-
Agente y Contexto
|
|
179
|
-
</div>
|
|
180
|
-
<div className="p-1">
|
|
181
|
-
<button
|
|
182
|
-
type="button"
|
|
183
|
-
onClick={(e) => { e.stopPropagation(); onIntentToggle(); }}
|
|
184
|
-
className={`w-full text-left px-3 py-2.5 rounded-xl text-xs transition-colors font-mono flex items-center justify-between group
|
|
185
|
-
${intentEnabled ? 'text-emerald-500 bg-emerald-500/10' : 'text-text-secondary hover:bg-surface-glass hover:text-text-primary'}`}
|
|
186
|
-
>
|
|
187
|
-
<div className="flex items-center gap-2.5">
|
|
188
|
-
<Brain size={15} />
|
|
189
|
-
<span>Interpretar intenciones</span>
|
|
190
|
-
</div>
|
|
191
|
-
<div className={`w-7 h-4 rounded-full flex items-center p-0.5 transition-colors border ${intentEnabled ? 'bg-emerald-500 border-emerald-500/0' : 'bg-surface-glass border-border-default group-hover:bg-border-subtle'}`}>
|
|
192
|
-
<div className={`w-3 h-3 rounded-full bg-white transition-transform ${intentEnabled ? 'translate-x-[12px]' : 'translate-x-0'}`} />
|
|
193
|
-
</div>
|
|
194
|
-
</button>
|
|
195
|
-
<button
|
|
196
|
-
type="button"
|
|
197
|
-
onClick={(e) => { e.stopPropagation(); onIntentPanelToggle(); setShowOptionsMenu(false); }}
|
|
198
|
-
className="w-full text-left px-3 py-2.5 mt-0.5 rounded-xl text-xs text-text-secondary hover:bg-surface-glass hover:text-cyan-500 transition-colors font-mono flex items-center gap-2.5"
|
|
199
|
-
>
|
|
200
|
-
<Zap size={15} />
|
|
201
|
-
<span>Explorar catálogo</span>
|
|
202
|
-
</button>
|
|
203
|
-
</div>
|
|
204
|
-
|
|
205
|
-
<div className="h-px bg-border-subtle" />
|
|
206
|
-
|
|
207
|
-
{/* Section: Entorno */}
|
|
208
|
-
<div className="px-3 py-2 text-[10px] text-text-muted font-mono uppercase tracking-wider bg-surface-base/50">
|
|
209
|
-
Entorno Visual
|
|
210
|
-
</div>
|
|
211
|
-
<div className="p-1 pb-2">
|
|
212
|
-
{setShowCanvas && (
|
|
213
|
-
<button
|
|
214
|
-
type="button"
|
|
215
|
-
onClick={(e) => { e.stopPropagation(); setShowCanvas(!showCanvas); setShowOptionsMenu(false); }}
|
|
216
|
-
className={`w-full text-left px-3 py-2.5 rounded-xl text-xs transition-colors font-mono flex items-center justify-between
|
|
217
|
-
${showCanvas ? 'text-primary bg-primary/10' : 'text-text-secondary hover:bg-surface-glass hover:text-text-primary'}`}
|
|
218
|
-
>
|
|
219
|
-
<div className="flex items-center gap-2.5">
|
|
220
|
-
<MonitorPlay size={15} />
|
|
221
|
-
<span>Lienzo (Canvas)</span>
|
|
222
|
-
</div>
|
|
223
|
-
{showCanvas && <div className="w-2 h-2 rounded-full bg-primary" />}
|
|
224
|
-
</button>
|
|
225
|
-
)}
|
|
226
|
-
{setPrototypeBrand && (
|
|
227
|
-
<button
|
|
228
|
-
type="button"
|
|
229
|
-
onClick={(e) => { e.stopPropagation(); cycleBrand(); }}
|
|
230
|
-
className="w-full mt-0.5 text-left px-3 py-2.5 rounded-xl text-xs text-amber-500 hover:bg-surface-glass transition-colors font-mono flex items-center justify-between"
|
|
231
|
-
>
|
|
232
|
-
<div className="flex items-center gap-2.5">
|
|
233
|
-
<Code2 size={15} />
|
|
234
|
-
<span>UI: {prototypeBrand}</span>
|
|
235
|
-
</div>
|
|
236
|
-
</button>
|
|
237
|
-
)}
|
|
238
|
-
</div>
|
|
239
|
-
</div>
|
|
240
|
-
)}
|
|
241
|
-
</div>
|
|
242
|
-
|
|
243
|
-
</div>
|
|
244
|
-
);
|
|
245
|
-
});
|