diff --git a/services/frontend/src/components/messages/message-detail-view.tsx b/services/frontend/src/components/messages/message-detail-view.tsx new file mode 100644 index 0000000..e1c7333 --- /dev/null +++ b/services/frontend/src/components/messages/message-detail-view.tsx @@ -0,0 +1,55 @@ +"use client"; + +import { ArrowLeft, MessageSquare } from "lucide-react"; +import { GlassCard } from "@/components/glass/card"; +import { AttachmentsGrid } from "./attachments-grid"; +import { AiAnalysisPanel } from "./ai-analysis-panel"; +import type { AttachmentRecord, MessageRecord } from "@/lib/types"; + +interface MessageDetailViewProps { + message: MessageRecord; + attachments?: AttachmentRecord[]; + onBack?: () => void; +} + +export function MessageDetailView({ message, attachments, onBack }: MessageDetailViewProps) { + return ( + + {onBack && ( + + )} + + {/* Message header */} +
+ + {message.username} + {message.channel_id?.slice(0, 8)} +
+ + {/* Content */} +
+ {message.content || "(no text content)"} +
+ + {/* Attachments */} + {attachments && attachments.length > 0 && ( +
+ +
+ )} + + {/* AI Analysis */} + +
+ ); +} diff --git a/services/frontend/src/components/shared/index.ts b/services/frontend/src/components/shared/index.ts index fd1a6c0..3703758 100644 --- a/services/frontend/src/components/shared/index.ts +++ b/services/frontend/src/components/shared/index.ts @@ -1,6 +1,4 @@ -export { DetailStat } from "./detail-stat"; export { EmptyState } from "./empty-state"; export { ErrorBoundary } from "./error-boundary"; export { ErrorState } from "./error-state"; export { LoadingSkeleton } from "./loading-skeleton"; -export { StatCard } from "./stat-card";