@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.
Files changed (208) hide show
  1. package/README.md +31 -0
  2. package/package.json +17 -14
  3. package/.turbo/turbo-build.log +0 -13
  4. package/src/AgentPlayer.tsx +0 -105
  5. package/src/DecidoPlayer.tsx +0 -117
  6. package/src/bridge/BridgeAgent.ts +0 -443
  7. package/src/components/DecidoIcon.tsx +0 -56
  8. package/src/components/JsonTreeEditor.tsx +0 -117
  9. package/src/components/PanelSplitter.tsx +0 -71
  10. package/src/components/PluginErrorBoundary.tsx +0 -69
  11. package/src/components/SafeLiquidUI.tsx +0 -114
  12. package/src/components/TransientLayer.tsx +0 -92
  13. package/src/components/agent/AgentChat.tsx +0 -134
  14. package/src/components/chat-extensions/IntentCatalogPanel.tsx +0 -81
  15. package/src/components/chat-extensions/chatSlashCommands.ts +0 -101
  16. package/src/components/controls/CreatorInputBar.tsx +0 -144
  17. package/src/components/controls/OSToolbar.tsx +0 -90
  18. package/src/components/controls/TimelineTape.tsx +0 -43
  19. package/src/components/debug/ActionTimelineTab.tsx +0 -111
  20. package/src/components/debug/CSSInspectorTab.tsx +0 -436
  21. package/src/components/debug/ExportTab.tsx +0 -192
  22. package/src/components/debug/FlowHealthTab.tsx +0 -86
  23. package/src/components/debug/LogsTab.tsx +0 -110
  24. package/src/components/debug/MorphStackTab.tsx +0 -241
  25. package/src/components/debug/NetworkTab.tsx +0 -173
  26. package/src/components/debug/PerformanceTab.tsx +0 -171
  27. package/src/components/debug/ProfilesTab.tsx +0 -238
  28. package/src/components/debug/ReplayTab.tsx +0 -70
  29. package/src/components/debug/StoresTab.tsx +0 -255
  30. package/src/components/debug/TopologyTab.tsx +0 -59
  31. package/src/components/debug/debugConfig.tsx +0 -66
  32. package/src/components/playground/DebugPanel.tsx +0 -112
  33. package/src/components/playground/HeaderCenterControls.tsx +0 -92
  34. package/src/components/playground/KeyframeListItem.tsx +0 -70
  35. package/src/components/playground/PlaygroundAppSidebar.tsx +0 -171
  36. package/src/components/playground/PlaygroundBottomControls.tsx +0 -132
  37. package/src/components/playground/PlaygroundCanvas.tsx +0 -87
  38. package/src/components/playground/PlaygroundChat.tsx +0 -236
  39. package/src/components/playground/PlaygroundErrorBoundary.tsx +0 -63
  40. package/src/components/playground/PlaygroundFloatingInput.tsx +0 -352
  41. package/src/components/playground/PlaygroundHeader.tsx +0 -222
  42. package/src/components/playground/PlaygroundSidebar.tsx +0 -136
  43. package/src/components/playground/PlaygroundTerminal.tsx +0 -44
  44. package/src/components/playground/SuggestionCards.tsx +0 -29
  45. package/src/components/playground/demos/ClinicaAINode.tsx +0 -221
  46. package/src/components/playground/demos/FinanceAINode.tsx +0 -226
  47. package/src/components/playground/demos/KiaAcademyNode.tsx +0 -250
  48. package/src/components/playground/demos/KiaBotNode.tsx +0 -207
  49. package/src/components/playground/demos/KiaCampaignNode.tsx +0 -191
  50. package/src/components/playground/demos/KiaComplianceNode.tsx +0 -140
  51. package/src/components/playground/demos/KiaCustomerJourneyNode.tsx +0 -220
  52. package/src/components/playground/demos/KiaCyberNode.tsx +0 -203
  53. package/src/components/playground/demos/KiaDashboardNode.tsx +0 -399
  54. package/src/components/playground/demos/KiaEmbudoOverviewNode.tsx +0 -168
  55. package/src/components/playground/demos/KiaExecutiveNode.tsx +0 -169
  56. package/src/components/playground/demos/KiaGamificationNode.tsx +0 -229
  57. package/src/components/playground/demos/KiaIntelligenceHubNode.tsx +0 -165
  58. package/src/components/playground/demos/KiaInventoryNode.tsx +0 -183
  59. package/src/components/playground/demos/KiaLeadScoringNode.tsx +0 -226
  60. package/src/components/playground/demos/KiaLiveSimulationNode.tsx +0 -177
  61. package/src/components/playground/demos/KiaMultiDealerNode.tsx +0 -223
  62. package/src/components/playground/demos/KiaNPSVoiceNode.tsx +0 -214
  63. package/src/components/playground/demos/KiaOmnichannelNode.tsx +0 -162
  64. package/src/components/playground/demos/KiaPBIBudgetNode.tsx +0 -152
  65. package/src/components/playground/demos/KiaPBIConversionNode.tsx +0 -206
  66. package/src/components/playground/demos/KiaPBIFunnelNode.tsx +0 -184
  67. package/src/components/playground/demos/KiaPBIOwnershipNode.tsx +0 -113
  68. package/src/components/playground/demos/KiaPBIPartnerNode.tsx +0 -143
  69. package/src/components/playground/demos/KiaPBIPreciosNode.tsx +0 -120
  70. package/src/components/playground/demos/KiaPBIRuntNode.tsx +0 -205
  71. package/src/components/playground/demos/KiaPartnerScoreNode.tsx +0 -206
  72. package/src/components/playground/demos/KiaPredictiveNode.tsx +0 -226
  73. package/src/components/playground/demos/KiaShowroomNode.tsx +0 -194
  74. package/src/components/playground/demos/KiaStoreNode.tsx +0 -215
  75. package/src/components/playground/demos/KiaSustainabilityNode.tsx +0 -173
  76. package/src/components/playground/demos/KiaUsedVehiclesNode.tsx +0 -163
  77. package/src/components/playground/demos/KiaWorkshopNode.tsx +0 -221
  78. package/src/components/playground/demos/SmartCityNode.tsx +0 -205
  79. package/src/components/playground/demos/kia_campaign_manifest.json +0 -112
  80. package/src/components/playground/input-parts/AIModelSelector.tsx +0 -156
  81. package/src/components/playground/input-parts/InputActions.tsx +0 -80
  82. package/src/components/playground/input-parts/InputToolbar.tsx +0 -245
  83. package/src/components/playground/input-parts/ResourceLibraryPanel.tsx +0 -287
  84. package/src/components/playground/sidebarDsdIO.ts +0 -82
  85. package/src/components/settings/SettingsPanel.tsx +0 -267
  86. package/src/components/shell/AppHeader.tsx +0 -9
  87. package/src/components/shell/AppShell.tsx +0 -139
  88. package/src/components/shell/ArtifactBar.tsx +0 -97
  89. package/src/components/shell/BootScreen.tsx +0 -19
  90. package/src/components/shell/CenterComposite.tsx +0 -87
  91. package/src/components/shell/CodeEditorPanel.tsx +0 -88
  92. package/src/components/shell/GlobalOverlays.tsx +0 -228
  93. package/src/components/shell/LayoutConfigurator.tsx +0 -209
  94. package/src/components/shell/LayoutGrid.tsx +0 -178
  95. package/src/components/shell/MorphShell.tsx +0 -368
  96. package/src/components/shell/PluginViewer.tsx +0 -147
  97. package/src/components/shell/ShellNexusPreview.tsx +0 -458
  98. package/src/components/shell/SlotRenderer.tsx +0 -115
  99. package/src/components/shell/TabBar.tsx +0 -94
  100. package/src/components/shell/TemplateLibrary.tsx +0 -195
  101. package/src/components/shell/layoutConstants.ts +0 -35
  102. package/src/components/shell/morphStageMeta.ts +0 -15
  103. package/src/components/shell/shells/BuiltInShells.tsx +0 -443
  104. package/src/components/shell/shells/DatawayChatShell.tsx +0 -42
  105. package/src/components/shell/shells/TokenPreview.tsx +0 -339
  106. package/src/components/shell/shells/bootShells.ts +0 -31
  107. package/src/components/shells/CreatorShell.tsx +0 -37
  108. package/src/components/shells/DecidoShell.tsx +0 -447
  109. package/src/components/shells/ExperimentalChatShell.tsx +0 -245
  110. package/src/components/shells/UserCanvas.tsx +0 -44
  111. package/src/components/studio/BlueprintManagerPanel.tsx +0 -137
  112. package/src/components/studio/DependencyTreePanel.tsx +0 -192
  113. package/src/components/studio/NodePalette.tsx +0 -92
  114. package/src/components/studio/NodePropertiesPanel.tsx +0 -81
  115. package/src/components/studio/ReactFlowEditor.tsx +0 -242
  116. package/src/components/studio/TimelineEditor.tsx +0 -122
  117. package/src/components/studio/TimelineKeyframeCard.tsx +0 -99
  118. package/src/components/studio/VariablePanel.tsx +0 -181
  119. package/src/components/studio/blueprint/BlueprintCard.tsx +0 -82
  120. package/src/components/studio/editor/CanvasContextMenu.tsx +0 -107
  121. package/src/components/studio/editor/EditorToolbar.tsx +0 -80
  122. package/src/components/studio/editor/StageContentRenderer.tsx +0 -134
  123. package/src/components/studio/editor/TrackPropertyEditors.tsx +0 -133
  124. package/src/components/studio/editor/TreeNodeItem.tsx +0 -91
  125. package/src/components/studio/editor/edgeStyles.ts +0 -43
  126. package/src/components/studio/editor/editorKeyHandler.ts +0 -95
  127. package/src/components/studio/editor/nodeTypeRegistry.ts +0 -137
  128. package/src/components/studio/editor/paletteCatalog.tsx +0 -84
  129. package/src/components/studio/nodes/shell/InteractionNodes.tsx +0 -82
  130. package/src/components/studio/nodes/shell/LayoutControlNodes.tsx +0 -69
  131. package/src/components/studio/nodes/shell/RegisterActionNode.tsx +0 -20
  132. package/src/components/studio/nodes/shell/RegisterButtonNode.tsx +0 -22
  133. package/src/components/studio/nodes/shell/RegisterPanelNode.tsx +0 -19
  134. package/src/components/studio/nodes/shell/RegisterSidebarNode.tsx +0 -19
  135. package/src/components/studio/nodes/shell/RegisterStatusBarNode.tsx +0 -22
  136. package/src/components/studio/nodes/shell/RegisterTabNode.tsx +0 -21
  137. package/src/components/studio/nodes/shell/RegisterTopBarNode.tsx +0 -22
  138. package/src/components/studio/nodes/shell/ShellConfigNode.tsx +0 -51
  139. package/src/components/studio/nodes/shell/ShellNodeBase.tsx +0 -100
  140. package/src/components/studio/nodes/shell/ThemeNodes.tsx +0 -51
  141. package/src/components/studio/nodes/shell/index.ts +0 -12
  142. package/src/components/widgets/BroadcastWidget.tsx +0 -93
  143. package/src/components/widgets/MarketplaceWidget.tsx +0 -298
  144. package/src/components/widgets/McpToolsWidget.tsx +0 -231
  145. package/src/components/widgets/OpsDashboard.tsx +0 -59
  146. package/src/components/widgets/QuickActionsWidget.tsx +0 -60
  147. package/src/components/widgets/UsageWidget.tsx +0 -112
  148. package/src/components/widgets/WidgetRenderer.tsx +0 -892
  149. package/src/components/widgets/WidgetSlotPanel.tsx +0 -213
  150. package/src/config/IconRegistry.ts +0 -126
  151. package/src/contexts/NetworkProvider.tsx +0 -162
  152. package/src/core/AIDirector.ts +0 -71
  153. package/src/core/EventBus.ts +0 -37
  154. package/src/core/PluginContext.tsx +0 -141
  155. package/src/hooks/listeners/useUIStateListener.ts +0 -59
  156. package/src/hooks/listeners/useWhatsAppListener.ts +0 -110
  157. package/src/hooks/morphBridge.ts +0 -82
  158. package/src/hooks/useAIModelSelector.ts +0 -144
  159. package/src/hooks/useAgentStream.ts +0 -220
  160. package/src/hooks/useAutoUpdater.ts +0 -89
  161. package/src/hooks/useBootSequence.ts +0 -20
  162. package/src/hooks/useExportDSD.ts +0 -53
  163. package/src/hooks/useFullscreen.ts +0 -35
  164. package/src/hooks/useGeminiStream.ts +0 -282
  165. package/src/hooks/useIntentLens.ts +0 -224
  166. package/src/hooks/useKeyboardShortcuts.ts +0 -69
  167. package/src/hooks/useLoggerBridge.ts +0 -32
  168. package/src/hooks/useMcpClient.ts +0 -112
  169. package/src/hooks/useNexusaiDeploy.ts +0 -118
  170. package/src/hooks/usePlaybackEngine.ts +0 -21
  171. package/src/hooks/usePlaygroundCommander.ts +0 -475
  172. package/src/hooks/usePluginEngine.ts +0 -165
  173. package/src/hooks/useScreenRecorder.ts +0 -73
  174. package/src/hooks/useShellKeyboard.ts +0 -40
  175. package/src/hooks/useShellShortcuts.ts +0 -118
  176. package/src/hooks/useSoundEffects.ts +0 -35
  177. package/src/hooks/useStudioConfig.ts +0 -72
  178. package/src/hooks/useSystemBoot.ts +0 -84
  179. package/src/hooks/useSystemTelemetry.ts +0 -62
  180. package/src/lib/debugLogger.ts +0 -80
  181. package/src/lib/networkInterceptor.ts +0 -100
  182. package/src/mocks/decido.tsx +0 -41
  183. package/src/plugins/pluginAPI.ts +0 -190
  184. package/src/store/McpStore.ts +0 -69
  185. package/src/store/UpdaterStore.ts +0 -60
  186. package/src/store/engine.ts +0 -392
  187. package/src/store/index.ts +0 -4
  188. package/src/store/layoutPresets.ts +0 -66
  189. package/src/store/playgroundTypes.ts +0 -98
  190. package/src/store/useActionTimelineStore.ts +0 -48
  191. package/src/store/useDebugPanelStore.ts +0 -98
  192. package/src/store/useDebugProfileStore.ts +0 -130
  193. package/src/store/useLayoutStore.ts +0 -205
  194. package/src/store/useMorphInstanceStore.ts +0 -289
  195. package/src/store/useMorphologyStore.ts +0 -103
  196. package/src/store/usePlaygroundStore.ts +0 -236
  197. package/src/store/useShellRegistry.ts +0 -123
  198. package/src/store/useSuggestionsStore.ts +0 -57
  199. package/src/store/useThemeStore.ts +0 -399
  200. package/src/store/useUIComponentStore.ts +0 -179
  201. package/src/types/DecidoStoryDefinition.ts +0 -43
  202. package/src/utils/ai/ai-architect.ts +0 -92
  203. package/src/utils/ai/ai-code.ts +0 -187
  204. package/src/utils/ai/ai-core.ts +0 -50
  205. package/src/utils/ai/ai-media.ts +0 -292
  206. package/src/utils/layoutGraph.ts +0 -67
  207. package/tsconfig.json +0 -17
  208. package/tsconfig.tsbuildinfo +0 -1
