Add caching support for analysis data in AnalysisPage
Yassine Mhirsi
6c8fc4b
- Implemented caching utilities to store and retrieve analysis results using localStorage.
- Updated AnalysisPage to utilize cached data for improved loading performance and user experience.
- Added loading state indication for data refresh in the UI.
- Enhanced error handling to display errors only when no cached data is available.
Add analysis charts and utilities
Yassine Mhirsi
75137c7
- Introduced `StanceDistributionChart`, `TimeSeriesChart`, and `TopicFrequencyChart` components for visualizing analysis results.
- Implemented utility functions for calculating stance statistics, topic frequency, and time-based statistics.
- Updated `AnalysisPage` to include new charts and display user analysis statistics.
- Added `recharts` library for charting capabilities and updated dependencies in `package.json` and `package-lock.json`.
Add routing and analysis features
Yassine Mhirsi
b6bed80
- Introduced `react-router-dom` for navigation, enabling routing between Home and Analysis pages.
- Created `HomePage` for user registration and navigation.
- Developed `AnalysisPage` for CSV file upload and argument analysis.
- Implemented API services for user management and analysis.
- Updated constants for new API endpoints.
- Enforced explicit file extensions in imports for TypeScript files.
- Added utility functions for user management and CSV parsing.