feat: Ustad Redwan Sovereign Quant Cockpit personal customization with multi-asset switcher and CryptoX bridge

This commit is contained in:
Amirul Islam Redwan
2026-10-23 20:34:19 +00:00
parent 78c8d98c70
commit b899020d9f
4 changed files with 93 additions and 8 deletions
+2
View File
@@ -419,6 +419,8 @@ export default function TitanQuantTerminalPage() {
onOpenAccountVault={() => setShowVaultModal(true)} onOpenAccountVault={() => setShowVaultModal(true)}
onToggleHermesChat={() => setIsHermesDrawerOpen((prev) => !prev)} onToggleHermesChat={() => setIsHermesDrawerOpen((prev) => !prev)}
isHermesChatOpen={isHermesDrawerOpen} isHermesChatOpen={isHermesDrawerOpen}
activeSymbol={activeSymbol}
onSelectSymbol={(sym) => setActiveSymbol(sym)}
/> />
{/* 🟢 Live Autonomous Agentic Spectator Mode Banner */} {/* 🟢 Live Autonomous Agentic Spectator Mode Banner */}
@@ -102,6 +102,16 @@ export const CockpitDock: React.FC<CockpitDockProps> = ({
<Globe className="w-3.5 h-3.5 text-indigo-400" /> <Globe className="w-3.5 h-3.5 text-indigo-400" />
<span>FOREX SESSIONS</span> <span>FOREX SESSIONS</span>
</button> </button>
<a
href="https://crypto.auraajenticai.cloud"
target="_blank"
rel="noopener noreferrer"
className="px-3 py-2 flex items-center gap-1.5 border-b-2 font-bold border-transparent text-amber-400 hover:text-amber-200 transition"
title="Open Live CryptoX Terminal"
>
<span>🪙 CRYPTOX RADAR</span>
</a>
</div> </div>
<div className="text-[10px] text-gray-500 hidden sm:flex items-center gap-2"> <div className="text-[10px] text-gray-500 hidden sm:flex items-center gap-2">
@@ -113,7 +113,7 @@ export const TitanOrderTerminal: React.FC<TitanOrderTerminalProps> = ({
<div className="p-3 border-b border-[#14233d] bg-[#091222] flex items-center justify-between"> <div className="p-3 border-b border-[#14233d] bg-[#091222] flex items-center justify-between">
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<Award className="w-4 h-4 text-amber-400" /> <Award className="w-4 h-4 text-amber-400" />
<h2 className="font-bold text-xs tracking-wider text-gray-200 uppercase">Institutional Execution Desk</h2> <h2 className="font-bold text-xs tracking-wider text-gray-200 uppercase">Ustad Sovereign Execution Desk</h2>
</div> </div>
{/* Confluence Rating Pill */} {/* Confluence Rating Pill */}
@@ -176,7 +176,7 @@ export const TitanOrderTerminal: React.FC<TitanOrderTerminalProps> = ({
<div> <div>
<div className="flex justify-between items-center mb-1"> <div className="flex justify-between items-center mb-1">
<label className="text-gray-400 text-[10px]">LOT SIZE</label> <label className="text-gray-400 text-[10px]">LOT SIZE</label>
<span className="text-[9px] text-cyan-400 font-bold">1.0% AUTO</span> <span className="text-[9px] text-cyan-400 font-bold">USTAD PRESETS</span>
</div> </div>
<input <input
type="number" type="number"
@@ -185,6 +185,38 @@ export const TitanOrderTerminal: React.FC<TitanOrderTerminalProps> = ({
onChange={(e) => setLot(parseFloat(e.target.value) || 0.01)} onChange={(e) => setLot(parseFloat(e.target.value) || 0.01)}
className="w-full bg-[#0a1426] border border-[#182a47] rounded px-2.5 py-1.5 text-gray-100 font-bold focus:outline-none focus:border-cyan-500" className="w-full bg-[#0a1426] border border-[#182a47] rounded px-2.5 py-1.5 text-gray-100 font-bold focus:outline-none focus:border-cyan-500"
/> />
<div className="flex gap-1 mt-1">
<button
type="button"
onClick={() => { soundFX.playClick(); setLot(0.01); }}
className={`flex-1 py-0.5 rounded text-[8px] font-bold border transition ${
lot === 0.01 ? "bg-cyan-500/20 text-cyan-300 border-cyan-400" : "bg-[#081224] text-gray-400 border-[#14233d] hover:text-gray-200"
}`}
title="Micro Scalp (Lowest risk for $17 balance)"
>
0.01 Micro
</button>
<button
type="button"
onClick={() => { soundFX.playClick(); setLot(0.02); }}
className={`flex-1 py-0.5 rounded text-[8px] font-bold border transition ${
lot === 0.02 ? "bg-amber-500/20 text-amber-300 border-amber-400" : "bg-[#081224] text-gray-400 border-[#14233d] hover:text-gray-200"
}`}
title="Double Scalp (Standard momentum play)"
>
0.02 Scalp
</button>
<button
type="button"
onClick={() => { soundFX.playClick(); setLot(0.05); }}
className={`flex-1 py-0.5 rounded text-[8px] font-bold border transition ${
lot === 0.05 ? "bg-emerald-500/20 text-emerald-300 border-emerald-400" : "bg-[#081224] text-gray-400 border-[#14233d] hover:text-gray-200"
}`}
title="Growth Tier (High-conviction entry)"
>
0.05 Boost
</button>
</div>
</div> </div>
</div> </div>
+47 -6
View File
@@ -37,6 +37,8 @@ interface TitanHeaderProps {
onOpenAccountVault?: () => void; onOpenAccountVault?: () => void;
onToggleHermesChat?: () => void; onToggleHermesChat?: () => void;
isHermesChatOpen?: boolean; isHermesChatOpen?: boolean;
activeSymbol?: string;
onSelectSymbol?: (symbol: string) => void;
} }
export const TitanHeader: React.FC<TitanHeaderProps> = ({ export const TitanHeader: React.FC<TitanHeaderProps> = ({
@@ -52,6 +54,8 @@ export const TitanHeader: React.FC<TitanHeaderProps> = ({
onOpenAccountVault, onOpenAccountVault,
onToggleHermesChat, onToggleHermesChat,
isHermesChatOpen = false, isHermesChatOpen = false,
activeSymbol = "XAUUSD",
onSelectSymbol,
}) => { }) => {
const [audioEnabled, setAudioEnabled] = useState(true); const [audioEnabled, setAudioEnabled] = useState(true);
const [nowUtc, setNowUtc] = useState<Date>(new Date()); const [nowUtc, setNowUtc] = useState<Date>(new Date());
@@ -165,21 +169,47 @@ export const TitanHeader: React.FC<TitanHeaderProps> = ({
<div> <div>
<div className="flex items-center gap-1.5"> <div className="flex items-center gap-1.5">
<span className="font-extrabold tracking-wider text-gray-100 text-sm font-hud flex items-center"> <span className="font-extrabold tracking-wider text-gray-100 text-sm font-hud flex items-center">
<span>AURA</span> <span>USTAD</span>
<span className="text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-emerald-400 ml-0.5">TRADE</span> <span className="text-transparent bg-clip-text bg-gradient-to-r from-amber-400 via-yellow-300 to-emerald-400 ml-1">REDWAN</span>
</span> </span>
<span className="text-[9px] font-mono px-1.5 py-0.5 rounded bg-cyan-950/70 border border-cyan-500/30 text-cyan-400 font-bold"> <span className="text-[9px] font-mono px-1.5 py-0.5 rounded bg-amber-950/80 border border-amber-500/50 text-amber-300 font-black tracking-wider">
TITAN V2 SOVEREIGN
</span> </span>
</div> </div>
<div className="text-[10px] text-gray-400 flex items-center gap-1 font-mono"> <div className="text-[10px] text-gray-400 flex items-center gap-1 font-mono">
<span>Sentinel Quant</span> <span className="text-cyan-400 font-bold">Quant Cockpit</span>
<span className="text-gray-600">&bull;</span> <span className="text-gray-600">&bull;</span>
<span className="text-emerald-400">Exness Direct</span> <span className="text-emerald-400 font-semibold">Exness MT5 Real 15</span>
</div> </div>
</div> </div>
</div> </div>
{/* Quick Multi-Asset Switcher for Ustad */}
<div className="hidden xl:flex items-center gap-1 bg-[#060e1d] border border-[#162744] p-0.5 rounded-lg font-mono">
{[
{ id: "XAUUSD", label: "🥇 GOLD", badge: "XAU" },
{ id: "BTCUSD", label: "⚡ BTC", badge: "81.4k" },
{ id: "ETHUSD", label: "💎 ETH", badge: "2.6k" },
{ id: "EURUSD", label: "💱 EUR", badge: "1.12" },
].map((item) => (
<button
key={item.id}
onClick={() => {
soundFX.playClick();
if (onSelectSymbol) onSelectSymbol(item.id);
}}
className={`px-2 py-1 rounded text-[10px] font-bold flex items-center gap-1 transition ${
activeSymbol === item.id
? "bg-cyan-500/20 text-cyan-300 border border-cyan-500/50 shadow-sm"
: "text-gray-400 hover:text-gray-200 border border-transparent"
}`}
>
<span>{item.label}</span>
<span className="text-[8px] opacity-75 font-normal">({item.badge})</span>
</button>
))}
</div>
<div className="h-6 w-px bg-[#14233d] hidden sm:block" /> <div className="h-6 w-px bg-[#14233d] hidden sm:block" />
{/* Real Account Telemetry Pill - Clickable Multi-Account Switcher */} {/* Real Account Telemetry Pill - Clickable Multi-Account Switcher */}
@@ -326,6 +356,17 @@ export const TitanHeader: React.FC<TitanHeaderProps> = ({
<span className="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-ping" /> <span className="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-ping" />
</button> </button>
{/* CryptoX Ecosystem Bridge */}
<a
href="https://crypto.auraajenticai.cloud"
target="_blank"
rel="noopener noreferrer"
title="Open Ustad's Aura CryptoX Analytics & Trading Hub"
className="bg-gradient-to-r from-amber-500/20 to-orange-500/20 hover:from-amber-500/30 hover:to-orange-500/30 active:scale-95 text-amber-300 font-bold text-[11px] px-2.5 py-1.5 rounded-lg flex items-center gap-1.5 border border-amber-500/40 shadow-sm transition group"
>
<span>🪙 CRYPTOX</span>
</a>
{/* PWA / iOS Install Button */} {/* PWA / iOS Install Button */}
{isInstalled ? ( {isInstalled ? (
<div <div