FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
feat: implement comprehensive UI translations across 14+ tabs
Aviral Deepe470f437d4a6
diff --git a/fincept-terminal-desktop/public/locales/en/agentConfig.json b/fincept-terminal-desktop/public/locales/en/agentConfig.jsonnew file mode 100644index 000000000..9b4c2d741--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/agentConfig.json@@ -0,0 +1,50 @@+{+ "title": "AGENT CONFIGURATION",+ "header": {+ "agents": "AGENTS",+ "active": "ACTIVE",+ "total": "TOTAL"+ },+ "toolbar": {+ "refresh": "REFRESH",+ "save": "SAVE",+ "run": "RUN",+ "test": "TEST"+ },+ "sidebar": {+ "availableAgents": "AVAILABLE AGENTS",+ "selectAgent": "Select an agent to configure"+ },+ "config": {+ "name": "Name",+ "role": "Role",+ "goal": "Goal",+ "description": "Description",+ "llmConfig": "LLM Configuration",+ "provider": "Provider",+ "model": "Model",+ "temperature": "Temperature",+ "maxTokens": "Max Tokens",+ "tools": "Tools",+ "memory": "Enable Memory",+ "agenticMemory": "Enable Agentic Memory",+ "instructions": "Instructions"+ },+ "llmProviders": {+ "openai": "OpenAI",+ "anthropic": "Anthropic",+ "ollama": "Ollama",+ "gemini": "Gemini"+ },+ "status": {+ "ready": "Ready",+ "running": "Running",+ "error": "Error",+ "configured": "Configured"+ },+ "messages": {+ "configSaved": "Configuration saved",+ "agentTested": "Agent tested successfully",+ "testFailed": "Test failed"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/alphaArena.json b/fincept-terminal-desktop/public/locales/en/alphaArena.jsonnew file mode 100644index 000000000..6db387498--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/alphaArena.json@@ -0,0 +1,46 @@+{+ "title": "ALPHA ARENA",+ "header": {+ "competition": "COMPETITION",+ "leaderboard": "LEADERBOARD",+ "decisions": "DECISIONS",+ "cycles": "CYCLES"+ },+ "buttons": {+ "start": "START",+ "stop": "STOP",+ "refresh": "REFRESH",+ "create": "CREATE COMPETITION"+ },+ "form": {+ "competitionName": "Competition Name",+ "symbol": "Symbol",+ "mode": "Trading Mode",+ "models": "Select Models",+ "apiKeys": "API Keys"+ },+ "modes": {+ "baseline": "Baseline",+ "monk": "Monk",+ "situational": "Situational",+ "maxLeverage": "Max Leverage"+ },+ "leaderboard": {+ "rank": "Rank",+ "model": "Model",+ "pnl": "P&L",+ "trades": "Trades",+ "winRate": "Win Rate"+ },+ "status": {+ "running": "RUNNING",+ "stopped": "STOPPED",+ "waiting": "WAITING",+ "error": "ERROR"+ },+ "messages": {+ "competitionStarted": "Competition started",+ "competitionStopped": "Competition stopped",+ "noCompetition": "No active competition"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/backtesting.json b/fincept-terminal-desktop/public/locales/en/backtesting.jsonnew file mode 100644index 000000000..1153daaf0--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/backtesting.json@@ -0,0 +1,55 @@+{+ "title": "BACKTESTING TERMINAL",+ "header": {+ "strategy": "STRATEGY",+ "results": "RESULTS",+ "trades": "TRADES"+ },+ "toolbar": {+ "run": "RUN BACKTEST",+ "stop": "STOP",+ "reset": "RESET",+ "export": "EXPORT RESULTS"+ },+ "config": {+ "symbol": "Symbol",+ "startDate": "Start Date",+ "endDate": "End Date",+ "initialCapital": "Initial Capital",+ "strategy": "Strategy",+ "parameters": "Parameters"+ },+ "strategies": {+ "sma": "SMA Crossover",+ "rsi": "RSI Strategy",+ "macd": "MACD Strategy",+ "bollinger": "Bollinger Bands",+ "custom": "Custom Strategy"+ },+ "results": {+ "totalReturn": "Total Return",+ "sharpeRatio": "Sharpe Ratio",+ "maxDrawdown": "Max Drawdown",+ "winRate": "Win Rate",+ "totalTrades": "Total Trades",+ "profitFactor": "Profit Factor"+ },+ "trades": {+ "date": "Date",+ "type": "Type",+ "price": "Price",+ "quantity": "Quantity",+ "pnl": "P&L"+ },+ "status": {+ "ready": "Ready",+ "running": "Running...",+ "completed": "Completed",+ "error": "Error"+ },+ "messages": {+ "backtestStarted": "Backtest started",+ "backtestCompleted": "Backtest completed",+ "backtestError": "Backtest failed"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/codeEditor.json b/fincept-terminal-desktop/public/locales/en/codeEditor.jsonnew file mode 100644index 000000000..1539f410d--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/codeEditor.json@@ -0,0 +1,57 @@+{+ "title": "CODE EDITOR",+ "header": {+ "files": "FILES",+ "terminal": "TERMINAL",+ "packages": "PACKAGES"+ },+ "toolbar": {+ "newFile": "NEW FILE",+ "new": "NEW",+ "open": "OPEN",+ "save": "SAVE",+ "run": "RUN CODE",+ "running": "RUNNING...",+ "runAll": "RUN ALL",+ "download": "DOWNLOAD",+ "upload": "UPLOAD",+ "clear": "CLEAR",+ "history": "HISTORY"+ },+ "languages": {+ "finscript": "FinScript",+ "python": "Python",+ "javascript": "JavaScript",+ "json": "JSON"+ },+ "tabs": {+ "editor": "Editor",+ "notebook": "JUPYTER NOTEBOOK",+ "finscript": "FINSCRIPT EDITOR",+ "terminal": "Terminal"+ },+ "terminal": {+ "output": "Output",+ "clear": "Clear Output",+ "running": "Running...",+ "completed": "Completed"+ },+ "packages": {+ "installed": "Installed Packages",+ "install": "Install Package",+ "uninstall": "Uninstall",+ "clickToLoad": "Click to load packages...",+ "load": "LOAD PACKAGES"+ },+ "history": {+ "title": "NOTEBOOK HISTORY",+ "loading": "Loading history...",+ "empty": "No notebook history yet"+ },+ "messages": {+ "fileSaved": "File saved",+ "fileOpened": "File opened",+ "executionComplete": "Execution complete",+ "executionError": "Execution error"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/dbnomics.json b/fincept-terminal-desktop/public/locales/en/dbnomics.jsonnew file mode 100644index 000000000..50fd1bc48--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/dbnomics.json@@ -0,0 +1,42 @@+{+ "title": "DBNOMICS TERMINAL",+ "header": {+ "provider": "Provider",+ "dataset": "Dataset",+ "series": "Series"+ },+ "toolbar": {+ "fetch": "FETCH",+ "refresh": "REFRESH",+ "export": "EXPORT",+ "addSeries": "ADD SERIES",+ "removeSeries": "REMOVE"+ },+ "search": {+ "searchProvider": "Search provider...",+ "searchDataset": "Search dataset...",+ "searchSeries": "Search series..."+ },+ "chart": {+ "title": "TIME SERIES CHART",+ "lineChart": "Line Chart",+ "barChart": "Bar Chart",+ "areaChart": "Area Chart"+ },+ "selection": {+ "selectedSeries": "SELECTED SERIES",+ "noSeries": "No series selected",+ "clearAll": "Clear All"+ },+ "status": {+ "loading": "Loading...",+ "fetching": "Fetching data...",+ "ready": "Ready",+ "error": "Error fetching data"+ },+ "messages": {+ "seriesAdded": "Series added",+ "seriesRemoved": "Series removed",+ "dataFetched": "Data fetched successfully"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/excel.json b/fincept-terminal-desktop/public/locales/en/excel.jsonnew file mode 100644index 000000000..bf43e4023--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/excel.json@@ -0,0 +1,44 @@+{+ "title": "EXCEL SPREADSHEET",+ "header": {+ "file": "File",+ "sheets": "Sheets"+ },+ "toolbar": {+ "new": "NEW",+ "open": "OPEN",+ "save": "SAVE",+ "import": "IMPORT",+ "export": "EXPORT",+ "addSheet": "ADD SHEET",+ "deleteSheet": "DELETE SHEET",+ "snapshot": "SNAPSHOT",+ "history": "HISTORY",+ "revert": "REVERT"+ },+ "sheets": {+ "sheet": "Sheet",+ "rename": "Rename Sheet",+ "delete": "Delete Sheet"+ },+ "history": {+ "title": "SNAPSHOT HISTORY",+ "noSnapshots": "No snapshots yet",+ "restore": "RESTORE",+ "delete": "DELETE"+ },+ "recentFiles": {+ "title": "RECENT FILES",+ "noFiles": "No recent files",+ "open": "Open",+ "clear": "Clear Recent"+ },+ "messages": {+ "fileSaved": "File saved",+ "fileOpened": "File opened",+ "snapshotCreated": "Snapshot created",+ "snapshotRestored": "Snapshot restored",+ "sheetAdded": "Sheet added",+ "sheetDeleted": "Sheet deleted"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/marketplace.json b/fincept-terminal-desktop/public/locales/en/marketplace.jsonnew file mode 100644index 000000000..a1de0f5fa--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/marketplace.json@@ -0,0 +1,72 @@+{+ "title": "FINCEPT MARKETPLACE",+ "header": {+ "browse": "BROWSE",+ "myPurchases": "MY PURCHASES",+ "upload": "UPLOAD",+ "myDatasets": "MY DATASETS",+ "analytics": "ANALYTICS",+ "pricing": "PRICING",+ "datasetsAvailable": "Datasets Available",+ "myUploads": "My Uploads"+ },+ "guest": {+ "title": "MARKETPLACE REQUIRES REGISTERED ACCOUNT",+ "message": "Guest users cannot access marketplace features. Please register to upload, purchase, and trade datasets."+ },+ "categories": {+ "all": "All",+ "financial": "Financial",+ "economic": "Economic",+ "alternative": "Alternative",+ "crypto": "Crypto",+ "realEstate": "Real Estate"+ },+ "product": {+ "description": "PRODUCT DESCRIPTION",+ "price": "Price",+ "credits": "Credits",+ "provider": "Provider",+ "lastUpdated": "Last Updated",+ "dataPoints": "Data Points",+ "format": "Format",+ "frequency": "Frequency",+ "rating": "RATING",+ "users": "USERS"+ },+ "buttons": {+ "purchase": "PURCHASE",+ "download": "DOWNLOAD",+ "preview": "PREVIEW",+ "addToCart": "ADD TO CART",+ "inCart": "✓ IN CART",+ "viewDetails": "VIEW DETAILS",+ "backToMarketplace": "BACK TO MARKETPLACE",+ "loading": "⟳ LOADING...",+ "refresh": "🔄 REFRESH"+ },+ "cart": {+ "title": "SHOPPING CART",+ "items": "items",+ "empty": "Your cart is empty"+ },+ "pricing": {+ "free": "FREE",+ "premium": "PREMIUM",+ "enterprise": "ENTERPRISE"+ },+ "upload": {+ "title": "UPLOAD DATASET",+ "name": "Dataset Name",+ "description": "Description",+ "category": "Category",+ "price": "Price (Credits)",+ "file": "Select File",+ "submit": "SUBMIT"+ },+ "messages": {+ "purchaseComplete": "Purchase complete",+ "downloadStarted": "Download started",+ "uploadComplete": "Upload complete"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/nodeEditor.json b/fincept-terminal-desktop/public/locales/en/nodeEditor.jsonnew file mode 100644index 000000000..e0e99389b--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/nodeEditor.json@@ -0,0 +1,61 @@+{+ "title": "NODE EDITOR",+ "header": {+ "nodes": "NODES",+ "workflows": "WORKFLOWS"+ },+ "tabs": {+ "editor": "EDITOR",+ "workflows": "WORKFLOWS"+ },+ "toolbar": {+ "addNode": "ADD NODE",+ "run": "RUN",+ "save": "SAVE",+ "deploy": "DEPLOY",+ "saveDraft": "SAVE DRAFT",+ "export": "EXPORT",+ "import": "IMPORT",+ "clear": "CLEAR"+ },+ "nodeTypes": {+ "dataSource": "Data Source",+ "technicalIndicator": "Technical Indicators",+ "agentMediator": "Agent Mediator",+ "resultsDisplay": "Results Display",+ "mcpTool": "MCP Tool",+ "pythonAgent": "Python Agent"+ },+ "categories": {+ "input": "Input",+ "processing": "Processing",+ "output": "Output"+ },+ "nodeMenu": {+ "coreNodes": "CORE NODES",+ "mcpTools": "MCP TOOLS",+ "pythonAgents": "PYTHON AGENTS"+ },+ "status": {+ "ready": "Ready",+ "running": "Running",+ "completed": "Completed",+ "error": "Error",+ "idle": "Idle"+ },+ "deploy": {+ "title": "DEPLOY WORKFLOW",+ "workflowName": "Workflow Name",+ "description": "Description",+ "saveAsDraft": "Save as Draft",+ "deploy": "DEPLOY & RUN",+ "cancel": "CANCEL"+ },+ "messages": {+ "workflowSaved": "Workflow saved",+ "workflowDeployed": "Workflow deployed successfully",+ "workflowCleared": "Workflow cleared",+ "deploying": "Deploying...",+ "executing": "Executing..."+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/notes.json b/fincept-terminal-desktop/public/locales/en/notes.jsonnew file mode 100644index 000000000..c2f42be72--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/notes.json@@ -0,0 +1,60 @@+{+ "title": "FINANCIAL NOTES",+ "header": {+ "total": "TOTAL",+ "favorites": "FAVORITES",+ "words": "WORDS",+ "refresh": "REFRESH"+ },+ "toolbar": {+ "search": "Search notes, tags, tickers...",+ "newNote": "NEW NOTE",+ "templates": "TEMPLATES",+ "favorites": "FAVORITES",+ "filters": "FILTERS",+ "archived": "ARCHIVED"+ },+ "filters": {+ "priority": "Priority",+ "sentiment": "Sentiment",+ "clearFilters": "CLEAR FILTERS"+ },+ "templates": {+ "selectTemplate": "SELECT TEMPLATE"+ },+ "reminders": {+ "upcomingReminders": "UPCOMING REMINDERS (24H)",+ "noReminders": "No upcoming reminders in the next 24 hours",+ "refresh": "REFRESH"+ },+ "categories": {+ "allNotes": "ALL NOTES",+ "tradeIdeas": "TRADE IDEAS",+ "research": "RESEARCH",+ "marketAnalysis": "MARKET ANALYSIS",+ "earnings": "EARNINGS",+ "economic": "ECONOMIC",+ "portfolio": "PORTFOLIO",+ "general": "GENERAL"+ },+ "editor": {+ "title": "Title",+ "content": "Content",+ "category": "Category",+ "priority": "Priority",+ "sentiment": "Sentiment",+ "tags": "Tags",+ "tickers": "Tickers",+ "reminder": "Reminder",+ "save": "SAVE",+ "cancel": "CANCEL",+ "create": "CREATE",+ "update": "UPDATE"+ },+ "messages": {+ "noteCreated": "Note created",+ "noteUpdated": "Note updated",+ "noteDeleted": "Note deleted",+ "reminderSet": "Reminder set"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/reportBuilder.json b/fincept-terminal-desktop/public/locales/en/reportBuilder.jsonnew file mode 100644index 000000000..c06b0eb17--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/reportBuilder.json@@ -0,0 +1,74 @@+{+ "title": "REPORT BUILDER",+ "header": {+ "load": "Load",+ "save": "Save",+ "saving": "Saving...",+ "exportPdf": "Export PDF",+ "generating": "Generating..."+ },+ "components": {+ "addComponents": "ADD COMPONENTS",+ "heading": "Heading",+ "text": "Text",+ "chart": "Chart",+ "table": "Table",+ "image": "Image",+ "codeBlock": "Code Block",+ "divider": "Divider"+ },+ "layout": {+ "title": "LAYOUT",+ "section": "Section",+ "columns": "Columns",+ "cover": "Cover",+ "break": "Break"+ },+ "settings": {+ "title": "SETTINGS",+ "pageTheme": "Page Theme",+ "backgroundColor": "Background Color",+ "showPicker": "Show Picker",+ "hidePicker": "Hide Picker",+ "fontFamily": "Font Family",+ "fontSize": "Default Font Size"+ },+ "themes": {+ "classicWhite": "Classic White",+ "minimalGrid": "Minimal Grid",+ "geometricTriangles": "Geometric Triangles",+ "diagonalPattern": "Diagonal Pattern",+ "modernGradient": "Modern Gradient (Dark)",+ "professionalGradient": "Professional Gradient (Dark)"+ },+ "componentList": {+ "title": "COMPONENT LIST",+ "noComponents": "No components added yet"+ },+ "properties": {+ "title": "PROPERTIES",+ "noSelection": "Select a component to edit properties"+ },+ "aiAssistant": {+ "title": "AI ASSISTANT",+ "placeholder": "Ask AI for help with your report...",+ "quickActions": {+ "improve": "Improve",+ "expand": "Expand",+ "summarize": "Summarize",+ "grammar": "Grammar"+ }+ },+ "preview": {+ "title": "PREVIEW"+ },+ "messages": {+ "templateSaved": "Template saved successfully",+ "templateLoaded": "Template loaded successfully",+ "componentAdded": "component added",+ "componentDeleted": "Component deleted",+ "componentDuplicated": "Component duplicated",+ "pdfGenerated": "PDF generated successfully",+ "imageUploaded": "Image uploaded"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/screener.json b/fincept-terminal-desktop/public/locales/en/screener.jsonindex 8d6171cf8..1e3664b78 100644--- a/fincept-terminal-desktop/public/locales/en/screener.json+++ b/fincept-terminal-desktop/public/locales/en/screener.json@@ -1,11 +1,39 @@{- "title": "STOCK SCREENER",+ "title": "FRED SERIES BROWSER","header": {+ "title": "FRED DATA EXPLORER","filters": "FILTERS","results": "RESULTS","saved": "SAVED SCREENS","presets": "PRESETS"},+ "apiKey": {+ "required": "API KEY REQUIRED",+ "configure": "Configure your FRED API key in Settings → Credentials to access economic data.",+ "getKey": "Get free API key at",+ "addToSettings": "Add to Settings → Credentials → FRED_API_KEY",+ "saveAndReload": "Save and reload this tab",+ "tip": "Make sure you've configured your FRED API key in Settings → Credentials"+ },+ "form": {+ "seriesIds": "SERIES IDs",+ "startDate": "START DATE",+ "endDate": "END DATE",+ "quickAdd": "QUICK ADD"+ },+ "buttons": {+ "fetch": "FETCH",+ "loading": "LOADING",+ "browse": "BROWSE SERIES",+ "done": "DONE"+ },+ "chart": {+ "title": "TIME SERIES CHART",+ "emptyState": "Enter series IDs and click FETCH to visualize data",+ "trySuggestion": "Try searching for GDP, UNRATE, or CPIAUCSL",+ "waiting": "Please wait while we fetch data from FRED...",+ "errorFetching": "Error Fetching Data"+ },"filters": {"add": "Add Filter","clear": "Clear All",diff --git a/fincept-terminal-desktop/public/locales/en/support.json b/fincept-terminal-desktop/public/locales/en/support.jsonnew file mode 100644index 000000000..759063f11--- /dev/null+++ b/fincept-terminal-desktop/public/locales/en/support.json@@ -0,0 +1,71 @@+{+ "title": "FINCEPT SUPPORT TERMINAL",+ "header": {+ "tickets": "TICKETS",+ "open": "OPEN",+ "resolved": "RESOLVED"+ },+ "buttons": {+ "refresh": "REFRESH",+ "createTicket": "CREATE TICKET",+ "backToList": "BACK TO LIST",+ "close": "CLOSE",+ "reopen": "REOPEN",+ "send": "SEND"+ },+ "list": {+ "supportTickets": "SUPPORT TICKETS",+ "noTickets": "No support tickets found. Create your first ticket to get started!",+ "loading": "Loading tickets..."+ },+ "create": {+ "title": "CREATE NEW TICKET",+ "subject": "SUBJECT",+ "subjectPlaceholder": "Brief description of your issue",+ "category": "CATEGORY",+ "priority": "PRIORITY",+ "description": "DESCRIPTION",+ "descriptionPlaceholder": "Provide detailed information about your issue...",+ "creating": "CREATING...",+ "createTicket": "CREATE TICKET"+ },+ "categories": {+ "technical": "Technical Issue",+ "billing": "Billing",+ "feature": "Feature Request",+ "bug": "Bug Report",+ "account": "Account",+ "other": "Other"+ },+ "priorities": {+ "low": "Low",+ "medium": "Medium",+ "high": "High"+ },+ "details": {+ "ticketDetails": "TICKET DETAILS",+ "status": "Status",+ "priority": "Priority",+ "category": "Category",+ "created": "Created",+ "messages": "MESSAGES",+ "addMessage": "Add a message..."+ },+ "status": {+ "open": "OPEN",+ "inProgress": "IN PROGRESS",+ "resolved": "RESOLVED",+ "closed": "CLOSED",+ "pending": "PENDING",+ "ready": "READY",+ "updating": "UPDATING"+ },+ "demo": {+ "badge": "DEMO",+ "message": "DEMO TICKET - This shows you how the support system works. Create your own ticket to get real support!"+ },+ "auth": {+ "required": "AUTHENTICATION REQUIRED",+ "loginMessage": "Please login to access support tickets"+ }+}\ No newline at end of filediff --git a/fincept-terminal-desktop/public/locales/en/watchlist.json b/fincept-terminal-desktop/public/locales/en/watchlist.jsonindex 944abcc2b..69b7d7762 100644--- a/fincept-terminal-desktop/public/locales/en/watchlist.json+++ b/fincept-terminal-desktop/public/locales/en/watchlist.json@@ -1,10 +1,27 @@{"title": "WATCHLIST","header": {+ "title": "FINCEPT WATCHLIST MONITOR","myWatchlists": "MY WATCHLISTS","create": "CREATE","import": "IMPORT",- "export": "EXPORT"+ "export": "EXPORT",+ "updating": "UPDATING",+ "live": "LIVE"+ },+ "sidebar": {+ "groups": "WATCHLIST GROUPS",+ "new": "NEW",+ "noWatchlists": "No watchlists yet.",+ "clickNew": "Click NEW to create one.",+ "stocks": "stocks",+ "marketMovers": "MARKET MOVERS",+ "gainer": "GAINER",+ "loser": "LOSER",+ "volumeLeaders": "VOLUME LEADERS"+ },+ "emptyState": {+ "selectWatchlist": "Select a watchlist or create a new one to get started"},"list": {"name": "Name",diff --git a/fincept-terminal-desktop/src/components/tabs/AgentConfigTab.tsx b/fincept-terminal-desktop/src/components/tabs/AgentConfigTab.tsxindex 2218be806..357613811 100644--- a/fincept-terminal-desktop/src/components/tabs/AgentConfigTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/AgentConfigTab.tsx@@ -23,6 +23,7 @@ import {} from 'lucide-react';import { sqliteService, type LLMConfig } from '@/services/sqliteService';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';// Bloomberg Professional Color Paletteconst BLOOMBERG = {@@ -69,6 +70,7 @@ interface ProviderInfo {}const AgentConfigTab: React.FC = () => {+ const { t } = useTranslation('agentConfig');const [selectedCategory, setSelectedCategory] = useState('TraderInvestorsAgent');const [agents, setAgents] = useState<AgentConfig[]>([]);const [selectedAgent, setSelectedAgent] = useState<AgentConfig | null>(null);@@ -354,7 +356,7 @@ const AgentConfigTab: React.FC = () => {letterSpacing: '0.5px',textShadow: `0 0 10px ${BLOOMBERG.ORANGE}40`}}>- AGENT CONFIGURATION+ {t('title')}</span></div>@@ -492,63 +494,63 @@ const AgentConfigTab: React.FC = () => {// If only one agent or no books, show flat listif (books.length <= 1 && !teamName) {return agents.map((agent) => (- <button- key={agent.id}- onClick={() => setSelectedAgent(agent)}- style={{- width: '100%',- padding: '10px',- marginBottom: '6px',- backgroundColor: selectedAgent?.id === agent.id ? BLOOMBERG.HOVER : 'transparent',- border: `1px solid ${selectedAgent?.id === agent.id ? BLOOMBERG.ORANGE : BLOOMBERG.BORDER}`,- color: BLOOMBERG.WHITE,- cursor: 'pointer',- textAlign: 'left',- fontSize: '10px',- transition: 'all 0.2s'- }}- onMouseEnter={(e) => {- if (selectedAgent?.id !== agent.id) {- e.currentTarget.style.backgroundColor = BLOOMBERG.HOVER;- e.currentTarget.style.borderColor = BLOOMBERG.MUTED;- }- }}- onMouseLeave={(e) => {- if (selectedAgent?.id !== agent.id) {- e.currentTarget.style.backgroundColor = 'transparent';- e.currentTarget.style.borderColor = BLOOMBERG.BORDER;- }- }}- >- <div style={{ fontWeight: 600, color: BLOOMBERG.CYAN, marginBottom: '4px' }}>- {agent.name}- </div>- <div style={{ color: BLOOMBERG.GRAY, fontSize: '9px', marginBottom: '4px' }}>- {agent.role}- </div>- <div style={{ display: 'flex', gap: '4px', flexWrap: 'wrap' }}>- <span style={{- padding: '2px 6px',- backgroundColor: BLOOMBERG.DARK_BG,- border: `1px solid ${BLOOMBERG.BORDER}`,- borderRadius: '2px',- fontSize: '8px',- color: BLOOMBERG.YELLOW- }}>- {agent.llm_config.provider}- </span>- <span style={{- padding: '2px 6px',- backgroundColor: BLOOMBERG.DARK_BG,- border: `1px solid ${BLOOMBERG.BORDER}`,- borderRadius: '2px',- fontSize: '8px',- color: BLOOMBERG.PURPLE- }}>- {agent.llm_config.model_id}- </span>- </div>- </button>+ <button+ key={agent.id}+ onClick={() => setSelectedAgent(agent)}+ style={{+ width: '100%',+ padding: '10px',+ marginBottom: '6px',+ backgroundColor: selectedAgent?.id === agent.id ? BLOOMBERG.HOVER : 'transparent',+ border: `1px solid ${selectedAgent?.id === agent.id ? BLOOMBERG.ORANGE : BLOOMBERG.BORDER}`,+ color: BLOOMBERG.WHITE,+ cursor: 'pointer',+ textAlign: 'left',+ fontSize: '10px',+ transition: 'all 0.2s'+ }}+ onMouseEnter={(e) => {+ if (selectedAgent?.id !== agent.id) {+ e.currentTarget.style.backgroundColor = BLOOMBERG.HOVER;+ e.currentTarget.style.borderColor = BLOOMBERG.MUTED;+ }+ }}+ onMouseLeave={(e) => {+ if (selectedAgent?.id !== agent.id) {+ e.currentTarget.style.backgroundColor = 'transparent';+ e.currentTarget.style.borderColor = BLOOMBERG.BORDER;+ }+ }}+ >+ <div style={{ fontWeight: 600, color: BLOOMBERG.CYAN, marginBottom: '4px' }}>+ {agent.name}+ </div>+ <div style={{ color: BLOOMBERG.GRAY, fontSize: '9px', marginBottom: '4px' }}>+ {agent.role}+ </div>+ <div style={{ display: 'flex', gap: '4px', flexWrap: 'wrap' }}>+ <span style={{+ padding: '2px 6px',+ backgroundColor: BLOOMBERG.DARK_BG,+ border: `1px solid ${BLOOMBERG.BORDER}`,+ borderRadius: '2px',+ fontSize: '8px',+ color: BLOOMBERG.YELLOW+ }}>+ {agent.llm_config.provider}+ </span>+ <span style={{+ padding: '2px 6px',+ backgroundColor: BLOOMBERG.DARK_BG,+ border: `1px solid ${BLOOMBERG.BORDER}`,+ borderRadius: '2px',+ fontSize: '8px',+ color: BLOOMBERG.PURPLE+ }}>+ {agent.llm_config.model_id}+ </span>+ </div>+ </button>));}diff --git a/fincept-terminal-desktop/src/components/tabs/AlphaArenaTab.tsx b/fincept-terminal-desktop/src/components/tabs/AlphaArenaTab.tsxindex cfaff7d90..6be893fee 100644--- a/fincept-terminal-desktop/src/components/tabs/AlphaArenaTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/AlphaArenaTab.tsx@@ -7,6 +7,7 @@ import React, { useState, useEffect } from 'react';import { Trophy, Play, Square, TrendingUp, TrendingDown, RefreshCw } from 'lucide-react';import { invoke } from '@tauri-apps/api/core';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';// Bloomberg color paletteconst COLORS = {@@ -46,6 +47,7 @@ interface ModelDecision {}const AlphaArenaTab: React.FC = () => {+ const { t } = useTranslation('alphaArena');const [competitionId, setCompetitionId] = useState<string>('');const [isRunning, setIsRunning] = useState(false);const [leaderboard, setLeaderboard] = useState<LeaderboardEntry[]>([]);@@ -305,10 +307,10 @@ const AlphaArenaTab: React.FC = () => {<Trophy size={24} color={COLORS.ORANGE} /><div><div style={{ fontSize: '18px', fontWeight: 700, color: COLORS.ORANGE }}>- ALPHA ARENA+ {t('title')}</div><div style={{ fontSize: '10px', color: COLORS.GRAY }}>- Live AI Trading Competition+ {t('header.competition')}</div></div></div>@@ -327,7 +329,7 @@ const AlphaArenaTab: React.FC = () => {cursor: 'pointer'}}>- NEW COMPETITION+ {t('buttons.create')}</button>) : (<>diff --git a/fincept-terminal-desktop/src/components/tabs/BacktestingTab.tsx b/fincept-terminal-desktop/src/components/tabs/BacktestingTab.tsxindex 65f8a8d3d..fdedba7ed 100644--- a/fincept-terminal-desktop/src/components/tabs/BacktestingTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/BacktestingTab.tsx@@ -37,11 +37,13 @@ import { BacktestRequest, BacktestResult } from '@/services/backtesting/interfacimport { StrategyDefinition } from '@/services/backtesting/interfaces/IStrategyDefinition';import { STRATEGY_TEMPLATES, fillTemplate, type StrategyTemplate } from '@/services/backtesting/StrategyTemplates';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';type EditorMode = 'code' | 'visual' | 'template';export default function BacktestingTab() {const { colors } = useTerminalTheme();+ const { t } = useTranslation('backtesting');// Stateconst [editorMode, setEditorMode] = useState<EditorMode>('code');@@ -441,7 +443,7 @@ export default function BacktestingTab() {letterSpacing: '0.5px',textShadow: '0 0 10px rgba(255, 136, 0, 0.4)'}}>- BACKTESTING TERMINAL+ {t('title')}</span></div>diff --git a/fincept-terminal-desktop/src/components/tabs/ChatTab.tsx b/fincept-terminal-desktop/src/components/tabs/ChatTab.tsxindex dac69ed8b..bb69f0ed0 100644--- a/fincept-terminal-desktop/src/components/tabs/ChatTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/ChatTab.tsx@@ -2,6 +2,7 @@ import React, { useState, useEffect, useRef } from 'react';import { flushSync } from 'react-dom';import { Settings, Trash2, Bot, User, Clock, Send, Plus, Search, Edit2, Check, X } from 'lucide-react';import { useTerminalTheme } from '@/contexts/ThemeContext';+import { useTranslation } from 'react-i18next';import { llmApiService, ChatMessage as APIMessage } from '../../services/llmApi';import { sqliteService, ChatSession, ChatMessage, RecordedContext } from '../../services/sqliteService';import { llmConfigService } from '../../services/llmConfig';@@ -18,6 +19,7 @@ interface ChatTabProps {const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab }) => {const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();+ const { t } = useTranslation('chat');const [currentTime, setCurrentTime] = useState(new Date());const [currentSessionUuid, setCurrentSessionUuid] = useState<string | null>(null);const [messages, setMessages] = useState<ChatMessage[]>([]);@@ -393,52 +395,52 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab// Call LLM API with tools if availableconst response = mcpTools.length > 0? await llmApiService.chatWithTools(- userContent,- conversationHistory,- mcpTools,- (chunk: string, done: boolean) => {- if (!done) {- streamedContentRef.current += chunk;- flushSync(() => {- setStreamingContent(prev => prev + chunk);- });- } else {- flushSync(() => {- setIsTyping(false);- setStreamingContent('');- setSystemStatus('STATUS: READY');- });- }- },- (toolName: string, args: any, result?: any) => {- // Tool call callback - don't show in UI, only in console- if (!result) {- console.log(`[Tool Call] ${toolName}`, args);- setSystemStatus(`STATUS: Fetching data...`);- } else {- console.log(`[Tool Result] ${toolName}`, result);- setSystemStatus(`STATUS: Processing response...`);- }+ userContent,+ conversationHistory,+ mcpTools,+ (chunk: string, done: boolean) => {+ if (!done) {+ streamedContentRef.current += chunk;+ flushSync(() => {+ setStreamingContent(prev => prev + chunk);+ });+ } else {+ flushSync(() => {+ setIsTyping(false);+ setStreamingContent('');+ setSystemStatus('STATUS: READY');+ });}- )+ },+ (toolName: string, args: any, result?: any) => {+ // Tool call callback - don't show in UI, only in console+ if (!result) {+ console.log(`[Tool Call] ${toolName}`, args);+ setSystemStatus(`STATUS: Fetching data...`);+ } else {+ console.log(`[Tool Result] ${toolName}`, result);+ setSystemStatus(`STATUS: Processing response...`);+ }+ }+ ): await llmApiService.chat(- userContent,- conversationHistory,- (chunk: string, done: boolean) => {- if (!done) {- streamedContentRef.current += chunk;- flushSync(() => {- setStreamingContent(prev => prev + chunk);- });- } else {- flushSync(() => {- setIsTyping(false);- setStreamingContent('');- setSystemStatus('STATUS: READY');- });- }+ userContent,+ conversationHistory,+ (chunk: string, done: boolean) => {+ if (!done) {+ streamedContentRef.current += chunk;+ flushSync(() => {+ setStreamingContent(prev => prev + chunk);+ });+ } else {+ flushSync(() => {+ setIsTyping(false);+ setStreamingContent('');+ setSystemStatus('STATUS: READY');+ });}- );+ }+ );if (response.error) {const errorMessage = await sqliteService.addChatMessage({@@ -491,8 +493,8 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab// Filter sessions by search query (searches in both title and message content)const filteredSessions = searchQuery? sessions.filter(session =>- session.title.toLowerCase().includes(searchQuery.toLowerCase())- )+ session.title.toLowerCase().includes(searchQuery.toLowerCase())+ ): sessions;const formatTime = (date: Date | string | undefined) => {@@ -545,7 +547,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab<div style={{ textAlign: 'center', padding: '24px' }}><Bot size={48} color={colors.primary} style={{ marginBottom: '16px' }} /><div style={{ color: colors.primary, fontSize: '20px', fontWeight: 'bold', marginBottom: '8px' }}>- FINCEPT AI ASSISTANT+ {t('title')}</div><div style={{ color: colors.text, fontSize: '14px', marginBottom: '16px' }}>Financial Intelligence System@@ -566,7 +568,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTabcursor: 'pointer'}}>- START NEW CHAT+ {t('header.newChat')}</button></div></div>@@ -648,7 +650,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab<div style={{ display: 'flex', alignItems: 'center', gap: '6px', marginBottom: '6px' }}><Bot size={12} color={colors.primary} /><span style={{ color: colors.primary, fontSize: '11px', fontWeight: 'bold' }}>- AI TYPING...+ {t('messages.typing')}</span></div><div style={{@@ -710,7 +712,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTabflexShrink: 0}}><div style={{ display: 'flex', alignItems: 'center', gap: '10px' }}>- <span style={{ color: colors.primary, fontWeight: 'bold', fontSize: '12px' }}>FINCEPT AI</span>+ <span style={{ color: colors.primary, fontWeight: 'bold', fontSize: '12px' }}>{t('title')}</span><span style={{ color: colors.textMuted }}>|</span><span style={{ color: colors.warning, fontSize: '10px' }}>{currentProvider.toUpperCase()}@@ -736,7 +738,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab}}><Settings size={12} />- CONFIG+ {t('header.settings')}</button><buttononClick={createNewSession}@@ -754,7 +756,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab}}><Plus size={12} />- NEW+ {t('header.newChat')}</button></div></div>@@ -789,7 +791,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab}}title="Delete all sessions">- DELETE ALL+ {t('history.clear').replace('History', 'All').toUpperCase()}</button>)}</div>@@ -800,7 +802,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab<inputid="session-search"type="text"- placeholder="Search chats..."+ placeholder={t('input.placeholder')}value={searchQuery}onChange={(e) => setSearchQuery(e.target.value)}style={{@@ -1001,7 +1003,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab{isTyping && !streamingContent && (<div style={{ display: 'flex', alignItems: 'center', gap: '6px', color: colors.textMuted, fontSize: '11px' }}><Bot size={12} />- <span>AI is thinking...</span>+ <span>{t('messages.thinking')}</span></div>)}<div ref={messagesEndRef} />@@ -1021,7 +1023,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTabhandleSendMessage();}}}- placeholder="Type your message... (Shift+Enter for new line)"+ placeholder={t('input.placeholder')}style={{flex: 1,backgroundColor: colors.background,@@ -1051,7 +1053,7 @@ const ChatTab: React.FC<ChatTabProps> = ({ onNavigateToSettings, onNavigateToTab}}><Send size={12} />- SEND+ {t('input.send')}</button></div><div style={{ color: colors.textMuted, fontSize: '9px', marginTop: '4px' }}>diff --git a/fincept-terminal-desktop/src/components/tabs/CodeEditorTab.tsx b/fincept-terminal-desktop/src/components/tabs/CodeEditorTab.tsxindex 245376996..ab9c6cdd9 100644--- a/fincept-terminal-desktop/src/components/tabs/CodeEditorTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/CodeEditorTab.tsx@@ -5,6 +5,7 @@ import { open, save } from '@tauri-apps/plugin-dialog';import { notebookService } from '@/services/notebookService';import { useTerminalTheme } from '@/contexts/ThemeContext';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';interface EditorFile {id: string;@@ -70,6 +71,7 @@ interface NotebookHistory {}export default function CodeEditorTab() {+ const { t } = useTranslation('codeEditor');const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();const [editorMode, setEditorMode] = useState<'code' | 'notebook'>('code');const [files, setFiles] = useState<EditorFile[]>([@@ -899,13 +901,13 @@ ${result.output}<div style={{ backgroundColor: C.PANEL_BG, borderBottom: `2px solid ${C.GRAY}`, padding: '8px 16px' }}><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}><div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>- <span style={{ color: C.ORANGE, fontWeight: 'bold', fontSize: '16px' }}>CODE EDITOR</span>+ <span style={{ color: C.ORANGE, fontWeight: 'bold', fontSize: '16px' }}>{t('title')}</span><span style={{ color: C.GRAY }}>|</span><button onClick={() => setEditorMode('code')} style={{ padding: '4px 12px', backgroundColor: editorMode === 'code' ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.GRAY}`, color: editorMode === 'code' ? C.DARK_BG : C.WHITE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- FINSCRIPT EDITOR+ {t('tabs.finscript')}</button><button onClick={() => setEditorMode('notebook')} style={{ padding: '4px 12px', backgroundColor: editorMode === 'notebook' ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.GRAY}`, color: editorMode === 'notebook' ? C.DARK_BG : C.WHITE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- JUPYTER NOTEBOOK+ {t('tabs.notebook')}</button>{editorMode === 'notebook' && (<>@@ -918,34 +920,34 @@ ${result.output}{editorMode === 'code' ? (<><button onClick={createNewFile} style={{ padding: '6px 12px', backgroundColor: C.DARK_BG, border: `2px solid ${C.GREEN}`, color: C.GREEN, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- <Plus size={14} style={{ display: 'inline', marginRight: '4px' }} />NEW FILE+ <Plus size={14} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.newFile')}</button><button onClick={saveFile} disabled={!activeFile.unsaved} style={{ padding: '6px 12px', backgroundColor: C.DARK_BG, border: `2px solid ${activeFile.unsaved ? C.YELLOW : C.GRAY}`, color: activeFile.unsaved ? C.YELLOW : C.GRAY, fontSize: '11px', fontWeight: 'bold', cursor: activeFile.unsaved ? 'pointer' : 'not-allowed', fontFamily: 'Consolas, monospace' }}>- <Save size={14} style={{ display: 'inline', marginRight: '4px' }} />SAVE+ <Save size={14} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.save')}</button><button onClick={runCode} disabled={isRunning} style={{ padding: '6px 12px', backgroundColor: isRunning ? C.GRAY : C.GREEN, border: 'none', color: C.DARK_BG, fontSize: '11px', fontWeight: 'bold', cursor: isRunning ? 'not-allowed' : 'pointer', fontFamily: 'Consolas, monospace' }}>- <Play size={14} style={{ display: 'inline', marginRight: '4px' }} />{isRunning ? 'RUNNING...' : 'RUN CODE'}+ <Play size={14} style={{ display: 'inline', marginRight: '4px' }} />{isRunning ? t('toolbar.running') : t('toolbar.run')}</button></>) : (<><button onClick={createNewNotebook} style={{ padding: '6px 12px', backgroundColor: C.DARK_BG, border: `2px solid ${C.GREEN}`, color: C.GREEN, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- <Plus size={14} style={{ display: 'inline', marginRight: '4px' }} />NEW+ <Plus size={14} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.new')}</button><button onClick={openNotebook} style={{ padding: '6px 12px', backgroundColor: C.DARK_BG, border: `2px solid ${C.BLUE}`, color: C.BLUE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- <Upload size={14} style={{ display: 'inline', marginRight: '4px' }} />OPEN+ <Upload size={14} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.open')}</button><button onClick={saveNotebook} style={{ padding: '6px 12px', backgroundColor: C.DARK_BG, border: `2px solid ${C.YELLOW}`, color: C.YELLOW, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- <Save size={14} style={{ display: 'inline', marginRight: '4px' }} />SAVE+ <Save size={14} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.save')}</button><button onClick={executeAllCells} style={{ padding: '6px 12px', backgroundColor: C.GREEN, border: 'none', color: C.DARK_BG, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- <Play size={14} style={{ display: 'inline', marginRight: '4px' }} />RUN ALL+ <Play size={14} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.runAll')}</button><button onClick={() => setShowPackageManager(!showPackageManager)} style={{ padding: '6px 12px', backgroundColor: C.DARK_BG, border: `2px solid ${C.CYAN}`, color: C.CYAN, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- <Package size={14} style={{ display: 'inline', marginRight: '4px' }} />PACKAGES+ <Package size={14} style={{ display: 'inline', marginRight: '4px' }} />{t('header.packages')}</button><button onClick={() => setShowHistory(!showHistory)} style={{ padding: '6px 12px', backgroundColor: showHistory ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.ORANGE}`, color: showHistory ? C.DARK_BG : C.ORANGE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- <History size={14} style={{ display: 'inline', marginRight: '4px' }} />HISTORY+ <History size={14} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.history')}</button></>)}@@ -995,7 +997,7 @@ ${result.output}<div style={{ fontSize: '11px', color: C.CYAN, marginBottom: '8px' }}>Installed Packages:</div><div className="code-scroll" style={{ maxHeight: '250px', overflowY: 'auto', backgroundColor: C.EDITOR_BG, padding: '8px', fontSize: '10px' }}>{installedPackages.length === 0 ? (- <div style={{ color: C.GRAY }}>Click to load packages...</div>+ <div style={{ color: C.GRAY }}>{t('packages.clickToLoad')}</div>) : (installedPackages.map((pkg, idx) => (<div key={idx} style={{ color: C.WHITE, marginBottom: '2px' }}>{pkg}</div>@@ -1004,7 +1006,7 @@ ${result.output}</div>{installedPackages.length === 0 && (<button onClick={loadInstalledPackages} style={{ marginTop: '8px', padding: '4px 8px', backgroundColor: C.BLUE, border: 'none', color: C.WHITE, fontSize: '10px', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- LOAD PACKAGES+ {t('packages.load')}</button>)}</div>@@ -1018,7 +1020,7 @@ ${result.output}<div style={{ backgroundColor: C.DARK_BG, padding: '8px 12px', borderBottom: `1px solid ${C.GRAY}` }}><div style={{ display: 'flex', alignItems: 'center', gap: '8px', marginBottom: '8px' }}><History size={14} style={{ color: C.ORANGE }} />- <span style={{ color: C.ORANGE, fontSize: '12px', fontWeight: 'bold' }}>NOTEBOOK HISTORY</span>+ <span style={{ color: C.ORANGE, fontSize: '12px', fontWeight: 'bold' }}>{t('history.title')}</span></div><div style={{ display: 'flex', gap: '4px' }}><input@@ -1040,11 +1042,11 @@ ${result.output}<div className="code-scroll" style={{ flex: 1, overflowY: 'auto', padding: '8px' }}>{isLoadingHistory ? (<div style={{ color: C.GRAY, textAlign: 'center', padding: '20px', fontSize: '11px' }}>- Loading history...+ {t('history.loading')}</div>) : notebookHistory.length === 0 ? (<div style={{ color: C.GRAY, textAlign: 'center', padding: '20px', fontSize: '11px' }}>- No notebook history yet+ {t('history.empty')}</div>) : (notebookHistory.map((entry) => (diff --git a/fincept-terminal-desktop/src/components/tabs/DBnomicsTab.tsx b/fincept-terminal-desktop/src/components/tabs/DBnomicsTab.tsxindex 385624c8b..94153d0d1 100644--- a/fincept-terminal-desktop/src/components/tabs/DBnomicsTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/DBnomicsTab.tsx@@ -2,6 +2,7 @@ import React, { useState } from 'react';import { RefreshCw, Download, Plus, Minus, Trash2 } from 'lucide-react';import { useTerminalTheme } from '@/contexts/ThemeContext';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';interface Provider {code: string;@@ -34,6 +35,7 @@ interface DataPoint {type ChartType = 'line' | 'bar' | 'area' | 'scatter' | 'candlestick';export default function DBnomicsTab() {+ const { t } = useTranslation('dbnomics');const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();const BASE_URL = 'https://api.db.nomics.world/v22';const COLORS = [colors.primary, colors.info, colors.secondary, colors.warning, colors.purple, colors.purple, colors.accent, colors.primary];@@ -472,18 +474,18 @@ export default function DBnomicsTab() {`}</style>{/* Header */}<div style={{ padding: '8px 12px', borderBottom: '1px solid colors.textMuted', display: 'flex', alignItems: 'center', gap: '12px', flexWrap: 'wrap' }}>- <span style={{ color: colors.primary, fontWeight: 'bold' }}>DBNOMICS TERMINAL</span>+ <span style={{ color: colors.primary, fontWeight: 'bold' }}>{t('title')}</span><span style={{ color: colors.secondary, fontSize: '10px' }}>● {status}</span><span style={{ color: colors.warning, fontSize: '10px' }}>Providers: {providers.length}</span><div style={{ flex: 1 }}></div><button onClick={loadProviders} disabled={loading} style={{ padding: '3px 10px', backgroundColor: '#2a2a2a', color: colors.text, border: '1px solid colors.textMuted', cursor: loading ? 'not-allowed' : 'pointer', fontSize: '9px' }}>- LOAD+ {t('toolbar.fetch')}</button><button onClick={() => currentData && loadSeriesData(currentData.series_id, currentData.series_name)} disabled={!currentData} style={{ padding: '3px 10px', backgroundColor: '#2a2a2a', color: colors.text, border: '1px solid colors.textMuted', cursor: !currentData ? 'not-allowed' : 'pointer', fontSize: '9px' }}>- <RefreshCw size={10} style={{ display: 'inline', marginRight: '4px' }} />REFRESH+ <RefreshCw size={10} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.refresh')}</button><button onClick={exportData} disabled={!currentData} style={{ padding: '3px 10px', backgroundColor: '#2a2a2a', color: colors.text, border: '1px solid colors.textMuted', cursor: !currentData ? 'not-allowed' : 'pointer', fontSize: '9px' }}>- <Download size={10} style={{ display: 'inline', marginRight: '4px' }} />EXPORT+ <Download size={10} style={{ display: 'inline', marginRight: '4px' }} />{t('toolbar.export')}</button></div>diff --git a/fincept-terminal-desktop/src/components/tabs/DashboardTab.tsx b/fincept-terminal-desktop/src/components/tabs/DashboardTab.tsxindex c7f2db2c2..b752c9e0c 100644--- a/fincept-terminal-desktop/src/components/tabs/DashboardTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/DashboardTab.tsx@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';import GridLayout, { Layout } from 'react-grid-layout';import { Plus, RotateCcw, Save } from 'lucide-react';import { useTerminalTheme } from '@/contexts/ThemeContext';+import { useTranslation } from 'react-i18next';import { sqliteService } from '../../services/sqliteService';import { TabFooter } from '@/components/common/TabFooter';import {@@ -109,7 +110,8 @@ interface DashboardTabProps {}const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {- const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();+ const { colors, fontSize, fontFamily, fontStyle, fontWeight } = useTerminalTheme();+ const { t } = useTranslation('dashboard');const [widgets, setWidgets] = useState<WidgetInstance[]>([]);const [showAddModal, setShowAddModal] = useState(false);const [currentTime, setCurrentTime] = useState(new Date());@@ -369,13 +371,13 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {`}</style><div style={{ textAlign: 'center', maxWidth: '500px' }}><h3 style={{ color: '#ea580c', fontSize: '18px', marginBottom: '10px' }}>- Initializing Dashboard+ {t('loading.title')}</h3><p style={{ color: '#a3a3a3', fontSize: '13px', lineHeight: '1.5' }}>- Setting up database cache for faster data loading...+ {t('loading.description')}</p><p style={{ color: '#787878', fontSize: '11px', marginTop: '10px' }}>- This will only take a moment on first launch+ {t('loading.note')}</p></div></div>@@ -463,11 +465,11 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}><div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}><span style={{ color: colors.primary, fontWeight: 'bold', fontSize: fontSize.subheading }}>- CUSTOMIZABLE DASHBOARD+ {t('header.title')}</span><span style={{ color: colors.text }}>|</span><span style={{ color: colors.secondary, fontSize: fontSize.small }}>- ● LIVE+ ● {t('header.live')}</span><span style={{ color: colors.text }}>|</span><span style={{ color: colors.warning, fontSize: fontSize.body }}>@@ -475,7 +477,7 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {</span><span style={{ color: colors.text }}>|</span><span style={{ color: colors.textMuted, fontSize: fontSize.small }}>- WIDGETS: {widgets.length}+ {t('header.widgets')}: {widgets.length}</span></div>@@ -497,7 +499,7 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {}}><Plus size={12} />- ADD WIDGET+ {t('buttons.addWidget')}</button><buttononClick={saveLayout}@@ -516,7 +518,7 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {}}><Save size={12} />- SAVE LAYOUT+ {t('buttons.saveLayout')}</button><buttononClick={resetLayout}@@ -535,7 +537,7 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {}}><RotateCcw size={12} />- RESET+ {t('buttons.reset')}</button></div></div>@@ -551,10 +553,10 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {flexShrink: 0}}><div style={{ display: 'flex', gap: '16px' }}>- <span>💡 <span style={{ color: colors.text }}>Drag widgets to rearrange</span></span>- <span>🔧 <span style={{ color: colors.text }}>Resize from bottom-right corner</span></span>- <span>✖️ <span style={{ color: colors.text }}>Remove widgets with X button</span></span>- <span>📐 <span style={{ color: colors.text }}>Responsive layout - uses full width</span></span>+ <span>💡 <span style={{ color: colors.text }}>{t('tips.drag')}</span></span>+ <span>🔧 <span style={{ color: colors.text }}>{t('tips.resize')}</span></span>+ <span>✖️ <span style={{ color: colors.text }}>{t('tips.remove')}</span></span>+ <span>📐 <span style={{ color: colors.text }}>{t('tips.responsive')}</span></span></div></div>@@ -578,7 +580,7 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {gap: '16px'}}><div style={{ color: colors.textMuted, fontSize: fontSize.subheading }}>- No widgets on dashboard+ {t('empty.noWidgets')}</div><buttononClick={() => setShowAddModal(true)}@@ -593,7 +595,7 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {borderRadius: '4px'}}>- ADD YOUR FIRST WIDGET+ {t('empty.addFirst')}</button></div>) : (@@ -623,16 +625,16 @@ const DashboardTab: React.FC<DashboardTabProps> = ({ onNavigateToTab }) => {<TabFootertabName="DASHBOARD"leftInfo={[- { label: 'Drag & drop workspace', color: colors.textMuted },- { label: `Widgets: ${widgets.length}`, color: colors.textMuted },- { label: `Layout: ${widgets.length > 0 ? 'Custom' : 'Empty'}`, color: colors.textMuted },+ { label: t('status.version'), color: colors.textMuted },+ { label: `${t('header.widgets')}: ${widgets.length}`, color: colors.textMuted },+ { label: `${t('status.layout')}: ${widgets.length > 0 ? t('status.custom') : t('status.empty')}`, color: colors.textMuted },]}statusInfo={<>- Status: <span style={{ color: colors.secondary }}>ACTIVE</span>+ Status: <span style={{ color: colors.secondary }}>{t('status.active')}</span>{dbInitialized && (<span style={{ marginLeft: '8px', color: colors.secondary }}>- | Cache: ENABLED+ | {t('status.cache')}</span>)}</>diff --git a/fincept-terminal-desktop/src/components/tabs/EconomicsTab.tsx b/fincept-terminal-desktop/src/components/tabs/EconomicsTab.tsxindex daabe510b..a911c6ed6 100644--- a/fincept-terminal-desktop/src/components/tabs/EconomicsTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/EconomicsTab.tsx@@ -4,6 +4,7 @@ import { RefreshCw, Download, Globe, TrendingUp, BarChart3, PieChart } from 'lucimport { invoke } from '@tauri-apps/api/core';import bisDataService from '@/services/bisDataService';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';interface Indicator {code: string;@@ -37,6 +38,7 @@ interface ProfileData {export default function EconomicsTab() {const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();+ const { t } = useTranslation('economics');const [dataSource, setDataSource] = useState<'econdb' | 'bis'>('econdb');const [view, setView] = useState<'indicator' | 'profile' | 'countries'>('indicator');const [loading, setLoading] = useState(false);@@ -395,7 +397,7 @@ export default function EconomicsTab() {<div style={{ width: '100%', height: '100%', backgroundColor: 'colors.background', color: '#d4d4d4', fontFamily: 'Consolas, monospace', fontSize: '11px', display: 'flex', flexDirection: 'column', overflow: 'hidden' }}>{/* Header */}<div style={{ padding: '8px 12px', borderBottom: '1px solid #404040', display: 'flex', alignItems: 'center', gap: '12px', flexShrink: 0 }}>- <span style={{ color: '#ea580c', fontWeight: 'bold' }}>ECONOMICS - {dataSource.toUpperCase()}</span>+ <span style={{ color: '#ea580c', fontWeight: 'bold' }}>{t('title')} - {dataSource.toUpperCase()}</span><span style={{ color: '#10b981', fontSize: '10px' }}>● {status}</span><div style={{ flex: 1 }}></div>@@ -432,13 +434,13 @@ export default function EconomicsTab() {</div><button onClick={() => setView('indicator')} style={{ padding: '4px 10px', backgroundColor: view === 'indicator' ? '#ea580c' : '#2d2d2d', color: 'colors.text', border: 'none', cursor: 'pointer', fontSize: '9px' }}>- <BarChart3 size={10} style={{ display: 'inline', marginRight: '4px' }} />INDICATOR+ <BarChart3 size={10} style={{ display: 'inline', marginRight: '4px' }} />{t('header.indicators')}</button><button onClick={() => setView('profile')} style={{ padding: '4px 10px', backgroundColor: view === 'profile' ? '#ea580c' : '#2d2d2d', color: 'colors.text', border: 'none', cursor: 'pointer', fontSize: '9px' }}>- <PieChart size={10} style={{ display: 'inline', marginRight: '4px' }} />PROFILE+ <PieChart size={10} style={{ display: 'inline', marginRight: '4px' }} />{t('header.overview')}</button><button onClick={() => setView('countries')} style={{ padding: '4px 10px', backgroundColor: view === 'countries' ? '#ea580c' : '#2d2d2d', color: 'colors.text', border: 'none', cursor: 'pointer', fontSize: '9px' }}>- <Globe size={10} style={{ display: 'inline', marginRight: '4px' }} />COUNTRIES+ <Globe size={10} style={{ display: 'inline', marginRight: '4px' }} />{t('header.countries')}</button></div>diff --git a/fincept-terminal-desktop/src/components/tabs/EquityResearchTab.tsx b/fincept-terminal-desktop/src/components/tabs/EquityResearchTab.tsxindex 148e51db5..652938d54 100644--- a/fincept-terminal-desktop/src/components/tabs/EquityResearchTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/EquityResearchTab.tsx@@ -5,6 +5,7 @@ import { createChart, CandlestickSeries, HistogramSeries, LineSeries, BarSeriesimport { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, ComposedChart, Bar, Area } from 'recharts';import { ProChartWithToolkit } from './trading/charts/ProChartWithToolkit';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';const COLORS = {ORANGE: '#FFA500',@@ -437,14 +438,14 @@ const IndicatorBox: React.FC<{boxShadow: '0 1px 3px rgba(0, 0, 0, 0.3)',transition: 'all 0.2s ease',}}- onMouseEnter={(e) => {- e.currentTarget.style.borderColor = color;- e.currentTarget.style.boxShadow = `0 4px 12px rgba(0, 0, 0, 0.5)`;- }}- onMouseLeave={(e) => {- e.currentTarget.style.borderColor = COLORS.BORDER;- e.currentTarget.style.boxShadow = '0 1px 3px rgba(0, 0, 0, 0.3)';- }}+ onMouseEnter={(e) => {+ e.currentTarget.style.borderColor = color;+ e.currentTarget.style.boxShadow = `0 4px 12px rgba(0, 0, 0, 0.5)`;+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.borderColor = COLORS.BORDER;+ e.currentTarget.style.boxShadow = '0 1px 3px rgba(0, 0, 0, 0.3)';+ }}>{/* Header */}<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>@@ -732,6 +733,7 @@ const IndicatorBox: React.FC<{const EquityResearchTab: React.FC = () => {const { colors, fontSize: themeFontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();+ const { t } = useTranslation('equityResearch');const [searchSymbol, setSearchSymbol] = useState('');const [currentSymbol, setCurrentSymbol] = useState('AAPL');const [stockInfo, setStockInfo] = useState<StockInfo | null>(null);@@ -1317,7 +1319,7 @@ const EquityResearchTab: React.FC = () => {}}><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}><div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>- <span style={{ color: COLORS.ORANGE, fontWeight: 'bold', fontSize: '13px' }}>EQUITY RESEARCH TERMINAL</span>+ <span style={{ color: COLORS.ORANGE, fontWeight: 'bold', fontSize: '13px' }}>{t('title')} TERMINAL</span><span style={{ color: COLORS.GRAY }}>|</span><div style={{ display: 'flex', alignItems: 'center', gap: '4px' }}><input@@ -1890,398 +1892,398 @@ const EquityResearchTab: React.FC = () => {</div></div>) : (- <div style={{ padding: '0' }}>- {/* Controls Panel */}- <div style={{- backgroundColor: COLORS.PANEL_BG,- border: `1px solid ${COLORS.BORDER}`,- padding: '10px 12px',- marginBottom: '8px',- display: 'flex',- gap: '20px',- alignItems: 'center',- flexWrap: 'wrap',- }}>- <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>- <span style={{ color: COLORS.GRAY, fontSize: `${fontSize}px` }}>FONT SIZE:</span>- <button- onClick={() => setFontSize(Math.max(10, fontSize - 1))}- style={{- backgroundColor: COLORS.DARK_BG,- border: `1px solid ${COLORS.BORDER}`,- color: COLORS.WHITE,- padding: '4px 8px',- fontSize: `${fontSize}px`,- cursor: 'pointer',- }}- >- -- </button>- <span style={{ color: COLORS.ORANGE, fontSize: `${fontSize}px`, fontWeight: 'bold', minWidth: '30px', textAlign: 'center' }}>{fontSize}px</span>- <button- onClick={() => setFontSize(Math.min(20, fontSize + 1))}- style={{- backgroundColor: COLORS.DARK_BG,- border: `1px solid ${COLORS.BORDER}`,- color: COLORS.WHITE,- padding: '4px 8px',- fontSize: `${fontSize}px`,- cursor: 'pointer',- }}- >- +- </button>- </div>-- <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>- <span style={{ color: COLORS.GRAY, fontSize: `${fontSize}px` }}>SHOW YEARS:</span>- {[2, 3, 4, 5].map((count) => (- <button- key={count}- onClick={() => setShowYearsCount(count)}- style={{- backgroundColor: showYearsCount === count ? COLORS.ORANGE : COLORS.DARK_BG,- border: `1px solid ${COLORS.BORDER}`,- color: showYearsCount === count ? COLORS.DARK_BG : COLORS.WHITE,- padding: '4px 10px',- fontSize: `${fontSize - 1}px`,- cursor: 'pointer',- fontWeight: showYearsCount === count ? 'bold' : 'normal',- }}- >- {count}- </button>- ))}- </div>-- <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>- <span style={{ color: COLORS.GRAY, fontSize: `${fontSize}px` }}>SELECT METRICS:</span>- <button- onClick={() => {- const allMetrics = getAllMetrics();- setSelectedMetrics(selectedMetrics.length === allMetrics.length ? [] : allMetrics);- }}- style={{- backgroundColor: COLORS.BLUE,- border: 'none',- color: COLORS.WHITE,- padding: '4px 10px',- fontSize: `${fontSize - 1}px`,- cursor: 'pointer',- fontWeight: 'bold',- }}- >- {selectedMetrics.length === getAllMetrics().length ? 'DESELECT ALL' : 'SELECT ALL'}- </button>- </div>- </div>-- {/* Metric Selector */}- <div style={{- backgroundColor: COLORS.PANEL_BG,- border: `1px solid ${COLORS.BORDER}`,- padding: '12px',- marginBottom: '8px',- }}>- <div style={{ color: COLORS.CYAN, fontSize: `${fontSize + 2}px`, fontWeight: 'bold', marginBottom: '10px' }}>- SELECT METRICS TO COMPARE- </div>- <div style={{ display: 'flex', flexWrap: 'wrap', gap: '6px' }}>- {getAllMetrics().map((metric) => (- <button- key={metric}- onClick={() => toggleMetric(metric)}- style={{- backgroundColor: selectedMetrics.includes(metric) ? COLORS.GREEN : COLORS.DARK_BG,- border: `1px solid ${selectedMetrics.includes(metric) ? COLORS.GREEN : COLORS.BORDER}`,- color: selectedMetrics.includes(metric) ? COLORS.DARK_BG : COLORS.WHITE,- padding: '6px 12px',- fontSize: `${fontSize - 1}px`,- cursor: 'pointer',- fontWeight: selectedMetrics.includes(metric) ? 'bold' : 'normal',- borderRadius: '3px',- }}- >- {metric}- </button>- ))}- </div>- </div>-- {/* Financial Comparison Charts - 3 Charts in a Row */}- <div style={{- backgroundColor: COLORS.PANEL_BG,- border: `1px solid ${COLORS.BORDER}`,- padding: '12px',- marginBottom: '8px',- }}>- <div style={{ color: COLORS.ORANGE, fontSize: `${fontSize + 3}px`, fontWeight: 'bold', marginBottom: '12px' }}>- FINANCIAL TRENDS COMPARISON (in Billions $)- </div>-- {/* Chart Controls */}- <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '12px', marginBottom: '12px' }}>- {/* Chart 1 Selector */}- <div>- <div style={{ color: COLORS.CYAN, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px' }}>- CHART 1 METRICS:+ <div style={{ padding: '0' }}>+ {/* Controls Panel */}+ <div style={{+ backgroundColor: COLORS.PANEL_BG,+ border: `1px solid ${COLORS.BORDER}`,+ padding: '10px 12px',+ marginBottom: '8px',+ display: 'flex',+ gap: '20px',+ alignItems: 'center',+ flexWrap: 'wrap',+ }}>+ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>+ <span style={{ color: COLORS.GRAY, fontSize: `${fontSize}px` }}>FONT SIZE:</span>+ <button+ onClick={() => setFontSize(Math.max(10, fontSize - 1))}+ style={{+ backgroundColor: COLORS.DARK_BG,+ border: `1px solid ${COLORS.BORDER}`,+ color: COLORS.WHITE,+ padding: '4px 8px',+ fontSize: `${fontSize}px`,+ cursor: 'pointer',+ }}+ >+ -+ </button>+ <span style={{ color: COLORS.ORANGE, fontSize: `${fontSize}px`, fontWeight: 'bold', minWidth: '30px', textAlign: 'center' }}>{fontSize}px</span>+ <button+ onClick={() => setFontSize(Math.min(20, fontSize + 1))}+ style={{+ backgroundColor: COLORS.DARK_BG,+ border: `1px solid ${COLORS.BORDER}`,+ color: COLORS.WHITE,+ padding: '4px 8px',+ fontSize: `${fontSize}px`,+ cursor: 'pointer',+ }}+ >+ ++ </button></div>- <div style={{ display: 'flex', flexWrap: 'wrap', gap: '4px' }}>- {getAllMetrics().slice(0, 8).map((metric) => (++ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>+ <span style={{ color: COLORS.GRAY, fontSize: `${fontSize}px` }}>SHOW YEARS:</span>+ {[2, 3, 4, 5].map((count) => (<button- key={metric}- onClick={() => {- setChart1Metrics(prev =>- prev.includes(metric)- ? prev.filter(m => m !== metric)- : [...prev, metric]- );- }}+ key={count}+ onClick={() => setShowYearsCount(count)}style={{- backgroundColor: chart1Metrics.includes(metric) ? COLORS.GREEN : COLORS.DARK_BG,- border: `1px solid ${chart1Metrics.includes(metric) ? COLORS.GREEN : COLORS.BORDER}`,- color: chart1Metrics.includes(metric) ? COLORS.DARK_BG : COLORS.WHITE,- padding: '3px 6px',- fontSize: `${fontSize - 3}px`,+ backgroundColor: showYearsCount === count ? COLORS.ORANGE : COLORS.DARK_BG,+ border: `1px solid ${COLORS.BORDER}`,+ color: showYearsCount === count ? COLORS.DARK_BG : COLORS.WHITE,+ padding: '4px 10px',+ fontSize: `${fontSize - 1}px`,cursor: 'pointer',- fontWeight: chart1Metrics.includes(metric) ? 'bold' : 'normal',+ fontWeight: showYearsCount === count ? 'bold' : 'normal',}}>- {metric.substring(0, 15)}+ {count}</button>))}</div>- </div>- {/* Chart 2 Selector */}- <div>- <div style={{ color: COLORS.CYAN, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px' }}>- CHART 2 METRICS:- </div>- <div style={{ display: 'flex', flexWrap: 'wrap', gap: '4px' }}>- {getAllMetrics().slice(0, 8).map((metric) => (- <button- key={metric}- onClick={() => {- setChart2Metrics(prev =>- prev.includes(metric)- ? prev.filter(m => m !== metric)- : [...prev, metric]- );- }}- style={{- backgroundColor: chart2Metrics.includes(metric) ? COLORS.ORANGE : COLORS.DARK_BG,- border: `1px solid ${chart2Metrics.includes(metric) ? COLORS.ORANGE : COLORS.BORDER}`,- color: chart2Metrics.includes(metric) ? COLORS.DARK_BG : COLORS.WHITE,- padding: '3px 6px',- fontSize: `${fontSize - 3}px`,- cursor: 'pointer',- fontWeight: chart2Metrics.includes(metric) ? 'bold' : 'normal',- }}- >- {metric.substring(0, 15)}- </button>- ))}+ <div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>+ <span style={{ color: COLORS.GRAY, fontSize: `${fontSize}px` }}>SELECT METRICS:</span>+ <button+ onClick={() => {+ const allMetrics = getAllMetrics();+ setSelectedMetrics(selectedMetrics.length === allMetrics.length ? [] : allMetrics);+ }}+ style={{+ backgroundColor: COLORS.BLUE,+ border: 'none',+ color: COLORS.WHITE,+ padding: '4px 10px',+ fontSize: `${fontSize - 1}px`,+ cursor: 'pointer',+ fontWeight: 'bold',+ }}+ >+ {selectedMetrics.length === getAllMetrics().length ? 'DESELECT ALL' : 'SELECT ALL'}+ </button></div></div>- {/* Chart 3 Selector */}- <div>- <div style={{ color: COLORS.CYAN, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px' }}>- CHART 3 METRICS:+ {/* Metric Selector */}+ <div style={{+ backgroundColor: COLORS.PANEL_BG,+ border: `1px solid ${COLORS.BORDER}`,+ padding: '12px',+ marginBottom: '8px',+ }}>+ <div style={{ color: COLORS.CYAN, fontSize: `${fontSize + 2}px`, fontWeight: 'bold', marginBottom: '10px' }}>+ SELECT METRICS TO COMPARE</div>- <div style={{ display: 'flex', flexWrap: 'wrap', gap: '4px' }}>- {getAllMetrics().slice(0, 8).map((metric) => (+ <div style={{ display: 'flex', flexWrap: 'wrap', gap: '6px' }}>+ {getAllMetrics().map((metric) => (<buttonkey={metric}- onClick={() => {- setChart3Metrics(prev =>- prev.includes(metric)- ? prev.filter(m => m !== metric)- : [...prev, metric]- );- }}+ onClick={() => toggleMetric(metric)}style={{- backgroundColor: chart3Metrics.includes(metric) ? COLORS.MAGENTA : COLORS.DARK_BG,- border: `1px solid ${chart3Metrics.includes(metric) ? COLORS.MAGENTA : COLORS.BORDER}`,- color: chart3Metrics.includes(metric) ? COLORS.DARK_BG : COLORS.WHITE,- padding: '3px 6px',- fontSize: `${fontSize - 3}px`,+ backgroundColor: selectedMetrics.includes(metric) ? COLORS.GREEN : COLORS.DARK_BG,+ border: `1px solid ${selectedMetrics.includes(metric) ? COLORS.GREEN : COLORS.BORDER}`,+ color: selectedMetrics.includes(metric) ? COLORS.DARK_BG : COLORS.WHITE,+ padding: '6px 12px',+ fontSize: `${fontSize - 1}px`,cursor: 'pointer',- fontWeight: chart3Metrics.includes(metric) ? 'bold' : 'normal',+ fontWeight: selectedMetrics.includes(metric) ? 'bold' : 'normal',+ borderRadius: '3px',}}>- {metric.substring(0, 15)}+ {metric}</button>))}</div></div>- </div>- {/* 3 Charts Side by Side */}- <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '12px' }}>- <div>- <div style={{ color: COLORS.GREEN, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px', textAlign: 'center' }}>- {chart1Metrics.join(', ') || 'Select metrics'}- </div>- <div ref={financialChart1Ref} style={{ backgroundColor: COLORS.DARK_BG }} />- </div>- <div>- <div style={{ color: COLORS.ORANGE, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px', textAlign: 'center' }}>- {chart2Metrics.join(', ') || 'Select metrics'}- </div>- <div ref={financialChart2Ref} style={{ backgroundColor: COLORS.DARK_BG }} />- </div>- <div>- <div style={{ color: COLORS.MAGENTA, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px', textAlign: 'center' }}>- {chart3Metrics.join(', ') || 'Select metrics'}+ {/* Financial Comparison Charts - 3 Charts in a Row */}+ <div style={{+ backgroundColor: COLORS.PANEL_BG,+ border: `1px solid ${COLORS.BORDER}`,+ padding: '12px',+ marginBottom: '8px',+ }}>+ <div style={{ color: COLORS.ORANGE, fontSize: `${fontSize + 3}px`, fontWeight: 'bold', marginBottom: '12px' }}>+ FINANCIAL TRENDS COMPARISON (in Billions $)</div>- <div ref={financialChart3Ref} style={{ backgroundColor: COLORS.DARK_BG }} />- </div>- </div>- </div>- {/* Financial Comparison Table */}- <div style={{- backgroundColor: COLORS.PANEL_BG,- border: `1px solid ${COLORS.BORDER}`,- padding: '12px',- marginBottom: '8px',- }}>- <div style={{ color: COLORS.CYAN, fontSize: `${fontSize + 3}px`, fontWeight: 'bold', marginBottom: '12px' }}>- YEAR-OVER-YEAR COMPARISON ({selectedMetrics.length} Metrics)- </div>+ {/* Chart Controls */}+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '12px', marginBottom: '12px' }}>+ {/* Chart 1 Selector */}+ <div>+ <div style={{ color: COLORS.CYAN, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px' }}>+ CHART 1 METRICS:+ </div>+ <div style={{ display: 'flex', flexWrap: 'wrap', gap: '4px' }}>+ {getAllMetrics().slice(0, 8).map((metric) => (+ <button+ key={metric}+ onClick={() => {+ setChart1Metrics(prev =>+ prev.includes(metric)+ ? prev.filter(m => m !== metric)+ : [...prev, metric]+ );+ }}+ style={{+ backgroundColor: chart1Metrics.includes(metric) ? COLORS.GREEN : COLORS.DARK_BG,+ border: `1px solid ${chart1Metrics.includes(metric) ? COLORS.GREEN : COLORS.BORDER}`,+ color: chart1Metrics.includes(metric) ? COLORS.DARK_BG : COLORS.WHITE,+ padding: '3px 6px',+ fontSize: `${fontSize - 3}px`,+ cursor: 'pointer',+ fontWeight: chart1Metrics.includes(metric) ? 'bold' : 'normal',+ }}+ >+ {metric.substring(0, 15)}+ </button>+ ))}+ </div>+ </div>- {selectedMetrics.length === 0 ? (- <div style={{ color: COLORS.YELLOW, fontSize: `${fontSize + 1}px`, textAlign: 'center', padding: '20px' }}>- Please select at least one metric to compare- </div>- ) : (- <div style={{ overflowX: 'auto' }} className="custom-scrollbar">- <table style={{ width: '100%', borderCollapse: 'collapse', fontSize: `${fontSize}px` }}>- <thead>- <tr style={{ borderBottom: `2px solid ${COLORS.BORDER}` }}>- <th style={{ textAlign: 'left', padding: '10px', color: COLORS.GRAY, fontSize: `${fontSize + 1}px` }}>METRIC</th>- {Object.keys(financials.income_statement).slice(0, showYearsCount).map((period) => (- <th key={period} style={{ textAlign: 'right', padding: '10px', color: COLORS.ORANGE, fontSize: `${fontSize + 1}px` }}>- {getYearFromPeriod(period)}- </th>+ {/* Chart 2 Selector */}+ <div>+ <div style={{ color: COLORS.CYAN, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px' }}>+ CHART 2 METRICS:+ </div>+ <div style={{ display: 'flex', flexWrap: 'wrap', gap: '4px' }}>+ {getAllMetrics().slice(0, 8).map((metric) => (+ <button+ key={metric}+ onClick={() => {+ setChart2Metrics(prev =>+ prev.includes(metric)+ ? prev.filter(m => m !== metric)+ : [...prev, metric]+ );+ }}+ style={{+ backgroundColor: chart2Metrics.includes(metric) ? COLORS.ORANGE : COLORS.DARK_BG,+ border: `1px solid ${chart2Metrics.includes(metric) ? COLORS.ORANGE : COLORS.BORDER}`,+ color: chart2Metrics.includes(metric) ? COLORS.DARK_BG : COLORS.WHITE,+ padding: '3px 6px',+ fontSize: `${fontSize - 3}px`,+ cursor: 'pointer',+ fontWeight: chart2Metrics.includes(metric) ? 'bold' : 'normal',+ }}+ >+ {metric.substring(0, 15)}+ </button>))}- </tr>- </thead>- <tbody>- {selectedMetrics.map((metric, idx) => {- const periods = Object.keys(financials.income_statement).slice(0, showYearsCount);- return (- <tr key={metric} style={{ borderBottom: `1px solid ${COLORS.BORDER}20` }}>- <td style={{ padding: '10px', color: COLORS.WHITE, fontWeight: 'bold', fontSize: `${fontSize}px` }}>{metric}</td>- {periods.map((period) => {- const value = financials.income_statement[period][metric];- return (- <td key={period} style={{ textAlign: 'right', padding: '10px', color: COLORS.CYAN, fontSize: `${fontSize}px` }}>- {value ? (metric.includes('EPS') ? `$${formatNumber(value)}` : formatLargeNumber(value)) : 'N/A'}- </td>+ </div>+ </div>++ {/* Chart 3 Selector */}+ <div>+ <div style={{ color: COLORS.CYAN, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px' }}>+ CHART 3 METRICS:+ </div>+ <div style={{ display: 'flex', flexWrap: 'wrap', gap: '4px' }}>+ {getAllMetrics().slice(0, 8).map((metric) => (+ <button+ key={metric}+ onClick={() => {+ setChart3Metrics(prev =>+ prev.includes(metric)+ ? prev.filter(m => m !== metric)+ : [...prev, metric]);- })}- </tr>- );- })}- </tbody>- </table>- </div>- )}- </div>+ }}+ style={{+ backgroundColor: chart3Metrics.includes(metric) ? COLORS.MAGENTA : COLORS.DARK_BG,+ border: `1px solid ${chart3Metrics.includes(metric) ? COLORS.MAGENTA : COLORS.BORDER}`,+ color: chart3Metrics.includes(metric) ? COLORS.DARK_BG : COLORS.WHITE,+ padding: '3px 6px',+ fontSize: `${fontSize - 3}px`,+ cursor: 'pointer',+ fontWeight: chart3Metrics.includes(metric) ? 'bold' : 'normal',+ }}+ >+ {metric.substring(0, 15)}+ </button>+ ))}+ </div>+ </div>+ </div>- {/* Detailed Financial Statements */}- <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '8px' }}>- {/* Income Statement */}- <div style={{- backgroundColor: COLORS.PANEL_BG,- border: `1px solid ${COLORS.BORDER}`,- padding: '8px',- }}>- <div style={{ color: COLORS.GREEN, fontSize: `${fontSize + 2}px`, fontWeight: 'bold', marginBottom: '8px', borderBottom: `1px solid ${COLORS.BORDER}`, paddingBottom: '4px' }}>- INCOME STATEMENT (Latest)- </div>- <div style={{ fontSize: `${fontSize}px`, maxHeight: '500px', overflow: 'auto' }} className="custom-scrollbar">- {Object.keys(financials.income_statement).length > 0 ? (- <>- {Object.entries(Object.values(financials.income_statement)[0] || {}).map(([metric, _], idx) => {- const latestPeriod = Object.keys(financials.income_statement)[0];- const value = financials.income_statement[latestPeriod][metric];- return (- <div key={idx} style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '6px', paddingBottom: '6px', borderBottom: `1px solid rgba(255,255,255,0.05)` }}>- <span style={{ color: COLORS.GRAY, fontSize: `${fontSize - 1}px`, maxWidth: '60%' }}>{metric}:</span>- <span style={{ color: COLORS.CYAN, fontSize: `${fontSize}px` }}>{formatLargeNumber(value)}</span>- </div>- );- })}- </>- ) : (- <div style={{ color: COLORS.GRAY, textAlign: 'center', padding: '20px', fontSize: `${fontSize}px` }}>No data available</div>- )}+ {/* 3 Charts Side by Side */}+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '12px' }}>+ <div>+ <div style={{ color: COLORS.GREEN, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px', textAlign: 'center' }}>+ {chart1Metrics.join(', ') || 'Select metrics'}+ </div>+ <div ref={financialChart1Ref} style={{ backgroundColor: COLORS.DARK_BG }} />+ </div>+ <div>+ <div style={{ color: COLORS.ORANGE, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px', textAlign: 'center' }}>+ {chart2Metrics.join(', ') || 'Select metrics'}+ </div>+ <div ref={financialChart2Ref} style={{ backgroundColor: COLORS.DARK_BG }} />+ </div>+ <div>+ <div style={{ color: COLORS.MAGENTA, fontSize: `${fontSize}px`, fontWeight: 'bold', marginBottom: '6px', textAlign: 'center' }}>+ {chart3Metrics.join(', ') || 'Select metrics'}+ </div>+ <div ref={financialChart3Ref} style={{ backgroundColor: COLORS.DARK_BG }} />+ </div>+ </div></div>- </div>- {/* Balance Sheet */}- <div style={{- backgroundColor: COLORS.PANEL_BG,- border: `1px solid ${COLORS.BORDER}`,- padding: '8px',- }}>- <div style={{ color: COLORS.YELLOW, fontSize: `${fontSize + 2}px`, fontWeight: 'bold', marginBottom: '8px', borderBottom: `1px solid ${COLORS.BORDER}`, paddingBottom: '4px' }}>- BALANCE SHEET (Latest)- </div>- <div style={{ fontSize: `${fontSize}px`, maxHeight: '500px', overflow: 'auto' }} className="custom-scrollbar">- {Object.keys(financials.balance_sheet).length > 0 ? (- <>- {Object.entries(Object.values(financials.balance_sheet)[0] || {}).map(([metric, _], idx) => {- const latestPeriod = Object.keys(financials.balance_sheet)[0];- const value = financials.balance_sheet[latestPeriod][metric];- return (- <div key={idx} style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '6px', paddingBottom: '6px', borderBottom: `1px solid rgba(255,255,255,0.05)` }}>- <span style={{ color: COLORS.GRAY, fontSize: `${fontSize - 1}px`, maxWidth: '60%' }}>{metric}:</span>- <span style={{ color: COLORS.CYAN, fontSize: `${fontSize}px` }}>{formatLargeNumber(value)}</span>- </div>- );- })}- </>+ {/* Financial Comparison Table */}+ <div style={{+ backgroundColor: COLORS.PANEL_BG,+ border: `1px solid ${COLORS.BORDER}`,+ padding: '12px',+ marginBottom: '8px',+ }}>+ <div style={{ color: COLORS.CYAN, fontSize: `${fontSize + 3}px`, fontWeight: 'bold', marginBottom: '12px' }}>+ YEAR-OVER-YEAR COMPARISON ({selectedMetrics.length} Metrics)+ </div>++ {selectedMetrics.length === 0 ? (+ <div style={{ color: COLORS.YELLOW, fontSize: `${fontSize + 1}px`, textAlign: 'center', padding: '20px' }}>+ Please select at least one metric to compare+ </div>) : (- <div style={{ color: COLORS.GRAY, textAlign: 'center', padding: '20px', fontSize: `${fontSize}px` }}>No data available</div>+ <div style={{ overflowX: 'auto' }} className="custom-scrollbar">+ <table style={{ width: '100%', borderCollapse: 'collapse', fontSize: `${fontSize}px` }}>+ <thead>+ <tr style={{ borderBottom: `2px solid ${COLORS.BORDER}` }}>+ <th style={{ textAlign: 'left', padding: '10px', color: COLORS.GRAY, fontSize: `${fontSize + 1}px` }}>METRIC</th>+ {Object.keys(financials.income_statement).slice(0, showYearsCount).map((period) => (+ <th key={period} style={{ textAlign: 'right', padding: '10px', color: COLORS.ORANGE, fontSize: `${fontSize + 1}px` }}>+ {getYearFromPeriod(period)}+ </th>+ ))}+ </tr>+ </thead>+ <tbody>+ {selectedMetrics.map((metric, idx) => {+ const periods = Object.keys(financials.income_statement).slice(0, showYearsCount);+ return (+ <tr key={metric} style={{ borderBottom: `1px solid ${COLORS.BORDER}20` }}>+ <td style={{ padding: '10px', color: COLORS.WHITE, fontWeight: 'bold', fontSize: `${fontSize}px` }}>{metric}</td>+ {periods.map((period) => {+ const value = financials.income_statement[period][metric];+ return (+ <td key={period} style={{ textAlign: 'right', padding: '10px', color: COLORS.CYAN, fontSize: `${fontSize}px` }}>+ {value ? (metric.includes('EPS') ? `$${formatNumber(value)}` : formatLargeNumber(value)) : 'N/A'}+ </td>+ );+ })}+ </tr>+ );+ })}+ </tbody>+ </table>+ </div>)}</div>- </div>- {/* Cash Flow */}- <div style={{- backgroundColor: COLORS.PANEL_BG,- border: `1px solid ${COLORS.BORDER}`,- padding: '8px',- }}>- <div style={{ color: COLORS.CYAN, fontSize: `${fontSize + 2}px`, fontWeight: 'bold', marginBottom: '8px', borderBottom: `1px solid ${COLORS.BORDER}`, paddingBottom: '4px' }}>- CASH FLOW STATEMENT (Latest)- </div>- <div style={{ fontSize: `${fontSize}px`, maxHeight: '500px', overflow: 'auto' }} className="custom-scrollbar">- {Object.keys(financials.cash_flow).length > 0 ? (- <>- {Object.entries(Object.values(financials.cash_flow)[0] || {}).map(([metric, _], idx) => {- const latestPeriod = Object.keys(financials.cash_flow)[0];- const value = financials.cash_flow[latestPeriod][metric];- return (- <div key={idx} style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '6px', paddingBottom: '6px', borderBottom: `1px solid rgba(255,255,255,0.05)` }}>- <span style={{ color: COLORS.GRAY, fontSize: `${fontSize - 1}px`, maxWidth: '60%' }}>{metric}:</span>- <span style={{ color: COLORS.CYAN, fontSize: `${fontSize}px` }}>{formatLargeNumber(value)}</span>- </div>- );- })}- </>- ) : (- <div style={{ color: COLORS.GRAY, textAlign: 'center', padding: '20px', fontSize: `${fontSize}px` }}>No data available</div>- )}+ {/* Detailed Financial Statements */}+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '8px' }}>+ {/* Income Statement */}+ <div style={{+ backgroundColor: COLORS.PANEL_BG,+ border: `1px solid ${COLORS.BORDER}`,+ padding: '8px',+ }}>+ <div style={{ color: COLORS.GREEN, fontSize: `${fontSize + 2}px`, fontWeight: 'bold', marginBottom: '8px', borderBottom: `1px solid ${COLORS.BORDER}`, paddingBottom: '4px' }}>+ INCOME STATEMENT (Latest)+ </div>+ <div style={{ fontSize: `${fontSize}px`, maxHeight: '500px', overflow: 'auto' }} className="custom-scrollbar">+ {Object.keys(financials.income_statement).length > 0 ? (+ <>+ {Object.entries(Object.values(financials.income_statement)[0] || {}).map(([metric, _], idx) => {+ const latestPeriod = Object.keys(financials.income_statement)[0];+ const value = financials.income_statement[latestPeriod][metric];+ return (+ <div key={idx} style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '6px', paddingBottom: '6px', borderBottom: `1px solid rgba(255,255,255,0.05)` }}>+ <span style={{ color: COLORS.GRAY, fontSize: `${fontSize - 1}px`, maxWidth: '60%' }}>{metric}:</span>+ <span style={{ color: COLORS.CYAN, fontSize: `${fontSize}px` }}>{formatLargeNumber(value)}</span>+ </div>+ );+ })}+ </>+ ) : (+ <div style={{ color: COLORS.GRAY, textAlign: 'center', padding: '20px', fontSize: `${fontSize}px` }}>No data available</div>+ )}+ </div>+ </div>++ {/* Balance Sheet */}+ <div style={{+ backgroundColor: COLORS.PANEL_BG,+ border: `1px solid ${COLORS.BORDER}`,+ padding: '8px',+ }}>+ <div style={{ color: COLORS.YELLOW, fontSize: `${fontSize + 2}px`, fontWeight: 'bold', marginBottom: '8px', borderBottom: `1px solid ${COLORS.BORDER}`, paddingBottom: '4px' }}>+ BALANCE SHEET (Latest)+ </div>+ <div style={{ fontSize: `${fontSize}px`, maxHeight: '500px', overflow: 'auto' }} className="custom-scrollbar">+ {Object.keys(financials.balance_sheet).length > 0 ? (+ <>+ {Object.entries(Object.values(financials.balance_sheet)[0] || {}).map(([metric, _], idx) => {+ const latestPeriod = Object.keys(financials.balance_sheet)[0];+ const value = financials.balance_sheet[latestPeriod][metric];+ return (+ <div key={idx} style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '6px', paddingBottom: '6px', borderBottom: `1px solid rgba(255,255,255,0.05)` }}>+ <span style={{ color: COLORS.GRAY, fontSize: `${fontSize - 1}px`, maxWidth: '60%' }}>{metric}:</span>+ <span style={{ color: COLORS.CYAN, fontSize: `${fontSize}px` }}>{formatLargeNumber(value)}</span>+ </div>+ );+ })}+ </>+ ) : (+ <div style={{ color: COLORS.GRAY, textAlign: 'center', padding: '20px', fontSize: `${fontSize}px` }}>No data available</div>+ )}+ </div>+ </div>++ {/* Cash Flow */}+ <div style={{+ backgroundColor: COLORS.PANEL_BG,+ border: `1px solid ${COLORS.BORDER}`,+ padding: '8px',+ }}>+ <div style={{ color: COLORS.CYAN, fontSize: `${fontSize + 2}px`, fontWeight: 'bold', marginBottom: '8px', borderBottom: `1px solid ${COLORS.BORDER}`, paddingBottom: '4px' }}>+ CASH FLOW STATEMENT (Latest)+ </div>+ <div style={{ fontSize: `${fontSize}px`, maxHeight: '500px', overflow: 'auto' }} className="custom-scrollbar">+ {Object.keys(financials.cash_flow).length > 0 ? (+ <>+ {Object.entries(Object.values(financials.cash_flow)[0] || {}).map(([metric, _], idx) => {+ const latestPeriod = Object.keys(financials.cash_flow)[0];+ const value = financials.cash_flow[latestPeriod][metric];+ return (+ <div key={idx} style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '6px', paddingBottom: '6px', borderBottom: `1px solid rgba(255,255,255,0.05)` }}>+ <span style={{ color: COLORS.GRAY, fontSize: `${fontSize - 1}px`, maxWidth: '60%' }}>{metric}:</span>+ <span style={{ color: COLORS.CYAN, fontSize: `${fontSize}px` }}>{formatLargeNumber(value)}</span>+ </div>+ );+ })}+ </>+ ) : (+ <div style={{ color: COLORS.GRAY, textAlign: 'center', padding: '20px', fontSize: `${fontSize}px` }}>No data available</div>+ )}+ </div>+ </div></div></div>- </div>- </div>)}</div>)}diff --git a/fincept-terminal-desktop/src/components/tabs/ExcelTab.tsx b/fincept-terminal-desktop/src/components/tabs/ExcelTab.tsxindex 5c0a18c92..cad432136 100644--- a/fincept-terminal-desktop/src/components/tabs/ExcelTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/ExcelTab.tsx@@ -8,6 +8,7 @@ import { open, save } from '@tauri-apps/plugin-dialog';import { readFile as tauriReadFile, writeFile as tauriWriteFile } from '@tauri-apps/plugin-fs';import { excelService, ExcelFile, ExcelSnapshot } from '@/services/excelService';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';interface SheetData {name: string;@@ -15,6 +16,7 @@ interface SheetData {}const ExcelTab: React.FC = () => {+ const { t } = useTranslation('excel');const containerRef = useRef<HTMLDivElement>(null);const hotInstanceRef = useRef<Handsontable | null>(null);const [sheets, setSheets] = useState<SheetData[]>([@@ -356,7 +358,7 @@ const ExcelTab: React.FC = () => {marginRight: '12px'}}><FileSpreadsheet size={16} />- <span>EXCEL WORKBOOK</span>+ <span>{t('title')}</span></div><button@@ -377,7 +379,7 @@ const ExcelTab: React.FC = () => {onMouseLeave={(e) => e.currentTarget.style.backgroundColor = '#404040'}><Upload size={14} />- Import+ {t('toolbar.import')}</button><button@@ -398,7 +400,7 @@ const ExcelTab: React.FC = () => {onMouseLeave={(e) => e.currentTarget.style.backgroundColor = '#404040'}><Download size={14} />- Export+ {t('toolbar.export')}</button><div style={{ width: '1px', height: '20px', backgroundColor: '#525252' }}></div>@@ -421,7 +423,7 @@ const ExcelTab: React.FC = () => {onMouseLeave={(e) => e.currentTarget.style.backgroundColor = '#404040'}><Save size={14} />- Save Sheet+ {t('toolbar.save')}</button><div style={{ width: '1px', height: '20px', backgroundColor: '#525252' }}></div>@@ -444,7 +446,7 @@ const ExcelTab: React.FC = () => {onMouseLeave={(e) => { if (!showHistory) e.currentTarget.style.backgroundColor = '#404040' }}><FolderOpen size={14} />- History+ {t('toolbar.history')}</button><button@@ -466,7 +468,7 @@ const ExcelTab: React.FC = () => {title="Create Restore Point"><Camera size={14} />- Snapshot+ {t('toolbar.snapshot')}</button><button@@ -488,7 +490,7 @@ const ExcelTab: React.FC = () => {title="View and restore from saved snapshots - rollback to any previous state"><RotateCcw size={14} />- Restore+ {t('toolbar.revert')}</button><div style={{ flex: 1 }}></div>diff --git a/fincept-terminal-desktop/src/components/tabs/ForumTab.tsx b/fincept-terminal-desktop/src/components/tabs/ForumTab.tsxindex 6c2bef425..50a3bb268 100644--- a/fincept-terminal-desktop/src/components/tabs/ForumTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/ForumTab.tsx@@ -4,6 +4,7 @@ import { useAuth } from '../../contexts/AuthContext';import { ForumApiService, ForumPost as APIForumPost, ForumCategory, ForumStats, ForumComment as APIForumComment } from '../../services/forumApi';import { sqliteService } from '../../services/sqliteService';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';interface ForumPost {id: string;@@ -42,6 +43,7 @@ interface ForumUser {const ForumTab: React.FC = () => {const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();+ const { t } = useTranslation('forum');const { session } = useAuth();const [currentTime, setCurrentTime] = useState(new Date());const [activeCategory, setActiveCategory] = useState('ALL');@@ -675,655 +677,655 @@ const ForumTab: React.FC = () => {const CreatePostModal = React.useMemo(() => {if (!showCreatePost) return null;return (- <div style={{- position: 'fixed',- top: 0,- left: 0,- right: 0,- bottom: 0,- backgroundColor: 'rgba(0,0,0,0.85)',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- zIndex: 1000- }}><div style={{- backgroundColor: BLOOMBERG_PANEL_BG,- border: `2px solid ${BLOOMBERG_ORANGE}`,- padding: '16px',- width: '600px',- maxHeight: '80vh',- overflow: 'auto'+ position: 'fixed',+ top: 0,+ left: 0,+ right: 0,+ bottom: 0,+ backgroundColor: 'rgba(0,0,0,0.85)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ zIndex: 1000}}>- <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold', marginBottom: '12px' }}>- CREATE NEW POST- </div>- <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>+ <div style={{+ backgroundColor: BLOOMBERG_PANEL_BG,+ border: `2px solid ${BLOOMBERG_ORANGE}`,+ padding: '16px',+ width: '600px',+ maxHeight: '80vh',+ overflow: 'auto'+ }}>+ <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold', marginBottom: '12px' }}>+ CREATE NEW POST+ </div>+ <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>- <div style={{ marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>- Title: <span style={{ color: newPostTitle.length < 5 ? BLOOMBERG_RED : BLOOMBERG_GREEN }}>- ({newPostTitle.length}/500 chars - min 5)- </span>+ <div style={{ marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>+ Title: <span style={{ color: newPostTitle.length < 5 ? BLOOMBERG_RED : BLOOMBERG_GREEN }}>+ ({newPostTitle.length}/500 chars - min 5)+ </span>+ </div>+ <input+ type="text"+ value={newPostTitle}+ onChange={(e) => setNewPostTitle(e.target.value)}+ maxLength={500}+ style={{+ width: '100%',+ backgroundColor: BLOOMBERG_DARK_BG,+ border: `1px solid ${newPostTitle.length > 0 && newPostTitle.length < 5 ? BLOOMBERG_RED : BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '6px',+ fontSize: '12px',+ fontFamily: 'Consolas, monospace'+ }}+ placeholder="Enter post title (minimum 5 characters)..."+ /></div>- <input- type="text"- value={newPostTitle}- onChange={(e) => setNewPostTitle(e.target.value)}- maxLength={500}- style={{- width: '100%',- backgroundColor: BLOOMBERG_DARK_BG,- border: `1px solid ${newPostTitle.length > 0 && newPostTitle.length < 5 ? BLOOMBERG_RED : BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '6px',- fontSize: '12px',- fontFamily: 'Consolas, monospace'- }}- placeholder="Enter post title (minimum 5 characters)..."- />- </div>- <div style={{ marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>- Content: <span style={{ color: newPostContent.length < 10 ? BLOOMBERG_RED : BLOOMBERG_GREEN }}>- ({newPostContent.length}/10000 chars - min 10)- </span>+ <div style={{ marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>+ Content: <span style={{ color: newPostContent.length < 10 ? BLOOMBERG_RED : BLOOMBERG_GREEN }}>+ ({newPostContent.length}/10000 chars - min 10)+ </span>+ </div>+ <textarea+ value={newPostContent}+ onChange={(e) => setNewPostContent(e.target.value)}+ maxLength={10000}+ rows={10}+ style={{+ width: '100%',+ backgroundColor: BLOOMBERG_DARK_BG,+ border: `1px solid ${newPostContent.length > 0 && newPostContent.length < 10 ? BLOOMBERG_RED : BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '6px',+ fontSize: '11px',+ fontFamily: 'Consolas, monospace',+ resize: 'vertical'+ }}+ placeholder="Enter post content (minimum 10 characters)... Use #tags for topics"+ /></div>- <textarea- value={newPostContent}- onChange={(e) => setNewPostContent(e.target.value)}- maxLength={10000}- rows={10}- style={{- width: '100%',- backgroundColor: BLOOMBERG_DARK_BG,- border: `1px solid ${newPostContent.length > 0 && newPostContent.length < 10 ? BLOOMBERG_RED : BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '6px',- fontSize: '11px',- fontFamily: 'Consolas, monospace',- resize: 'vertical'- }}- placeholder="Enter post content (minimum 10 characters)... Use #tags for topics"- />- </div>- <div style={{ display: 'flex', gap: '8px', justifyContent: 'flex-end' }}>- <button- onClick={() => setShowCreatePost(false)}- style={{- backgroundColor: BLOOMBERG_GRAY,- color: BLOOMBERG_DARK_BG,- border: 'none',- padding: '6px 16px',- fontSize: '11px',- fontWeight: 'bold',- cursor: 'pointer'- }}- >- CANCEL- </button>- <button- onClick={handleCreatePost}- style={{- backgroundColor: BLOOMBERG_ORANGE,- color: BLOOMBERG_DARK_BG,- border: 'none',- padding: '6px 16px',- fontSize: '11px',- fontWeight: 'bold',- cursor: 'pointer'- }}- >- CREATE POST- </button>+ <div style={{ display: 'flex', gap: '8px', justifyContent: 'flex-end' }}>+ <button+ onClick={() => setShowCreatePost(false)}+ style={{+ backgroundColor: BLOOMBERG_GRAY,+ color: BLOOMBERG_DARK_BG,+ border: 'none',+ padding: '6px 16px',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ CANCEL+ </button>+ <button+ onClick={handleCreatePost}+ style={{+ backgroundColor: BLOOMBERG_ORANGE,+ color: BLOOMBERG_DARK_BG,+ border: 'none',+ padding: '6px 16px',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ CREATE POST+ </button>+ </div></div></div>- </div>);}, [showCreatePost, newPostTitle, newPostContent, handleCreatePost, BLOOMBERG_ORANGE, BLOOMBERG_GRAY, BLOOMBERG_DARK_BG, BLOOMBERG_WHITE, BLOOMBERG_RED, BLOOMBERG_GREEN, BLOOMBERG_PANEL_BG]);const PostDetailModal = React.useMemo(() => {if (!showPostDetail || !selectedPost) return null;return (- <div style={{- position: 'fixed',- top: 0,- left: 0,- right: 0,- bottom: 0,- backgroundColor: 'rgba(0,0,0,0.85)',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- zIndex: 1000- }}><div style={{- backgroundColor: BLOOMBERG_PANEL_BG,- border: `2px solid ${BLOOMBERG_ORANGE}`,- padding: '16px',- width: '800px',- maxHeight: '80vh',- overflow: 'auto'+ position: 'fixed',+ top: 0,+ left: 0,+ right: 0,+ bottom: 0,+ backgroundColor: 'rgba(0,0,0,0.85)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ zIndex: 1000}}>- {selectedPost && (- <>- <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold' }}>- POST DETAILS- </div>- <button- onClick={() => setShowPostDetail(false)}- style={{- backgroundColor: 'transparent',- border: `1px solid ${BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '2px 8px',- fontSize: '10px',- cursor: 'pointer'- }}- >- CLOSE [X]- </button>- </div>- <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>-- {/* Post content */}- <div style={{ marginBottom: '16px' }}>- <div style={{ display: 'flex', gap: '4px', alignItems: 'center', marginBottom: '8px', fontSize: '10px' }}>- <span style={{ color: BLOOMBERG_CYAN }}>@{selectedPost.author}</span>- <span style={{ color: BLOOMBERG_GRAY }}>•</span>- <span style={{ color: BLOOMBERG_BLUE }}>[{selectedPost.category}]</span>- <span style={{ color: getSentimentColor(selectedPost.sentiment) }}>{selectedPost.sentiment}</span>- </div>-- <div style={{ color: BLOOMBERG_WHITE, fontSize: '13px', fontWeight: 'bold', marginBottom: '8px' }}>- {selectedPost.title}- </div>-- <div style={{ color: BLOOMBERG_GRAY, fontSize: '11px', lineHeight: '1.5', marginBottom: '8px', whiteSpace: 'pre-wrap' }}>- {selectedPost.content}- </div>-- <div style={{ display: 'flex', gap: '12px', fontSize: '10px', marginBottom: '8px' }}>- <button- onClick={() => handleVotePost(selectedPost.id, 'up')}- style={{- backgroundColor: 'transparent',- border: `1px solid ${BLOOMBERG_GREEN}`,- color: BLOOMBERG_GREEN,- padding: '4px 12px',- fontSize: '10px',- cursor: 'pointer'- }}- >- ▲ UPVOTE ({selectedPost.likes})- </button>+ <div style={{+ backgroundColor: BLOOMBERG_PANEL_BG,+ border: `2px solid ${BLOOMBERG_ORANGE}`,+ padding: '16px',+ width: '800px',+ maxHeight: '80vh',+ overflow: 'auto'+ }}>+ {selectedPost && (+ <>+ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold' }}>+ POST DETAILS+ </div><button- onClick={() => handleVotePost(selectedPost.id, 'down')}+ onClick={() => setShowPostDetail(false)}style={{backgroundColor: 'transparent',- border: `1px solid ${BLOOMBERG_RED}`,- color: BLOOMBERG_RED,- padding: '4px 12px',+ border: `1px solid ${BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '2px 8px',fontSize: '10px',cursor: 'pointer'}}>- ▼ DOWNVOTE ({selectedPost.dislikes})+ CLOSE [X]</button></div>- </div>+ <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>- <div style={{ borderTop: `1px solid ${BLOOMBERG_GRAY}`, paddingTop: '12px', marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_YELLOW, fontSize: '12px', fontWeight: 'bold', marginBottom: '8px' }}>- COMMENTS ({postComments.length})- </div>+ {/* Post content */}+ <div style={{ marginBottom: '16px' }}>+ <div style={{ display: 'flex', gap: '4px', alignItems: 'center', marginBottom: '8px', fontSize: '10px' }}>+ <span style={{ color: BLOOMBERG_CYAN }}>@{selectedPost.author}</span>+ <span style={{ color: BLOOMBERG_GRAY }}>•</span>+ <span style={{ color: BLOOMBERG_BLUE }}>[{selectedPost.category}]</span>+ <span style={{ color: getSentimentColor(selectedPost.sentiment) }}>{selectedPost.sentiment}</span>+ </div>- {/* Add comment form */}- <div style={{ marginBottom: '12px' }}>- <textarea- value={newComment}- onChange={(e) => setNewComment(e.target.value)}- maxLength={2000}- rows={3}- style={{- width: '100%',- backgroundColor: BLOOMBERG_DARK_BG,- border: `1px solid ${BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '6px',- fontSize: '11px',- fontFamily: 'Consolas, monospace',- marginBottom: '4px'- }}- placeholder="Add a comment..."- />- <button- onClick={handleAddComment}- style={{- backgroundColor: BLOOMBERG_ORANGE,- color: BLOOMBERG_DARK_BG,- border: 'none',- padding: '4px 12px',- fontSize: '10px',- fontWeight: 'bold',- cursor: 'pointer'- }}- >- POST COMMENT- </button>+ <div style={{ color: BLOOMBERG_WHITE, fontSize: '13px', fontWeight: 'bold', marginBottom: '8px' }}>+ {selectedPost.title}+ </div>++ <div style={{ color: BLOOMBERG_GRAY, fontSize: '11px', lineHeight: '1.5', marginBottom: '8px', whiteSpace: 'pre-wrap' }}>+ {selectedPost.content}+ </div>++ <div style={{ display: 'flex', gap: '12px', fontSize: '10px', marginBottom: '8px' }}>+ <button+ onClick={() => handleVotePost(selectedPost.id, 'up')}+ style={{+ backgroundColor: 'transparent',+ border: `1px solid ${BLOOMBERG_GREEN}`,+ color: BLOOMBERG_GREEN,+ padding: '4px 12px',+ fontSize: '10px',+ cursor: 'pointer'+ }}+ >+ ▲ UPVOTE ({selectedPost.likes})+ </button>+ <button+ onClick={() => handleVotePost(selectedPost.id, 'down')}+ style={{+ backgroundColor: 'transparent',+ border: `1px solid ${BLOOMBERG_RED}`,+ color: BLOOMBERG_RED,+ padding: '4px 12px',+ fontSize: '10px',+ cursor: 'pointer'+ }}+ >+ ▼ DOWNVOTE ({selectedPost.dislikes})+ </button>+ </div></div>- {/* Comments list */}- {postComments.map((comment, index) => (- <div key={comment.id} style={{- backgroundColor: index % 2 === 0 ? 'rgba(255,255,255,0.02)' : 'transparent',- padding: '8px',- marginBottom: '6px',- borderLeft: `2px solid ${BLOOMBERG_BLUE}`- }}>- <div style={{ display: 'flex', gap: '4px', alignItems: 'center', marginBottom: '4px', fontSize: '9px' }}>- <span style={{ color: BLOOMBERG_CYAN }}>@{comment.author}</span>- <span style={{ color: BLOOMBERG_GRAY }}>•</span>- <span style={{ color: BLOOMBERG_GRAY }}>{comment.time}</span>- </div>+ <div style={{ borderTop: `1px solid ${BLOOMBERG_GRAY}`, paddingTop: '12px', marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_YELLOW, fontSize: '12px', fontWeight: 'bold', marginBottom: '8px' }}>+ COMMENTS ({postComments.length})+ </div>- <div style={{ color: BLOOMBERG_WHITE, fontSize: '10px', marginBottom: '4px', whiteSpace: 'pre-wrap' }}>- {comment.content}- </div>+ {/* Add comment form */}+ <div style={{ marginBottom: '12px' }}>+ <textarea+ value={newComment}+ onChange={(e) => setNewComment(e.target.value)}+ maxLength={2000}+ rows={3}+ style={{+ width: '100%',+ backgroundColor: BLOOMBERG_DARK_BG,+ border: `1px solid ${BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '6px',+ fontSize: '11px',+ fontFamily: 'Consolas, monospace',+ marginBottom: '4px'+ }}+ placeholder="Add a comment..."+ />+ <button+ onClick={handleAddComment}+ style={{+ backgroundColor: BLOOMBERG_ORANGE,+ color: BLOOMBERG_DARK_BG,+ border: 'none',+ padding: '4px 12px',+ fontSize: '10px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ POST COMMENT+ </button>+ </div>- <div style={{ display: 'flex', gap: '8px', fontSize: '9px' }}>- <button- onClick={() => handleVoteComment(comment.id, 'up')}- style={{- backgroundColor: 'transparent',- border: 'none',- color: BLOOMBERG_GREEN,- cursor: 'pointer',- fontSize: '9px'- }}- >- ▲ {comment.likes}- </button>- <button- onClick={() => handleVoteComment(comment.id, 'down')}- style={{- backgroundColor: 'transparent',- border: 'none',- color: BLOOMBERG_RED,- cursor: 'pointer',- fontSize: '9px'- }}- >- ▼ {comment.dislikes}- </button>+ {/* Comments list */}+ {postComments.map((comment, index) => (+ <div key={comment.id} style={{+ backgroundColor: index % 2 === 0 ? 'rgba(255,255,255,0.02)' : 'transparent',+ padding: '8px',+ marginBottom: '6px',+ borderLeft: `2px solid ${BLOOMBERG_BLUE}`+ }}>+ <div style={{ display: 'flex', gap: '4px', alignItems: 'center', marginBottom: '4px', fontSize: '9px' }}>+ <span style={{ color: BLOOMBERG_CYAN }}>@{comment.author}</span>+ <span style={{ color: BLOOMBERG_GRAY }}>•</span>+ <span style={{ color: BLOOMBERG_GRAY }}>{comment.time}</span>+ </div>++ <div style={{ color: BLOOMBERG_WHITE, fontSize: '10px', marginBottom: '4px', whiteSpace: 'pre-wrap' }}>+ {comment.content}+ </div>++ <div style={{ display: 'flex', gap: '8px', fontSize: '9px' }}>+ <button+ onClick={() => handleVoteComment(comment.id, 'up')}+ style={{+ backgroundColor: 'transparent',+ border: 'none',+ color: BLOOMBERG_GREEN,+ cursor: 'pointer',+ fontSize: '9px'+ }}+ >+ ▲ {comment.likes}+ </button>+ <button+ onClick={() => handleVoteComment(comment.id, 'down')}+ style={{+ backgroundColor: 'transparent',+ border: 'none',+ color: BLOOMBERG_RED,+ cursor: 'pointer',+ fontSize: '9px'+ }}+ >+ ▼ {comment.dislikes}+ </button>+ </div></div>- </div>- ))}- </div>- </>- )}+ ))}+ </div>+ </>+ )}+ </div></div>- </div>);}, [showPostDetail, selectedPost, postComments, newComment, handleAddComment, handleVotePost, handleVoteComment, getSentimentColor, BLOOMBERG_ORANGE, BLOOMBERG_GRAY, BLOOMBERG_WHITE, BLOOMBERG_DARK_BG, BLOOMBERG_PANEL_BG, BLOOMBERG_CYAN, BLOOMBERG_BLUE, BLOOMBERG_GREEN, BLOOMBERG_RED, BLOOMBERG_YELLOW]);const SearchModal = React.useMemo(() => {if (!showSearch) return null;return (- <div style={{- position: 'fixed',- top: 0,- left: 0,- right: 0,- bottom: 0,- backgroundColor: 'rgba(0,0,0,0.85)',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- zIndex: 1000- }}><div style={{- backgroundColor: BLOOMBERG_PANEL_BG,- border: `2px solid ${BLOOMBERG_ORANGE}`,- padding: '16px',- width: '700px',- maxHeight: '80vh',- overflow: 'auto'+ position: 'fixed',+ top: 0,+ left: 0,+ right: 0,+ bottom: 0,+ backgroundColor: 'rgba(0,0,0,0.85)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ zIndex: 1000}}>- <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold', marginBottom: '12px' }}>- SEARCH FORUM- </div>- <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>-- <div style={{ display: 'flex', gap: '8px', marginBottom: '16px' }}>- <input- type="text"- value={searchQuery}- onChange={(e) => setSearchQuery(e.target.value)}- onKeyPress={(e) => e.key === 'Enter' && handleSearch()}- style={{- flex: 1,- backgroundColor: BLOOMBERG_DARK_BG,- border: `1px solid ${BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '8px',- fontSize: '12px',- fontFamily: 'Consolas, monospace'- }}- placeholder="Search posts and comments..."- />- <button- onClick={handleSearch}- style={{- backgroundColor: BLOOMBERG_ORANGE,- color: BLOOMBERG_DARK_BG,- border: 'none',- padding: '8px 16px',- fontSize: '11px',- fontWeight: 'bold',- cursor: 'pointer'- }}- >- SEARCH- </button>- <button- onClick={() => {- setShowSearch(false);- setSearchResults([]);- setSearchQuery('');- }}- style={{- backgroundColor: BLOOMBERG_GRAY,- color: BLOOMBERG_DARK_BG,- border: 'none',- padding: '8px 16px',- fontSize: '11px',- fontWeight: 'bold',- cursor: 'pointer'- }}- >- CLOSE- </button>- </div>-- {isLoading && (- <div style={{ color: BLOOMBERG_YELLOW, textAlign: 'center', padding: '20px' }}>- SEARCHING...+ <div style={{+ backgroundColor: BLOOMBERG_PANEL_BG,+ border: `2px solid ${BLOOMBERG_ORANGE}`,+ padding: '16px',+ width: '700px',+ maxHeight: '80vh',+ overflow: 'auto'+ }}>+ <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold', marginBottom: '12px' }}>+ SEARCH FORUM+ </div>+ <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>++ <div style={{ display: 'flex', gap: '8px', marginBottom: '16px' }}>+ <input+ type="text"+ value={searchQuery}+ onChange={(e) => setSearchQuery(e.target.value)}+ onKeyPress={(e) => e.key === 'Enter' && handleSearch()}+ style={{+ flex: 1,+ backgroundColor: BLOOMBERG_DARK_BG,+ border: `1px solid ${BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '8px',+ fontSize: '12px',+ fontFamily: 'Consolas, monospace'+ }}+ placeholder="Search posts and comments..."+ />+ <button+ onClick={handleSearch}+ style={{+ backgroundColor: BLOOMBERG_ORANGE,+ color: BLOOMBERG_DARK_BG,+ border: 'none',+ padding: '8px 16px',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ SEARCH+ </button>+ <button+ onClick={() => {+ setShowSearch(false);+ setSearchResults([]);+ setSearchQuery('');+ }}+ style={{+ backgroundColor: BLOOMBERG_GRAY,+ color: BLOOMBERG_DARK_BG,+ border: 'none',+ padding: '8px 16px',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ CLOSE+ </button></div>- )}- {searchResults.length > 0 && (- <div>- <div style={{ color: BLOOMBERG_YELLOW, fontSize: '11px', marginBottom: '8px' }}>- FOUND {searchResults.length} RESULTS+ {isLoading && (+ <div style={{ color: BLOOMBERG_YELLOW, textAlign: 'center', padding: '20px' }}>+ SEARCHING...</div>- {searchResults.map((post, index) => (- <div- key={post.id}- onClick={() => {- setShowSearch(false);- handleViewPost(post);- }}- style={{- backgroundColor: index % 2 === 0 ? 'rgba(255,255,255,0.02)' : 'transparent',- padding: '8px',- marginBottom: '6px',- borderLeft: `3px solid ${getPriorityColor(post.priority)}`,- cursor: 'pointer'- }}- >- <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', fontWeight: 'bold', marginBottom: '4px' }}>- {post.title}- </div>- <div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', marginBottom: '4px' }}>- {post.content.substring(0, 150)}...- </div>- <div style={{ display: 'flex', gap: '8px', fontSize: '9px' }}>- <span style={{ color: BLOOMBERG_CYAN }}>@{post.author}</span>- <span style={{ color: BLOOMBERG_BLUE }}>[{post.category}]</span>- <span style={{ color: BLOOMBERG_GREEN }}>👍 {post.likes}</span>- </div>+ )}++ {searchResults.length > 0 && (+ <div>+ <div style={{ color: BLOOMBERG_YELLOW, fontSize: '11px', marginBottom: '8px' }}>+ FOUND {searchResults.length} RESULTS</div>- ))}- </div>- )}+ {searchResults.map((post, index) => (+ <div+ key={post.id}+ onClick={() => {+ setShowSearch(false);+ handleViewPost(post);+ }}+ style={{+ backgroundColor: index % 2 === 0 ? 'rgba(255,255,255,0.02)' : 'transparent',+ padding: '8px',+ marginBottom: '6px',+ borderLeft: `3px solid ${getPriorityColor(post.priority)}`,+ cursor: 'pointer'+ }}+ >+ <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', fontWeight: 'bold', marginBottom: '4px' }}>+ {post.title}+ </div>+ <div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', marginBottom: '4px' }}>+ {post.content.substring(0, 150)}...+ </div>+ <div style={{ display: 'flex', gap: '8px', fontSize: '9px' }}>+ <span style={{ color: BLOOMBERG_CYAN }}>@{post.author}</span>+ <span style={{ color: BLOOMBERG_BLUE }}>[{post.category}]</span>+ <span style={{ color: BLOOMBERG_GREEN }}>👍 {post.likes}</span>+ </div>+ </div>+ ))}+ </div>+ )}+ </div></div>- </div>);}, [showSearch, searchQuery, searchResults, isLoading, handleSearch, handleViewPost, getPriorityColor, BLOOMBERG_ORANGE, BLOOMBERG_GRAY, BLOOMBERG_DARK_BG, BLOOMBERG_WHITE, BLOOMBERG_PANEL_BG, BLOOMBERG_YELLOW, BLOOMBERG_CYAN, BLOOMBERG_BLUE, BLOOMBERG_GREEN]);const ProfileModal = React.useMemo(() => {if (!showProfile || !userProfile) return null;return (- <div style={{- position: 'fixed',- top: 0,- left: 0,- right: 0,- bottom: 0,- backgroundColor: 'rgba(0,0,0,0.85)',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- zIndex: 1000- }}><div style={{- backgroundColor: BLOOMBERG_PANEL_BG,- border: `2px solid ${BLOOMBERG_ORANGE}`,- padding: '16px',- width: '600px',- maxHeight: '80vh',- overflow: 'auto'+ position: 'fixed',+ top: 0,+ left: 0,+ right: 0,+ bottom: 0,+ backgroundColor: 'rgba(0,0,0,0.85)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ zIndex: 1000}}>- {userProfile && (- <>- <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold' }}>- FORUM PROFILE- </div>- <button- onClick={() => {- setShowProfile(false);- setUserProfile(null);- }}- style={{- backgroundColor: 'transparent',- border: `1px solid ${BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '2px 8px',- fontSize: '10px',- cursor: 'pointer'- }}- >- CLOSE [X]- </button>- </div>- <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>-- <div style={{ marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_CYAN, fontSize: '16px', fontWeight: 'bold', marginBottom: '8px' }}>- @{userProfile.username}- </div>- <div style={{ color: BLOOMBERG_WHITE, fontSize: '12px', marginBottom: '4px' }}>- {userProfile.display_name || 'No display name set'}- </div>- <div style={{ color: BLOOMBERG_GRAY, fontSize: '11px', marginBottom: '12px', fontStyle: 'italic' }}>- {userProfile.bio || 'No bio available'}- </div>-- <div style={{ display: 'flex', gap: '16px', fontSize: '11px', marginBottom: '12px' }}>- <div>- <span style={{ color: BLOOMBERG_GRAY }}>Posts: </span>- <span style={{ color: BLOOMBERG_WHITE }}>{userProfile.post_count || 0}</span>+ <div style={{+ backgroundColor: BLOOMBERG_PANEL_BG,+ border: `2px solid ${BLOOMBERG_ORANGE}`,+ padding: '16px',+ width: '600px',+ maxHeight: '80vh',+ overflow: 'auto'+ }}>+ {userProfile && (+ <>+ <div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold' }}>+ FORUM PROFILE</div>- <div>- <span style={{ color: BLOOMBERG_GRAY }}>Comments: </span>- <span style={{ color: BLOOMBERG_WHITE }}>{userProfile.comment_count || 0}</span>- </div>- <div>- <span style={{ color: BLOOMBERG_GRAY }}>Reputation: </span>- <span style={{ color: BLOOMBERG_GREEN }}>{userProfile.reputation || 0}</span>- </div>- </div>-- {userProfile.signature && (- <div style={{- backgroundColor: 'rgba(255,255,255,0.02)',- padding: '8px',- marginBottom: '12px',- borderLeft: `2px solid ${BLOOMBERG_YELLOW}`- }}>- <div style={{ color: BLOOMBERG_YELLOW, fontSize: '10px', marginBottom: '4px' }}>SIGNATURE:</div>- <div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', fontStyle: 'italic' }}>- {userProfile.signature}- </div>- </div>- )}-- {!selectedUsername && (<buttononClick={() => {setShowProfile(false);- setShowEditProfile(true);+ setUserProfile(null);}}style={{- backgroundColor: BLOOMBERG_ORANGE,- color: BLOOMBERG_DARK_BG,- border: 'none',- padding: '6px 16px',- fontSize: '11px',- fontWeight: 'bold',+ backgroundColor: 'transparent',+ border: `1px solid ${BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '2px 8px',+ fontSize: '10px',cursor: 'pointer'}}>- EDIT PROFILE+ CLOSE [X]</button>- )}- </div>- </>- )}+ </div>+ <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>++ <div style={{ marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_CYAN, fontSize: '16px', fontWeight: 'bold', marginBottom: '8px' }}>+ @{userProfile.username}+ </div>+ <div style={{ color: BLOOMBERG_WHITE, fontSize: '12px', marginBottom: '4px' }}>+ {userProfile.display_name || 'No display name set'}+ </div>+ <div style={{ color: BLOOMBERG_GRAY, fontSize: '11px', marginBottom: '12px', fontStyle: 'italic' }}>+ {userProfile.bio || 'No bio available'}+ </div>++ <div style={{ display: 'flex', gap: '16px', fontSize: '11px', marginBottom: '12px' }}>+ <div>+ <span style={{ color: BLOOMBERG_GRAY }}>Posts: </span>+ <span style={{ color: BLOOMBERG_WHITE }}>{userProfile.post_count || 0}</span>+ </div>+ <div>+ <span style={{ color: BLOOMBERG_GRAY }}>Comments: </span>+ <span style={{ color: BLOOMBERG_WHITE }}>{userProfile.comment_count || 0}</span>+ </div>+ <div>+ <span style={{ color: BLOOMBERG_GRAY }}>Reputation: </span>+ <span style={{ color: BLOOMBERG_GREEN }}>{userProfile.reputation || 0}</span>+ </div>+ </div>++ {userProfile.signature && (+ <div style={{+ backgroundColor: 'rgba(255,255,255,0.02)',+ padding: '8px',+ marginBottom: '12px',+ borderLeft: `2px solid ${BLOOMBERG_YELLOW}`+ }}>+ <div style={{ color: BLOOMBERG_YELLOW, fontSize: '10px', marginBottom: '4px' }}>SIGNATURE:</div>+ <div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', fontStyle: 'italic' }}>+ {userProfile.signature}+ </div>+ </div>+ )}++ {!selectedUsername && (+ <button+ onClick={() => {+ setShowProfile(false);+ setShowEditProfile(true);+ }}+ style={{+ backgroundColor: BLOOMBERG_ORANGE,+ color: BLOOMBERG_DARK_BG,+ border: 'none',+ padding: '6px 16px',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ EDIT PROFILE+ </button>+ )}+ </div>+ </>+ )}+ </div></div>- </div>);}, [showProfile, userProfile, selectedUsername, BLOOMBERG_ORANGE, BLOOMBERG_GRAY, BLOOMBERG_WHITE, BLOOMBERG_DARK_BG, BLOOMBERG_PANEL_BG, BLOOMBERG_CYAN, BLOOMBERG_GREEN, BLOOMBERG_YELLOW]);const EditProfileModal = React.useMemo(() => {if (!showEditProfile) return null;return (- <div style={{- position: 'fixed',- top: 0,- left: 0,- right: 0,- bottom: 0,- backgroundColor: 'rgba(0,0,0,0.85)',- display: 'flex',- alignItems: 'center',- justifyContent: 'center',- zIndex: 1000- }}><div style={{- backgroundColor: BLOOMBERG_PANEL_BG,- border: `2px solid ${BLOOMBERG_ORANGE}`,- padding: '16px',- width: '600px',- maxHeight: '80vh',- overflow: 'auto'+ position: 'fixed',+ top: 0,+ left: 0,+ right: 0,+ bottom: 0,+ backgroundColor: 'rgba(0,0,0,0.85)',+ display: 'flex',+ alignItems: 'center',+ justifyContent: 'center',+ zIndex: 1000}}>- <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold', marginBottom: '12px' }}>- EDIT PROFILE- </div>- <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>-- <div style={{ marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>Display Name:</div>- <input- type="text"- value={profileEdit.display_name}- onChange={(e) => setProfileEdit({ ...profileEdit, display_name: e.target.value })}- style={{- width: '100%',- backgroundColor: BLOOMBERG_DARK_BG,- border: `1px solid ${BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '6px',- fontSize: '12px',- fontFamily: 'Consolas, monospace'- }}- />- </div>+ <div style={{+ backgroundColor: BLOOMBERG_PANEL_BG,+ border: `2px solid ${BLOOMBERG_ORANGE}`,+ padding: '16px',+ width: '600px',+ maxHeight: '80vh',+ overflow: 'auto'+ }}>+ <div style={{ color: BLOOMBERG_ORANGE, fontSize: '14px', fontWeight: 'bold', marginBottom: '12px' }}>+ EDIT PROFILE+ </div>+ <div style={{ borderBottom: `1px solid ${BLOOMBERG_GRAY}`, marginBottom: '12px' }}></div>++ <div style={{ marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>Display Name:</div>+ <input+ type="text"+ value={profileEdit.display_name}+ onChange={(e) => setProfileEdit({ ...profileEdit, display_name: e.target.value })}+ style={{+ width: '100%',+ backgroundColor: BLOOMBERG_DARK_BG,+ border: `1px solid ${BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '6px',+ fontSize: '12px',+ fontFamily: 'Consolas, monospace'+ }}+ />+ </div>- <div style={{ marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>Bio:</div>- <textarea- value={profileEdit.bio}- onChange={(e) => setProfileEdit({ ...profileEdit, bio: e.target.value })}- rows={4}- style={{- width: '100%',- backgroundColor: BLOOMBERG_DARK_BG,- border: `1px solid ${BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '6px',- fontSize: '11px',- fontFamily: 'Consolas, monospace'- }}- />- </div>+ <div style={{ marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>Bio:</div>+ <textarea+ value={profileEdit.bio}+ onChange={(e) => setProfileEdit({ ...profileEdit, bio: e.target.value })}+ rows={4}+ style={{+ width: '100%',+ backgroundColor: BLOOMBERG_DARK_BG,+ border: `1px solid ${BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '6px',+ fontSize: '11px',+ fontFamily: 'Consolas, monospace'+ }}+ />+ </div>- <div style={{ marginBottom: '12px' }}>- <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>Signature:</div>- <input- type="text"- value={profileEdit.signature}- onChange={(e) => setProfileEdit({ ...profileEdit, signature: e.target.value })}- style={{- width: '100%',- backgroundColor: BLOOMBERG_DARK_BG,- border: `1px solid ${BLOOMBERG_GRAY}`,- color: BLOOMBERG_WHITE,- padding: '6px',- fontSize: '12px',- fontFamily: 'Consolas, monospace'- }}- />- </div>+ <div style={{ marginBottom: '12px' }}>+ <div style={{ color: BLOOMBERG_WHITE, fontSize: '11px', marginBottom: '4px' }}>Signature:</div>+ <input+ type="text"+ value={profileEdit.signature}+ onChange={(e) => setProfileEdit({ ...profileEdit, signature: e.target.value })}+ style={{+ width: '100%',+ backgroundColor: BLOOMBERG_DARK_BG,+ border: `1px solid ${BLOOMBERG_GRAY}`,+ color: BLOOMBERG_WHITE,+ padding: '6px',+ fontSize: '12px',+ fontFamily: 'Consolas, monospace'+ }}+ />+ </div>- <div style={{ display: 'flex', gap: '8px', justifyContent: 'flex-end' }}>- <button- onClick={() => setShowEditProfile(false)}- style={{- backgroundColor: BLOOMBERG_GRAY,- color: BLOOMBERG_DARK_BG,- border: 'none',- padding: '6px 16px',- fontSize: '11px',- fontWeight: 'bold',- cursor: 'pointer'- }}- >- CANCEL- </button>- <button- onClick={handleUpdateProfile}- style={{- backgroundColor: BLOOMBERG_ORANGE,- color: BLOOMBERG_DARK_BG,- border: 'none',- padding: '6px 16px',- fontSize: '11px',- fontWeight: 'bold',- cursor: 'pointer'- }}- >- SAVE CHANGES- </button>+ <div style={{ display: 'flex', gap: '8px', justifyContent: 'flex-end' }}>+ <button+ onClick={() => setShowEditProfile(false)}+ style={{+ backgroundColor: BLOOMBERG_GRAY,+ color: BLOOMBERG_DARK_BG,+ border: 'none',+ padding: '6px 16px',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ CANCEL+ </button>+ <button+ onClick={handleUpdateProfile}+ style={{+ backgroundColor: BLOOMBERG_ORANGE,+ color: BLOOMBERG_DARK_BG,+ border: 'none',+ padding: '6px 16px',+ fontSize: '11px',+ fontWeight: 'bold',+ cursor: 'pointer'+ }}+ >+ SAVE CHANGES+ </button>+ </div></div></div>- </div>);}, [showEditProfile, profileEdit, handleUpdateProfile, BLOOMBERG_ORANGE, BLOOMBERG_GRAY, BLOOMBERG_DARK_BG, BLOOMBERG_WHITE, BLOOMBERG_PANEL_BG]);@@ -1347,7 +1349,7 @@ const ForumTab: React.FC = () => {}}><div style={{ display: 'flex', alignItems: 'center', gap: '8px', fontSize: '13px', marginBottom: '2px', justifyContent: 'space-between' }}><div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>- <span style={{ color: BLOOMBERG_ORANGE, fontWeight: 'bold' }}>FINCEPT GLOBAL FORUM</span>+ <span style={{ color: BLOOMBERG_ORANGE, fontWeight: 'bold' }}>{t('title')}</span><span style={{ color: BLOOMBERG_WHITE }}>|</span><span style={{ color: BLOOMBERG_GREEN }}>● LIVE</span><span style={{ color: BLOOMBERG_WHITE }}>|</span>@@ -1377,7 +1379,7 @@ const ForumTab: React.FC = () => {</div><div style={{ display: 'flex', alignItems: 'center', gap: '8px', fontSize: '11px' }}>- <span style={{ color: BLOOMBERG_GRAY }}>TRENDING:</span>+ <span style={{ color: BLOOMBERG_GRAY }}>{t('header.trending')}:</span>{trendingTopics.slice(0, 5).map((topic, i) => (<span key={i} style={{ color: i % 2 === 0 ? BLOOMBERG_RED : i % 3 === 0 ? BLOOMBERG_CYAN : BLOOMBERG_PURPLE }}>{topic.topic.replace('#', '').toUpperCase()}diff --git a/fincept-terminal-desktop/src/components/tabs/GeopoliticsTab.tsx b/fincept-terminal-desktop/src/components/tabs/GeopoliticsTab.tsxindex 5870f8ec2..ba1ada199 100644--- a/fincept-terminal-desktop/src/components/tabs/GeopoliticsTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/GeopoliticsTab.tsx@@ -3,9 +3,11 @@ import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Responsiimport { useTerminalTheme } from '@/contexts/ThemeContext';import { geopoliticsService } from '@/services/geopoliticsService';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';const GeopoliticsTab: React.FC = () => {const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();+ const { t } = useTranslation('geopolitics');const [currentTime, setCurrentTime] = useState(new Date());const [loading, setLoading] = useState(true);const [qrNotifications, setQrNotifications] = useState<any[]>([]);@@ -254,7 +256,7 @@ const GeopoliticsTab: React.FC = () => {color: colors.text,fontFamily}}>- Loading geopolitical intelligence data...+ {t('messages.loading')}</div>);}@@ -281,7 +283,7 @@ const GeopoliticsTab: React.FC = () => {}}><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', fontSize: '14px' }}><div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>- <span style={{ color: colors.primary, fontWeight: 'bold' }}>GEOPOLITICAL INTELLIGENCE</span>+ <span style={{ color: colors.primary, fontWeight: 'bold' }}>{t('title')} INTELLIGENCE</span><span style={{ color: colors.text }}>|</span><span style={{ color: colors.secondary }}>● LIVE</span><span style={{ color: colors.text }}>|</span>@@ -515,7 +517,7 @@ const GeopoliticsTab: React.FC = () => {backgroundColor: expandedQR === index ? 'rgba(255,255,255,0.05)' : index % 2 === 0 ? 'rgba(255,255,255,0.02)' : 'transparent',cursor: 'pointer'}}- onClick={() => setExpandedQR(expandedQR === index ? null : index)}+ onClick={() => setExpandedQR(expandedQR === index ? null : index)}><div style={{ color: colors.text, fontWeight: 'bold' }}>{notif.reporter_member?.name?.en || notif.reporter_member?.code || 'N/A'}@@ -530,7 +532,7 @@ const GeopoliticsTab: React.FC = () => {<div>Periods: {notif.covered_periods?.join(', ') || 'N/A'}</div>{notif.document_url && (<a href={notif.document_url} target="_blank" rel="noopener noreferrer"- style={{ color: colors.info, textDecoration: 'underline' }}>+ style={{ color: colors.info, textDecoration: 'underline' }}>View Document</a>)}@@ -559,7 +561,7 @@ const GeopoliticsTab: React.FC = () => {backgroundColor: expandedEPing === index ? 'rgba(255,255,255,0.05)' : index % 2 === 0 ? 'rgba(255,255,255,0.02)' : 'transparent',cursor: 'pointer'}}- onClick={() => setExpandedEPing(expandedEPing === index ? null : index)}+ onClick={() => setExpandedEPing(expandedEPing === index ? null : index)}><div style={{ color: colors.text, fontWeight: 'bold' }}>{notif.documentSymbol?.trim() || 'N/A'}@@ -587,7 +589,7 @@ const GeopoliticsTab: React.FC = () => {)}{notif.linkToNotification && (<a href={notif.linkToNotification} target="_blank" rel="noopener noreferrer"- style={{ color: colors.info, textDecoration: 'underline' }}>+ style={{ color: colors.info, textDecoration: 'underline' }}>View Document</a>)}@@ -693,7 +695,7 @@ const GeopoliticsTab: React.FC = () => {backgroundColor: expandedRestriction === index ? 'rgba(255,255,255,0.05)' : index % 2 === 0 ? 'rgba(255,255,255,0.02)' : 'transparent',cursor: 'pointer'}}- onClick={() => setExpandedRestriction(expandedRestriction === index ? null : index)}+ onClick={() => setExpandedRestriction(expandedRestriction === index ? null : index)}><div style={{ color: colors.text, fontWeight: 'bold' }}>{item.measure_description || 'Restriction'}@@ -763,7 +765,7 @@ const GeopoliticsTab: React.FC = () => {<div style={{ color: colors.text }}>{tfadData.single_window_available ? 'Available' : 'Not Available'}</div>{tfadData.single_window_url && (<a href={tfadData.single_window_url} target="_blank" rel="noopener noreferrer"- style={{ color: colors.info, textDecoration: 'underline', fontSize: '9px' }}>+ style={{ color: colors.info, textDecoration: 'underline', fontSize: '9px' }}>Visit Single Window</a>)}diff --git a/fincept-terminal-desktop/src/components/tabs/MaritimeTab.tsx b/fincept-terminal-desktop/src/components/tabs/MaritimeTab.tsxindex c45b85281..1b12fcd10 100644--- a/fincept-terminal-desktop/src/components/tabs/MaritimeTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/MaritimeTab.tsx@@ -1,6 +1,7 @@import React, { useState, useEffect, useRef } from 'react';import { useTerminalTheme } from '@/contexts/ThemeContext';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';interface MarkerData {lat: number;@@ -27,6 +28,7 @@ interface IntelligenceData {export default function MaritimeTab() {const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();+ const { t } = useTranslation('maritime');const [markers, setMarkers] = useState<MarkerData[]>([]);const [selectedRoute, setSelectedRoute] = useState<TradeRoute | null>(null);const [markerType, setMarkerType] = useState<MarkerData['type']>('Ship');diff --git a/fincept-terminal-desktop/src/components/tabs/MarketplaceTab.tsx b/fincept-terminal-desktop/src/components/tabs/MarketplaceTab.tsxindex d0d77b452..32a454870 100644--- a/fincept-terminal-desktop/src/components/tabs/MarketplaceTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/MarketplaceTab.tsx@@ -3,6 +3,7 @@ import { useAuth } from '@/contexts/AuthContext';import { MarketplaceApiService, Dataset } from '@/services/marketplaceApi';import { useTerminalTheme } from '@/contexts/ThemeContext';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';interface PricingTier {tier: string;@@ -43,6 +44,7 @@ interface MarketProduct {}const MarketplaceTab: React.FC = () => {+ const { t } = useTranslation('marketplace');const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();const C = {ORANGE: colors.primary,@@ -369,13 +371,13 @@ const MarketplaceTab: React.FC = () => {<div style={{ backgroundColor: C.PANEL_BG, borderBottom: `2px solid ${C.GRAY}`, padding: '8px 16px' }}><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', flexWrap: 'wrap', gap: '8px' }}><div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>- <span style={{ color: C.ORANGE, fontWeight: 'bold', fontSize: '16px' }}>FINCEPT MARKETPLACE</span>+ <span style={{ color: C.ORANGE, fontWeight: 'bold', fontSize: '16px' }}>{t('title')}</span><span style={{ color: C.GRAY }}>|</span>- <span style={{ color: C.CYAN, fontSize: '12px' }}>{datasets.length} Datasets Available</span>+ <span style={{ color: C.CYAN, fontSize: '12px' }}>{datasets.length} {t('header.datasetsAvailable')}</span>{currentScreen === 'BROWSE' && (<><span style={{ color: C.GRAY }}>|</span>- <span style={{ color: C.YELLOW, fontSize: '12px' }}>My Uploads: {myUploadedDatasets.length}</span>+ <span style={{ color: C.YELLOW, fontSize: '12px' }}>{t('header.myUploads')}: {myUploadedDatasets.length}</span><span style={{ color: C.GRAY }}>|</span><buttononClick={() => {@@ -385,29 +387,29 @@ const MarketplaceTab: React.FC = () => {disabled={isLoading}style={{ padding: '4px 8px', backgroundColor: C.DARK_BG, border: `2px solid ${C.BLUE}`, color: C.BLUE, fontSize: '10px', fontWeight: 'bold', cursor: isLoading ? 'not-allowed' : 'pointer', fontFamily: 'Consolas, monospace' }}>- {isLoading ? '⟳ LOADING...' : '🔄 REFRESH'}+ {isLoading ? t('buttons.loading') : t('buttons.refresh')}</button></>)}</div><div style={{ display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'wrap' }}><button onClick={() => setCurrentScreen('BROWSE')} style={{ padding: '6px 12px', backgroundColor: currentScreen === 'BROWSE' ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.GRAY}`, color: currentScreen === 'BROWSE' ? C.DARK_BG : C.WHITE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- BROWSE+ {t('header.browse')}</button><button onClick={() => setCurrentScreen('UPLOAD')} style={{ padding: '6px 12px', backgroundColor: currentScreen === 'UPLOAD' ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.GRAY}`, color: currentScreen === 'UPLOAD' ? C.DARK_BG : C.WHITE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- 📤 UPLOAD+ 📤 {t('header.upload')}</button><button onClick={() => setCurrentScreen('MY_PURCHASES')} style={{ padding: '6px 12px', backgroundColor: currentScreen === 'MY_PURCHASES' ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.GRAY}`, color: currentScreen === 'MY_PURCHASES' ? C.DARK_BG : C.WHITE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- 📦 MY PURCHASES+ 📦 {t('header.myPurchases')}</button><button onClick={() => setCurrentScreen('MY_DATASETS')} style={{ padding: '6px 12px', backgroundColor: currentScreen === 'MY_DATASETS' ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.GRAY}`, color: currentScreen === 'MY_DATASETS' ? C.DARK_BG : C.WHITE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- 📁 MY DATASETS+ 📁 {t('header.myDatasets')}</button><button onClick={() => setCurrentScreen('ANALYTICS')} style={{ padding: '6px 12px', backgroundColor: currentScreen === 'ANALYTICS' ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.GRAY}`, color: currentScreen === 'ANALYTICS' ? C.DARK_BG : C.WHITE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- 📊 ANALYTICS+ 📊 {t('header.analytics')}</button><button onClick={() => setCurrentScreen('PRICING')} style={{ padding: '6px 12px', backgroundColor: currentScreen === 'PRICING' ? C.ORANGE : C.DARK_BG, border: `2px solid ${C.GRAY}`, color: currentScreen === 'PRICING' ? C.DARK_BG : C.WHITE, fontSize: '11px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- 💰 PRICING+ 💰 {t('header.pricing')}</button>{(session?.user_info as any)?.is_admin && (<>@@ -439,10 +441,10 @@ const MarketplaceTab: React.FC = () => {<span style={{ fontSize: '20px' }}>🔒</span><div><div style={{ color: C.DARK_BG, fontSize: '14px', fontWeight: 'bold', marginBottom: '2px' }}>- MARKETPLACE REQUIRES REGISTERED ACCOUNT+ {t('guest.title')}</div><div style={{ color: 'rgba(0,0,0,0.8)', fontSize: '12px' }}>- Guest users cannot access marketplace features. Please register to upload, purchase, and trade datasets.+ {t('guest.message')}</div></div></div>@@ -501,40 +503,40 @@ const MarketplaceTab: React.FC = () => {const status = dataset?.status || 'approved';const statusColor = status === 'approved' ? C.GREEN : status === 'pending' ? C.YELLOW : C.RED;return (- <div key={product.id} style={{ backgroundColor: C.PANEL_BG, border: `2px solid ${C.GRAY}`, borderLeft: `6px solid ${getTypeColor(product.type)}`, padding: '16px' }}>- <div style={{ display: 'flex', gap: '8px', marginBottom: '8px' }}>- <div style={{ display: 'inline-block', backgroundColor: getTypeColor(product.type), color: C.DARK_BG, padding: '4px 10px', fontSize: '10px', fontWeight: 'bold' }}>- {product.type}+ <div key={product.id} style={{ backgroundColor: C.PANEL_BG, border: `2px solid ${C.GRAY}`, borderLeft: `6px solid ${getTypeColor(product.type)}`, padding: '16px' }}>+ <div style={{ display: 'flex', gap: '8px', marginBottom: '8px' }}>+ <div style={{ display: 'inline-block', backgroundColor: getTypeColor(product.type), color: C.DARK_BG, padding: '4px 10px', fontSize: '10px', fontWeight: 'bold' }}>+ {product.type}+ </div>+ {showAllDatasets && (+ <div style={{ display: 'inline-block', backgroundColor: statusColor, color: C.DARK_BG, padding: '4px 10px', fontSize: '10px', fontWeight: 'bold' }}>+ {status.toUpperCase()}+ </div>+ )}</div>- {showAllDatasets && (- <div style={{ display: 'inline-block', backgroundColor: statusColor, color: C.DARK_BG, padding: '4px 10px', fontSize: '10px', fontWeight: 'bold' }}>- {status.toUpperCase()}+ <div style={{ color: C.WHITE, fontSize: '16px', fontWeight: 'bold', marginBottom: '4px' }}>{product.name}</div>+ <div style={{ color: C.GRAY, fontSize: '12px', marginBottom: '8px' }}>by <span style={{ color: C.CYAN }}>{product.vendor}</span></div>+ <div style={{ color: C.WHITE, fontSize: '13px', lineHeight: '1.5', marginBottom: '12px', minHeight: '60px' }}>{product.shortDescription}</div>+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '8px', marginBottom: '12px', padding: '10px', backgroundColor: 'rgba(255,255,255,0.03)', border: `1px solid ${C.GRAY}` }}>+ <div>+ <div style={{ color: C.GRAY, fontSize: '9px' }}>{t('product.rating')}</div>+ <div style={{ color: C.YELLOW, fontSize: '13px', fontWeight: 'bold' }}>★ {product.rating} ({product.reviews})</div></div>- )}- </div>- <div style={{ color: C.WHITE, fontSize: '16px', fontWeight: 'bold', marginBottom: '4px' }}>{product.name}</div>- <div style={{ color: C.GRAY, fontSize: '12px', marginBottom: '8px' }}>by <span style={{ color: C.CYAN }}>{product.vendor}</span></div>- <div style={{ color: C.WHITE, fontSize: '13px', lineHeight: '1.5', marginBottom: '12px', minHeight: '60px' }}>{product.shortDescription}</div>- <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '8px', marginBottom: '12px', padding: '10px', backgroundColor: 'rgba(255,255,255,0.03)', border: `1px solid ${C.GRAY}` }}>- <div>- <div style={{ color: C.GRAY, fontSize: '9px' }}>RATING</div>- <div style={{ color: C.YELLOW, fontSize: '13px', fontWeight: 'bold' }}>★ {product.rating} ({product.reviews})</div>- </div>- <div>- <div style={{ color: C.GRAY, fontSize: '9px' }}>USERS</div>- <div style={{ color: C.CYAN, fontSize: '13px', fontWeight: 'bold' }}>{product.users.toLocaleString()}</div>+ <div>+ <div style={{ color: C.GRAY, fontSize: '9px' }}>{t('product.users')}</div>+ <div style={{ color: C.CYAN, fontSize: '13px', fontWeight: 'bold' }}>{product.users.toLocaleString()}</div>+ </div>+ </div>+ <div style={{ display: 'flex', gap: '8px' }}>+ <button onClick={() => { setSelectedProduct(product); setCurrentScreen('DETAILS'); }} style={{ flex: 1, padding: '10px', backgroundColor: C.DARK_BG, border: `2px solid ${C.BLUE}`, color: C.BLUE, fontSize: '12px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>+ {t('buttons.viewDetails')}+ </button>+ <button onClick={() => !cartItems.includes(product.id) && setCartItems([...cartItems, product.id])} style={{ flex: 1, padding: '10px', backgroundColor: cartItems.includes(product.id) ? C.GREEN : C.DARK_BG, border: `2px solid ${C.GREEN}`, color: cartItems.includes(product.id) ? C.DARK_BG : C.GREEN, fontSize: '12px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>+ {cartItems.includes(product.id) ? t('buttons.inCart') : t('buttons.addToCart')}+ </button>+ </div></div>- </div>- <div style={{ display: 'flex', gap: '8px' }}>- <button onClick={() => { setSelectedProduct(product); setCurrentScreen('DETAILS'); }} style={{ flex: 1, padding: '10px', backgroundColor: C.DARK_BG, border: `2px solid ${C.BLUE}`, color: C.BLUE, fontSize: '12px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- VIEW DETAILS- </button>- <button onClick={() => !cartItems.includes(product.id) && setCartItems([...cartItems, product.id])} style={{ flex: 1, padding: '10px', backgroundColor: cartItems.includes(product.id) ? C.GREEN : C.DARK_BG, border: `2px solid ${C.GREEN}`, color: cartItems.includes(product.id) ? C.DARK_BG : C.GREEN, fontSize: '12px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- {cartItems.includes(product.id) ? '✓ IN CART' : 'ADD TO CART'}- </button>- </div>- </div>- );+ );})}</div>)}@@ -546,7 +548,7 @@ const MarketplaceTab: React.FC = () => {<><div style={{ padding: '12px', backgroundColor: C.PANEL_BG, borderBottom: `2px solid ${C.GRAY}` }}><button onClick={() => setCurrentScreen('BROWSE')} style={{ padding: '8px 16px', backgroundColor: C.DARK_BG, border: `2px solid ${C.GRAY}`, color: C.WHITE, fontSize: '12px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- ← BACK TO MARKETPLACE+ ← {t('buttons.backToMarketplace')}</button></div><div className="marketplace-scroll" style={{ flex: 1, overflowY: 'auto', backgroundColor: '#050505', padding: '20px' }}>@@ -572,7 +574,7 @@ const MarketplaceTab: React.FC = () => {</button></div><div style={{ backgroundColor: C.PANEL_BG, border: `2px solid ${C.GRAY}`, padding: '20px' }}>- <div style={{ color: C.ORANGE, fontSize: '16px', fontWeight: 'bold', marginBottom: '12px' }}>PRODUCT DESCRIPTION</div>+ <div style={{ color: C.ORANGE, fontSize: '16px', fontWeight: 'bold', marginBottom: '12px' }}>{t('product.description')}</div><div style={{ color: C.WHITE, fontSize: '14px', lineHeight: '1.7' }}>{selectedProduct.shortDescription}</div></div></div>@@ -583,15 +585,15 @@ const MarketplaceTab: React.FC = () => {{currentScreen === 'CART' && (<><div style={{ padding: '16px', backgroundColor: C.PANEL_BG, borderBottom: `2px solid ${C.GRAY}` }}>- <div style={{ color: C.ORANGE, fontSize: '20px', fontWeight: 'bold' }}>SHOPPING CART ({cartItems.length} items)</div>+ <div style={{ color: C.ORANGE, fontSize: '20px', fontWeight: 'bold' }}>{t('cart.title')} ({cartItems.length} {t('cart.items')})</div></div><div className="marketplace-scroll" style={{ flex: 1, overflowY: 'auto', backgroundColor: '#050505', padding: '20px' }}><div style={{ maxWidth: '1000px', margin: '0 auto' }}>{cartItems.length === 0 ? (<div style={{ backgroundColor: C.PANEL_BG, border: `2px solid ${C.GRAY}`, padding: '40px', textAlign: 'center' }}>- <div style={{ color: C.GRAY, fontSize: '18px', marginBottom: '16px' }}>Your cart is empty</div>+ <div style={{ color: C.GRAY, fontSize: '18px', marginBottom: '16px' }}>{t('cart.empty')}</div><button onClick={() => setCurrentScreen('BROWSE')} style={{ padding: '12px 24px', backgroundColor: C.ORANGE, border: 'none', color: C.DARK_BG, fontSize: '14px', fontWeight: 'bold', cursor: 'pointer', fontFamily: 'Consolas, monospace' }}>- BROWSE MARKETPLACE+ {t('header.browse')}</button></div>) : (diff --git a/fincept-terminal-desktop/src/components/tabs/MarketsTab.tsx b/fincept-terminal-desktop/src/components/tabs/MarketsTab.tsxindex 341bc8697..1d934eced 100644--- a/fincept-terminal-desktop/src/components/tabs/MarketsTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/MarketsTab.tsx@@ -8,8 +8,10 @@ import { contextRecorderService } from '../../services/contextRecorderService';import TickerEditModal from './TickerEditModal';import RecordingControlPanel from '../common/RecordingControlPanel';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';const MarketsTab: React.FC = () => {+ const { t } = useTranslation('markets');const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();const [currentTime, setCurrentTime] = useState(new Date());const [lastUpdate, setLastUpdate] = useState(new Date());@@ -273,12 +275,12 @@ const MarketsTab: React.FC = () => {fontWeight: 'bold',borderBottom: `1px solid ${colors.textMuted}`}}>- <div>SYMBOL</div>- <div style={{ textAlign: 'right' }}>PRICE</div>- <div style={{ textAlign: 'right' }}>CHANGE</div>- <div style={{ textAlign: 'right' }}>%CHG</div>- <div style={{ textAlign: 'right' }}>HIGH</div>- <div style={{ textAlign: 'right' }}>LOW</div>+ <div>{t('symbol')}</div>+ <div style={{ textAlign: 'right' }}>{t('price')}</div>+ <div style={{ textAlign: 'right' }}>{t('change')}</div>+ <div style={{ textAlign: 'right' }}>{t('percentChange')}</div>+ <div style={{ textAlign: 'right' }}>{t('high')}</div>+ <div style={{ textAlign: 'right' }}>{t('low')}</div></div>{/* Data Rows */}@@ -290,7 +292,7 @@ const MarketsTab: React.FC = () => {textAlign: 'center',padding: '16px'}}>- {isUpdating ? 'Loading...' : 'No data available'}+ {isUpdating ? t('loading') : t('noData')}</div>) : (quotes.map((quote, index) => (@@ -380,11 +382,11 @@ const MarketsTab: React.FC = () => {fontWeight: 'bold',borderBottom: `1px solid ${colors.textMuted}`}}>- <div>SYMBOL</div>- <div>NAME</div>- <div style={{ textAlign: 'right' }}>PRICE</div>- <div style={{ textAlign: 'right' }}>CHANGE</div>- <div style={{ textAlign: 'right' }}>%CHG</div>+ <div>{t('symbol')}</div>+ <div>{t('name')}</div>+ <div style={{ textAlign: 'right' }}>{t('price')}</div>+ <div style={{ textAlign: 'right' }}>{t('change')}</div>+ <div style={{ textAlign: 'right' }}>{t('percentChange')}</div></div>{/* Data Rows */}@@ -396,7 +398,7 @@ const MarketsTab: React.FC = () => {textAlign: 'center',padding: '16px'}}>- {isUpdating ? 'Loading...' : 'No data available'}+ {isUpdating ? t('loading') : t('noData')}</div>) : (quotes.map((quote, index) => {@@ -477,7 +479,7 @@ const MarketsTab: React.FC = () => {flexShrink: 0}}><span style={{ color: colors.primary, fontWeight: 'bold' }}>FINCEPT</span>- <span style={{ color: colors.text }}>MARKET TERMINAL - LIVE DATA</span>+ <span style={{ color: colors.text }}>{t('marketTerminalLive')}</span><span style={{ color: colors.textMuted }}>|</span><span style={{ color: colors.text, fontSize: '11px' }}>{currentTime.toISOString().replace('T', ' ').substring(0, 19)}@@ -510,7 +512,7 @@ const MarketsTab: React.FC = () => {cursor: 'pointer'}}>- REFRESH+ {t('refresh')}</button><buttononClick={() => setAutoUpdate(!autoUpdate)}@@ -524,7 +526,7 @@ const MarketsTab: React.FC = () => {cursor: 'pointer'}}>- AUTO {autoUpdate ? 'ON' : 'OFF'}+ {t('auto')} {autoUpdate ? t('on') : t('off')}</button><selectvalue={updateInterval}@@ -544,14 +546,14 @@ const MarketsTab: React.FC = () => {<option value={3600000}>1 hour</option></select><span style={{ color: colors.textMuted }}>|</span>- <span style={{ color: colors.textMuted, fontSize: '11px' }}>LAST UPDATE:</span>+ <span style={{ color: colors.textMuted, fontSize: '11px' }}>{t('lastUpdate')}:</span><span style={{ color: colors.text, fontSize: '11px' }}>{lastUpdate.toTimeString().substring(0, 8)}</span><span style={{ color: colors.textMuted }}>|</span><span style={{ color: isUpdating ? colors.primary : colors.secondary, fontSize: '14px' }}>●</span><span style={{ color: isUpdating ? colors.primary : colors.secondary, fontSize: '11px', fontWeight: 'bold' }}>- {isUpdating ? 'UPDATING' : 'LIVE'}+ {isUpdating ? t('updating') : t('live')}</span></div><RecordingControlPanel@@ -577,7 +579,7 @@ const MarketsTab: React.FC = () => {marginBottom: '8px',letterSpacing: '0.5px'}}>- GLOBAL MARKETS+ {t('globalMarkets')}</div><div style={{ borderBottom: `1px solid ${colors.textMuted}`, marginBottom: '16px' }}></div>@@ -601,7 +603,7 @@ const MarketsTab: React.FC = () => {marginTop: '16px',letterSpacing: '0.5px'}}>- REGIONAL MARKETS - LIVE DATA+ {t('regionalMarketsLive')}</div><div style={{ borderBottom: `1px solid ${colors.textMuted}`, marginBottom: '16px' }}></div>diff --git a/fincept-terminal-desktop/src/components/tabs/NodeEditorTab.tsx b/fincept-terminal-desktop/src/components/tabs/NodeEditorTab.tsxindex 6ec85dc65..3738f7e2b 100644--- a/fincept-terminal-desktop/src/components/tabs/NodeEditorTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/NodeEditorTab.tsx@@ -48,6 +48,7 @@ import { workflowExecutor } from './node-editor/WorkflowExecutor';import { Workflow, workflowService } from '@/services/workflowService';import { nodeExecutionManager } from '@/services/nodeExecutionManager';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';// Custom Node Componentconst CustomNode = ({ data, id, selected }: any) => {@@ -250,6 +251,7 @@ const NODE_CONFIGS = [];export default function NodeEditorTab() {+ const { t } = useTranslation('nodeEditor');const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();const [mcpNodeConfigs, setMcpNodeConfigs] = useState<MCPNodeConfig[]>([]);const [agentConfigs, setAgentConfigs] = useState<AgentMetadata[]>([]);@@ -421,14 +423,14 @@ export default function NodeEditorTab() {nds.map((n) =>n.id === nodeId? {- ...n,- data: {- ...n.data,- status: result.success ? 'completed' : 'error',- result: result.success ? result.data : undefined,- error: result.success ? undefined : result.error,- },- }+ ...n,+ data: {+ ...n.data,+ status: result.success ? 'completed' : 'error',+ result: result.success ? result.data : undefined,+ error: result.success ? undefined : result.error,+ },+ }: n));@@ -448,12 +450,12 @@ export default function NodeEditorTab() {nds.map((n) =>n.id === newNode.id? {- ...n,- data: {- ...n.data,- selectedLLM: provider,- },- }+ ...n,+ data: {+ ...n.data,+ selectedLLM: provider,+ },+ }: n));@@ -490,13 +492,13 @@ export default function NodeEditorTab() {nds.map((n) =>n.id === newNode.id? {- ...n,- data: {- ...n.data,- selectedProvider: newConfig.selectedProvider,- customPrompt: newConfig.customPrompt,- },- }+ ...n,+ data: {+ ...n.data,+ selectedProvider: newConfig.selectedProvider,+ customPrompt: newConfig.customPrompt,+ },+ }: n));@@ -513,12 +515,12 @@ export default function NodeEditorTab() {nds.map((n) =>n.id === newNode.id? {- ...n,- data: {- ...n.data,- selectedConnectionId: connectionId,- },- }+ ...n,+ data: {+ ...n.data,+ selectedConnectionId: connectionId,+ },+ }: n));@@ -528,12 +530,12 @@ export default function NodeEditorTab() {nds.map((n) =>n.id === newNode.id? {- ...n,- data: {- ...n.data,- query: query,- },- }+ ...n,+ data: {+ ...n.data,+ query: query,+ },+ }: n));@@ -562,12 +564,12 @@ export default function NodeEditorTab() {nds.map((n) =>n.id === newNode.id? {- ...n,- data: {- ...n.data,- ...params,- },- }+ ...n,+ data: {+ ...n.data,+ ...params,+ },+ }: n));@@ -915,7 +917,7 @@ export default function NodeEditorTab() {letterSpacing: '0.5px',}}>- NODE EDITOR+ {t('title')}</span><div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>@@ -933,7 +935,7 @@ export default function NodeEditorTab() {fontWeight: 'bold',}}>- EDITOR+ {t('tabs.editor')}</button><buttononClick={() => setActiveView('workflows')}@@ -957,312 +959,281 @@ export default function NodeEditorTab() {<><buttononClick={() => setShowNodeMenu(!showNodeMenu)}- style={{- backgroundColor: '#ea580c',- color: 'white',- border: 'none',- padding: '6px 12px',- fontSize: '11px',- cursor: 'pointer',- borderRadius: '3px',- display: 'flex',- alignItems: 'center',- gap: '6px',- fontWeight: 'bold',- }}- onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = '#dc2626')}- onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = '#ea580c')}- >- <Plus size={14} />- ADD NODE- </button>-- <button- onClick={async () => {- if (isExecuting) {- alert('A workflow is already executing. Please wait for it to complete.');- return;- }-- try {- setIsExecuting(true);- console.log('[NodeEditor] Starting workflow execution...');- await nodeExecutionManager.executeWorkflow(- nodes,- edges,- (nodeId, status, result) => {- console.log(`[NodeEditor] Node ${nodeId} status: ${status}`, result);- // Update node status- setNodes((nds) =>- nds.map((node) => {- if (node.id === nodeId) {- // For results-display nodes, update inputData- if (node.type === 'results-display') {- console.log('[NodeEditor] Updating results-display node:', nodeId, 'with data:', result);- console.log('[NodeEditor] Status:', status);- // Force update to trigger re-render- const currentData = node.data as any;- return {- ...node,- data: {- ...node.data,- inputData: status === 'completed' ? result : (status === 'error' ? undefined : currentData.inputData),- status,- },- };- }- // For other nodes, update status and result- return {- ...node,- data: {- ...node.data,- status,- result: status === 'completed' ? result : undefined,- error: status === 'error' ? result : undefined,- },- };- }- return node;- })+ style={{+ backgroundColor: '#ea580c',+ color: 'white',+ border: 'none',+ padding: '6px 12px',+ fontSize: '11px',+ cursor: 'pointer',+ borderRadius: '3px',+ display: 'flex',+ alignItems: 'center',+ gap: '6px',+ fontWeight: 'bold',+ }}+ onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = '#dc2626')}+ onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = '#ea580c')}+ >+ <Plus size={14} />+ ADD NODE+ </button>++ <button+ onClick={async () => {+ if (isExecuting) {+ alert('A workflow is already executing. Please wait for it to complete.');+ return;+ }++ try {+ setIsExecuting(true);+ console.log('[NodeEditor] Starting workflow execution...');+ await nodeExecutionManager.executeWorkflow(+ nodes,+ edges,+ (nodeId, status, result) => {+ console.log(`[NodeEditor] Node ${nodeId} status: ${status}`, result);+ // Update node status+ setNodes((nds) =>+ nds.map((node) => {+ if (node.id === nodeId) {+ // For results-display nodes, update inputData+ if (node.type === 'results-display') {+ console.log('[NodeEditor] Updating results-display node:', nodeId, 'with data:', result);+ console.log('[NodeEditor] Status:', status);+ // Force update to trigger re-render+ const currentData = node.data as any;+ return {+ ...node,+ data: {+ ...node.data,+ inputData: status === 'completed' ? result : (status === 'error' ? undefined : currentData.inputData),+ status,+ },+ };+ }+ // For other nodes, update status and result+ return {+ ...node,+ data: {+ ...node.data,+ status,+ result: status === 'completed' ? result : undefined,+ error: status === 'error' ? result : undefined,+ },+ };+ }+ return node;+ })+ );+ });+ console.log('[NodeEditor] Workflow execution completed');+ } catch (error: any) {+ console.error('[NodeEditor] Workflow execution failed:', error);+ // Don't use alert - just log the error+ } finally {+ setIsExecuting(false);}- );- console.log('[NodeEditor] Workflow execution completed');- } catch (error: any) {- console.error('[NodeEditor] Workflow execution failed:', error);- // Don't use alert - just log the error- } finally {- setIsExecuting(false);- }- }}- disabled={isExecuting}- style={{- backgroundColor: 'transparent',- color: isExecuting ? '#737373' : '#10b981',- border: `1px solid ${isExecuting ? '#737373' : '#10b981'}`,- padding: '6px 12px',- fontSize: '11px',- cursor: isExecuting ? 'not-allowed' : 'pointer',- borderRadius: '3px',- display: 'flex',- alignItems: 'center',- gap: '6px',- opacity: isExecuting ? 0.5 : 1,- }}- onMouseEnter={(e) => {- if (!isExecuting) {- e.currentTarget.style.backgroundColor = '#10b981';- e.currentTarget.style.color = 'white';- }- }}- onMouseLeave={(e) => {- if (!isExecuting) {- e.currentTarget.style.backgroundColor = 'transparent';- e.currentTarget.style.color = '#10b981';- }- }}- >- <Play size={14} />- {isExecuting ? 'EXECUTING...' : 'EXECUTE'}- </button>-- <div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>-- {/* New Workflow Button */}- <button- onClick={() => {- if (window.confirm('Start a new workflow? Current work will be cleared unless saved.')) {- clearWorkflow();- }- }}- style={{- backgroundColor: 'transparent',- color: '#3b82f6',- border: '1px solid #3b82f6',- padding: '6px 12px',- fontSize: '11px',- cursor: 'pointer',- borderRadius: '3px',- display: 'flex',- alignItems: 'center',- gap: '6px',- fontWeight: 'bold',- }}- onMouseEnter={(e) => {- e.currentTarget.style.backgroundColor = '#3b82f6';- e.currentTarget.style.color = 'white';- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = 'transparent';- e.currentTarget.style.color = '#3b82f6';- }}- title="Start a new workflow"- >- <Plus size={14} />- NEW- </button>+ }}+ disabled={isExecuting}+ style={{+ backgroundColor: 'transparent',+ color: isExecuting ? '#737373' : '#10b981',+ border: `1px solid ${isExecuting ? '#737373' : '#10b981'}`,+ padding: '6px 12px',+ fontSize: '11px',+ cursor: isExecuting ? 'not-allowed' : 'pointer',+ borderRadius: '3px',+ display: 'flex',+ alignItems: 'center',+ gap: '6px',+ opacity: isExecuting ? 0.5 : 1,+ }}+ onMouseEnter={(e) => {+ if (!isExecuting) {+ e.currentTarget.style.backgroundColor = '#10b981';+ e.currentTarget.style.color = 'white';+ }+ }}+ onMouseLeave={(e) => {+ if (!isExecuting) {+ e.currentTarget.style.backgroundColor = 'transparent';+ e.currentTarget.style.color = '#10b981';+ }+ }}+ >+ <Play size={14} />+ {isExecuting ? 'EXECUTING...' : 'EXECUTE'}+ </button>- {/* Quick Save for Drafts */}- {workflowMode === 'draft' && editingDraftId && (- <button- onClick={async () => {- try {- await workflowService.updateDraft(- editingDraftId,- workflowName || 'Untitled Draft',- workflowDescription,- nodes,- edges- );- alert('Draft saved successfully!');- } catch (error: any) {- alert(`Save failed: ${error.message}`);- }- }}- style={{- backgroundColor: '#f59e0b',- color: 'white',- border: 'none',- padding: '6px 12px',- fontSize: '11px',- cursor: 'pointer',- borderRadius: '3px',- display: 'flex',- alignItems: 'center',- gap: '6px',- fontWeight: 'bold',- }}- title="Quick save current draft"- >- <Save size={14} />- SAVE DRAFT- </button>- )}+ <div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>- <div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>+ {/* New Workflow Button */}+ <button+ onClick={() => {+ if (window.confirm('Start a new workflow? Current work will be cleared unless saved.')) {+ clearWorkflow();+ }+ }}+ style={{+ backgroundColor: 'transparent',+ color: '#3b82f6',+ border: '1px solid #3b82f6',+ padding: '6px 12px',+ fontSize: '11px',+ cursor: 'pointer',+ borderRadius: '3px',+ display: 'flex',+ alignItems: 'center',+ gap: '6px',+ fontWeight: 'bold',+ }}+ onMouseEnter={(e) => {+ e.currentTarget.style.backgroundColor = '#3b82f6';+ e.currentTarget.style.color = 'white';+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.backgroundColor = 'transparent';+ e.currentTarget.style.color = '#3b82f6';+ }}+ title="Start a new workflow"+ >+ <Plus size={14} />+ NEW+ </button>- <button- onClick={saveWorkflow}- style={{- backgroundColor: 'transparent',- color: '#a3a3a3',- border: '1px solid #404040',- padding: '6px 12px',- fontSize: '11px',- cursor: 'pointer',- borderRadius: '3px',- display: 'flex',- alignItems: 'center',- gap: '6px',- }}- onMouseEnter={(e) => {- e.currentTarget.style.backgroundColor = '#2d2d2d';- e.currentTarget.style.color = 'white';- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = 'transparent';- e.currentTarget.style.color = '#a3a3a3';- }}- title="Save workflow to browser storage"- >- <Save size={14} />- SAVE- </button>+ {/* Quick Save for Drafts */}+ {workflowMode === 'draft' && editingDraftId && (+ <button+ onClick={async () => {+ try {+ await workflowService.updateDraft(+ editingDraftId,+ workflowName || 'Untitled Draft',+ workflowDescription,+ nodes,+ edges+ );+ alert('Draft saved successfully!');+ } catch (error: any) {+ alert(`Save failed: ${error.message}`);+ }+ }}+ style={{+ backgroundColor: '#f59e0b',+ color: 'white',+ border: 'none',+ padding: '6px 12px',+ fontSize: '11px',+ cursor: 'pointer',+ borderRadius: '3px',+ display: 'flex',+ alignItems: 'center',+ gap: '6px',+ fontWeight: 'bold',+ }}+ title="Quick save current draft"+ >+ <Save size={14} />+ SAVE DRAFT+ </button>+ )}- <button- onClick={importWorkflow}- style={{- backgroundColor: 'transparent',- color: '#a3a3a3',- border: '1px solid #404040',- padding: '6px 12px',- fontSize: '11px',- cursor: 'pointer',- borderRadius: '3px',- display: 'flex',- alignItems: 'center',- gap: '6px',- }}- onMouseEnter={(e) => {- e.currentTarget.style.backgroundColor = '#2d2d2d';- e.currentTarget.style.color = 'white';- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = 'transparent';- e.currentTarget.style.color = '#a3a3a3';- }}- title="Import workflow from file"- >- <Upload size={14} />- IMPORT- </button>+ <div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>- <button- onClick={exportWorkflow}- style={{- backgroundColor: 'transparent',- color: '#a3a3a3',- border: '1px solid #404040',- padding: '6px 12px',- fontSize: '11px',- cursor: 'pointer',- borderRadius: '3px',- display: 'flex',- alignItems: 'center',- gap: '6px',- }}- onMouseEnter={(e) => {- e.currentTarget.style.backgroundColor = '#2d2d2d';- e.currentTarget.style.color = 'white';- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = 'transparent';- e.currentTarget.style.color = '#a3a3a3';- }}- >- <Download size={14} />- EXPORT- </button>+ <button+ onClick={saveWorkflow}+ style={{+ backgroundColor: 'transparent',+ color: '#a3a3a3',+ border: '1px solid #404040',+ padding: '6px 12px',+ fontSize: '11px',+ cursor: 'pointer',+ borderRadius: '3px',+ display: 'flex',+ alignItems: 'center',+ gap: '6px',+ }}+ onMouseEnter={(e) => {+ e.currentTarget.style.backgroundColor = '#2d2d2d';+ e.currentTarget.style.color = 'white';+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.backgroundColor = 'transparent';+ e.currentTarget.style.color = '#a3a3a3';+ }}+ title="Save workflow to browser storage"+ >+ <Save size={14} />+ SAVE+ </button>- <div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>+ <button+ onClick={importWorkflow}+ style={{+ backgroundColor: 'transparent',+ color: '#a3a3a3',+ border: '1px solid #404040',+ padding: '6px 12px',+ fontSize: '11px',+ cursor: 'pointer',+ borderRadius: '3px',+ display: 'flex',+ alignItems: 'center',+ gap: '6px',+ }}+ onMouseEnter={(e) => {+ e.currentTarget.style.backgroundColor = '#2d2d2d';+ e.currentTarget.style.color = 'white';+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.backgroundColor = 'transparent';+ e.currentTarget.style.color = '#a3a3a3';+ }}+ title="Import workflow from file"+ >+ <Upload size={14} />+ IMPORT+ </button>- <button- onClick={() => {- if (window.confirm('Are you sure you want to clear all nodes? This cannot be undone.')) {- clearWorkflow();- }- }}- style={{- backgroundColor: 'transparent',- color: '#ef4444',- border: '1px solid #ef4444',- padding: '6px 12px',- fontSize: '11px',- cursor: 'pointer',- borderRadius: '3px',- display: 'flex',- alignItems: 'center',- gap: '6px',- }}- onMouseEnter={(e) => {- e.currentTarget.style.backgroundColor = '#ef4444';- e.currentTarget.style.color = 'white';- }}- onMouseLeave={(e) => {- e.currentTarget.style.backgroundColor = 'transparent';- e.currentTarget.style.color = '#ef4444';- }}- title="Clear all nodes and connections"- >- <Trash2 size={14} />- CLEAR ALL- </button>+ <button+ onClick={exportWorkflow}+ style={{+ backgroundColor: 'transparent',+ color: '#a3a3a3',+ border: '1px solid #404040',+ padding: '6px 12px',+ fontSize: '11px',+ cursor: 'pointer',+ borderRadius: '3px',+ display: 'flex',+ alignItems: 'center',+ gap: '6px',+ }}+ onMouseEnter={(e) => {+ e.currentTarget.style.backgroundColor = '#2d2d2d';+ e.currentTarget.style.color = 'white';+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.backgroundColor = 'transparent';+ e.currentTarget.style.color = '#a3a3a3';+ }}+ >+ <Download size={14} />+ EXPORT+ </button>- {selectedNodes.length > 0 && (- <><div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>+<button- onClick={deleteSelectedNodes}+ onClick={() => {+ if (window.confirm('Are you sure you want to clear all nodes? This cannot be undone.')) {+ clearWorkflow();+ }+ }}style={{backgroundColor: 'transparent',color: '#ef4444',@@ -1283,12 +1254,43 @@ export default function NodeEditorTab() {e.currentTarget.style.backgroundColor = 'transparent';e.currentTarget.style.color = '#ef4444';}}+ title="Clear all nodes and connections"><Trash2 size={14} />- DELETE ({selectedNodes.length})+ CLEAR ALL</button>- </>- )}++ {selectedNodes.length > 0 && (+ <>+ <div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>+ <button+ onClick={deleteSelectedNodes}+ style={{+ backgroundColor: 'transparent',+ color: '#ef4444',+ border: '1px solid #ef4444',+ padding: '6px 12px',+ fontSize: '11px',+ cursor: 'pointer',+ borderRadius: '3px',+ display: 'flex',+ alignItems: 'center',+ gap: '6px',+ }}+ onMouseEnter={(e) => {+ e.currentTarget.style.backgroundColor = '#ef4444';+ e.currentTarget.style.color = 'white';+ }}+ onMouseLeave={(e) => {+ e.currentTarget.style.backgroundColor = 'transparent';+ e.currentTarget.style.color = '#ef4444';+ }}+ >+ <Trash2 size={14} />+ DELETE ({selectedNodes.length})+ </button>+ </>+ )}<div style={{ width: '1px', height: '20px', backgroundColor: '#404040' }}></div>diff --git a/fincept-terminal-desktop/src/components/tabs/NotesTab.tsx b/fincept-terminal-desktop/src/components/tabs/NotesTab.tsxindex 061d35a38..2082720d4 100644--- a/fincept-terminal-desktop/src/components/tabs/NotesTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/NotesTab.tsx@@ -12,6 +12,7 @@ import { notesService, Note, NoteTemplate } from '../../services/notesService';import { noteReminderService } from '../../services/noteReminderService.tsx';import { toast } from 'sonner';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';// Bloomberg Professional Color Paletteconst BLOOMBERG = {@@ -48,6 +49,7 @@ const SENTIMENTS = ['BULLISH', 'BEARISH', 'NEUTRAL'];const COLOR_CODES = ['#FF8800', '#00D66F', '#FF3B3B', '#00E5FF', '#FFD700', '#9D4EDD', '#0088FF'];export function NotesTab() {+ const { t } = useTranslation('notes');const [currentTime, setCurrentTime] = useState(new Date());const [notes, setNotes] = useState<Note[]>([]);const [filteredNotes, setFilteredNotes] = useState<Note[]>([]);@@ -423,7 +425,7 @@ export function NotesTab() {letterSpacing: '0.5px',textShadow: `0 0 10px ${BLOOMBERG.ORANGE}40`}}>- FINANCIAL NOTES+ {t('title')}</span></div>@@ -432,13 +434,13 @@ export function NotesTab() {{statistics && (<><div style={{ fontSize: '10px', color: BLOOMBERG.CYAN }}>- TOTAL: <span style={{ fontWeight: 700 }}>{statistics.total}</span>+ {t('header.total')}: <span style={{ fontWeight: 700 }}>{statistics.total}</span></div><div style={{ fontSize: '10px', color: BLOOMBERG.YELLOW }}>- FAVORITES: <span style={{ fontWeight: 700 }}>{statistics.favorites}</span>+ {t('header.favorites')}: <span style={{ fontWeight: 700 }}>{statistics.favorites}</span></div><div style={{ fontSize: '10px', color: BLOOMBERG.PURPLE }}>- WORDS: <span style={{ fontWeight: 700 }}>{statistics.totalWords.toLocaleString()}</span>+ {t('header.words')}: <span style={{ fontWeight: 700 }}>{statistics.totalWords.toLocaleString()}</span></div></>)}@@ -477,7 +479,7 @@ export function NotesTab() {}}><RefreshCw size={12} />- REFRESH+ {t('header.refresh')}</button><button@@ -518,7 +520,7 @@ export function NotesTab() {<Search size={14} style={{ position: 'absolute', left: '8px', top: '50%', transform: 'translateY(-50%)', color: BLOOMBERG.GRAY }} /><inputtype="text"- placeholder="Search notes, tags, tickers..."+ placeholder={t('toolbar.search')}value={searchQuery}onChange={(e) => setSearchQuery(e.target.value)}style={{@@ -553,7 +555,7 @@ export function NotesTab() {}}><Plus size={14} />- NEW NOTE+ {t('toolbar.newNote')}</button><button@@ -572,7 +574,7 @@ export function NotesTab() {}}><BookOpen size={14} />- TEMPLATES+ {t('toolbar.templates')}</button><button@@ -591,7 +593,7 @@ export function NotesTab() {}}><Star size={14} fill={showFavorites ? BLOOMBERG.DARK_BG : 'none'} />- FAVORITES+ {t('toolbar.favorites')}</button><button@@ -610,7 +612,7 @@ export function NotesTab() {}}><Filter size={14} />- FILTERS+ {t('toolbar.filters')}</button><button@@ -629,7 +631,7 @@ export function NotesTab() {}}><Archive size={14} />- ARCHIVED+ {t('toolbar.archived')}</button></div>@@ -1544,7 +1546,7 @@ export function NotesTab() {justifyContent: 'center',cursor: 'pointer'}}- onClick={() => setIsRightPanelMinimized(!isRightPanelMinimized)}+ onClick={() => setIsRightPanelMinimized(!isRightPanelMinimized)}>{isRightPanelMinimized ? <ChevronRight size={14} color={BLOOMBERG.GRAY} /> : <ChevronDown size={14} color={BLOOMBERG.GRAY} />}</div>diff --git a/fincept-terminal-desktop/src/components/tabs/ProfileTab.tsx b/fincept-terminal-desktop/src/components/tabs/ProfileTab.tsxindex ebca670f0..6eba9a2bf 100644--- a/fincept-terminal-desktop/src/components/tabs/ProfileTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/ProfileTab.tsx@@ -3,12 +3,14 @@ import { useAuth } from '@/contexts/AuthContext';import { useNavigation } from '@/contexts/NavigationContext';import { UserApiService } from '@/services/userApi';import { useTerminalTheme } from '@/contexts/ThemeContext';+import { useTranslation } from 'react-i18next';import { TabFooter } from '@/components/common/TabFooter';type ProfileScreen = 'overview' | 'usage' | 'payments' | 'subscriptions' | 'support' | 'settings';const ProfileTab: React.FC = () => {const { colors } = useTerminalTheme();+ const { t } = useTranslation('profile');const { session, logout } = useAuth();const navigation = useNavigation();const [currentTime, setCurrentTime] = useState(new Date());@@ -172,14 +174,14 @@ const ProfileTab: React.FC = () => {{/* Header */}<div style={{ backgroundColor: colors.panel, borderBottom: `1px solid ${colors.textMuted}`, padding: '4px 8px', flexShrink: 0 }}><div style={{ display: 'flex', alignItems: 'center', gap: '8px', fontSize: '13px', marginBottom: '2px' }}>- <span style={{ color: colors.primary, fontWeight: 'bold' }}>FINCEPT TERMINAL GUEST PROFILE</span>+ <span style={{ color: colors.primary, fontWeight: 'bold' }}>{t('guestProfile')}</span><span style={{ color: colors.text }}>|</span><span style={{ color: colors.text }}>{currentTime.toISOString().replace('T', ' ').substring(0, 19)} UTC</span><span style={{ color: colors.text }}>|</span>- <span style={{ color: colors.textMuted }}>REQUESTS:</span>+ <span style={{ color: colors.textMuted }}>{t('requests')}:</span><span style={{ color: colors.accent }}>{requestsToday}/{dailyLimit}</span><span style={{ color: colors.text }}>|</span>- <span style={{ color: colors.textMuted }}>REMAINING:</span>+ <span style={{ color: colors.textMuted }}>{t('remaining')}:</span><span style={{ color: remaining > 10 ? colors.secondary : colors.alert }}>{remaining}</span><buttononClick={() => fetchData(true)}@@ -197,7 +199,7 @@ const ProfileTab: React.FC = () => {opacity: loading ? 0.5 : 1}}>- {loading ? 'LOADING...' : '↻ REFRESH'}+ {loading ? t('loading') : t('refresh')}</button></div></div>@@ -206,12 +208,12 @@ const ProfileTab: React.FC = () => {<div style={{ backgroundColor: colors.panel, borderBottom: `1px solid ${colors.textMuted}`, padding: '2px 4px', flexShrink: 0 }}><div style={{ display: 'grid', gridTemplateColumns: 'repeat(6, 1fr)', gap: '2px' }}>{[- { key: "F1", label: "OVERVIEW", screen: "overview" },- { key: "F2", label: "USAGE", screen: "usage" },- { key: "F3", label: "SETTINGS", screen: "settings" },- { key: "F4", label: "REFRESH", action: 'refresh' },- { key: "F5", label: "PRICING", action: 'pricing' },- { key: "F6", label: "LOGOUT", action: 'logout' }+ { key: "F1", label: t('overview'), screen: "overview" },+ { key: "F2", label: t('usage'), screen: "usage" },+ { key: "F3", label: t('settings'), screen: "settings" },+ { key: "F4", label: t('refresh'), action: 'refresh' },+ { key: "F5", label: t('pricing'), action: 'pricing' },+ { key: "F6", label: t('logout'), action: 'logout' }].map(item => (<button key={item.key}onClick={() => {@@ -249,27 +251,27 @@ const ProfileTab: React.FC = () => {{/* Left Column */}<div style={{ flex: 1, backgroundColor: colors.panel, border: `1px solid ${colors.textMuted}`, padding: '4px', overflow: 'auto' }}><div style={{ color: colors.primary, fontSize: '12px', fontWeight: 'bold', marginBottom: '4px' }}>- SESSION INFORMATION+ {t('sessionInformation')}</div><div style={{ borderBottom: `1px solid ${colors.textMuted}`, marginBottom: '4px' }}></div><div style={{ marginBottom: '8px', fontSize: '12px' }}><div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>- <span style={{ color: colors.textMuted }}>Account Type:</span>- <span style={{ color: colors.warning, fontWeight: 'bold' }}>GUEST</span>+ <span style={{ color: colors.textMuted }}>{t('accountType')}:</span>+ <span style={{ color: colors.warning, fontWeight: 'bold' }}>{t('guest')}</span></div><div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>- <span style={{ color: colors.textMuted }}>Session Expires:</span>+ <span style={{ color: colors.textMuted }}>{t('sessionExpires')}:</span><span style={{ color: colors.alert }}>{session?.expires_at ? formatDate(session.expires_at) : 'N/A'}</span></div><div style={{ marginBottom: '2px', paddingTop: '4px', borderTop: `1px solid ${colors.textMuted}` }}>- <span style={{ color: colors.textMuted }}>Device ID:</span>+ <span style={{ color: colors.textMuted }}>{t('deviceId')}:</span><div style={{ color: colors.text, fontSize: '11px', marginTop: '2px', wordBreak: 'break-all' }}>{displayDeviceId}</div></div><div style={{ marginBottom: '2px', paddingTop: '4px', borderTop: `1px solid ${colors.textMuted}` }}>- <span style={{ color: colors.textMuted }}>API Key:</span>+ <span style={{ color: colors.textMuted }}>{t('apiKey')}:</span><div style={{ color: colors.text, fontSize: '11px', marginTop: '2px', wordBreak: 'break-all' }}>{session?.api_key ? `${session.api_key.substring(0, 40)}...` : 'N/A'}</div>@@ -278,13 +280,13 @@ const ProfileTab: React.FC = () => {<div style={{ marginTop: '12px' }}><div style={{ color: colors.primary, fontSize: '12px', fontWeight: 'bold', marginBottom: '4px' }}>- DAILY USAGE STATS+ {t('dailyUsageStats')}</div><div style={{ borderBottom: `1px solid ${colors.textMuted}`, marginBottom: '4px' }}></div><div style={{ fontSize: '12px', marginBottom: '6px' }}><div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>- <span style={{ color: colors.textMuted }}>Today's Requests:</span>+ <span style={{ color: colors.textMuted }}>{t('todaysRequests')}:</span><span style={{ color: colors.text, fontWeight: 'bold' }}>{requestsToday}/{dailyLimit}</span></div><div style={{ backgroundColor: colors.background, height: '6px', marginBottom: '4px', border: `1px solid ${colors.textMuted}` }}>@@ -296,12 +298,12 @@ const ProfileTab: React.FC = () => {}} /></div><div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>- <span style={{ color: colors.textMuted }}>Remaining:</span>+ <span style={{ color: colors.textMuted }}>{t('remaining')}:</span><span style={{ color: remaining > 10 ? colors.secondary : colors.alert, fontWeight: 'bold' }}>{remaining}</span></div><div style={{ display: 'flex', justifyContent: 'space-between' }}>- <span style={{ color: colors.textMuted }}>Status:</span>- <span style={{ color: colors.secondary }}>ACTIVE</span>+ <span style={{ color: colors.textMuted }}>{t('status')}:</span>+ <span style={{ color: colors.secondary }}>{t('active')}</span></div></div></div>@@ -310,21 +312,21 @@ const ProfileTab: React.FC = () => {{/* Right Column */}<div style={{ flex: 1, backgroundColor: colors.panel, border: `1px solid ${colors.textMuted}`, padding: '4px', overflow: 'auto' }}><div style={{ color: colors.primary, fontSize: '12px', fontWeight: 'bold', marginBottom: '4px' }}>- UPGRADE TO FULL ACCESS+ {t('upgradeToFullAccess')}</div><div style={{ borderBottom: `1px solid ${colors.textMuted}`, marginBottom: '4px' }}></div><div style={{ fontSize: '12px', color: colors.text, lineHeight: '1.4', marginBottom: '8px' }}><div style={{ color: colors.warning, fontWeight: 'bold', marginBottom: '4px' }}>- Create a free account to unlock:+ {t('createAccountUnlock')}:</div><div style={{ marginLeft: '8px' }}>- <div>- Unlimited API requests</div>- <div>- Permanent API key</div>- <div>- All database access</div>- <div>- Premium features & tools</div>- <div>- Data marketplace</div>- <div>- Advanced analytics</div>+ <div>- {t('unlimitedApiRequests')}</div>+ <div>- {t('permanentApiKey')}</div>+ <div>- {t('allDatabaseAccess')}</div>+ <div>- {t('premiumFeatures')}</div>+ <div>- {t('dataMarketplace')}</div>+ <div>- {t('advancedAnalytics')}</div></div></div>@@ -341,7 +343,7 @@ const ProfileTab: React.FC = () => {cursor: 'pointer'}}>- VIEW PRICING PLANS+ {t('viewPricingPlans')}</button></div></div>@@ -589,7 +591,7 @@ const ProfileTab: React.FC = () => {<span style={{ color: colors.textMuted }}>API Calls:</span><span style={{ color: colors.accent, fontWeight: 'bold' }}>{subscriptionPlan.api_calls_limit === -1 ? 'UNLIMITED' :- subscriptionPlan.api_calls_limit != null ? subscriptionPlan.api_calls_limit.toLocaleString() : 'N/A'}+ subscriptionPlan.api_calls_limit != null ? subscriptionPlan.api_calls_limit.toLocaleString() : 'N/A'}</span></div><div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '6px' }}>diff --git a/fincept-terminal-desktop/src/components/tabs/ReportBuilderTab.tsx b/fincept-terminal-desktop/src/components/tabs/ReportBuilderTab.tsxindex b61636671..071f2d996 100644--- a/fincept-terminal-desktop/src/components/tabs/ReportBuilderTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/ReportBuilderTab.tsx@@ -46,6 +46,7 @@ import { llmApiService, ChatMessage as APIMessage } from '@/services/llmApi';import { sqliteService } from '@/services/sqliteService';import MarkdownRenderer from '../common/MarkdownRenderer';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';// Bloomberg color paletteconst BLOOMBERG_COLORS = {@@ -111,11 +112,10 @@ function SortableComponent({<divref={setNodeRef}style={style}- className={`flex items-center justify-between p-2 mb-1 cursor-pointer transition-colors border-l-2 ${- isSelected- ? 'bg-[#2a2a2a] border-l-[#FFA500]'- : 'bg-transparent border-l-transparent hover:bg-[#1a1a1a]'- }`}+ className={`flex items-center justify-between p-2 mb-1 cursor-pointer transition-colors border-l-2 ${isSelected+ ? 'bg-[#2a2a2a] border-l-[#FFA500]'+ : 'bg-transparent border-l-transparent hover:bg-[#1a1a1a]'+ }`}onClick={onClick}><div className="flex items-center gap-2 flex-1 min-w-0">@@ -148,6 +148,7 @@ function SortableComponent({}const ReportBuilderTab: React.FC = () => {+ const { t } = useTranslation('reportBuilder');const { colors } = useTerminalTheme();const [currentTime, setCurrentTime] = useState(new Date());const [template, setTemplate] = useState<ReportTemplate>({@@ -183,11 +184,11 @@ const ReportBuilderTab: React.FC = () => {const [showColorPicker, setShowColorPicker] = useState<boolean>(false);// AI Chat state- const [aiMessages, setAiMessages] = useState<{role: string, content: string}[]>([]);+ const [aiMessages, setAiMessages] = useState<{ role: string, content: string }[]>([]);const [aiInput, setAiInput] = useState('');const [isAiTyping, setIsAiTyping] = useState(false);const [currentProvider, setCurrentProvider] = useState('ollama');- const [availableModels, setAvailableModels] = useState<{id: string, name: string, provider: string}[]>([]);+ const [availableModels, setAvailableModels] = useState<{ id: string, name: string, provider: string }[]>([]);const [streamingContent, setStreamingContent] = useState('');const aiMessagesEndRef = useRef<HTMLDivElement>(null);@@ -245,9 +246,9 @@ const ReportBuilderTab: React.FC = () => {id: `component-${Date.now()}`,type,content: (type === 'divider' || type === 'pagebreak' || type === 'coverpage' || type === 'section' || type === 'columns') ? '' :- type === 'heading' ? 'New Heading' :- type === 'subheading' ? 'New Subheading' :- type === 'text' ? 'Enter text here...' : '',+ type === 'heading' ? 'New Heading' :+ type === 'subheading' ? 'New Subheading' :+ type === 'text' ? 'Enter text here...' : '',config: {fontSize: type === 'heading' ? '2xl' : type === 'subheading' ? 'xl' : 'base',fontWeight: type === 'heading' || type === 'subheading' ? 'bold' : 'normal',@@ -446,11 +447,10 @@ const ReportBuilderTab: React.FC = () => {}// Add context about the current report- const contextMessage = `I'm working on a report titled "${template.metadata.title}". ${- template.components.length > 0- ? `It has ${template.components.length} components including ${template.components.map(c => c.type).join(', ')}.`- : 'It\'s empty so far.'- } The report uses ${fontFamily} font at ${defaultFontSize}pt with ${pageTheme} theme.`;+ const contextMessage = `I'm working on a report titled "${template.metadata.title}". ${template.components.length > 0+ ? `It has ${template.components.length} components including ${template.components.map(c => c.type).join(', ')}.`+ : 'It\'s empty so far.'+ } The report uses ${fontFamily} font at ${defaultFontSize}pt with ${pageTheme} theme.`;const conversationHistory: APIMessage[] = [{ role: 'system', content: `You are a professional writing assistant helping to create financial reports. ${contextMessage}` },@@ -595,7 +595,7 @@ const ReportBuilderTab: React.FC = () => {<div className="flex items-center gap-4"><div className="flex items-center gap-2"><FileText className="w-5 h-5" style={{ color: BLOOMBERG_COLORS.ORANGE }} />- <span className="font-bold text-sm" style={{ color: BLOOMBERG_COLORS.ORANGE }}>REPORT BUILDER</span>+ <span className="font-bold text-sm" style={{ color: BLOOMBERG_COLORS.ORANGE }}>{t('title')}</span></div><span className="text-xs" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>{currentTime.toLocaleTimeString()}@@ -930,11 +930,10 @@ const ReportBuilderTab: React.FC = () => {<buttonkey={color}onClick={() => setCustomBgColor(color)}- className={`w-full aspect-square rounded border-2 transition-all hover:scale-110 ${- customBgColor.toLowerCase() === color.toLowerCase()- ? 'border-[#FFA500] ring-2 ring-[#FFA500]'- : 'border-[#333333] hover:border-[#666]'- }`}+ className={`w-full aspect-square rounded border-2 transition-all hover:scale-110 ${customBgColor.toLowerCase() === color.toLowerCase()+ ? 'border-[#FFA500] ring-2 ring-[#FFA500]'+ : 'border-[#333333] hover:border-[#666]'+ }`}style={{ backgroundColor: color }}title={color}/>@@ -1041,22 +1040,20 @@ const ReportBuilderTab: React.FC = () => {<div className="flex gap-2"><buttononClick={() => setIsBold(!isBold)}- className={`flex-1 px-3 py-2 rounded border transition-all ${- isBold- ? 'bg-[#FFA500] border-[#FFA500] text-black'- : 'bg-[#0a0a0a] border-[#333333] text-gray-400 hover:border-[#FFA500]'- }`}+ className={`flex-1 px-3 py-2 rounded border transition-all ${isBold+ ? 'bg-[#FFA500] border-[#FFA500] text-black'+ : 'bg-[#0a0a0a] border-[#333333] text-gray-400 hover:border-[#FFA500]'+ }`}title="Toggle Bold"><Bold size={16} className="mx-auto" /></button><buttononClick={() => setIsItalic(!isItalic)}- className={`flex-1 px-3 py-2 rounded border transition-all ${- isItalic- ? 'bg-[#FFA500] border-[#FFA500] text-black'- : 'bg-[#0a0a0a] border-[#333333] text-gray-400 hover:border-[#FFA500]'- }`}+ className={`flex-1 px-3 py-2 rounded border transition-all ${isItalic+ ? 'bg-[#FFA500] border-[#FFA500] text-black'+ : 'bg-[#0a0a0a] border-[#333333] text-gray-400 hover:border-[#FFA500]'+ }`}title="Toggle Italic"><Italic size={16} className="mx-auto" />@@ -1144,9 +1141,8 @@ const ReportBuilderTab: React.FC = () => {<divkey={component.id}onClick={() => setSelectedComponent(component.id)}- className={`cursor-pointer transition-all ${- isSelected ? 'ring-2 ring-orange-500 ring-offset-2' : 'hover:ring-1 hover:ring-gray-300'- }`}+ className={`cursor-pointer transition-all ${isSelected ? 'ring-2 ring-orange-500 ring-offset-2' : 'hover:ring-1 hover:ring-gray-300'+ }`}>{/* Render component based on type */}{component.type === 'heading' && (@@ -1264,9 +1260,8 @@ const ReportBuilderTab: React.FC = () => {<div className="flex border-b" style={{ borderColor: BLOOMBERG_COLORS.BORDER }}><buttononClick={() => setRightPanelView('properties')}- className={`flex-1 px-3 py-2 text-xs font-semibold transition-colors flex items-center justify-center gap-1 ${- rightPanelView === 'properties' ? 'bg-[#FFA500] text-black' : 'bg-transparent hover:bg-[#2a2a2a]'- }`}+ className={`flex-1 px-3 py-2 text-xs font-semibold transition-colors flex items-center justify-center gap-1 ${rightPanelView === 'properties' ? 'bg-[#FFA500] text-black' : 'bg-transparent hover:bg-[#2a2a2a]'+ }`}style={{ color: rightPanelView === 'properties' ? '#000' : BLOOMBERG_COLORS.TEXT_PRIMARY }}><SettingsIcon size={14} />@@ -1274,9 +1269,8 @@ const ReportBuilderTab: React.FC = () => {</button><buttononClick={() => setRightPanelView('chat')}- className={`flex-1 px-3 py-2 text-xs font-semibold transition-colors flex items-center justify-center gap-1 ${- rightPanelView === 'chat' ? 'bg-[#FFA500] text-black' : 'bg-transparent hover:bg-[#2a2a2a]'- }`}+ className={`flex-1 px-3 py-2 text-xs font-semibold transition-colors flex items-center justify-center gap-1 ${rightPanelView === 'chat' ? 'bg-[#FFA500] text-black' : 'bg-transparent hover:bg-[#2a2a2a]'+ }`}style={{ color: rightPanelView === 'chat' ? '#000' : BLOOMBERG_COLORS.TEXT_PRIMARY }}><MessageSquare size={14} />@@ -1284,9 +1278,8 @@ const ReportBuilderTab: React.FC = () => {</button><buttononClick={() => setRightPanelView('split')}- className={`px-3 py-2 text-xs font-semibold transition-colors flex items-center justify-center ${- rightPanelView === 'split' ? 'bg-[#FFA500] text-black' : 'bg-transparent hover:bg-[#2a2a2a]'- }`}+ className={`px-3 py-2 text-xs font-semibold transition-colors flex items-center justify-center ${rightPanelView === 'split' ? 'bg-[#FFA500] text-black' : 'bg-transparent hover:bg-[#2a2a2a]'+ }`}style={{ color: rightPanelView === 'split' ? '#000' : BLOOMBERG_COLORS.TEXT_PRIMARY }}title="Split View">@@ -1296,385 +1289,383 @@ const ReportBuilderTab: React.FC = () => {{/* Properties Section */}{(rightPanelView === 'properties' || rightPanelView === 'split') && (- <div className={`${rightPanelView === 'split' ? 'flex-1 border-b' : 'flex-1'} overflow-y-auto min-h-0`} style={{ borderColor: BLOOMBERG_COLORS.BORDER }}>- {selectedComp ? (- <div className="p-4">- <div className="flex items-center justify-between mb-4">- <h3 className="text-sm font-bold" style={{ color: BLOOMBERG_COLORS.ORANGE }}>PROPERTIES</h3>- <button- onClick={() => setSelectedComponent(null)}- className="p-1 hover:bg-[#2a2a2a] rounded"- style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}- >- <X size={16} />- </button>- </div>-- <div className="space-y-4">- {/* Component Type */}- <div>- <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Type- </label>- <div className="px-3 py-2 text-xs rounded bg-[#0a0a0a] capitalize">- {selectedComp.type}- </div>- </div>-- {/* Content Editor */}- {(selectedComp.type === 'heading' || selectedComp.type === 'text' || selectedComp.type === 'code') && (- <div>- <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Content- </label>- <textarea- value={selectedComp.content || ''}- onChange={(e) => updateComponent(selectedComp.id, { content: e.target.value })}- className="w-full px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- rows={selectedComp.type === 'code' ? 10 : 4}- placeholder="Enter content..."- />+ <div className={`${rightPanelView === 'split' ? 'flex-1 border-b' : 'flex-1'} overflow-y-auto min-h-0`} style={{ borderColor: BLOOMBERG_COLORS.BORDER }}>+ {selectedComp ? (+ <div className="p-4">+ <div className="flex items-center justify-between mb-4">+ <h3 className="text-sm font-bold" style={{ color: BLOOMBERG_COLORS.ORANGE }}>PROPERTIES</h3>+ <button+ onClick={() => setSelectedComponent(null)}+ className="p-1 hover:bg-[#2a2a2a] rounded"+ style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}+ >+ <X size={16} />+ </button></div>- )}- {/* Alignment */}- {(selectedComp.type === 'heading' || selectedComp.type === 'text') && (- <div>- <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Alignment- </label>- <div className="flex gap-2">- {['left', 'center', 'right'].map((align) => (- <button- key={align}- onClick={() => updateComponent(selectedComp.id, {- config: { ...selectedComp.config, alignment: align as any }- })}- className={`flex-1 px-3 py-2 text-xs rounded transition-colors capitalize ${- selectedComp.config.alignment === align- ? 'bg-[#FFA500] text-black'- : 'bg-[#0a0a0a] hover:bg-[#2a2a2a]'- }`}- >- {align}- </button>- ))}+ <div className="space-y-4">+ {/* Component Type */}+ <div>+ <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Type+ </label>+ <div className="px-3 py-2 text-xs rounded bg-[#0a0a0a] capitalize">+ {selectedComp.type}+ </div></div>- </div>- )}- {/* Font Size */}- {(selectedComp.type === 'heading' || selectedComp.type === 'text') && (- <div>- <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Font Size- </label>- <select- value={selectedComp.config.fontSize || 'base'}- onChange={(e) => updateComponent(selectedComp.id, {- config: { ...selectedComp.config, fontSize: e.target.value }- })}- className="w-full px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- >- <option value="xs">Extra Small</option>- <option value="sm">Small</option>- <option value="base">Base</option>- <option value="lg">Large</option>- <option value="xl">Extra Large</option>- <option value="2xl">2X Large</option>- <option value="3xl">3X Large</option>- </select>- </div>- )}+ {/* Content Editor */}+ {(selectedComp.type === 'heading' || selectedComp.type === 'text' || selectedComp.type === 'code') && (+ <div>+ <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Content+ </label>+ <textarea+ value={selectedComp.content || ''}+ onChange={(e) => updateComponent(selectedComp.id, { content: e.target.value })}+ className="w-full px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ rows={selectedComp.type === 'code' ? 10 : 4}+ placeholder="Enter content..."+ />+ </div>+ )}- {/* Image Upload */}- {selectedComp.type === 'image' && (- <div>- <label className="text-xs font-semibold mb-2 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Image- </label>- {selectedComp.config.imageUrl ? (- <div className="space-y-2">- <div className="text-xs text-gray-400 break-all bg-[#0a0a0a] p-2 rounded">- {selectedComp.config.imageUrl.split('\\').pop()}- </div>+ {/* Alignment */}+ {(selectedComp.type === 'heading' || selectedComp.type === 'text') && (+ <div>+ <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Alignment+ </label><div className="flex gap-2">+ {['left', 'center', 'right'].map((align) => (+ <button+ key={align}+ onClick={() => updateComponent(selectedComp.id, {+ config: { ...selectedComp.config, alignment: align as any }+ })}+ className={`flex-1 px-3 py-2 text-xs rounded transition-colors capitalize ${selectedComp.config.alignment === align+ ? 'bg-[#FFA500] text-black'+ : 'bg-[#0a0a0a] hover:bg-[#2a2a2a]'+ }`}+ >+ {align}+ </button>+ ))}+ </div>+ </div>+ )}++ {/* Font Size */}+ {(selectedComp.type === 'heading' || selectedComp.type === 'text') && (+ <div>+ <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Font Size+ </label>+ <select+ value={selectedComp.config.fontSize || 'base'}+ onChange={(e) => updateComponent(selectedComp.id, {+ config: { ...selectedComp.config, fontSize: e.target.value }+ })}+ className="w-full px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ >+ <option value="xs">Extra Small</option>+ <option value="sm">Small</option>+ <option value="base">Base</option>+ <option value="lg">Large</option>+ <option value="xl">Extra Large</option>+ <option value="2xl">2X Large</option>+ <option value="3xl">3X Large</option>+ </select>+ </div>+ )}++ {/* Image Upload */}+ {selectedComp.type === 'image' && (+ <div>+ <label className="text-xs font-semibold mb-2 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Image+ </label>+ {selectedComp.config.imageUrl ? (+ <div className="space-y-2">+ <div className="text-xs text-gray-400 break-all bg-[#0a0a0a] p-2 rounded">+ {selectedComp.config.imageUrl.split('\\').pop()}+ </div>+ <div className="flex gap-2">+ <button+ onClick={handleImageUpload}+ className="flex-1 px-3 py-2 text-xs rounded bg-blue-600 hover:bg-blue-700 transition-colors"+ >+ Change Image+ </button>+ <button+ onClick={() => updateComponent(selectedComp.id, {+ config: { ...selectedComp.config, imageUrl: undefined }+ })}+ className="flex-1 px-3 py-2 text-xs rounded bg-red-600 hover:bg-red-700 transition-colors"+ >+ Remove+ </button>+ </div>+ </div>+ ) : (<buttononClick={handleImageUpload}- className="flex-1 px-3 py-2 text-xs rounded bg-blue-600 hover:bg-blue-700 transition-colors"+ className="w-full px-3 py-2 text-xs rounded transition-colors flex items-center justify-center gap-2"+ style={{ backgroundColor: BLOOMBERG_COLORS.ORANGE, color: BLOOMBERG_COLORS.BLACK }}>- Change Image+ <Plus size={14} />+ Upload Image</button>- <button- onClick={() => updateComponent(selectedComp.id, {- config: { ...selectedComp.config, imageUrl: undefined }- })}- className="flex-1 px-3 py-2 text-xs rounded bg-red-600 hover:bg-red-700 transition-colors"- >- Remove- </button>- </div>+ )}</div>- ) : (- <button- onClick={handleImageUpload}- className="w-full px-3 py-2 text-xs rounded transition-colors flex items-center justify-center gap-2"- style={{ backgroundColor: BLOOMBERG_COLORS.ORANGE, color: BLOOMBERG_COLORS.BLACK }}- >- <Plus size={14} />- Upload Image- </button>)}- </div>- )}- {/* Table Columns */}- {selectedComp.type === 'table' && (- <div>- <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Columns (comma-separated)- </label>- <input- type="text"- value={(selectedComp.config.columns || []).join(', ')}- onChange={(e) => updateComponent(selectedComp.id, {- config: { ...selectedComp.config, columns: e.target.value.split(',').map(s => s.trim()) }- })}- className="w-full px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- placeholder="Column 1, Column 2, Column 3"- />- </div>- )}+ {/* Table Columns */}+ {selectedComp.type === 'table' && (+ <div>+ <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Columns (comma-separated)+ </label>+ <input+ type="text"+ value={(selectedComp.config.columns || []).join(', ')}+ onChange={(e) => updateComponent(selectedComp.id, {+ config: { ...selectedComp.config, columns: e.target.value.split(',').map(s => s.trim()) }+ })}+ className="w-full px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ placeholder="Column 1, Column 2, Column 3"+ />+ </div>+ )}- {/* Chart Type */}- {selectedComp.type === 'chart' && (- <div>- <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Chart Type- </label>- <select- value={selectedComp.config.chartType || 'bar'}- onChange={(e) => updateComponent(selectedComp.id, {- config: { ...selectedComp.config, chartType: e.target.value }- })}- className="w-full px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- >- <option value="bar">Bar Chart</option>- <option value="line">Line Chart</option>- <option value="pie">Pie Chart</option>- <option value="area">Area Chart</option>- </select>- </div>- )}+ {/* Chart Type */}+ {selectedComp.type === 'chart' && (+ <div>+ <label className="text-xs font-semibold mb-1 block" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Chart Type+ </label>+ <select+ value={selectedComp.config.chartType || 'bar'}+ onChange={(e) => updateComponent(selectedComp.id, {+ config: { ...selectedComp.config, chartType: e.target.value }+ })}+ className="w-full px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ >+ <option value="bar">Bar Chart</option>+ <option value="line">Line Chart</option>+ <option value="pie">Pie Chart</option>+ <option value="area">Area Chart</option>+ </select>+ </div>+ )}- {/* Actions */}- <div className="pt-4 border-t" style={{ borderColor: BLOOMBERG_COLORS.BORDER }}>- <div className="flex gap-2">- <button- onClick={() => duplicateComponent(selectedComp.id)}- className="flex-1 px-3 py-2 text-xs rounded bg-[#0a0a0a] hover:bg-[#2a2a2a] transition-colors flex items-center justify-center gap-2"- >- <Copy size={14} />- Duplicate- </button>- <button- onClick={() => deleteComponent(selectedComp.id)}- className="flex-1 px-3 py-2 text-xs rounded bg-red-600 hover:bg-red-700 transition-colors flex items-center justify-center gap-2"- >- <Trash2 size={14} />- Delete- </button>+ {/* Actions */}+ <div className="pt-4 border-t" style={{ borderColor: BLOOMBERG_COLORS.BORDER }}>+ <div className="flex gap-2">+ <button+ onClick={() => duplicateComponent(selectedComp.id)}+ className="flex-1 px-3 py-2 text-xs rounded bg-[#0a0a0a] hover:bg-[#2a2a2a] transition-colors flex items-center justify-center gap-2"+ >+ <Copy size={14} />+ Duplicate+ </button>+ <button+ onClick={() => deleteComponent(selectedComp.id)}+ className="flex-1 px-3 py-2 text-xs rounded bg-red-600 hover:bg-red-700 transition-colors flex items-center justify-center gap-2"+ >+ <Trash2 size={14} />+ Delete+ </button>+ </div>+ </div></div></div>- </div>- </div>- ) : (- <div className="p-4 text-center" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- <SettingsIcon size={32} className="mx-auto mb-2 opacity-30" />- <p className="text-xs">Select a component to edit properties</p>- </div>- )}- </div>- )}-- {/* AI Writing Assistant Section */}- {(rightPanelView === 'chat' || rightPanelView === 'split') && (- <div className={`${rightPanelView === 'split' ? 'flex-1' : 'flex-1'} flex flex-col min-h-0`} style={{ backgroundColor: BLOOMBERG_COLORS.PANEL_BG }}>- {/* AI Assistant Header */}- <div className="p-4 border-b border-[#333333] flex-shrink-0">- <div className="flex items-center justify-between mb-3">- <div className="flex items-center gap-2">- <Bot size={18} style={{ color: BLOOMBERG_COLORS.ORANGE }} />- <h3 className="text-sm font-bold" style={{ color: BLOOMBERG_COLORS.ORANGE }}>- AI WRITING ASSISTANT- </h3>- </div>- <Sparkles size={16} style={{ color: BLOOMBERG_COLORS.ORANGE }} />- </div>-- {/* Model Selector */}- <div className="mb-3">- <label className="text-[9px] block mb-1" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- AI Model- </label>- <select- value={currentProvider}- onChange={(e) => setCurrentProvider(e.target.value)}- className="w-full px-2 py-1 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- >- {availableModels.map(model => (- <option key={model.id} value={model.provider}>- {model.name} ({model.provider})- </option>- ))}- {availableModels.length === 0 && (- <option value="ollama">Configure in Settings</option>+ ) : (+ <div className="p-4 text-center" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ <SettingsIcon size={32} className="mx-auto mb-2 opacity-30" />+ <p className="text-xs">Select a component to edit properties</p>+ </div>)}- </select>- </div>-- {/* Quick Actions */}- <div className="grid grid-cols-2 gap-1">- <button- onClick={() => handleAiQuickAction('improve')}- className="px-2 py-1 text-[9px] rounded bg-[#0a0a0a] border border-[#333333] hover:border-[#FFA500] transition-colors"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- >- ✨ Improve- </button>- <button- onClick={() => handleAiQuickAction('expand')}- className="px-2 py-1 text-[9px] rounded bg-[#0a0a0a] border border-[#333333] hover:border-[#FFA500] transition-colors"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- >- 📝 Expand- </button>- <button- onClick={() => handleAiQuickAction('summarize')}- className="px-2 py-1 text-[9px] rounded bg-[#0a0a0a] border border-[#333333] hover:border-[#FFA500] transition-colors"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- >- 📋 Summary- </button>- <button- onClick={() => handleAiQuickAction('grammar')}- className="px-2 py-1 text-[9px] rounded bg-[#0a0a0a] border border-[#333333] hover:border-[#FFA500] transition-colors"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- >- ✓ Grammar- </button>- </div>- </div>-- {/* AI Chat Messages */}- <div className="flex-1 overflow-y-auto p-4 space-y-3 min-h-0">- {aiMessages.length === 0 && (- <div className="text-center py-8">- <Bot size={32} className="mx-auto mb-3" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }} />- <p className="text-xs" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Ask me to help you write better reports!- </p>- <p className="text-[9px] mt-2" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- Try: "Help me write an introduction"- </p></div>)}- {aiMessages.map((msg, idx) => (- <div key={idx} className={`flex gap-2 ${msg.role === 'user' ? 'justify-end' : 'justify-start'}`}>- {msg.role === 'assistant' && (- <div className="flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center" style={{ backgroundColor: BLOOMBERG_COLORS.ORANGE }}>- <Bot size={14} style={{ color: '#000' }} />- </div>- )}- <div- className={`max-w-[85%] rounded-lg p-3 ${- msg.role === 'user'- ? 'bg-[#FFA500] text-black'- : 'bg-[#1a1a1a] border border-[#333333]'- }`}- >- <div className="text-xs break-words" style={{ color: msg.role === 'user' ? '#000' : BLOOMBERG_COLORS.TEXT_PRIMARY }}>- {msg.role === 'assistant' ? (- <MarkdownRenderer content={msg.content} />- ) : (- msg.content- )}+ {/* AI Writing Assistant Section */}+ {(rightPanelView === 'chat' || rightPanelView === 'split') && (+ <div className={`${rightPanelView === 'split' ? 'flex-1' : 'flex-1'} flex flex-col min-h-0`} style={{ backgroundColor: BLOOMBERG_COLORS.PANEL_BG }}>+ {/* AI Assistant Header */}+ <div className="p-4 border-b border-[#333333] flex-shrink-0">+ <div className="flex items-center justify-between mb-3">+ <div className="flex items-center gap-2">+ <Bot size={18} style={{ color: BLOOMBERG_COLORS.ORANGE }} />+ <h3 className="text-sm font-bold" style={{ color: BLOOMBERG_COLORS.ORANGE }}>+ AI WRITING ASSISTANT+ </h3>+ </div>+ <Sparkles size={16} style={{ color: BLOOMBERG_COLORS.ORANGE }} /></div>- </div>- {msg.role === 'user' && (- <div className="flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center bg-[#333333]">- <User size={14} style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }} />++ {/* Model Selector */}+ <div className="mb-3">+ <label className="text-[9px] block mb-1" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ AI Model+ </label>+ <select+ value={currentProvider}+ onChange={(e) => setCurrentProvider(e.target.value)}+ className="w-full px-2 py-1 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ >+ {availableModels.map(model => (+ <option key={model.id} value={model.provider}>+ {model.name} ({model.provider})+ </option>+ ))}+ {availableModels.length === 0 && (+ <option value="ollama">Configure in Settings</option>+ )}+ </select></div>- )}- </div>- ))}- {isAiTyping && streamingContent && (- <div className="flex gap-2 justify-start">- <div className="flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center" style={{ backgroundColor: BLOOMBERG_COLORS.ORANGE }}>- <Bot size={14} style={{ color: '#000' }} />- </div>- <div className="max-w-[85%] rounded-lg p-3 bg-[#1a1a1a] border border-[#333333]">- <div className="text-xs break-words" style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}>- <MarkdownRenderer content={streamingContent} />+ {/* Quick Actions */}+ <div className="grid grid-cols-2 gap-1">+ <button+ onClick={() => handleAiQuickAction('improve')}+ className="px-2 py-1 text-[9px] rounded bg-[#0a0a0a] border border-[#333333] hover:border-[#FFA500] transition-colors"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ >+ ✨ Improve+ </button>+ <button+ onClick={() => handleAiQuickAction('expand')}+ className="px-2 py-1 text-[9px] rounded bg-[#0a0a0a] border border-[#333333] hover:border-[#FFA500] transition-colors"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ >+ 📝 Expand+ </button>+ <button+ onClick={() => handleAiQuickAction('summarize')}+ className="px-2 py-1 text-[9px] rounded bg-[#0a0a0a] border border-[#333333] hover:border-[#FFA500] transition-colors"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ >+ 📋 Summary+ </button>+ <button+ onClick={() => handleAiQuickAction('grammar')}+ className="px-2 py-1 text-[9px] rounded bg-[#0a0a0a] border border-[#333333] hover:border-[#FFA500] transition-colors"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ >+ ✓ Grammar+ </button></div></div>- </div>- )}- {isAiTyping && !streamingContent && (- <div className="flex gap-2 justify-start">- <div className="flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center" style={{ backgroundColor: BLOOMBERG_COLORS.ORANGE }}>- <Bot size={14} style={{ color: '#000' }} />+ {/* AI Chat Messages */}+ <div className="flex-1 overflow-y-auto p-4 space-y-3 min-h-0">+ {aiMessages.length === 0 && (+ <div className="text-center py-8">+ <Bot size={32} className="mx-auto mb-3" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }} />+ <p className="text-xs" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Ask me to help you write better reports!+ </p>+ <p className="text-[9px] mt-2" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ Try: "Help me write an introduction"+ </p>+ </div>+ )}++ {aiMessages.map((msg, idx) => (+ <div key={idx} className={`flex gap-2 ${msg.role === 'user' ? 'justify-end' : 'justify-start'}`}>+ {msg.role === 'assistant' && (+ <div className="flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center" style={{ backgroundColor: BLOOMBERG_COLORS.ORANGE }}>+ <Bot size={14} style={{ color: '#000' }} />+ </div>+ )}+ <div+ className={`max-w-[85%] rounded-lg p-3 ${msg.role === 'user'+ ? 'bg-[#FFA500] text-black'+ : 'bg-[#1a1a1a] border border-[#333333]'+ }`}+ >+ <div className="text-xs break-words" style={{ color: msg.role === 'user' ? '#000' : BLOOMBERG_COLORS.TEXT_PRIMARY }}>+ {msg.role === 'assistant' ? (+ <MarkdownRenderer content={msg.content} />+ ) : (+ msg.content+ )}+ </div>+ </div>+ {msg.role === 'user' && (+ <div className="flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center bg-[#333333]">+ <User size={14} style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }} />+ </div>+ )}+ </div>+ ))}++ {isAiTyping && streamingContent && (+ <div className="flex gap-2 justify-start">+ <div className="flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center" style={{ backgroundColor: BLOOMBERG_COLORS.ORANGE }}>+ <Bot size={14} style={{ color: '#000' }} />+ </div>+ <div className="max-w-[85%] rounded-lg p-3 bg-[#1a1a1a] border border-[#333333]">+ <div className="text-xs break-words" style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}>+ <MarkdownRenderer content={streamingContent} />+ </div>+ </div>+ </div>+ )}++ {isAiTyping && !streamingContent && (+ <div className="flex gap-2 justify-start">+ <div className="flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center" style={{ backgroundColor: BLOOMBERG_COLORS.ORANGE }}>+ <Bot size={14} style={{ color: '#000' }} />+ </div>+ <div className="max-w-[85%] rounded-lg p-3 bg-[#1a1a1a] border border-[#333333]">+ <div className="text-xs flex gap-1" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>+ <span className="animate-bounce">●</span>+ <span className="animate-bounce delay-100">●</span>+ <span className="animate-bounce delay-200">●</span>+ </div>+ </div>+ </div>+ )}++ <div ref={aiMessagesEndRef} /></div>- <div className="max-w-[85%] rounded-lg p-3 bg-[#1a1a1a] border border-[#333333]">- <div className="text-xs flex gap-1" style={{ color: BLOOMBERG_COLORS.TEXT_SECONDARY }}>- <span className="animate-bounce">●</span>- <span className="animate-bounce delay-100">●</span>- <span className="animate-bounce delay-200">●</span>++ {/* AI Input */}+ <div className="p-4 border-t border-[#333333] flex-shrink-0">+ <div className="flex gap-2">+ <input+ type="text"+ value={aiInput}+ onChange={(e) => setAiInput(e.target.value)}+ onKeyPress={(e) => e.key === 'Enter' && handleAiSendMessage()}+ placeholder="Ask AI to help with your report..."+ className="flex-1 px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"+ style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}+ disabled={isAiTyping}+ />+ <button+ onClick={handleAiSendMessage}+ disabled={isAiTyping || !aiInput.trim()}+ className="px-3 py-2 rounded transition-all disabled:opacity-50 disabled:cursor-not-allowed"+ style={{+ backgroundColor: BLOOMBERG_COLORS.ORANGE,+ color: '#000'+ }}+ >+ <Send size={16} />+ </button></div></div></div>)}-- <div ref={aiMessagesEndRef} /></div>-- {/* AI Input */}- <div className="p-4 border-t border-[#333333] flex-shrink-0">- <div className="flex gap-2">- <input- type="text"- value={aiInput}- onChange={(e) => setAiInput(e.target.value)}- onKeyPress={(e) => e.key === 'Enter' && handleAiSendMessage()}- placeholder="Ask AI to help with your report..."- className="flex-1 px-3 py-2 text-xs rounded bg-[#0a0a0a] border border-[#333333] focus:border-[#FFA500] outline-none"- style={{ color: BLOOMBERG_COLORS.TEXT_PRIMARY }}- disabled={isAiTyping}- />- <button- onClick={handleAiSendMessage}- disabled={isAiTyping || !aiInput.trim()}- className="px-3 py-2 rounded transition-all disabled:opacity-50 disabled:cursor-not-allowed"- style={{- backgroundColor: BLOOMBERG_COLORS.ORANGE,- color: '#000'- }}- >- <Send size={16} />- </button>- </div>- </div>- </div>- )}- </div></div>{/* Success Dialog */}diff --git a/fincept-terminal-desktop/src/components/tabs/ScreenerTab.tsx b/fincept-terminal-desktop/src/components/tabs/ScreenerTab.tsxindex 07b520e13..3ca6abbcd 100644--- a/fincept-terminal-desktop/src/components/tabs/ScreenerTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/ScreenerTab.tsx@@ -5,6 +5,7 @@ import { LineChart, Line, AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip,import { sqliteService } from '@/services/sqliteService';import { invoke } from '@tauri-apps/api/core';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';interface SeriesData {date: string;@@ -60,6 +61,7 @@ const POPULAR_CATEGORIES = [export default function ScreenerTab() {const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();+ const { t } = useTranslation('screener');const [seriesIds, setSeriesIds] = useState('GDP');const [startDate, setStartDate] = useState('2000-01-01');const [endDate, setEndDate] = useState(new Date().toISOString().split('T')[0]);@@ -77,7 +79,7 @@ export default function ScreenerTab() {const [searchLoading, setSearchLoading] = useState(false);const [categories, setCategories] = useState<Category[]>([]);const [currentCategory, setCurrentCategory] = useState<number>(0);- const [categoryPath, setCategoryPath] = useState<{id: number, name: string}[]>([{id: 0, name: 'All Categories'}]);+ const [categoryPath, setCategoryPath] = useState<{ id: number, name: string }[]>([{ id: 0, name: 'All Categories' }]);const [categoryLoading, setCategoryLoading] = useState(false);const [categorySeriesResults, setCategorySeriesResults] = useState<SearchResult[]>([]);const [categorySeriesLoading, setCategorySeriesLoading] = useState(false);@@ -197,7 +199,7 @@ export default function ScreenerTab() {};// Navigate to category- const navigateToCategory = async (cat: {id: number, name: string}) => {+ const navigateToCategory = async (cat: { id: number, name: string }) => {setCurrentCategory(cat.id);setCategoryPath([...categoryPath, cat]);setSearchQuery('');@@ -520,7 +522,7 @@ export default function ScreenerTab() {<div style={{ display: 'flex', alignItems: 'center', gap: '10px' }}><FolderTree size={16} color={colors.primary} /><span style={{ color: colors.primary, fontSize: fontSize.heading, fontWeight: 'bold', letterSpacing: '0.5px' }}>- FRED SERIES BROWSER+ {t('title')}</span></div><button@@ -894,7 +896,7 @@ export default function ScreenerTab() {<div style={{ display: 'flex', alignItems: 'center', gap: '10px' }}><BarChart3 size={16} color={colors.primary} /><span style={{ color: colors.primary, fontSize: fontSize.heading, fontWeight: 'bold', letterSpacing: '0.5px' }}>- FRED DATA EXPLORER+ {t('header.title')}</span></div><div style={{ display: 'flex', gap: '6px' }}>@@ -1001,7 +1003,7 @@ export default function ScreenerTab() {<AlertCircle size={20} color={colors.warning} style={{ flexShrink: 0, marginTop: '2px' }} /><div style={{ flex: 1 }}><p style={{ color: colors.warning, fontSize: fontSize.body, fontWeight: 'bold', marginBottom: '6px' }}>- API KEY REQUIRED+ {t('apiKey.required')}</p><p style={{ color: colors.text, fontSize: fontSize.small, lineHeight: '1.5', marginBottom: '8px' }}>Configure your FRED API key in <strong>Settings → Credentials</strong> to access economic data.@@ -1039,7 +1041,7 @@ export default function ScreenerTab() {<div style={{ display: 'grid', gridTemplateColumns: '2fr 1fr 1fr auto', gap: '10px', marginBottom: '10px' }}><div><label style={{ color: colors.textMuted, fontSize: fontSize.tiny, display: 'block', marginBottom: '4px', fontWeight: 'bold' }}>- SERIES IDs+ {t('form.seriesIds')}</label><inputtype="text"@@ -1127,7 +1129,7 @@ export default function ScreenerTab() {onMouseLeave={(e) => !loading && (e.currentTarget.style.opacity = '1')}>{loading ? <Loader2 size={12} className="animate-spin" /> : <Search size={12} />}- {loading ? 'LOADING' : 'FETCH'}+ {loading ? t('buttons.loading') : t('buttons.fetch')}</button></div>@@ -1135,7 +1137,7 @@ export default function ScreenerTab() {<div style={{ display: 'flex', alignItems: 'flex-end', gap: '10px' }}><div style={{ flex: 1 }}><label style={{ color: colors.textMuted, fontSize: fontSize.tiny, marginBottom: '6px', display: 'block', fontWeight: 'bold' }}>- QUICK ADD+ {t('form.quickAdd')}</label><div style={{ display: 'flex', gap: '4px', flexWrap: 'wrap' }}>{POPULAR_SERIES.map(series => (@@ -1194,7 +1196,7 @@ export default function ScreenerTab() {onMouseLeave={(e) => apiKeyConfigured && (e.currentTarget.style.opacity = '1')}><FolderTree size={12} />- BROWSE SERIES+ {t('buttons.browse')}</button></div></div>@@ -1214,7 +1216,7 @@ export default function ScreenerTab() {flexDirection: 'column'}}><h3 style={{ color: colors.primary, fontSize: fontSize.body, fontWeight: 'bold', marginBottom: '10px', letterSpacing: '0.5px' }}>- TIME SERIES CHART+ {t('chart.title')}</h3>{loading && (@@ -1277,8 +1279,8 @@ export default function ScreenerTab() {gap: '10px'}}><TrendingUp size={48} color={colors.textMuted} opacity={0.3} />- <p style={{ color: colors.text }}>Enter series IDs and click FETCH to visualize data</p>- <p style={{ fontSize: fontSize.small, color: colors.textMuted }}>Try searching for GDP, UNRATE, or CPIAUCSL</p>+ <p style={{ color: colors.text }}>{t('chart.emptyState')}</p>+ <p style={{ fontSize: fontSize.small, color: colors.textMuted }}>{t('chart.trySuggestion')}</p></div>)}diff --git a/fincept-terminal-desktop/src/components/tabs/SettingsTab.tsx b/fincept-terminal-desktop/src/components/tabs/SettingsTab.tsxindex 37ea22c22..684e5d9c3 100644--- a/fincept-terminal-desktop/src/components/tabs/SettingsTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/SettingsTab.tsx@@ -660,13 +660,13 @@ export default function SettingsTab() {<div style={{ width: '220px', borderRight: '1px solid #1a1a1a', background: colors.panel, flexShrink: 0 }}><div style={{ padding: '16px 0' }}>{[- { id: 'credentials', icon: Lock, label: t('sections.credentials') },- { id: 'llm', icon: Bot, label: t('sections.llm') },- { id: 'dataConnections', icon: Database, label: t('sections.dataConnections') },- { id: 'backtesting', icon: Activity, label: t('sections.backtesting') },- { id: 'terminalConfig', icon: SettingsIcon, label: t('sections.terminalConfig') },- { id: 'terminal', icon: Terminal, label: t('sections.terminal') },- { id: 'language', icon: Globe, label: t('sections.language') }+ { id: 'credentials', icon: Lock, label: t('sidebar.credentials') },+ { id: 'llm', icon: Bot, label: t('sidebar.llm') },+ { id: 'dataConnections', icon: Database, label: t('sidebar.dataSources') },+ { id: 'backtesting', icon: Activity, label: t('sidebar.backtesting') },+ { id: 'terminalConfig', icon: SettingsIcon, label: t('sidebar.tabLayout') },+ { id: 'terminal', icon: Terminal, label: t('sidebar.appearance') },+ { id: 'language', icon: Globe, label: t('sidebar.language') }].map((item) => (<divkey={item.id}diff --git a/fincept-terminal-desktop/src/components/tabs/SupportTicketTab.tsx b/fincept-terminal-desktop/src/components/tabs/SupportTicketTab.tsxindex eb60aa73d..ecefc04d6 100644--- a/fincept-terminal-desktop/src/components/tabs/SupportTicketTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/SupportTicketTab.tsx@@ -4,10 +4,12 @@ import { SupportApiService } from '@/services/supportApi';import { useTerminalTheme } from '@/contexts/ThemeContext';import { RefreshCw, Plus, ArrowLeft, Send, CheckCircle2, XCircle, Clock } from 'lucide-react';import { TabFooter } from '@/components/common/TabFooter';+import { useTranslation } from 'react-i18next';type SupportView = 'list' | 'create' | 'details';const SupportTicketTab: React.FC = () => {+ const { t } = useTranslation('support');const { colors, fontSize, fontFamily, fontWeight, fontStyle } = useTerminalTheme();const C = {ORANGE: colors.primary,@@ -259,8 +261,8 @@ This demo ticket shows you exactly how your real support tickets will appear. Fereturn (<div style={{ height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: C.DARK_BG }}><div style={{ textAlign: 'center', fontFamily: 'Consolas, monospace' }}>- <div style={{ color: C.ORANGE, fontSize: '16px', marginBottom: '8px', fontWeight: 'bold' }}>AUTHENTICATION REQUIRED</div>- <div style={{ color: C.GRAY, fontSize: '12px' }}>Please login to access support tickets</div>+ <div style={{ color: C.ORANGE, fontSize: '16px', marginBottom: '8px', fontWeight: 'bold' }}>{t('auth.required')}</div>+ <div style={{ color: C.GRAY, fontSize: '12px' }}>{t('auth.loginMessage')}</div></div></div>);@@ -306,20 +308,20 @@ This demo ticket shows you exactly how your real support tickets will appear. Fe}}><div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}><span style={{ color: C.ORANGE, fontWeight: 'bold' }}>FINCEPT</span>- <span style={{ color: C.WHITE }}>SUPPORT TERMINAL</span>+ <span style={{ color: C.WHITE }}>{t('title')}</span><span style={{ color: C.GRAY }}>|</span><span style={{ color: C.WHITE, fontSize: '11px' }}>{currentTime.toISOString().replace('T', ' ').substring(0, 19)}</span></div><div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}>- <span style={{ color: C.GRAY, fontSize: '11px' }}>TICKETS:</span>+ <span style={{ color: C.GRAY, fontSize: '11px' }}>{t('header.tickets')}:</span><span style={{ color: C.CYAN, fontSize: '11px', fontWeight: 'bold' }}>{stats.total_tickets || 0}</span><span style={{ color: C.GRAY }}>|</span>- <span style={{ color: C.YELLOW, fontSize: '11px' }}>OPEN:</span>+ <span style={{ color: C.YELLOW, fontSize: '11px' }}>{t('header.open')}:</span><span style={{ color: C.YELLOW, fontSize: '11px', fontWeight: 'bold' }}>{stats.open_tickets || 0}</span><span style={{ color: C.GRAY }}>|</span>- <span style={{ color: C.GREEN, fontSize: '11px' }}>RESOLVED:</span>+ <span style={{ color: C.GREEN, fontSize: '11px' }}>{t('header.resolved')}:</span><span style={{ color: C.GREEN, fontSize: '11px', fontWeight: 'bold' }}>{stats.resolved_tickets || 0}</span></div></div>@@ -356,7 +358,7 @@ This demo ticket shows you exactly how your real support tickets will appear. Fe}}><RefreshCw size={12} />- REFRESH+ {t('buttons.refresh')}</button><buttononClick={() => setCurrentView('create')}@@ -374,7 +376,7 @@ This demo ticket shows you exactly how your real support tickets will appear. Fe}}><Plus size={12} />- CREATE TICKET+ {t('buttons.createTicket')}</button></>)}@@ -395,14 +397,14 @@ This demo ticket shows you exactly how your real support tickets will appear. Fe}}><ArrowLeft size={12} />- BACK TO LIST+ {t('buttons.backToList')}</button>)}</div><div style={{ display: 'flex', alignItems: 'center', gap: '8px' }}><span style={{ color: loading ? C.ORANGE : C.GREEN, fontSize: '14px' }}>●</span><span style={{ color: loading ? C.ORANGE : C.GREEN, fontSize: '11px', fontWeight: 'bold' }}>- {loading ? 'UPDATING' : 'READY'}+ {loading ? t('status.updating') : t('status.ready')}</span></div></div>@@ -423,14 +425,14 @@ This demo ticket shows you exactly how your real support tickets will appear. FemarginBottom: '8px',letterSpacing: '0.5px'}}>- SUPPORT TICKETS+ {t('list.supportTickets')}</div><div style={{ borderBottom: `1px solid ${C.GRAY}`, marginBottom: '16px' }}></div>{/* Tickets Grid */}{loading && tickets.length === 0 ? (<div style={{ color: C.GRAY, fontSize: '12px', textAlign: 'center', marginTop: '40px' }}>- Loading tickets...+ {t('list.loading')}</div>) : tickets.length > 0 ? (<div style={{ display: 'grid', gap: '8px' }}>@@ -469,7 +471,7 @@ This demo ticket shows you exactly how your real support tickets will appear. FefontSize: '9px',fontWeight: 'bold'}}>- DEMO+ {t('demo.badge')}</div>)}@@ -515,7 +517,7 @@ This demo ticket shows you exactly how your real support tickets will appear. Fe</div>) : (<div style={{ color: C.GRAY, fontSize: '12px', textAlign: 'center', marginTop: '40px' }}>- No support tickets found. Create your first ticket to get started!+ {t('list.noTickets')}</div>)}</>@@ -531,7 +533,7 @@ This demo ticket shows you exactly how your real support tickets will appear. FemarginBottom: '8px',letterSpacing: '0.5px'}}>- CREATE NEW TICKET+ {t('create.title')}</div><div style={{ borderBottom: `1px solid ${C.GRAY}`, marginBottom: '16px' }}></div>diff --git a/fincept-terminal-desktop/src/components/tabs/WatchlistTab.tsx b/fincept-terminal-desktop/src/components/tabs/WatchlistTab.tsxindex 3354a5869..855d761bb 100644--- a/fincept-terminal-desktop/src/components/tabs/WatchlistTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/WatchlistTab.tsx@@ -15,9 +15,11 @@ import AddStockModal from './watchlist/AddStockModal';import RecordingControlPanel from '../common/RecordingControlPanel';import { getBloombergColors, SortCriteria, sortStocks, getNextWatchlistColor } from './watchlist/utils';import { useTerminalTheme } from '@/contexts/ThemeContext';+import { useTranslation } from 'react-i18next';const WatchlistTab: React.FC = () => {const { colors: themeColors } = useTerminalTheme();+ const { t } = useTranslation('watchlist');const BLOOMBERG_COLORS = getBloombergColors();const [currentTime, setCurrentTime] = useState(new Date());const [watchlists, setWatchlists] = useState<Array<Watchlist & { stock_count: number }>>([]);@@ -322,11 +324,11 @@ const WatchlistTab: React.FC = () => {<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}><div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}><span style={{ color: ORANGE, fontWeight: 'bold', fontSize: '14px' }}>- FINCEPT WATCHLIST MONITOR+ FINCEPT {t('title')} MONITOR</span><span style={{ color: WHITE }}>|</span><span style={{ color: refreshing ? ORANGE : GREEN, fontSize: '10px' }}>- ● {refreshing ? 'UPDATING' : 'LIVE'}+ ● {refreshing ? t('header.updating') : t('header.live')}</span><span style={{ color: WHITE }}>|</span><span style={{ color: CYAN, fontSize: '11px' }}>@@ -358,7 +360,7 @@ const WatchlistTab: React.FC = () => {}}><RefreshCw size={12} />- REFRESH+ {t('header.export').replace('EXPORT', 'REFRESH')}</button><buttononClick={handleExportCSV}@@ -378,7 +380,7 @@ const WatchlistTab: React.FC = () => {}}><Download size={12} />- EXPORT CSV+ {t('header.export')} CSV</button></div></div>@@ -386,12 +388,12 @@ const WatchlistTab: React.FC = () => {{/* Summary Bar */}{selectedWatchlist && (<div style={{ display: 'flex', alignItems: 'center', gap: '16px', fontSize: '11px', marginTop: '8px' }}>- <span style={{ color: GRAY }}>WATCHLIST:</span>+ <span style={{ color: GRAY }}>{t('title')}:</span><span style={{ color: YELLOW, fontWeight: 'bold' }}>{selectedWatchlist.name}</span><span style={{ color: WHITE }}>|</span>- <span style={{ color: GRAY }}>STOCKS:</span>+ <span style={{ color: GRAY }}>{t('list.symbols')}:</span><span style={{ color: CYAN }}>{stocks.length}</span></div>)}@@ -414,10 +416,10 @@ const WatchlistTab: React.FC = () => {{ key: "F6", label: "TICKER", action: () => setSortBy('TICKER') },{ key: "F7", label: "PRICE", action: () => setSortBy('PRICE') },{ key: "F8", label: "VOLUME", action: () => setSortBy('VOLUME') },- { key: "F9", label: "UNUSED", action: () => {} },- { key: "F10", label: "UNUSED", action: () => {} },- { key: "F11", label: "UNUSED", action: () => {} },- { key: "F12", label: "HELP", action: () => {} }+ { key: "F9", label: "UNUSED", action: () => { } },+ { key: "F10", label: "UNUSED", action: () => { } },+ { key: "F11", label: "UNUSED", action: () => { } },+ { key: "F12", label: "HELP", action: () => { } }].map(item => (<buttonkey={item.key}@@ -477,7 +479,7 @@ const WatchlistTab: React.FC = () => {gap: '16px'}}><div style={{ color: GRAY, fontSize: '14px' }}>- Select a watchlist or create a new one to get started+ {t('emptyState.selectWatchlist')}</div></div>) : (diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/AddWidgetModal.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/AddWidgetModal.tsxindex ede6e30b2..eaaf0aa0d 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/AddWidgetModal.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/AddWidgetModal.tsx@@ -1,5 +1,6 @@import React, { useState, useEffect } from 'react';import { X } from 'lucide-react';+import { useTranslation } from 'react-i18next';import { WidgetType, DEFAULT_WIDGET_CONFIGS } from './widgets';import { watchlistService } from '../../../services/watchlistService';import { getAllDataSources } from '../../../services/dataSourceRegistry';@@ -32,6 +33,7 @@ export const AddWidgetModal: React.FC<AddWidgetModalProps> = ({const [selectedWatchlist, setSelectedWatchlist] = useState('');const [forumCategory, setForumCategory] = useState('Trending');const [selectedDataSource, setSelectedDataSource] = useState('');+ const { t } = useTranslation('dashboard');useEffect(() => {if (isOpen && selectedType === 'watchlist') {@@ -79,8 +81,8 @@ export const AddWidgetModal: React.FC<AddWidgetModalProps> = ({const tickers = marketCategory === 'Indices'? ['^GSPC', '^IXIC', '^DJI', '^RUT']: marketCategory === 'Tech'- ? ['AAPL', 'MSFT', 'GOOGL', 'AMZN', 'NVDA']- : ['GC=F', 'CL=F', 'SI=F'];+ ? ['AAPL', 'MSFT', 'GOOGL', 'AMZN', 'NVDA']+ : ['GC=F', 'CL=F', 'SI=F'];config = { marketCategory, marketTickers: tickers };break;case 'watchlist':@@ -144,7 +146,7 @@ export const AddWidgetModal: React.FC<AddWidgetModalProps> = ({fontSize: '14px',fontWeight: 'bold'}}>- ADD WIDGET+ {t('buttons.addWidget')}</div><buttononClick={onClose}@@ -350,7 +352,7 @@ export const AddWidgetModal: React.FC<AddWidgetModalProps> = ({borderRadius: '2px'}}>- ADD WIDGET+ {t('buttons.addWidget')}</button></div></div>diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/BaseWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/BaseWidget.tsxindex 2abc1147c..b06f25707 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/BaseWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/BaseWidget.tsx@@ -1,5 +1,6 @@import React from 'react';import { X, RefreshCw, Settings } from 'lucide-react';+import { useTranslation } from 'react-i18next';export interface BaseWidgetProps {id: string;@@ -29,6 +30,7 @@ export const BaseWidget: React.FC<BaseWidgetProps> = ({error = null,headerColor = BLOOMBERG_ORANGE}) => {+ const { t } = useTranslation('dashboard');return (<div style={{height: '100%',@@ -141,7 +143,7 @@ export const BaseWidget: React.FC<BaseWidgetProps> = ({fontSize: '10px',textAlign: 'center'}}>- Error: {error}+ {t('widgets.error')}: {error}</div>) : isLoading ? (<div style={{@@ -150,7 +152,7 @@ export const BaseWidget: React.FC<BaseWidgetProps> = ({fontSize: '10px',textAlign: 'center'}}>- Loading...+ {t('widgets.loading')}</div>) : (childrendiff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/CommoditiesWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/CommoditiesWidget.tsxindex b4e9951d9..d97ef0ced 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/CommoditiesWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/CommoditiesWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { marketDataService, QuoteData } from '../../../../services/marketDataService';@@ -27,6 +28,7 @@ const COMMODITY_NAMES: { [key: string]: string } = {};export const CommoditiesWidget: React.FC<CommoditiesWidgetProps> = ({ id, onRemove }) => {+ const { t } = useTranslation('dashboard');const [quotes, setQuotes] = useState<QuoteData[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -56,7 +58,7 @@ export const CommoditiesWidget: React.FC<CommoditiesWidgetProps> = ({ id, onRemoreturn (<BaseWidgetid={id}- title="COMMODITIES"+ title={t('widgets.commodities')}onRemove={onRemove}onRefresh={loadQuotes}isLoading={loading}@@ -74,10 +76,10 @@ export const CommoditiesWidget: React.FC<CommoditiesWidgetProps> = ({ id, onRemopadding: '4px 0',marginBottom: '4px'}}>- <div>COMMODITY</div>- <div style={{ textAlign: 'right' }}>PRICE</div>- <div style={{ textAlign: 'right' }}>CHG</div>- <div style={{ textAlign: 'right' }}>%CHG</div>+ <div>{t('widgets.commodity')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.price')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.change')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.percentChange')}</div></div>{quotes.map((quote, index) => (<div@@ -111,7 +113,7 @@ export const CommoditiesWidget: React.FC<CommoditiesWidgetProps> = ({ id, onRemo))}{quotes.length === 0 && !loading && !error && (<div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', textAlign: 'center', padding: '12px' }}>- No commodities data available+ {t('widgets.noCommoditiesData')}</div>)}</div>diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/CryptoWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/CryptoWidget.tsxindex f59f85997..07410e43d 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/CryptoWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/CryptoWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { marketDataService, QuoteData } from '../../../../services/marketDataService';@@ -16,6 +17,7 @@ interface CryptoWidgetProps {const TOP_CRYPTOS = ['BTC-USD', 'ETH-USD', 'BNB-USD', 'XRP-USD', 'ADA-USD', 'DOGE-USD', 'SOL-USD', 'DOT-USD', 'MATIC-USD', 'LTC-USD'];export const CryptoWidget: React.FC<CryptoWidgetProps> = ({ id, onRemove }) => {+ const { t } = useTranslation('dashboard');const [quotes, setQuotes] = useState<QuoteData[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -50,7 +52,7 @@ export const CryptoWidget: React.FC<CryptoWidgetProps> = ({ id, onRemove }) => {return (<BaseWidgetid={id}- title="CRYPTOCURRENCY MARKETS"+ title={t('widgets.crypto')}onRemove={onRemove}onRefresh={loadQuotes}isLoading={loading}@@ -68,10 +70,10 @@ export const CryptoWidget: React.FC<CryptoWidgetProps> = ({ id, onRemove }) => {padding: '4px 0',marginBottom: '4px'}}>- <div>SYMBOL</div>- <div style={{ textAlign: 'right' }}>PRICE</div>- <div style={{ textAlign: 'right' }}>CHG</div>- <div style={{ textAlign: 'right' }}>%CHG</div>+ <div>{t('widgets.symbol')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.price')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.change')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.percentChange')}</div></div>{quotes.map((quote, index) => (<div@@ -105,7 +107,7 @@ export const CryptoWidget: React.FC<CryptoWidgetProps> = ({ id, onRemove }) => {))}{quotes.length === 0 && !loading && !error && (<div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', textAlign: 'center', padding: '12px' }}>- No crypto data available+ {t('widgets.noCryptoData')}</div>)}</div>diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/DataSourceWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/DataSourceWidget.tsxindex e17047bef..9921391c6 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/DataSourceWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/DataSourceWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { useDataSource } from '@/hooks/useDataSource';import { Database, Wifi, AlertCircle } from 'lucide-react';@@ -22,6 +23,7 @@ export const DataSourceWidget: React.FC<DataSourceWidgetProps> = ({displayName,onRemove}) => {+ const { t } = useTranslation('dashboard');const { data, error, loading, connected, source, refresh } = useDataSource(alias);const [lastUpdate, setLastUpdate] = useState<Date | null>(null);const [updateCount, setUpdateCount] = useState(0);@@ -99,7 +101,7 @@ export const DataSourceWidget: React.FC<DataSourceWidgetProps> = ({gap: '8px'}}><div style={{ color: BLOOMBERG_ORANGE, fontSize: '10px' }}>- Loading data source...+ {t('widgets.loading')}</div></div>);@@ -118,7 +120,7 @@ export const DataSourceWidget: React.FC<DataSourceWidgetProps> = ({fontSize: '10px'}}><Database size={24} />- <div>No data available yet</div>+ <div>{t('widgets.noData')}</div>{source?.type === 'rest_api' && (<buttononClick={refresh}diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/ForexWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/ForexWidget.tsxindex d649c905c..c989d3b69 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/ForexWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/ForexWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { marketDataService, QuoteData } from '../../../../services/marketDataService';@@ -27,6 +28,7 @@ const FOREX_NAMES: { [key: string]: string } = {};export const ForexWidget: React.FC<ForexWidgetProps> = ({ id, onRemove }) => {+ const { t } = useTranslation('dashboard');const [quotes, setQuotes] = useState<QuoteData[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -56,7 +58,7 @@ export const ForexWidget: React.FC<ForexWidgetProps> = ({ id, onRemove }) => {return (<BaseWidgetid={id}- title="FOREX - MAJOR PAIRS"+ title={t('widgets.forex')}onRemove={onRemove}onRefresh={loadQuotes}isLoading={loading}@@ -74,10 +76,10 @@ export const ForexWidget: React.FC<ForexWidgetProps> = ({ id, onRemove }) => {padding: '4px 0',marginBottom: '4px'}}>- <div>PAIR</div>- <div style={{ textAlign: 'right' }}>RATE</div>- <div style={{ textAlign: 'right' }}>CHG</div>- <div style={{ textAlign: 'right' }}>%CHG</div>+ <div>{t('widgets.pair')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.rate')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.change')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.percentChange')}</div></div>{quotes.map((quote, index) => (<div@@ -111,7 +113,7 @@ export const ForexWidget: React.FC<ForexWidgetProps> = ({ id, onRemove }) => {))}{quotes.length === 0 && !loading && !error && (<div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', textAlign: 'center', padding: '12px' }}>- No forex data available+ {t('widgets.noForexData')}</div>)}</div>diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/ForumWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/ForumWidget.tsxindex 9b3fcfa4a..70bc0e2f8 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/ForumWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/ForumWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { ForumApiService } from '../../../../services/forumApi';@@ -33,6 +34,7 @@ export const ForumWidget: React.FC<ForumWidgetProps> = ({limit = 5,onRemove}) => {+ const { t } = useTranslation('dashboard');const [posts, setPosts] = useState<ForumPost[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -93,7 +95,7 @@ export const ForumWidget: React.FC<ForumWidgetProps> = ({return (<BaseWidgetid={id}- title={`FORUM - ${categoryName}`}+ title={`${t('widgets.forum')} - ${categoryName}`}onRemove={onRemove}onRefresh={loadPosts}isLoading={loading}@@ -125,7 +127,7 @@ export const ForumWidget: React.FC<ForumWidgetProps> = ({))}{posts.length === 0 && !loading && !error && (<div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', textAlign: 'center', padding: '12px' }}>- No forum posts available+ {t('widgets.noForumPosts')}</div>)}</div>diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/GlobalIndicesWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/GlobalIndicesWidget.tsxindex e00651c78..845bc79ab 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/GlobalIndicesWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/GlobalIndicesWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { marketDataService, QuoteData } from '../../../../services/marketDataService';@@ -45,6 +46,7 @@ const INDEX_NAMES: { [key: string]: string } = {};export const GlobalIndicesWidget: React.FC<GlobalIndicesWidgetProps> = ({ id, onRemove }) => {+ const { t } = useTranslation('dashboard');const [quotes, setQuotes] = useState<QuoteData[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -74,7 +76,7 @@ export const GlobalIndicesWidget: React.FC<GlobalIndicesWidgetProps> = ({ id, onreturn (<BaseWidgetid={id}- title="GLOBAL INDICES - TOP 12"+ title={t('widgets.globalIndices')}onRemove={onRemove}onRefresh={loadQuotes}isLoading={loading}@@ -92,10 +94,10 @@ export const GlobalIndicesWidget: React.FC<GlobalIndicesWidgetProps> = ({ id, onpadding: '4px 0',marginBottom: '4px'}}>- <div>INDEX</div>- <div style={{ textAlign: 'right' }}>PRICE</div>- <div style={{ textAlign: 'right' }}>CHG</div>- <div style={{ textAlign: 'right' }}>%CHG</div>+ <div>{t('widgets.index')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.price')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.change')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.percentChange')}</div></div>{quotes.map((quote, index) => (<div@@ -129,7 +131,7 @@ export const GlobalIndicesWidget: React.FC<GlobalIndicesWidgetProps> = ({ id, on))}{quotes.length === 0 && !loading && !error && (<div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', textAlign: 'center', padding: '12px' }}>- No indices data available+ {t('widgets.noIndexData')}</div>)}</div>diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/MaritimeWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/MaritimeWidget.tsxindex 46c1358c9..3d252d8a8 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/MaritimeWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/MaritimeWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect, useRef } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';const BLOOMBERG_WHITE = '#FFFFFF';@@ -30,6 +31,7 @@ const TRADE_ROUTES: TradeRoute[] = [];export const MaritimeWidget: React.FC<MaritimeWidgetProps> = ({ id, onRemove, onNavigate }) => {+ const { t } = useTranslation('dashboard');const [intelligence, setIntelligence] = useState({active_vessels: 1247,monitored_routes: 48,@@ -208,7 +210,7 @@ export const MaritimeWidget: React.FC<MaritimeWidgetProps> = ({ id, onRemove, onreturn (<BaseWidgetid={id}- title="⚓ MARITIME INTELLIGENCE"+ title={t('widgets.maritimeIntelligence')}onRemove={onRemove}headerColor={BLOOMBERG_CYAN}>@@ -245,7 +247,7 @@ export const MaritimeWidget: React.FC<MaritimeWidgetProps> = ({ id, onRemove, onfontWeight: 'bold',borderRadius: '2px'}}>- 3D GLOBE+ {t('widgets.globe3D')}</div></div>@@ -261,19 +263,19 @@ export const MaritimeWidget: React.FC<MaritimeWidgetProps> = ({ id, onRemove, onborderBottom: `1px solid ${BLOOMBERG_GRAY}`}}><div style={{ textAlign: 'center' }}>- <div style={{ color: BLOOMBERG_GRAY, fontSize: '6px' }}>VESSELS</div>+ <div style={{ color: BLOOMBERG_GRAY, fontSize: '6px' }}>{t('widgets.vessels')}</div><div style={{ color: BLOOMBERG_CYAN, fontWeight: 'bold', fontSize: '10px' }}>{intelligence.active_vessels}</div></div><div style={{ textAlign: 'center' }}>- <div style={{ color: BLOOMBERG_GRAY, fontSize: '6px' }}>ROUTES</div>+ <div style={{ color: BLOOMBERG_GRAY, fontSize: '6px' }}>{t('widgets.routes')}</div><div style={{ color: BLOOMBERG_CYAN, fontWeight: 'bold', fontSize: '10px' }}>{intelligence.monitored_routes}</div></div><div style={{ textAlign: 'center' }}>- <div style={{ color: BLOOMBERG_GRAY, fontSize: '6px' }}>VOL 24H</div>+ <div style={{ color: BLOOMBERG_GRAY, fontSize: '6px' }}>{t('widgets.vol24h')}</div><div style={{ color: BLOOMBERG_GREEN, fontWeight: 'bold', fontSize: '10px' }}>{intelligence.trade_volume}</div>@@ -282,7 +284,7 @@ export const MaritimeWidget: React.FC<MaritimeWidgetProps> = ({ id, onRemove, on{/* Top Trade Routes */}<div style={{ color: BLOOMBERG_CYAN, fontSize: '7px', fontWeight: 'bold', marginBottom: '3px' }}>- TOP TRADE CORRIDORS+ {t('widgets.topTradeCorridors')}</div>{TRADE_ROUTES.map((route, idx) => (<div@@ -315,7 +317,7 @@ export const MaritimeWidget: React.FC<MaritimeWidgetProps> = ({ id, onRemove, on</div><div style={{ display: 'flex', justifyContent: 'space-between', fontSize: '6px' }}><span style={{ color: BLOOMBERG_GRAY }}>{route.value}</span>- <span style={{ color: BLOOMBERG_CYAN }}>{route.vessels} ships</span>+ <span style={{ color: BLOOMBERG_CYAN }}>{route.vessels} {t('widgets.ships')}</span></div></div>))}diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/MarketDataWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/MarketDataWidget.tsxindex 581d5c26e..2853e8d93 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/MarketDataWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/MarketDataWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { marketDataService, QuoteData } from '../../../../services/marketDataService';@@ -20,6 +21,7 @@ export const MarketDataWidget: React.FC<MarketDataWidgetProps> = ({tickers = ['^GSPC', '^IXIC', '^DJI', '^RUT'],onRemove}) => {+ const { t } = useTranslation('dashboard');const [quotes, setQuotes] = useState<QuoteData[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -72,10 +74,10 @@ export const MarketDataWidget: React.FC<MarketDataWidgetProps> = ({padding: '4px 0',marginBottom: '4px'}}>- <div>SYMBOL</div>- <div style={{ textAlign: 'right' }}>PRICE</div>- <div style={{ textAlign: 'right' }}>CHG</div>- <div style={{ textAlign: 'right' }}>%CHG</div>+ <div>{t('widgets.symbol')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.price')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.change')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.percentChange')}</div></div>{quotes.map((quote, index) => (<divdiff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/NewsWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/NewsWidget.tsxindex 416f7653b..83d3b2ba8 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/NewsWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/NewsWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { fetchNewsWithCache, NewsArticle } from '../../../../services/newsService';@@ -22,6 +23,7 @@ export const NewsWidget: React.FC<NewsWidgetProps> = ({limit = 5,onRemove}) => {+ const { t } = useTranslation('dashboard');const [news, setNews] = useState<NewsArticle[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);@@ -60,7 +62,7 @@ export const NewsWidget: React.FC<NewsWidgetProps> = ({return (<BaseWidgetid={id}- title={`NEWS - ${category}`}+ title={`${t('widgets.news')} - ${category}`}onRemove={onRemove}onRefresh={loadNews}isLoading={loading}diff --git a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/WatchlistWidget.tsx b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/WatchlistWidget.tsxindex b8a6054f8..05e8c1826 100644--- a/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/WatchlistWidget.tsx+++ b/fincept-terminal-desktop/src/components/tabs/dashboard/widgets/WatchlistWidget.tsx@@ -1,4 +1,5 @@import React, { useState, useEffect } from 'react';+import { useTranslation } from 'react-i18next';import { BaseWidget } from './BaseWidget';import { watchlistService, WatchlistStockWithQuote } from '../../../../services/watchlistService';@@ -21,13 +22,14 @@ export const WatchlistWidget: React.FC<WatchlistWidgetProps> = ({watchlistName = 'Watchlist',onRemove}) => {+ const { t } = useTranslation('dashboard');const [stocks, setStocks] = useState<WatchlistStockWithQuote[]>([]);const [loading, setLoading] = useState(true);const [error, setError] = useState<string | null>(null);const loadStocks = async () => {if (!watchlistId) {- setError('No watchlist selected');+ setError(t('widgets.noWatchlistSelected'));setLoading(false);return;}@@ -57,7 +59,7 @@ export const WatchlistWidget: React.FC<WatchlistWidgetProps> = ({return (<BaseWidgetid={id}- title={`WATCHLIST - ${watchlistName}`}+ title={`${t('widgets.watchlist')} - ${watchlistName}`}onRemove={onRemove}onRefresh={loadStocks}isLoading={loading}@@ -75,10 +77,10 @@ export const WatchlistWidget: React.FC<WatchlistWidgetProps> = ({padding: '4px 0',marginBottom: '4px'}}>- <div>SYMBOL</div>- <div style={{ textAlign: 'right' }}>PRICE</div>- <div style={{ textAlign: 'right' }}>CHG</div>- <div style={{ textAlign: 'right' }}>%CHG</div>+ <div>{t('widgets.symbol')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.price')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.change')}</div>+ <div style={{ textAlign: 'right' }}>{t('widgets.percentChange')}</div></div>{stocks.map((stock, index) => (<div@@ -112,7 +114,7 @@ export const WatchlistWidget: React.FC<WatchlistWidgetProps> = ({))}{stocks.length === 0 && !loading && !error && (<div style={{ color: BLOOMBERG_GRAY, fontSize: '10px', textAlign: 'center', padding: '12px' }}>- No stocks in watchlist+ {t('widgets.noStocksInWatchlist')}</div>)}</div>diff --git a/fincept-terminal-desktop/src/components/tabs/portfolio-tab/PortfolioTab.tsx b/fincept-terminal-desktop/src/components/tabs/portfolio-tab/PortfolioTab.tsxindex e494118e5..5a691633e 100644--- a/fincept-terminal-desktop/src/components/tabs/portfolio-tab/PortfolioTab.tsx+++ b/fincept-terminal-desktop/src/components/tabs/portfolio-tab/PortfolioTab.tsx@@ -16,9 +16,11 @@ import { usePortfolioOperations } from './hooks/usePortfolioOperations';import { getBloombergColors, formatCurrency, formatPercent } from './portfolio/utils';import { useTerminalTheme } from '@/contexts/ThemeContext';import { TimezoneSelector } from '../../common/TimezoneSelector';+import { useTranslation } from 'react-i18next';const PortfolioTab: React.FC = () => {const { colors: themeColors } = useTerminalTheme();+ const { t } = useTranslation('portfolio');const BLOOMBERG_COLORS = getBloombergColors();const [currentTime, setCurrentTime] = useState(new Date());const [selectedView, setSelectedView] = useState('POSITIONS');@@ -156,11 +158,11 @@ const PortfolioTab: React.FC = () => {<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}><div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}><span style={{ color: ORANGE, fontWeight: 'bold', fontSize: '14px' }}>- FINCEPT PORTFOLIO MANAGER+ {t('title')}</span><span style={{ color: WHITE }}>|</span><span style={{ color: refreshing ? ORANGE : GREEN, fontSize: '10px' }}>- ● {refreshing ? 'UPDATING' : 'LIVE'}+ ● {refreshing ? t('header.updating') : t('header.live')}</span><span style={{ color: WHITE }}>|</span><TimezoneSelector compact />@@ -183,7 +185,7 @@ const PortfolioTab: React.FC = () => {}}><Plus size={12} />- NEW PORTFOLIO+ {t('header.newPortfolio')}</button><buttononClick={refreshPortfolioData}@@ -203,7 +205,7 @@ const PortfolioTab: React.FC = () => {}}><RefreshCw size={12} />- REFRESH+ {t('header.refresh')}</button><buttononClick={exportToCSV}@@ -223,7 +225,7 @@ const PortfolioTab: React.FC = () => {}}><Download size={12} />- EXPORT CSV+ {t('header.exportCsv')}</button></div></div>@@ -231,12 +233,12 @@ const PortfolioTab: React.FC = () => {{/* Portfolio Summary Bar */}{portfolioSummary && (<div style={{ display: 'flex', alignItems: 'center', gap: '16px', fontSize: '11px', marginTop: '8px' }}>- <span style={{ color: GRAY }}>TOTAL VALUE:</span>+ <span style={{ color: GRAY }}>{t('summary.totalValue')}:</span><span style={{ color: YELLOW, fontWeight: 'bold' }}>{formatCurrency(portfolioSummary.total_market_value, currency)}</span><span style={{ color: WHITE }}>|</span>- <span style={{ color: GRAY }}>DAY P&L:</span>+ <span style={{ color: GRAY }}>{t('summary.dayPnl')}:</span><span style={{color: portfolioSummary.total_day_change >= 0 ? GREEN : RED,fontWeight: 'bold'@@ -244,7 +246,7 @@ const PortfolioTab: React.FC = () => {{formatCurrency(portfolioSummary.total_day_change, currency)} ({formatPercent(portfolioSummary.total_day_change_percent)})</span><span style={{ color: WHITE }}>|</span>- <span style={{ color: GRAY }}>TOTAL P&L:</span>+ <span style={{ color: GRAY }}>{t('summary.totalPnl')}:</span><span style={{color: portfolioSummary.total_unrealized_pnl >= 0 ? GREEN : RED,fontWeight: 'bold'@@ -252,7 +254,7 @@ const PortfolioTab: React.FC = () => {{formatCurrency(portfolioSummary.total_unrealized_pnl, currency)} ({formatPercent(portfolioSummary.total_unrealized_pnl_percent)})</span><span style={{ color: WHITE }}>|</span>- <span style={{ color: GRAY }}>POSITIONS:</span>+ <span style={{ color: GRAY }}>{t('summary.positions')}:</span><span style={{ color: CYAN }}>{portfolioSummary.total_positions}</span></div>)}diff --git a/fincept-terminal-desktop/src/components/tabs/watchlist/WatchlistSidebar.tsx b/fincept-terminal-desktop/src/components/tabs/watchlist/WatchlistSidebar.tsxindex b1cc6782d..b274497ac 100644--- a/fincept-terminal-desktop/src/components/tabs/watchlist/WatchlistSidebar.tsx+++ b/fincept-terminal-desktop/src/components/tabs/watchlist/WatchlistSidebar.tsx@@ -1,4 +1,5 @@import React from 'react';+import { useTranslation } from 'react-i18next';import { Watchlist } from '../../../services/watchlistService';import { BLOOMBERG_COLORS } from './utils';import { Trash2, Plus } from 'lucide-react';@@ -25,6 +26,7 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({marketMovers,volumeLeaders}) => {+ const { t } = useTranslation('watchlist');const { ORANGE, WHITE, GRAY, GREEN, RED, CYAN, YELLOW, DARK_BG, PANEL_BG } = BLOOMBERG_COLORS;const handleDelete = (e: React.MouseEvent, watchlistId: string) => {@@ -52,7 +54,7 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({justifyContent: 'space-between',alignItems: 'center'}}>- <span>WATCHLIST GROUPS ({watchlists.length})</span>+ <span>{t('sidebar.groups')} ({watchlists.length})</span><buttononClick={onCreateWatchlist}style={{@@ -69,7 +71,7 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({title="Create new watchlist"><Plus size={10} />- NEW+ {t('sidebar.new')}</button></div><div style={{ borderBottom: `1px solid ${GRAY}`, marginBottom: '8px' }}></div>@@ -82,9 +84,9 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({color: GRAY,fontSize: '10px'}}>- No watchlists yet.+ {t('sidebar.noWatchlists')}<br />- Click NEW to create one.+ {t('sidebar.clickNew')}</div>) : (watchlists.map((watchlist) => (@@ -130,7 +132,7 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({color: CYAN,fontSize: '9px'}}>- {watchlist.stock_count} stocks+ {watchlist.stock_count} {t('sidebar.stocks')}</div></div><button@@ -166,7 +168,7 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({fontWeight: 'bold',marginBottom: '4px'}}>- MARKET MOVERS+ {t('sidebar.marketMovers')}</div>{marketMovers.gainers.slice(0, 3).map((item, index) => (<div@@ -187,7 +189,7 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({marginLeft: '4px',fontSize: '8px'}}>- [GAINER]+ [{t('sidebar.gainer')}]</span></div><span style={{@@ -217,7 +219,7 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({marginLeft: '4px',fontSize: '8px'}}>- [LOSER]+ [{t('sidebar.loser')}]</span></div><span style={{@@ -244,15 +246,15 @@ const WatchlistSidebar: React.FC<WatchlistSidebarProps> = ({fontWeight: 'bold',marginBottom: '4px'}}>- VOLUME LEADERS+ {t('sidebar.volumeLeaders')}</div>{volumeLeaders.slice(0, 4).map((item, index) => {const volume = item.quote?.volume || 0;const volumeStr = volume >= 1_000_000? `${(volume / 1_000_000).toFixed(1)}M`: volume >= 1_000- ? `${(volume / 1_000).toFixed(1)}K`- : volume.toString();+ ? `${(volume / 1_000).toFixed(1)}K`+ : volume.toString();return (<div