Skip to content

Commit 3cad562

Browse files
committed
refactor: replace mermaid renderer with optimized image mesh and update documentation to reflect cost-driven serverless shift added home button
1 parent 164521f commit 3cad562

10 files changed

Lines changed: 182 additions & 306 deletions

File tree

72.5 KB
Loading
196 KB
Loading
182 KB
Loading

src/app/swiftvault/page.tsx

Lines changed: 107 additions & 279 deletions
Large diffs are not rendered by default.

src/app/versioncv/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import React from 'react';
44
import { motion } from 'framer-motion';
55
import { Layers, Activity, ShieldCheck, Zap, Database, ArrowRight } from 'lucide-react';
6+
import HomeButton from '@/components/HomeButton';
67

78
/* ======================================================
89
ARCHITECTURE DATA
@@ -158,6 +159,7 @@ export default function VersionCVPage() {
158159
<span className="text-slate-500 text-sm font-mono tracking-tighter">
159160
(HLD overview below)
160161
</span>
162+
<HomeButton/>
161163
</div>
162164
</header>
163165

src/app/versioncv/performance/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import React, { useState, useEffect } from 'react';
44
import { motion, AnimatePresence } from 'framer-motion';
55
import { X, BarChart3, ZoomIn } from 'lucide-react';
6+
import HomeButton from '@/components/HomeButton';
67

78
/* ======================================================
89
DATA DEFINITIONS
@@ -81,6 +82,7 @@ export default function TestMetricsPage() {
8182
Latency & Integrity Proofs
8283
</p>
8384
</div>
85+
<div><HomeButton/></div>
8486
</div>
8587
</div>
8688

src/app/versioncv/pipelines/page.tsx

Lines changed: 49 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ import {
1616
X, Cpu, Database, Globe, Shield, Lock, Zap, Server,
1717
Code, Activity, Search, FileEdit, MessageSquare,
1818
ListChecks,
19-
BarChart3
19+
BarChart3, Home
2020
} from 'lucide-react';
21+
import HomeButton from '@/components/HomeButton';
2122

2223
/* ======================================================
2324
1. MASTER DATA DEFINITIONS (NON-TRUNCATED)
@@ -451,6 +452,7 @@ function TestMetricsView() {
451452
</p>
452453
</div>
453454
</div>
455+
454456
</div>
455457

456458
{/* ================= MASTER–DETAIL GRID ================= */}
@@ -624,6 +626,7 @@ export default function PipelineVisualizer() {
624626
>
625627
{tab.label}
626628
</button>
629+
627630
))}
628631
<button
629632
onClick={() => {
@@ -640,6 +643,7 @@ export default function PipelineVisualizer() {
640643
View Test Metrics & Latencies
641644
</button>
642645
</div>
646+
<HomeButton/>
643647
<div className="text-center md:text-right">
644648
<h1 className="text-white text-lg md:text-xl font-black tracking-tighter italic">VERSION-CV ARCHITECTURE</h1>
645649
<p className="text-blue-500 font-mono text-[8px] md:text-[9px] tracking-[0.4em] uppercase font-bold">Serverless Orchestration</p>
@@ -688,31 +692,50 @@ export default function PipelineVisualizer() {
688692
</AnimatePresence>
689693

690694
{/* FULL PIPELINE WALKTHROUGH (NON-TRUNCATED) */}
691-
{activeTab !== 'test-metrics' && <div className="absolute bottom-4 left-4 right-4 md:bottom-10 md:left-10 md:right-auto z-20 pointer-events-none">
692-
<motion.div
693-
initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }} key={activeTab}
694-
className="p-4 mr-5 md:p-10 bg-slate-950/80 backdrop-blur-2xl border border-white/10 rounded-2xl md:rounded-[3rem] shadow-[0_30px_100px_rgba(0,0,0,0.8)] relative overflow-hidden"
695-
>
696-
<div className="absolute -top-32 -left-32 w-64 h-64 bg-blue-500/10 blur-[100px]" />
697-
<div className="relative z-10 space-y-2 md:space-y-6">
698-
<div className="flex items-center gap-3 md:gap-4">
699-
<div className="p-2 md:p-3 bg-blue-500/20 rounded-xl md:rounded-2xl"><Activity size={20} className="text-blue-400" /></div>
700-
<div>
701-
<h3 className="text-blue-400 font-mono text-[8px] md:text-[11px] uppercase tracking-[0.4em] font-black">Pipeline Walkthrough</h3>
702-
<p className="text-white text-sm md:text-lg font-black tracking-tight uppercase italic">{activeTab.replace('-', ' ')} Narrative</p>
703-
</div>
704-
</div>
705-
<p className="text-slate-300 text-[10px] md:text-[15px] leading-relaxed md:leading-[1.8] font-medium tracking-wide italic">
706-
{activeTab === 'ats-scan' && "A multi-stage discovery mesh. Requests are verified via JWT at the edge, offloaded via Internal RPC to isolated GCP Cloud Run containers for high-fidelity conversion, followed by structural distortion audits and deterministic NLP-based scoring pass."}
707-
{activeTab === 'ats-optimizer' && "Asynchronous transformation pipeline. Requests are decoupled via Cloudflare Queues to prevent head-of-line blocking. Progress is streamed in real-time via SSE while the LLM Audit Engine executes XML-guided DOM self-healing and contextual verb replacement."}
708-
{activeTab === 'pdf-maker' && "Cross-cloud rendering handshake. DOM state is buffered in an R2 Temp bucket to bypass Edge payload limits. A GCP Cloud Run instance provisioned with Headless Chromium renders the PDF, migrates the binary to a Protected Vault, and atomically updates D1 metadata entries."}
709-
{activeTab === 'jd-scanner' && "Forensic JD matching sequence. The consumer provisioner fetches resume assets from R2 bucket, verifies ownership, and executes a vector-based semantic analysis against role requirements to generate an instant compatibility report and plausible skill gap audit cached in KV."}
710-
{activeTab === 'jd-optimizer' && "Granular context injection mesh. To prevent LLM drift, the file is dismantled into sectional tokens. Only targeted fragments are sent to the LLM within a strict algorithmic context. The optimized results are re-injected into the original structure and validated via structure-test before editor hydration."}
711-
{activeTab === 'payment' && "Idempotent billing mesh. Atomic subscription logic prevents gateway-DB mismatch through rollback triggers. HMAC-verified webhooks are ingested via Message Queues to prevent gateway timeout loops, while async consumers handle ZeptoMail fulfillment and inventory synchronization."}
712-
</p>
713-
</div>
714-
</motion.div>
715-
</div>}
695+
{activeTab !== 'test-metrics' && (
696+
<div className="absolute bottom-4 left-4 right-4 md:bottom-10 md:left-10 md:right-10 z-20 pointer-events-none">
697+
<motion.div
698+
initial={{ opacity: 0, y: 20 }}
699+
animate={{ opacity: 1, y: 0 }}
700+
key={activeTab}
701+
className="p-4 md:p-6 bg-slate-950/90 backdrop-blur-2xl border border-white/10 rounded-2xl md:rounded-[2rem] shadow-[0_30px_100px_rgba(0,0,0,0.8)] relative overflow-hidden max-w-5xl"
702+
>
703+
{/* Ambient Glows */}
704+
<div className="absolute -top-32 -left-32 w-64 h-64 bg-blue-500/10 blur-[100px]" />
705+
706+
<div className="relative z-10 flex flex-col md:flex-row md:items-center gap-3 md:gap-8">
707+
708+
{/* Header Section: Tightened and moved to side on desktop */}
709+
<div className="flex items-center gap-3 shrink-0">
710+
<div className="p-2 bg-blue-500/20 rounded-lg md:rounded-xl">
711+
<Activity size={18} className="text-blue-400 md:w-6 md:h-6" />
712+
</div>
713+
<div className="space-y-0.5">
714+
<h3 className="text-blue-400 font-mono text-[7px] md:text-[10px] uppercase tracking-[0.3em] font-black leading-none">
715+
Pipeline Walkthrough
716+
</h3>
717+
<p className="text-white text-xs md:text-sm font-black tracking-tight uppercase italic leading-none whitespace-nowrap">
718+
{activeTab.replace('-', ' ')} Narrative
719+
</p>
720+
</div>
721+
</div>
722+
723+
{/* Divider: Visible only on desktop to separate header from description */}
724+
<div className="hidden md:block w-px h-10 bg-white/10" />
725+
726+
{/* Description Section: Fluid text size and tighter leading */}
727+
<p className="text-slate-300 text-[9px] md:text-[13px] leading-tight md:leading-relaxed font-medium tracking-wide italic flex-1">
728+
{activeTab === 'ats-scan' && "A multi-stage discovery mesh. Requests are verified via JWT at the edge, offloaded via Internal RPC to isolated GCP Cloud Run containers for high-fidelity conversion, followed by structural distortion audits and deterministic NLP-based scoring pass."}
729+
{activeTab === 'ats-optimizer' && "Asynchronous transformation pipeline. Requests are decoupled via Cloudflare Queues to prevent head-of-line blocking. Progress is streamed in real-time via SSE while the LLM Audit Engine executes XML-guided DOM self-healing and contextual verb replacement."}
730+
{activeTab === 'pdf-maker' && "Cross-cloud rendering handshake. DOM state is buffered in an R2 Temp bucket to bypass Edge payload limits. A GCP Cloud Run instance provisioned with Headless Chromium renders the PDF, migrates the binary to a Protected Vault, and atomically updates D1 metadata entries."}
731+
{activeTab === 'jd-scanner' && "Forensic JD matching sequence. The consumer provisioner fetches resume assets from R2 bucket, verifies ownership, and executes a vector-based semantic analysis against role requirements to generate an instant compatibility report and plausible skill gap audit cached in KV."}
732+
{activeTab === 'jd-optimizer' && "Granular context injection mesh. To prevent LLM drift, the file is dismantled into sectional tokens. Only targeted fragments are sent to the LLM within a strict algorithmic context. The optimized results are re-into the original structure and validated via structure-test before editor hydration."}
733+
{activeTab === 'payment' && "Idempotent billing mesh. Atomic subscription logic prevents gateway-DB mismatch through rollback triggers. HMAC-verified webhooks are ingested via Message Queues to prevent gateway timeout loops, while async consumers handle ZeptoMail fulfillment and inventory synchronization."}
734+
</p>
735+
</div>
736+
</motion.div>
737+
</div>
738+
)}
716739
</div>
717740

718741

src/components/HomeButton.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
'use client';
2+
3+
import { useRouter } from 'next/navigation';
4+
import { Home } from 'lucide-react';
5+
6+
export default function HomeButton() {
7+
const router = useRouter();
8+
9+
return (
10+
<button
11+
onClick={() => router.push('/')}
12+
className="cursor-pointer group flex items-center gap-2 px-4 py-2 bg-slate-900/40 border border-white/10 rounded-xl hover:border-blue-500/50 hover:bg-slate-900/60 transition-all duration-300"
13+
>
14+
<Home size={14} className="text-slate-400 group-hover:text-blue-400 transition-colors" />
15+
<span className="text-[10px] font-mono font-black uppercase tracking-widest text-slate-400 group-hover:text-white">
16+
Home
17+
</span>
18+
</button>
19+
);
20+
}

src/components/PrespectiveEngine.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default function ProfileSummarizer() {
154154
key={item.id}
155155
onClick={() => handleSelect(item.id as keyof typeof SUMMARIES)}
156156
disabled={isTyping}
157-
className={`p-3 rounded-xl border transition-all flex items-center justify-center gap-2 group ${
157+
className={`cursor-pointer p-3 rounded-xl border transition-all flex items-center justify-center gap-2 group ${
158158
active === item.id
159159
? 'bg-emerald-500/20 border-emerald-500/40 text-white'
160160
: 'bg-slate-800/40 border-white/5 text-slate-500 hover:border-white/20'

src/components/SwiftvaultArchitecture.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ mermaid.initialize({
1313
startOnLoad: true,
1414
theme: 'dark',
1515
securityLevel: 'loose',
16+
flowchart: { useMaxWidth: true, htmlLabels: true, curve: 'basis' },
1617
themeVariables: {
1718
fontFamily: 'monospace',
1819
primaryColor: '#10b981',

0 commit comments

Comments
 (0)