"use client"; import { useState } from "react"; import { syncDatabase } from "../lib/api"; export default function SystemInfo() { const [isSyncing, setIsSyncing] = useState(false); const [syncStatus, setSyncStatus] = useState(null); const [debugInfo, setDebugInfo] = useState(""); const testConnection = async () => { try { const res1 = await fetch("/api/health"); const healthData = await res1.json(); const res2 = await fetch("/api/health/db-status"); const dbData = await res2.json(); setDebugInfo(`Health: ${JSON.stringify(healthData)} | DB: ${JSON.stringify(dbData)}`); } catch (e: any) { setDebugInfo(`Connection Failed: ${e.message}`); } }; const handleSync = async () => { setIsSyncing(true); setSyncStatus("Syncing..."); try { await syncDatabase(); setSyncStatus("Success! Refreshing..."); setTimeout(() => window.location.reload(), 1500); } catch (e) { setSyncStatus("Failed to sync."); console.error(e); } finally { setIsSyncing(false); } }; const techStack = [ { name: "FastAPI", role: "Backend Engine", desc: "High-performance Python framework for AI orchestration." }, { name: "Next.js 14", role: "Frontend Framework", desc: "Modern React framework with server-side capabilities." }, { name: "Tailwind CSS", role: "Design System", desc: "Premium styling with custom glassmorphism effects." }, { name: "SQLite", role: "Persistence", desc: "Reliable and fast local database for cloud deployments." }, { name: "Gemini Pro", role: "AI Intelligence", desc: "Advanced LLM for technical and legal analysis." }, { name: "Nginx", role: "Reverse Proxy", desc: "Production-grade traffic management." }, ]; return (
{/* Brand Section */}
REW

About AndesOps AI

AndesOps AI is a state-of-the-art platform developed by REW Agency. Engineered to transform public procurement through agentic intelligence.

{/* Rescue Button */}
{syncStatus &&

{syncStatus}

} {/* Debug Area */}
{debugInfo && (

{debugInfo}

)}

Use this if the dashboard shows 0 items on first load

Visit rew.cl
Powered by AndesOps
{/* Tech Grid */}
{techStack.map((tech) => (
{tech.role}

{tech.name}

{tech.desc}

))}
{/* Development Status */}

System Status: Operational

Version 1.0.4 - Production Environment

Developed & Signed by

REW DIGITAL AGENCY CHILE

); }