How emi420/chatmap works
Main Components Identification
The system architecture should be represented as a single-page application (SPA) with these main components:
a) Frontend Layer (React-based):
• User Interface Components
• Data Processing Layer
• Visualization Layer
Key Architectural Elements
A. Core Components (Top Level):
• User Interface Layer
• Navigation Components
• File Management
• Map Visualization
• Data Processing Layer
• Chat Parsers
• Content Merger
• State Management Layer
• Settings & Configuration
Component Relationships to Highlight
• File Upload → Parser → Content Merger → Map Visualization
• Settings → Map Configuration
• Language Selection → UI Updates
Specific Implementation Details
a) Input Processing:
• File upload component
• WhatsApp parser implementation
• Content merger hook
b) Visualization Layer:
• Component with custom styling
• Location popup handling
• Source management
c) Support Systems:
• Internationalization (i18n) with multiple language support
• Settings management
• Download functionality
┌─────────────────────────────────────────┐
• User Interface │
• ┬─────────────┬────────────┤
• NavBar │FileUpload │ Settings │
• ┴─────────────┴────────────┘
• ↓ ↓ ↓
┌─────────────────────────────────────────┐
• Data Processing │
• ┌─────────────┐ ┌─────────────┐ │
• Parser │ → │ContentMerger │ │
• ┘ └─────────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────┐
• Map Visualization │
• ┌─────────────┐ ┌─────────────┐ │
• Map │ ← │ Popup │ │
• ┘ └─────────────┘ │
• ┘