Álvaro Valenzuela Valdes commited on
Commit
336eac0
·
1 Parent(s): e644ec6

feat: Add System tab with REW credits and fix DB seeding

Browse files
frontend/app/page.tsx CHANGED
@@ -10,6 +10,7 @@ import Reports from "../components/Reports";
10
  import Sidebar from "../components/Sidebar";
11
  import AnalysisHistory from "../components/AnalysisHistory";
12
  import GlobalSync from "../components/GlobalSync";
 
13
  import { analyzeTender, fetchAnalysisHistory, fetchCompanyProfile, healthCheck, saveCompanyProfile, searchTenders } from "../lib/api";
14
  import type { AnalysisHistoryItem, AnalysisResult, CompanyProfile as CompanyProfileType, Tender } from "../lib/types";
15
 
@@ -22,6 +23,7 @@ const tabs = [
22
  "Proposal Draft",
23
  "Reports",
24
  "History",
 
25
  ] as const;
26
 
27
  type Tab = (typeof tabs)[number];
@@ -217,6 +219,7 @@ export default function HomePage() {
217
  {activeTab === "Proposal Draft" && <ProposalDraft proposal={analysisResult?.proposal_draft ?? ""} />}
218
  {activeTab === "Reports" && <Reports reportMarkdown={analysisResult?.report_markdown ?? ""} />}
219
  {activeTab === "History" && <AnalysisHistory history={analysisHistory} />}
 
220
  </div>
221
  </main>
222
  </div>
 
10
  import Sidebar from "../components/Sidebar";
11
  import AnalysisHistory from "../components/AnalysisHistory";
12
  import GlobalSync from "../components/GlobalSync";
13
+ import SystemInfo from "../components/SystemInfo";
14
  import { analyzeTender, fetchAnalysisHistory, fetchCompanyProfile, healthCheck, saveCompanyProfile, searchTenders } from "../lib/api";
15
  import type { AnalysisHistoryItem, AnalysisResult, CompanyProfile as CompanyProfileType, Tender } from "../lib/types";
16
 
 
23
  "Proposal Draft",
24
  "Reports",
25
  "History",
26
+ "System",
27
  ] as const;
28
 
29
  type Tab = (typeof tabs)[number];
 
219
  {activeTab === "Proposal Draft" && <ProposalDraft proposal={analysisResult?.proposal_draft ?? ""} />}
220
  {activeTab === "Reports" && <Reports reportMarkdown={analysisResult?.report_markdown ?? ""} />}
221
  {activeTab === "History" && <AnalysisHistory history={analysisHistory} />}
222
+ {activeTab === "System" && <SystemInfo />}
223
  </div>
224
  </main>
225
  </div>
frontend/components/SystemInfo.tsx ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "use client";
2
+
3
+ export default function SystemInfo() {
4
+ const techStack = [
5
+ { name: "FastAPI", role: "Backend Engine", desc: "High-performance Python framework for AI orchestration." },
6
+ { name: "Next.js 14", role: "Frontend Framework", desc: "Modern React framework with server-side capabilities." },
7
+ { name: "Tailwind CSS", role: "Design System", desc: "Premium styling with custom glassmorphism effects." },
8
+ { name: "SQLite", role: "Persistence", desc: "Reliable and fast local database for cloud deployments." },
9
+ { name: "Gemini Pro", role: "AI Intelligence", desc: "Advanced LLM for technical and legal analysis." },
10
+ { name: "Nginx", role: "Reverse Proxy", desc: "Production-grade traffic management." },
11
+ ];
12
+
13
+ return (
14
+ <div className="space-y-12 animate-in fade-in slide-in-from-bottom-4 duration-700">
15
+ {/* Brand Section */}
16
+ <div className="glass-card rounded-3xl p-12 border border-white/10 text-center relative overflow-hidden">
17
+ <div className="absolute -right-20 -top-20 h-64 w-64 rounded-full bg-purple-500/10 blur-[100px]" />
18
+ <div className="relative z-10">
19
+ <div className="w-20 h-20 premium-gradient rounded-3xl flex items-center justify-center text-white font-black text-3xl mx-auto mb-8 shadow-2xl shadow-purple-500/40">
20
+ REW
21
+ </div>
22
+ <h2 className="text-4xl font-bold text-white mb-4 tracking-tight">System Architecture</h2>
23
+ <p className="text-slate-400 max-w-2xl mx-auto text-lg leading-relaxed">
24
+ AndesOps AI is a state-of-the-art platform developed by <span className="text-white font-bold italic">REW Agency</span>.
25
+ Engineered to transform public procurement through agentic intelligence.
26
+ </p>
27
+ <div className="mt-8 flex items-center justify-center gap-6">
28
+ <a href="https://rewchile.cl" target="_blank" className="px-6 py-3 rounded-2xl bg-white/5 border border-white/10 text-sm font-bold text-slate-300 hover:bg-white/10 transition-all">
29
+ Visit rewchile.cl
30
+ </a>
31
+ <div className="h-6 w-px bg-white/10" />
32
+ <span className="text-xs font-bold uppercase tracking-[0.3em] text-purple-400">Powered by AndesOps</span>
33
+ </div>
34
+ </div>
35
+ </div>
36
+
37
+ {/* Tech Grid */}
38
+ <div className="grid gap-6 md:grid-cols-3">
39
+ {techStack.map((tech) => (
40
+ <div key={tech.name} className="glass-card rounded-3xl p-8 border border-white/5 hover:border-purple-500/30 transition-all duration-300">
41
+ <div className="text-[10px] font-black uppercase tracking-widest text-purple-400 mb-2">{tech.role}</div>
42
+ <h3 className="text-xl font-bold text-white mb-2">{tech.name}</h3>
43
+ <p className="text-sm text-slate-500 leading-relaxed">{tech.desc}</p>
44
+ </div>
45
+ ))}
46
+ </div>
47
+
48
+ {/* Development Status */}
49
+ <div className="glass-card rounded-3xl p-8 border border-white/5 bg-white/[0.01]">
50
+ <div className="flex flex-col md:flex-row items-center justify-between gap-8">
51
+ <div className="flex items-center gap-4">
52
+ <div className="h-3 w-3 rounded-full bg-green-500 animate-pulse shadow-[0_0_10px_rgba(34,197,94,0.5)]" />
53
+ <div>
54
+ <p className="text-sm font-bold text-white">System Status: Operational</p>
55
+ <p className="text-xs text-slate-500">Version 1.0.4 - Production Environment</p>
56
+ </div>
57
+ </div>
58
+ <div className="text-center md:text-right">
59
+ <p className="text-[10px] font-bold uppercase tracking-widest text-slate-600 mb-1">Developed & Signed by</p>
60
+ <p className="text-sm font-black text-slate-400 tracking-tighter">REW DIGITAL AGENCY CHILE</p>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ );
66
+ }
start.sh CHANGED
@@ -2,7 +2,7 @@
2
 
3
  # Seed Database with sample data for demo
4
  echo "Seeding database..."
5
- cd /app/backend && python seed_db.py
6
 
7
  # Start Backend
8
  echo "Starting Backend..."
 
2
 
3
  # Seed Database with sample data for demo
4
  echo "Seeding database..."
5
+ cd /app/backend && python3 seed_db.py
6
 
7
  # Start Backend
8
  echo "Starting Backend..."