"use client"; import { useState } from "react"; import { Plus, Search, Calendar, Clock, Brain, MessageSquare, Smile, Frown, Meh, Star, MoreHorizontal, X, Zap, Save, Trash2, Edit3, Image as ImageIcon, Link as LinkIcon, ChevronLeft, ChevronRight, Activity, Filter, AlignLeft, Hash, ArrowRight } from "lucide-react"; import { motion, AnimatePresence } from "framer-motion"; // Mock Data const journalEntries = [ { id: 1, date: "May 15, 2026", title: "Deep Work Breakthrough", excerpt: "Today I finally cracked the multi-tenant architecture logic for the Cognis core. Energy was high after the morning focus block.", sentiment: "Great", moodScore: 92, tags: ["Productivity", "Coding"], content: "The morning started with a 4-hour deep work block. I avoided all notifications and focused purely on the database schema. The multi-tenant logic is now solid. I feel a huge weight off my shoulders. Physical energy was 9/10 thanks to the 7am gym session." }, { id: 2, date: "May 14, 2026", title: "Project Risk Discussion", excerpt: "Met with Alex regarding the Infrastructure delays. Felt a bit anxious about the timeline but the AI risk report helped us focus.", sentiment: "Neutral", moodScore: 65, tags: ["Meeting", "Stress"], content: "Alex and I went through the infrastructure roadmap. We are indeed behind on the database migration. The stress is real, but we have a plan now. AI suggests prioritizing the migration scripts. Note for tomorrow: focus on script optimization." }, { id: 3, date: "May 12, 2026", title: "Creative Flow", excerpt: "Spent the afternoon in Figma. The new 'Cyber-Lavender' palette is looking stunning in the dark mode previews.", sentiment: "Great", moodScore: 88, tags: ["Design", "Creative"] }, ]; export default function JournalPage() { const [selectedEntry, setSelectedEntry] = useState(null); const [isCreating, setIsCreating] = useState(false); return (
{/* Top Header */}

Mindset / Strategic Journal

128 ENTRIES RECORDED
{/* Left Sidebar: Entries List */}

Recent Reflections

{journalEntries.map(entry => ( setSelectedEntry(entry)} className={`p-5 rounded-sm border cursor-pointer transition-all ${selectedEntry?.id === entry.id ? 'bg-[#1F172B] border-primary/40 shadow-xl' : 'bg-[#0A0710] border-white/5 hover:border-white/10'}`} >
{entry.date}

{entry.title}

"{entry.excerpt}"

{entry.tags.map(tag => ( #{tag} ))}
))}
{/* Main Content: Entry Viewer/Editor */}
{selectedEntry ? (
{selectedEntry.date}
MOOD SCORE: {selectedEntry.moodScore}%

{selectedEntry.title}

{/* AI Psychological Insight */}

Cognitive Analysis

"I've noticed that your mood scores peak when you mention 'Deep Work' blocks in the morning. However, meeting-heavy days seem to correlate with anxious sentiment. Consider restructuring 'Infrastructure' discussions for early PM."

{/* Body Content */}

{selectedEntry.content || "No detailed content available for this entry."}

{/* Strategic Connections */}

Connected Strategics

Goal: Scaling Backend
Directly Referenced
Habit: 7AM Gym
Impact Observed
{[1, 2, 3].map(i =>
A{i}
)}
+2
) : (

No Entry Selected

Select a reflection from the sidebar or create a new strategic entry to begin.

)}
{/* New Entry Modal */} {isCreating && ( <> setIsCreating(false)} className="fixed inset-0 bg-black/90 backdrop-blur-xl z-[100]" />

New Reflection

Documenting Strategic Growth

May 15, 2026
Sentiment: