diff --git a/frontend/public/apple-touch-icon.png b/frontend/public/apple-touch-icon.png index 0e60b65..48b30fe 100644 Binary files a/frontend/public/apple-touch-icon.png and b/frontend/public/apple-touch-icon.png differ diff --git a/frontend/public/assets/aura_trade_icon.svg b/frontend/public/assets/aura_trade_icon.svg new file mode 100644 index 0000000..8cb81bf --- /dev/null +++ b/frontend/public/assets/aura_trade_icon.svg @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/assets/aura_trade_logo.svg b/frontend/public/assets/aura_trade_logo.svg new file mode 100644 index 0000000..a28e5d4 --- /dev/null +++ b/frontend/public/assets/aura_trade_logo.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Aura + + + Aura + + + + + + + Trade + + + + + INSTITUTIONAL QUANT TERMINAL + + diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico index c5e2f07..1bbee95 100644 Binary files a/frontend/public/favicon.ico and b/frontend/public/favicon.ico differ diff --git a/frontend/public/icon-192.png b/frontend/public/icon-192.png new file mode 100644 index 0000000..528690b Binary files /dev/null and b/frontend/public/icon-192.png differ diff --git a/frontend/public/icon-512.png b/frontend/public/icon-512.png new file mode 100644 index 0000000..b78b6f6 Binary files /dev/null and b/frontend/public/icon-512.png differ diff --git a/frontend/public/icons/apple-touch-icon.png b/frontend/public/icons/apple-touch-icon.png index 0e60b65..48b30fe 100644 Binary files a/frontend/public/icons/apple-touch-icon.png and b/frontend/public/icons/apple-touch-icon.png differ diff --git a/frontend/public/icons/icon-192x192.png b/frontend/public/icons/icon-192x192.png index 5121e74..528690b 100644 Binary files a/frontend/public/icons/icon-192x192.png and b/frontend/public/icons/icon-192x192.png differ diff --git a/frontend/public/icons/icon-512x512.png b/frontend/public/icons/icon-512x512.png index 97451b8..b78b6f6 100644 Binary files a/frontend/public/icons/icon-512x512.png and b/frontend/public/icons/icon-512x512.png differ diff --git a/frontend/public/icons/icon-64x64.png b/frontend/public/icons/icon-64x64.png index c5e2f07..534898a 100644 Binary files a/frontend/public/icons/icon-64x64.png and b/frontend/public/icons/icon-64x64.png differ diff --git a/frontend/src/components/agentic/HermesAgentChatDrawer.tsx b/frontend/src/components/agentic/HermesAgentChatDrawer.tsx index 901da79..498ed6d 100644 --- a/frontend/src/components/agentic/HermesAgentChatDrawer.tsx +++ b/frontend/src/components/agentic/HermesAgentChatDrawer.tsx @@ -139,13 +139,51 @@ export const HermesAgentChatDrawer: React.FC = ({ } }; + // Find Best Matching Native Bengali Voice for Hermes Speech Synthesis + const getBengaliVoice = (): SpeechSynthesisVoice | null => { + if (typeof window === "undefined" || !("speechSynthesis" in window)) return null; + const voices = window.speechSynthesis.getVoices(); + // 1. Exact Bengali Locale (bn-BD, bn-IN, or language tagged 'bn') + let voice = voices.find( + (v) => + v.lang.toLowerCase().startsWith("bn") || + v.name.toLowerCase().includes("bangla") || + v.name.toLowerCase().includes("bengali") + ); + if (voice) return voice; + // 2. High-quality Hindi / Indian subcontinent voices with natural phonetics + voice = voices.find( + (v) => + v.lang.toLowerCase().includes("hi") || + v.lang.toLowerCase() === "en-in" + ); + if (voice) return voice; + // 3. Fallback + return voices.find((v) => v.default) || (voices.length > 0 ? voices[0] : null); + }; + const speakText = (text: string) => { if (!audioEnabled || typeof window === "undefined" || !("speechSynthesis" in window)) return; try { window.speechSynthesis.cancel(); - const utterance = new SpeechSynthesisUtterance(text); - utterance.rate = 1.05; - utterance.pitch = 1.0; + // Clean markdown, raw code symbols, and numbers into pleasant spoken Bengali copy + const cleanText = text + .replace(/[*#_`~>]/g, "") + .replace(/https?:\/\/\S+/g, "") + .replace(/•/g, ",") + .replace(/\|/g, ",") + .trim(); + + const utterance = new SpeechSynthesisUtterance(cleanText); + const bnVoice = getBengaliVoice(); + if (bnVoice) { + utterance.voice = bnVoice; + utterance.lang = bnVoice.lang || "bn-BD"; + } else { + utterance.lang = "bn-BD"; + } + utterance.rate = 0.95; // Natural measured pace for clear Bengali comprehension + utterance.pitch = 1.05; // Friendly, intelligent tone window.speechSynthesis.speak(utterance); } catch (e) { console.warn("TTS error:", e); @@ -547,7 +585,25 @@ export const HermesAgentChatDrawer: React.FC = ({ )} - {msg.timestamp} + {/* Message Footer with Bangla Voice Trigger */} + + {msg.sender === "hermes" ? ( + { + soundFX.playClick(); + speakText(msg.text); + }} + title="হার্মেসের বাংলা ভয়েস শুনুন (Replay Bangla Voice)" + className="text-cyan-400 hover:text-cyan-300 flex items-center gap-1 font-bold transition px-1.5 py-0.5 rounded bg-cyan-950/40 hover:bg-cyan-900/60 border border-cyan-500/20 active:scale-95" + > + + ভয়েস শুনুন + + ) : ( + YOU + )} + {msg.timestamp} + ))} diff --git a/frontend/src/components/chart/ExnessWebTerminalChart.tsx b/frontend/src/components/chart/ExnessWebTerminalChart.tsx index c86304c..d367ee7 100644 --- a/frontend/src/components/chart/ExnessWebTerminalChart.tsx +++ b/frontend/src/components/chart/ExnessWebTerminalChart.tsx @@ -1,7 +1,7 @@ "use client"; import React, { useState } from "react"; -import { ExternalLink, ShieldCheck, RefreshCw, KeyRound, Server } from "lucide-react"; +import { ExternalLink, ShieldCheck, RefreshCw, KeyRound, Server, Copy, Check, Sparkles } from "lucide-react"; import { soundFX } from "@/lib/soundEffects"; interface ExnessWebTerminalChartProps { @@ -17,9 +17,19 @@ export const ExnessWebTerminalChart: React.FC = ({ }) => { const [iframeKey, setIframeKey] = useState(0); const [isLoading, setIsLoading] = useState(true); + const [copiedField, setCopiedField] = useState(null); - // Official MetaQuotes / Exness WebTerminal Embed URL - const terminalUrl = `https://metatraderweb.app/trade?servers=${server}&trade_server=${server}&login=${accountId}&startup_mode=open_account&lang=en&save_password=off`; + // Modern Official MetaQuotes MetaTrader 5 (MT5) WebTerminal Engine + const terminalUrl = "https://web.metatrader.app/terminal?lang=en"; + + const handleCopy = (text: string, fieldName: string) => { + soundFX.playClick(); + if (typeof navigator !== "undefined" && navigator.clipboard) { + navigator.clipboard.writeText(text); + setCopiedField(fieldName); + setTimeout(() => setCopiedField(null), 2000); + } + }; const handleRefresh = () => { soundFX.playClick(); @@ -29,31 +39,49 @@ export const ExnessWebTerminalChart: React.FC = ({ const handleOpenExternal = () => { soundFX.playClick(); - window.open(terminalUrl, "_blank", "noopener,noreferrer"); + window.open("https://my.exness.com/webterminal/", "_blank", "noopener,noreferrer"); }; return ( - {/* Exness Header Strip */} - + {/* Exness MT5 Dedicated Top Strip */} + - - - - EXNESS MT5 REALTERMINAL + + + + EXNESS MT5 WEBSUITE - - • Server: {server} - - - • Login: #{accountId} + + MT5 ENGINE - + {/* 1-Click Fast Copy Credentials Helper */} + + handleCopy(server, "server")} + title="Click to copy server name" + className="px-2 py-0.5 rounded bg-[#050914] hover:bg-[#0b172a] border border-[#182e52] hover:border-cyan-500/40 text-gray-300 flex items-center gap-1 transition" + > + Server: + {server} + {copiedField === "server" ? : } + + + handleCopy(accountId, "login")} + title="Click to copy login account number" + className="px-2 py-0.5 rounded bg-[#050914] hover:bg-[#0b172a] border border-[#182e52] hover:border-cyan-500/40 text-gray-300 flex items-center gap-1 transition" + > + Login: + #{accountId} + {copiedField === "login" ? : } + + @@ -61,24 +89,24 @@ export const ExnessWebTerminalChart: React.FC = ({ - - POPUP + + EXNESS TERMINAL - {/* Embedded MetaQuotes MT5 WebTerminal */} + {/* Embedded Official MetaTrader 5 (MT5) WebTerminal */} setIsLoading(false)} /> diff --git a/frontend/src/components/header/TitanHeader.tsx b/frontend/src/components/header/TitanHeader.tsx index fd522e6..2988e29 100644 --- a/frontend/src/components/header/TitanHeader.tsx +++ b/frontend/src/components/header/TitanHeader.tsx @@ -155,12 +155,19 @@ export const TitanHeader: React.FC = ({ {/* 1. Brand & Broker Connection (Left) */} - - AQ + + - AURATRADE + + AURA + TRADE + TITAN V2 diff --git a/frontend/src/components/pwa/InstallAppModal.tsx b/frontend/src/components/pwa/InstallAppModal.tsx index 4a31cfc..bc17740 100644 --- a/frontend/src/components/pwa/InstallAppModal.tsx +++ b/frontend/src/components/pwa/InstallAppModal.tsx @@ -63,12 +63,8 @@ export const InstallAppModal: React.FC = ({ {/* Modal Header */} - - {activeTab === "apple" ? ( - - ) : ( - - )} + +