@@ -1,184 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { BaseNode } from '@decido/macia-core';
3
- import {
4
- Filter, TrendingUp, Users, Target, CalendarCheck,
5
- Car, Eye, FileText, BarChart3, ChevronDown
6
- } from 'lucide-react';
7
-
8
- /* ═══════════════════════════════════════════════════════════════
9
- KIA PBI FUNNEL NODE — Mirror de PowerBI "KIA Funnel"
10
- Datos REALES Grecco Motors · Febrero 2026 · Cúcuta
11
- ═══════════════════════════════════════════════════════════════ */
12
-
13
- const FUNNEL_STAGES = [
14
- { stage: 'Oportunidades', total: 437, digital: 321, walkin: 116, target: null, compliance: null, color: '#3b82f6' },
15
- { stage: 'Citas', total: 26, digital: 32, walkin: null, target: 40, compliance: 65, color: '#8b5cf6' },
16
- { stage: 'Show Up', total: 46, digital: 16, walkin: null, target: 50, compliance: 93, color: '#a855f7' },
17
- { stage: 'Tráfico', total: 35, digital: null, walkin: null, target: 60, compliance: 59, color: '#f59e0b' },
18
- { stage: 'Cotizaciones', total: 71, digital: 6, walkin: null, target: 80, compliance: 89, color: '#22c55e' },
19
- { stage: 'Test Drive', total: 52, digital: 9, walkin: null, target: 40, compliance: 129, color: '#06b6d4' },
20
- { stage: 'Conversión', total: 25, digital: null, walkin: null, target: 15, compliance: 168, color: '#10b981' },
21
- ];
22
-
23
- const RESULTS = [
24
- { label: 'Pedidos', value: 53, icon: '📋' },
25
- { label: 'Facturación', value: 15, icon: '💰' },
26
- { label: 'RUNT', value: 39, icon: '🚗' },
27
- { label: 'Entregas', value: 30, icon: '🤝' },
28
- ];
29
-
30
- const PRODUCTS = [
31
- { model: 'Picanto', opps: 212, pct: 48.5, color: '#ef4444' },
32
- { model: 'K3 Sedan', opps: 69, pct: 15.8, color: '#f59e0b' },
33
- { model: 'K3 Cross', opps: 41, pct: 9.4, color: '#22c55e' },
34
- { model: 'Soluto', opps: 35, pct: 8.0, color: '#3b82f6' },
35
- { model: 'Stonic', opps: 17, pct: 3.9, color: '#8b5cf6' },
36
- { model: 'Sportage', opps: 12, pct: 2.7, color: '#06b6d4' },
37
- ];
38
-
39
- const LEAD_SOURCES = [
40
- { source: 'Showroom', unique: 226, sales: 82, conv: 36.3 },
41
- { source: 'BTL', unique: 19, sales: 2, conv: 10.5 },
42
- { source: 'Redes Sociales', unique: 489, sales: 3, conv: 0.6 },
43
- ];
44
-
45
- const CONVERSION_BY = [
46
- { label: 'Walk-in', value: 31.0, sales: 84, color: '#22c55e' },
47
- { label: 'Digital', value: 7.7, sales: 8, color: '#3b82f6' },
48
- ];
49
-
50
- export const KiaPBIFunnelNode = (props: any) => {
51
- const [tab, setTab] = useState<'funnel' | 'products' | 'sources'>('funnel');
52
-
53
- return (
54
- <BaseNode {...props} title="KIA Funnel — PBI" width={520} height={640}>
55
- <div className="flex flex-col h-full bg-[#1a1a2e] text-white overflow-hidden">
56
-
57
- {/* Header — PowerBI style */}
58
- <div className="flex items-center gap-3 p-3 bg-[#16213e] border-b border-blue-900/40">
59
- <div className="w-9 h-9 rounded bg-blue-600/20 flex items-center justify-center">
60
- <Filter size={16} className="text-blue-400" />
61
- </div>
62
- <div className="flex-1">
63
- <div className="text-xs font-bold tracking-wide flex items-center gap-2">
64
- KPI FUNNEL CRM
65
- <span className="text-[8px] px-1.5 py-0.5 bg-yellow-500/20 text-yellow-400 rounded">FEB 2026</span>
66
- <span className="text-[8px] px-1.5 py-0.5 bg-blue-500/20 text-blue-400 rounded">POWER BI</span>
67
- </div>
68
- <div className="text-[10px] text-slate-400">Grecco Motors · Cúcuta / Bucaramanga · Cumplimiento: 100%</div>
69
- </div>
70
- </div>
71
-
72
- {/* Tabs */}
73
- <div className="flex gap-1 p-2 bg-[#16213e]/50 border-b border-blue-900/30">
74
- {([
75
- { key: 'funnel' as const, label: '📊 Funnel' },
76
- { key: 'products' as const, label: '🚗 Producto' },
77
- { key: 'sources' as const, label: '📈 Origen' },
78
- ]).map(t => (
79
- <button key={t.key} onClick={() => setTab(t.key)}
80
- className={`flex-1 py-1.5 rounded text-[9px] font-bold transition-all ${tab === t.key ? 'bg-blue-600/30 text-blue-300 border border-blue-500/30' : 'text-slate-500'
81
- }`}>
82
- {t.label}
83
- </button>
84
- ))}
85
- </div>
86
-
87
- {/* Results row */}
88
- <div className="flex gap-1 px-3 py-2 border-b border-blue-900/20">
89
- {RESULTS.map(r => (
90
- <div key={r.label} className="flex-1 text-center bg-[#16213e]/50 rounded p-1.5">
91
- <div className="text-[10px]">{r.icon}</div>
92
- <div className="text-sm font-bold text-white">{r.value}</div>
93
- <div className="text-[7px] text-slate-500">{r.label}</div>
94
- </div>
95
- ))}
96
- </div>
97
-
98
- <div className="flex-1 overflow-y-auto p-3 space-y-1.5">
99
-
100
- {tab === 'funnel' && FUNNEL_STAGES.map(s => (
101
- <div key={s.stage} className="bg-[#16213e]/40 rounded-lg p-2.5 border border-blue-900/20">
102
- <div className="flex items-center justify-between mb-1">
103
- <span className="text-[10px] font-bold">{s.stage}</span>
104
- <div className="flex items-center gap-2">
105
- <span className="text-sm font-black" style={{ color: s.color }}>{s.total}%</span>
106
- {s.compliance !== null && (
107
- <span className={`text-[8px] px-1.5 py-0.5 rounded font-bold ${s.compliance >= 100 ? 'bg-green-500/20 text-green-400' :
108
- s.compliance >= 80 ? 'bg-yellow-500/20 text-yellow-400' : 'bg-red-500/20 text-red-400'
109
- }`}>{s.compliance}%</span>
110
- )}
111
- </div>
112
- </div>
113
- <div className="flex items-center gap-2">
114
- <div className="flex-1 h-2 bg-[#0a0f1a] rounded-full">
115
- <div className="h-full rounded-full transition-all" style={{ width: `${Math.min(100, s.total)}%`, background: s.color }} />
116
- </div>
117
- {s.target && <span className="text-[8px] text-slate-500">Meta: {s.target}%</span>}
118
- </div>
119
- {s.stage === 'Oportunidades' && (
120
- <div className="flex gap-2 mt-1 text-[8px]">
121
- <span className="text-blue-400">Digital: {s.digital}</span>
122
- <span className="text-green-400">Walk-in: {s.walkin}</span>
123
- </div>
124
- )}
125
- </div>
126
- ))}
127
-
128
- {tab === 'products' && (
129
- <>
130
- <div className="flex gap-1 mb-2">
131
- {CONVERSION_BY.map(c => (
132
- <div key={c.label} className="flex-1 bg-[#16213e]/50 rounded p-2 text-center border border-blue-900/20">
133
- <div className="text-lg font-black" style={{ color: c.color }}>{c.value}%</div>
134
- <div className="text-[9px] text-slate-400">{c.label} · {c.sales} ventas</div>
135
- </div>
136
- ))}
137
- </div>
138
- {PRODUCTS.map(p => (
139
- <div key={p.model} className="bg-[#16213e]/40 rounded-lg p-2 border border-blue-900/20"
140
- style={{ borderLeftWidth: '3px', borderLeftColor: p.color }}>
141
- <div className="flex items-center justify-between">
142
- <span className="text-[10px] font-bold">{p.model}</span>
143
- <span className="text-[10px] font-bold" style={{ color: p.color }}>{p.opps} opps</span>
144
- </div>
145
- <div className="flex items-center gap-2 mt-0.5">
146
- <div className="flex-1 h-1.5 bg-[#0a0f1a] rounded-full">
147
- <div className="h-full rounded-full" style={{ width: `${p.pct * 2}%`, background: p.color }} />
148
- </div>
149
- <span className="text-[8px] text-slate-500">{p.pct}%</span>
150
- </div>
151
- </div>
152
- ))}
153
- </>
154
- )}
155
-
156
- {tab === 'sources' && (
157
- <>
158
- {LEAD_SOURCES.map(s => (
159
- <div key={s.source} className="bg-[#16213e]/40 rounded-lg p-3 border border-blue-900/20">
160
- <div className="flex items-center justify-between mb-1">
161
- <span className="text-[11px] font-bold">{s.source}</span>
162
- <span className={`text-sm font-black ${s.conv > 10 ? 'text-green-400' : s.conv > 5 ? 'text-yellow-400' : 'text-red-400'}`}>{s.conv}%</span>
163
- </div>
164
- <div className="flex gap-3 text-[9px]">
165
- <span className="text-slate-400">Únicos: <span className="font-bold text-white">{s.unique}</span></span>
166
- <span className="text-slate-400">Ventas: <span className="font-bold text-green-400">{s.sales}</span></span>
167
- </div>
168
- <div className="flex items-center gap-2 mt-1">
169
- <div className="flex-1 h-1.5 bg-[#0a0f1a] rounded-full">
170
- <div className="h-full rounded-full bg-blue-500" style={{ width: `${s.conv}%` }} />
171
- </div>
172
- </div>
173
- </div>
174
- ))}
175
- <div className="bg-red-500/10 rounded-lg p-2.5 border border-red-500/20 text-[9px] text-red-400">
176
- ⚠️ Redes Sociales: 489 leads pero solo 0.6% conversión. Requiere estrategia de calificación profunda.
177
- </div>
178
- </>
179
- )}
180
- </div>
181
- </div>
182
- </BaseNode>
183
- );
184
- };
@@ -1,113 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { BaseNode } from '@decido/macia-core';
3
- import {
4
- LayoutDashboard, Users, DollarSign, Wrench, TrendingUp,
5
- AlertTriangle, Shield, BarChart3, ChevronRight
6
- } from 'lucide-react';
7
-
8
- /* ═══════════════════════════════════════════════════════════════
9
- KIA PBI OWNERSHIP NODE — Mirror de PowerBI "KPI Financiero"
10
- Ownership Management · 16 Dashboards · Grecco Motors
11
- ═══════════════════════════════════════════════════════════════ */
12
-
13
- const VISION360 = [
14
- { kpi: 'ONE PAGE REPORT', status: 'active', color: '#22c55e' },
15
- { kpi: 'RESUMEN INDICADORES', status: 'active', color: '#22c55e' },
16
- ];
17
-
18
- const CLIENTE = [
19
- { kpi: 'CLIENTE RESUMEN', desc: 'Overview satisfacción & retención', status: 'active', value: '95.3 NPS', color: '#3b82f6' },
20
- { kpi: 'CAUSA RAÍZ', desc: 'Análisis root-cause insatisfacción', status: 'active', value: '3 issues', color: '#3b82f6' },
21
- { kpi: 'IVUO', desc: 'Índice Venta Unidades Ocasión', status: 'active', value: '12%', color: '#3b82f6' },
22
- ];
23
-
24
- const FINANCIERO = [
25
- { kpi: 'FINANCIERO RESUMEN', desc: 'P&L, márgenes, ingresos', status: 'active', value: '$2.4B', color: '#f59e0b' },
26
- { kpi: 'RETENCIÓN', desc: 'Clientes que regresan a servicio', status: 'active', value: '78%', color: '#f59e0b' },
27
- { kpi: 'PRODUCTIVIDAD', desc: 'Horas facturadas / disponibles', status: 'active', value: '92%', color: '#f59e0b' },
28
- ];
29
-
30
- const OPERATIVO = [
31
- { kpi: 'CAPACIDAD INSTALADA', desc: 'Bahías activas vs total', status: 'active', value: '85%', color: '#ef4444' },
32
- { kpi: 'VARADOS', desc: 'Vehículos inmovilizados', status: 'warning', value: '4 uds', color: '#ef4444' },
33
- { kpi: 'GARANTÍAS', desc: 'Reclamaciones en proceso', status: 'active', value: '12 activas', color: '#ef4444' },
34
- { kpi: 'CAMPAÑAS', desc: 'Recalls & campañas activas', status: 'active', value: '2 activas', color: '#ef4444' },
35
- { kpi: 'RECUPERACIÓN GARANTÍAS', desc: 'Monto recuperado vs reclamado', status: 'active', value: '94%', color: '#ef4444' },
36
- { kpi: 'PRESUPUESTO GARANTÍAS', desc: 'Budget vs ejecutado', status: 'active', value: '88%', color: '#ef4444' },
37
- ];
38
-
39
- const SECTIONS = [
40
- { title: '🔭 Visión 360', items: VISION360, colorLabel: 'text-green-400' },
41
- { title: '👤 Cliente', items: CLIENTE, colorLabel: 'text-blue-400' },
42
- { title: '💰 Financiero', items: FINANCIERO, colorLabel: 'text-yellow-400' },
43
- { title: '⚙️ Operativo', items: OPERATIVO, colorLabel: 'text-red-400' },
44
- ];
45
-
46
- export const KiaPBIOwnershipNode = (props: any) => {
47
- const [expanded, setExpanded] = useState<string | null>('⚙️ Operativo');
48
-
49
- return (
50
- <BaseNode {...props} title="Ownership Mgmt — PBI" width={500} height={640}>
51
- <div className="flex flex-col h-full bg-[#1a1a2e] text-white overflow-hidden">
52
-
53
- {/* Header */}
54
- <div className="flex items-center gap-3 p-3 bg-[#16213e] border-b border-slate-700">
55
- <div className="w-9 h-9 rounded bg-slate-600/20 flex items-center justify-center">
56
- <LayoutDashboard size={16} className="text-slate-300" />
57
- </div>
58
- <div className="flex-1">
59
- <div className="text-xs font-bold tracking-wide flex items-center gap-2">
60
- OWNERSHIP MANAGEMENT
61
- <span className="text-[8px] px-1.5 py-0.5 bg-yellow-500/20 text-yellow-400 rounded">16 DASHBOARDS</span>
62
- <span className="text-[8px] px-1.5 py-0.5 bg-slate-500/20 text-slate-300 rounded">POWER BI</span>
63
- </div>
64
- <div className="text-[10px] text-slate-400">Grecco Motors · KIA EV3 GT-line · "Movement that inspires"</div>
65
- </div>
66
- </div>
67
-
68
- {/* Summary */}
69
- <div className="flex gap-1 px-3 py-2 border-b border-slate-800">
70
- {[
71
- { label: 'Visión 360', val: '2', color: 'text-green-400', icon: '🔭' },
72
- { label: 'Cliente', val: '3', color: 'text-blue-400', icon: '👤' },
73
- { label: 'Financiero', val: '3', color: 'text-yellow-400', icon: '💰' },
74
- { label: 'Operativo', val: '6', color: 'text-red-400', icon: '⚙️' },
75
- ].map(s => (
76
- <div key={s.label} className="flex-1 text-center bg-[#16213e]/50 rounded p-1.5 border border-slate-800/50">
77
- <div className="text-[10px]">{s.icon}</div>
78
- <div className={`text-sm font-bold ${s.color}`}>{s.val}</div>
79
- <div className="text-[7px] text-slate-500">{s.label}</div>
80
- </div>
81
- ))}
82
- </div>
83
-
84
- <div className="flex-1 overflow-y-auto p-3 space-y-2">
85
- {SECTIONS.map(section => (
86
- <div key={section.title}>
87
- <button onClick={() => setExpanded(expanded === section.title ? null : section.title)}
88
- className="w-full flex items-center justify-between bg-[#16213e]/60 rounded p-2 border border-slate-800/30 mb-1">
89
- <span className={`text-[10px] font-bold ${section.colorLabel}`}>{section.title}</span>
90
- <div className="flex items-center gap-1">
91
- <span className="text-[8px] text-slate-500">{section.items.length} tabs</span>
92
- <ChevronRight size={10} className={`text-slate-500 transition-transform ${expanded === section.title ? 'rotate-90' : ''}`} />
93
- </div>
94
- </button>
95
- {expanded === section.title && section.items.map((item: any) => (
96
- <div key={item.kpi} className="bg-[#16213e]/30 rounded p-2 ml-2 mb-1 border border-slate-800/20 flex items-center gap-2">
97
- <div className={`w-1.5 h-8 rounded-full ${item.status === 'warning' ? 'bg-yellow-500 animate-pulse' : 'bg-green-500'}`} />
98
- <div className="flex-1">
99
- <div className="text-[9px] font-bold">{item.kpi}</div>
100
- {item.desc && <div className="text-[8px] text-slate-500">{item.desc}</div>}
101
- </div>
102
- {item.value && (
103
- <span className="text-[9px] font-bold" style={{ color: item.color }}>{item.value}</span>
104
- )}
105
- </div>
106
- ))}
107
- </div>
108
- ))}
109
- </div>
110
- </div>
111
- </BaseNode>
112
- );
113
- };
@@ -1,143 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { BaseNode } from '@decido/macia-core';
3
- import {
4
- Award, Star, TrendingUp, Users, Wrench,
5
- Megaphone, ShoppingBag, Monitor, BarChart3
6
- } from 'lucide-react';
7
-
8
- /* ═══════════════════════════════════════════════════════════════
9
- KIA PBI PARTNER NODE — Mirror de PowerBI "Informe Partner Program"
10
- Datos REALES Grecco Motors · Enero 2026 · Clasificación S
11
- ═══════════════════════════════════════════════════════════════ */
12
-
13
- const AREAS = [
14
- {
15
- name: 'Customer Experience', score: 100.00, weight: 15, icon: '😊', color: '#22c55e',
16
- items: ['NPS Ventas: 95.3%', 'NPS Posventa: 99.4%', 'Mystery Shopper: ✓', 'Índice Satisfacción: ✓']
17
- },
18
- {
19
- name: 'Transf. Digital', score: 100.00, weight: 10, icon: '💻', color: '#3b82f6',
20
- items: ['ERP Integración: 100%', 'Activación: 100%', 'Uso herramientas: ✓']
21
- },
22
- {
23
- name: 'Servicio', score: 100.63, weight: 20, icon: '🔧', color: '#8b5cf6',
24
- items: ['Gestión Financiera: ✓', 'Proyectos: ✓', 'Garantías: ✓', 'Soporte Técnico: 83.3%', 'Campañas: 87.5%']
25
- },
26
- {
27
- name: 'Business Mgmt', score: 99.96, weight: 15, icon: '📊', color: '#06b6d4',
28
- items: ['Reportes financieros: ✓', 'Gestión gastos: ✓', 'Márgenes brutos: ✓']
29
- },
30
- {
31
- name: 'Marketing', score: 99.29, weight: 10, icon: '📢', color: '#f59e0b',
32
- items: ['Brand Alignment: ✓', 'Lead Quality: ✓', 'Tiempo respuesta: 96.5%']
33
- },
34
- {
35
- name: 'Comercial', score: 95.01, weight: 20, icon: '🤝', color: '#ef4444',
36
- items: ['RUNT Target: ✓', 'Wholesale: ✓', 'Conversión: 75% ⚠️', 'Cotización: 50% ⚠️']
37
- },
38
- {
39
- name: 'Repuestos', score: 91.76, weight: 10, icon: '📦', color: '#f97316',
40
- items: ['Compras importador: ✓', 'Accesorios/Vehículo: 69.2% ⚠️']
41
- },
42
- ];
43
-
44
- const HISTORY = [
45
- { month: 'Nov 2025', score: 98.2 },
46
- { month: 'Dic 2025', score: 99.4 },
47
- { month: 'Ene 2026', score: 97.43 },
48
- ];
49
-
50
- export const KiaPBIPartnerNode = (props: any) => {
51
- const [tab, setTab] = useState<'overview' | 'detail'>('overview');
52
- const avgScore = 97.43;
53
-
54
- return (
55
- <BaseNode {...props} title="Partner Program — PBI" width={520} height={640}>
56
- <div className="flex flex-col h-full bg-[#1a1a2e] text-white overflow-hidden">
57
-
58
- {/* Header */}
59
- <div className="flex items-center gap-3 p-3 bg-[#16213e] border-b border-yellow-900/40">
60
- <div className="w-9 h-9 rounded bg-yellow-600/20 flex items-center justify-center">
61
- <Award size={16} className="text-yellow-400" />
62
- </div>
63
- <div className="flex-1">
64
- <div className="text-xs font-bold tracking-wide flex items-center gap-2">
65
- PARTNER PROGRAM
66
- <span className="text-[8px] px-1.5 py-0.5 bg-yellow-500/20 text-yellow-400 rounded font-black">PLATINUM</span>
67
- <span className="text-[8px] px-1.5 py-0.5 bg-indigo-500/20 text-indigo-400 rounded">POWER BI</span>
68
- </div>
69
- <div className="text-[10px] text-slate-400">Grecco Motors · Ene 2026 · Promedio 3M: 98.56%</div>
70
- </div>
71
- </div>
72
-
73
- {/* Score Header */}
74
- <div className="flex items-center gap-3 px-3 py-2 border-b border-yellow-900/20">
75
- <div className="flex-1 text-center bg-[#16213e]/50 rounded-lg p-2 border border-yellow-900/20">
76
- <div className="text-3xl font-black text-yellow-400">S</div>
77
- <div className="text-[8px] text-slate-500">Clasificación</div>
78
- </div>
79
- <div className="flex-1 text-center bg-[#16213e]/50 rounded-lg p-2 border border-yellow-900/20">
80
- <div className="text-xl font-black text-green-400">{avgScore}%</div>
81
- <div className="text-[8px] text-slate-500">Resultado Enero</div>
82
- </div>
83
- <div className="flex-1 text-center bg-[#16213e]/50 rounded-lg p-2 border border-yellow-900/20">
84
- <div className="text-xl font-black text-blue-400">98.56%</div>
85
- <div className="text-[8px] text-slate-500">Promedio 3M</div>
86
- </div>
87
- </div>
88
-
89
- {/* Tabs */}
90
- <div className="flex gap-1 p-2 bg-[#16213e]/30 border-b border-yellow-900/20">
91
- {([
92
- { key: 'overview' as const, label: '📊 Áreas' },
93
- { key: 'detail' as const, label: '📋 Detalle' },
94
- ]).map(t => (
95
- <button key={t.key} onClick={() => setTab(t.key)}
96
- className={`flex-1 py-1.5 rounded text-[9px] font-bold transition-all ${tab === t.key ? 'bg-yellow-600/20 text-yellow-300 border border-yellow-500/30' : 'text-slate-500'
97
- }`}>
98
- {t.label}
99
- </button>
100
- ))}
101
- </div>
102
-
103
- <div className="flex-1 overflow-y-auto p-3 space-y-1.5">
104
-
105
- {tab === 'overview' && AREAS.map(a => (
106
- <div key={a.name} className="bg-[#16213e]/40 rounded-lg p-2 border border-yellow-900/10"
107
- style={{ borderLeftWidth: '3px', borderLeftColor: a.color }}>
108
- <div className="flex items-center justify-between mb-1">
109
- <span className="text-[10px] font-bold">{a.icon} {a.name}</span>
110
- <div className="flex items-center gap-2">
111
- <span className="text-[8px] text-slate-500">Peso: {a.weight}%</span>
112
- <span className={`text-[11px] font-black ${a.score >= 100 ? 'text-green-400' : a.score >= 95 ? 'text-yellow-400' : 'text-red-400'}`}>
113
- {a.score.toFixed(2)}%
114
- </span>
115
- </div>
116
- </div>
117
- <div className="h-1.5 bg-[#0a0f1a] rounded-full">
118
- <div className="h-full rounded-full" style={{ width: `${Math.min(100, a.score)}%`, background: a.color }} />
119
- </div>
120
- </div>
121
- ))}
122
-
123
- {tab === 'detail' && AREAS.map(a => (
124
- <div key={a.name} className="bg-[#16213e]/40 rounded-lg p-2.5 border border-yellow-900/10">
125
- <div className="flex items-center justify-between mb-1.5">
126
- <span className="text-[10px] font-bold">{a.icon} {a.name}</span>
127
- <span className="text-[10px] font-black" style={{ color: a.color }}>{a.score.toFixed(2)}%</span>
128
- </div>
129
- <div className="space-y-0.5">
130
- {a.items.map(item => (
131
- <div key={item} className={`text-[8px] flex items-center gap-1 ${item.includes('⚠️') ? 'text-yellow-400' : 'text-slate-400'}`}>
132
- <span>{item.includes('⚠️') ? '⚠️' : '✅'}</span>
133
- <span>{item.replace(' ⚠️', '')}</span>
134
- </div>
135
- ))}
136
- </div>
137
- </div>
138
- ))}
139
- </div>
140
- </div>
141
- </BaseNode>
142
- );
143
- };
@@ -1,120 +0,0 @@
1
- import React, { useState } from 'react';
2
- import { BaseNode } from '@decido/macia-core';
3
- import {
4
- DollarSign, Car, TrendingUp, Zap, BarChart3
5
- } from 'lucide-react';
6
-
7
- /* ═══════════════════════════════════════════════════════════════
8
- KIA PBI PRECIOS NODE — Mirror de PowerBI "PRECIOS - KIA Colombia"
9
- Datos REALES · Febrero 2026 · Industria: 1,125 units RUNT
10
- ═══════════════════════════════════════════════════════════════ */
11
-
12
- const LINEUP = [
13
- { model: 'Picanto', segment: 'A-Bajo', type: 'ICE', priceMin: 58, priceMax: 70, runt: 400, ms: 83.5, color: '#ef4444' },
14
- { model: 'Soluto', segment: 'A-Medio', type: 'ICE', priceMin: 69.9, priceMax: 74.8, runt: 45, ms: null, color: '#f97316' },
15
- { model: 'K3 Sedan', segment: 'B-Sedan', type: 'ICE', priceMin: 84, priceMax: 92.7, runt: 60, ms: null, color: '#f59e0b' },
16
- { model: 'K4', segment: 'C-Sedan', type: 'ICE', priceMin: 120, priceMax: 137, runt: 18, ms: null, color: '#eab308' },
17
- { model: 'K3 Cross', segment: 'B-Cross', type: 'ICE', priceMin: 88, priceMax: 94, runt: 52, ms: null, color: '#22c55e' },
18
- { model: 'Sonet', segment: 'B-SUV', type: 'ICE', priceMin: 92, priceMax: 101.2, runt: 35, ms: null, color: '#10b981' },
19
- { model: 'Stonic', segment: 'B-SUV', type: 'ICE', priceMin: 100, priceMax: 110.2, runt: 42, ms: null, color: '#06b6d4' },
20
- { model: 'Seltos', segment: 'C-SUV', type: 'ICE', priceMin: 115, priceMax: 128.3, runt: 38, ms: null, color: '#3b82f6' },
21
- { model: 'Sportage', segment: 'C-SUV', type: 'ICE', priceMin: 130, priceMax: 180, runt: 55, ms: null, color: '#6366f1' },
22
- { model: 'Niro Híbrido', segment: 'C-SUV', type: 'HEV', priceMin: 129, priceMax: 156, runt: 20, ms: null, color: '#8b5cf6' },
23
- { model: 'EV3', segment: 'C-EV', type: 'EV', priceMin: 143, priceMax: 163, runt: 15, ms: null, color: '#a855f7' },
24
- { model: 'EV5', segment: 'D-EV', type: 'EV', priceMin: 156, priceMax: 196, runt: 8, ms: null, color: '#d946ef' },
25
- { model: 'Tasman', segment: 'Pickup', type: 'ICE', priceMin: 190, priceMax: 261, runt: 12, ms: null, color: '#ec4899' },
26
- { model: 'EV9', segment: 'E-EV', type: 'EV', priceMin: 340, priceMax: 360, runt: 3, ms: null, color: '#f43f5e' },
27
- ];
28
-
29
- const fmtP = (n: number) => `$${n}M`;
30
-
31
- export const KiaPBIPreciosNode = (props: any) => {
32
- const [filter, setFilter] = useState<'all' | 'ice' | 'ev'>('all');
33
-
34
- const filtered = filter === 'all' ? LINEUP : LINEUP.filter(l => filter === 'ev' ? (l.type === 'EV' || l.type === 'HEV') : l.type === 'ICE');
35
- const totalRunt = LINEUP.reduce((s, l) => s + l.runt, 0);
36
-
37
- return (
38
- <BaseNode {...props} title="Precios KIA — PBI" width={520} height={640}>
39
- <div className="flex flex-col h-full bg-[#1a1a2e] text-white overflow-hidden">
40
-
41
- {/* Header */}
42
- <div className="flex items-center gap-3 p-3 bg-[#16213e] border-b border-emerald-900/40">
43
- <div className="w-9 h-9 rounded bg-emerald-600/20 flex items-center justify-center">
44
- <DollarSign size={16} className="text-emerald-400" />
45
- </div>
46
- <div className="flex-1">
47
- <div className="text-xs font-bold tracking-wide flex items-center gap-2">
48
- PRECIOS — KIA COLOMBIA
49
- <span className="text-[8px] px-1.5 py-0.5 bg-yellow-500/20 text-yellow-400 rounded">FEB 2026</span>
50
- <span className="text-[8px] px-1.5 py-0.5 bg-emerald-500/20 text-emerald-400 rounded">POWER BI</span>
51
- </div>
52
- <div className="text-[10px] text-slate-400">Industria: 1,125 RUNT (+207% vs Ene) · 617 Auto + 500 SUV</div>
53
- </div>
54
- </div>
55
-
56
- {/* Summary KPIs */}
57
- <div className="flex gap-1 px-3 py-2 border-b border-emerald-900/20">
58
- {[
59
- { label: 'RUNT Total', val: '1,125', color: 'text-emerald-400' },
60
- { label: 'Modelos', val: '14+', color: 'text-blue-400' },
61
- { label: 'Rango', val: '$58M-$360M', color: 'text-yellow-400' },
62
- { label: 'vs Ene', val: '+207%', color: 'text-green-400' },
63
- ].map(k => (
64
- <div key={k.label} className="flex-1 text-center bg-[#16213e]/50 rounded p-1.5 border border-emerald-900/10">
65
- <div className={`text-[10px] font-bold ${k.color}`}>{k.val}</div>
66
- <div className="text-[7px] text-slate-500">{k.label}</div>
67
- </div>
68
- ))}
69
- </div>
70
-
71
- {/* Filter */}
72
- <div className="flex gap-1 p-2 bg-[#16213e]/30 border-b border-emerald-900/20">
73
- {([
74
- { key: 'all' as const, label: '🚗 Todos' },
75
- { key: 'ice' as const, label: '⛽ ICE' },
76
- { key: 'ev' as const, label: '⚡ EV/HEV' },
77
- ]).map(t => (
78
- <button key={t.key} onClick={() => setFilter(t.key)}
79
- className={`flex-1 py-1.5 rounded text-[9px] font-bold transition-all ${filter === t.key ? 'bg-emerald-600/20 text-emerald-300 border border-emerald-500/30' : 'text-slate-500'
80
- }`}>
81
- {t.label}
82
- </button>
83
- ))}
84
- </div>
85
-
86
- <div className="flex-1 overflow-y-auto p-3 space-y-1">
87
- {filtered.map(l => (
88
- <div key={l.model} className="bg-[#16213e]/40 rounded-lg p-2 border border-emerald-900/10"
89
- style={{ borderLeftWidth: '3px', borderLeftColor: l.color }}>
90
- <div className="flex items-center justify-between mb-0.5">
91
- <div className="flex items-center gap-1.5">
92
- <span className="text-[10px] font-bold">{l.model}</span>
93
- <span className={`text-[7px] px-1 py-0.5 rounded ${l.type === 'EV' ? 'bg-green-500/20 text-green-400' :
94
- l.type === 'HEV' ? 'bg-cyan-500/20 text-cyan-400' : 'bg-slate-700 text-slate-400'
95
- }`}>{l.type}</span>
96
- <span className="text-[7px] text-slate-600">{l.segment}</span>
97
- </div>
98
- <span className="text-[9px] text-slate-400">{l.runt} RUNT</span>
99
- </div>
100
- <div className="flex items-center gap-2">
101
- <div className="flex-1">
102
- <div className="flex items-center justify-between text-[9px]">
103
- <span className="text-emerald-400 font-bold">{fmtP(l.priceMin)}</span>
104
- <span className="text-[7px] text-slate-600">—</span>
105
- <span className="text-yellow-400 font-bold">{fmtP(l.priceMax)}</span>
106
- </div>
107
- <div className="h-1 bg-[#0a0f1a] rounded-full mt-0.5 relative">
108
- <div className="absolute h-full rounded-full bg-linear-to-r from-emerald-500 to-yellow-500"
109
- style={{ left: `${(l.priceMin / 360) * 100}%`, width: `${((l.priceMax - l.priceMin) / 360) * 100}%` }} />
110
- </div>
111
- </div>
112
- {l.ms && <span className="text-[8px] font-bold text-red-400 ml-1">{l.ms}% MS</span>}
113
- </div>
114
- </div>
115
- ))}
116
- </div>
117
- </div>
118
- </BaseNode>
119
- );
120
- };