tahamajs/RR / Codes /frontend /src /components /WindowLauncher.tsx
tahamajs's picture
download
raw
18.5 kB
import { useState, useEffect } from "react";
import { useWindowStore } from "../store/windowStore";
export const AVAILABLE_WINDOWS = [
// ═══════════════════════════════════════════════════════════════
// Core / Communication
// ═══════════════════════════════════════════════════════════════
{ type: "terminal", title: "Terminal", icon: ">_" },
{ type: "chat", title: "AI Chat", icon: "💬" },
{ type: "notes", title: "Notes", icon: "📝" },
{ type: "paper-editor", title: "Paper Editor", icon: "📄" },
{ type: "community", title: "Q&A Forum", icon: "❓" },
{ type: "support", title: "AI Support Hub", icon: "🎓" },
// ═══════════════════════════════════════════════════════════════
// Marketplace & Trading
// ═══════════════════════════════════════════════════════════════
{ type: "marketplace", title: "GPU Marketplace", icon: "🖥️" },
{ type: "gpumarket", title: "GPU Stock Market", icon: "📈" },
{ type: "marketplace-ai", title: "AI Agent Marketplace", icon: "🤖" },
{ type: "comparison-builder", title: "Comparison Builder", icon: "📊" },
{ type: "provider-dashboard", title: "Provider Dashboard", icon: "📊" },
{ type: "disputes", title: "Dispute Center", icon: "⚖️" },
// ═══════════════════════════════════════════════════════════════
// Experiments & Analysis
// ═══════════════════════════════════════════════════════════════
{ type: "experiments", title: "Experiments", icon: "🔬" },
{ type: "analysis", title: "Research Analysis", icon: "📊" },
{ type: "analytics", title: "Advanced Analytics", icon: "📈" },
{ type: "accelerator", title: "Experiment Accelerator", icon: "⚡" },
{ type: "recommendations", title: "Experiment Recommendations", icon: "💡" },
{ type: "forensics", title: "Failure Forensics", icon: "🛡️" },
{ type: "anomaly", title: "Anomaly Detection", icon: "⚠️" },
// ═══════════════════════════════════════════════════════════════
// Hyperparameter Optimization
// ═══════════════════════════════════════════════════════════════
{ type: "hpo", title: "HPO Dashboard", icon: "🎯" },
{ type: "sweeps", title: "Sweeps", icon: "🎯" },
// ═══════════════════════════════════════════════════════════════
// AI Co‑Scientist & Research
// ═══════════════════════════════════════════════════════════════
{ type: "tournament", title: "Idea Tournament", icon: "🏆" },
{ type: "hypotheses", title: "Hypothesis Browser", icon: "🔬" },
{ type: "research", title: "Deep Research", icon: "🔍" },
{ type: "coding-assistant", title: "AI Coding Assistant", icon: "</>" },
{ type: "pipeline-monitor", title: "Pipeline Monitor", icon: "📊" },
{ type: "step-editor", title: "Step Editor", icon: "✏️" },
// ═══════════════════════════════════════════════════════════════
// Literature & Discovery
// ═══════════════════════════════════════════════════════════════
{ type: "literature-map", title: "Literature Map", icon: "🗺️" },
{ type: "citation-graph", title: "Citation Graph Viewer", icon: "🔗" },
{
type: "literature-synthesizer",
title: "Literature Synthesizer",
icon: "📖",
},
{ type: "hypothesis-generator", title: "Hypothesis Generator", icon: "🧠" },
{
type: "database-explorer",
title: "Research Database Explorer",
icon: "🔍",
},
{ type: "grant-matcher", title: "Grant Matcher", icon: "🏆" },
// ═══════════════════════════════════════════════════════════════
// Impact & Leaderboards
// ═══════════════════════════════════════════════════════════════
{ type: "impact-score", title: "Impact Score", icon: "📈" },
{ type: "project-leaderboard", title: "Project Leaderboard", icon: "🏆" },
{ type: "leaderboard", title: "Contribution Leaderboard", icon: "🏆" },
// ═══════════════════════════════════════════════════════════════
// Collaboration & Experts
// ═══════════════════════════════════════════════════════════════
{
type: "collaborator-suggestions",
title: "Collaborator Suggestions",
icon: "👥",
},
{ type: "match-history", title: "Collaboration History", icon: "📜" },
{ type: "expert-directory", title: "Expert Directory", icon: "👥" },
{ type: "project-application", title: "Apply to Project", icon: "📝" },
{ type: "group-discussions", title: "Group Discussions", icon: "💬" },
{ type: "suggested-researchers", title: "Suggested Researchers", icon: "🤝" },
// ═══════════════════════════════════════════════════════════════
// Gamification & Streaks
// ═══════════════════════════════════════════════════════════════
{ type: "streak-heatmap", title: "Activity Streaks", icon: "🔥" },
{ type: "weekly-summary", title: "Weekly Summary", icon: "📊" },
{ type: "badge-wall", title: "Badge Wall", icon: "🏅" },
// ═══════════════════════════════════════════════════════════════
// Visualisation & Advanced
// ═══════════════════════════════════════════════════════════════
{ type: "model3d", title: "3D Model Explorer", icon: "🧊" },
{ type: "federated", title: "Federated Learning Dashboard", icon: "🔗" },
{
type: "hyperparameter-explorer",
title: "Hyperparameter Explorer",
icon: "📊",
},
{ type: "dashboard-builder", title: "Custom Dashboard Builder", icon: "🎛️" },
{ type: "sql-editor", title: "SQL Query Editor", icon: "🗄️" },
{ type: "live-dashboards", title: "Live Dashboards", icon: "📈" },
// ═══════════════════════════════════════════════════════════════
// LLM Hub
// ═══════════════════════════════════════════════════════════════
{ type: "llm-providers", title: "LLM Providers", icon: "🔌" },
{ type: "playground", title: "LLM Playground", icon: "🎮" },
{ type: "prompts", title: "Prompt Library", icon: "📝" },
{ type: "evaluations", title: "Evaluation Suite", icon: "📊" },
{ type: "costs", title: "Cost Dashboard", icon: "💰" },
{ type: "memory", title: "Memory Manager", icon: "🧠" },
{ type: "tools", title: "Tool Catalog", icon: "🔧" },
{ type: "arena", title: "Arena Battles", icon: "🏆" },
{ type: "guardrails", title: "Guardrail Editor", icon: "🛡️" },
// ═══════════════════════════════════════════════════════════════
// MLOps & Governance
// ═══════════════════════════════════════════════════════════════
{ type: "feature-store", title: "Feature Store Browser", icon: "🗄️" },
{ type: "drift-monitors", title: "Drift Monitors", icon: "📈" },
{ type: "alerts", title: "Alert Dashboard", icon: "🔔" },
{ type: "performance", title: "Performance Snapshots", icon: "📸" },
{ type: "audit-logs", title: "Audit Log Dashboard", icon: "📜" },
{ type: "compliance", title: "Compliance Report View", icon: "✓" },
{ type: "contracts", title: "Contract Signing", icon: "✍️" },
{ type: "security-scans", title: "Security Scan Results", icon: "🔒" },
{ type: "access-policies", title: "Access Policy Editor", icon: "🔐" },
// ═══════════════════════════════════════════════════════════════
// Integrations
// ═══════════════════════════════════════════════════════════════
{ type: "cloud-connection", title: "Cloud Connection Wizard", icon: "☁️" },
{ type: "webhooks", title: "Webhook Management", icon: "🔌" },
{ type: "sandbox", title: "Secure Sandbox", icon: "🖥️" },
{ type: "plugins", title: "Plugin Marketplace", icon: "🧩" },
// ═══════════════════════════════════════════════════════════════
// Model Hub
// ═══════════════════════════════════════════════════════════════
{ type: "model-registry", title: "Model Registry", icon: "📦" },
{ type: "approvals", title: "Approval Requests", icon: "✓" },
{ type: "promotions", title: "Promotion Panel", icon: "⬆️" },
{ type: "access-manager", title: "Model Access Manager", icon: "🔐" },
{ type: "catalog", title: "Model Catalog", icon: "🔍" },
// ═══════════════════════════════════════════════════════════════
// Playground (prompt / model / tool testing)
// ═══════════════════════════════════════════════════════════════
{ type: "prompt-playground", title: "Prompt Playground", icon: "🎮" },
{ type: "model-comparison", title: "Model Comparison", icon: "⚖️" },
{ type: "tool-test-console", title: "Tool Test Console", icon: "🔧" },
// ═══════════════════════════════════════════════════════════════
// Health Monitor
// ═══════════════════════════════════════════════════════════════
{ type: "drift-monitor", title: "Drift Monitor Setup", icon: "📉" },
{ type: "alert-history", title: "Alert History", icon: "🔔" },
{ type: "health-dashboard", title: "Health Dashboard", icon: "🏥" },
// ═══════════════════════════════════════════════════════════════
// Annotation
// ═══════════════════════════════════════════════════════════════
{ type: "annotation-projects", title: "Annotation Projects", icon: "🏷️" },
{ type: "labeling", title: "Labeling Interface", icon: "✏️" },
{ type: "pre-label", title: "AI Pre‑labeling", icon: "🤖" },
{ type: "review-queue", title: "Review Queue", icon: "✓" },
// ═══════════════════════════════════════════════════════════════
// Inference / MLOps pipelines
// ═══════════════════════════════════════════════════════════════
{ type: "inference-endpoints", title: "Inference Endpoints", icon: "🚀" },
{ type: "pipeline-runner", title: "Pipeline Runner", icon: "⏯️" },
{ type: "ctc-triggers", title: "CTC/CD Triggers", icon: "🔄" },
{ type: "distillation", title: "Model Distillation", icon: "⚗️" },
{ type: "multi-node-training", title: "Multi‑Node Training", icon: "🌐" },
// ═══════════════════════════════════════════════════════════════
// Protocols
// ═══════════════════════════════════════════════════════════════
{ type: "protocols", title: "Research Protocols", icon: "📋" },
{ type: "protocol-builder", title: "Protocol Builder", icon: "✍️" },
// ═══════════════════════════════════════════════════════════════
// GPU Finance
// ═══════════════════════════════════════════════════════════════
{ type: "futures", title: "Futures Trading", icon: "📈" },
{ type: "compute-index", title: "Compute Index", icon: "📊" },
{ type: "invoices", title: "Invoices", icon: "🧾" },
{ type: "payouts", title: "Payout Requests", icon: "💰" },
{ type: "subscriptions", title: "Subscription Plans", icon: "💳" },
// ═══════════════════════════════════════════════════════════════
// Data & Research Labs
// ═══════════════════════════════════════════════════════════════
{ type: "datasets", title: "Datasets", icon: "🗄️" },
{ type: "labs", title: "Research Labs", icon: "🧪" },
// ═══════════════════════════════════════════════════════════════
// Administration & Organisation
// ═══════════════════════════════════════════════════════════════
{ type: "admin", title: "Admin Dashboard", icon: "⚙️" },
{ type: "cluster", title: "Cluster Overview", icon: "🌐" },
{ type: "organizations", title: "Organizations", icon: "🏢" },
{ type: "profile", title: "Profile", icon: "👤" },
];
export function WindowLauncher() {
const [open, setOpen] = useState(false);
const [query, setQuery] = useState("");
const { addWindow } = useWindowStore();
useEffect(() => {
const handler = (e: KeyboardEvent) => {
if ((e.metaKey || e.ctrlKey) && e.key === "p") {
e.preventDefault();
setOpen(true);
}
};
window.addEventListener("keydown", handler);
return () => window.removeEventListener("keydown", handler);
}, []);
if (!open) return null;
const filtered = AVAILABLE_WINDOWS.filter((w) =>
w.title.toLowerCase().includes(query.toLowerCase()),
);
return (
<div
className="fixed inset-0 z-[1000] bg-black/50 backdrop-blur-sm flex items-start justify-center pt-20"
onClick={() => setOpen(false)}
>
<div
className="glass-terminal w-full max-w-md rounded-xl shadow-2xl"
onClick={(e) => e.stopPropagation()}
>
<input
autoFocus
type="text"
placeholder="Open a window... (Terminal, Chat, Notes, ...)"
className="w-full bg-transparent border-b border-white/10 p-4 outline-none text-white"
value={query}
onChange={(e) => setQuery(e.target.value)}
/>
<div className="max-h-80 overflow-y-auto p-2">
{filtered.map((item) => (
<button
key={item.type}
className="w-full flex items-center gap-3 px-3 py-2 hover:bg-white/5 rounded text-left"
onClick={() => {
addWindow(item.type, item.title, item.icon);
setOpen(false);
}}
>
<span className="text-xl">{item.icon}</span>
<span>{item.title}</span>
</button>
))}
</div>
</div>
</div>
);
}

Xet Storage Details

Size:
18.5 kB
·
Xet hash:
fbe2f4a95d7fa586584a36052c70f1ccc8763b45964537ada2621b6dd24176f1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.