# Changelog

Tutte le modifiche significative a questo progetto saranno documentate in questo file.

Il formato è basato su [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
e questo progetto aderisce a [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

---

## [0.4.0] - 2026-04-07

### Added
- Report Generation System (PDF/CSV) with professional templates
  - ReportLab integration for PDF generation
  - Pandas integration for CSV export
  - Cost breakdown tables and summary statistics
  - Optional log inclusion in reports
- Data Visualization with Recharts
  - Cost Breakdown Pie Chart in Scenario Detail
  - Time Series Area Chart for metrics trends
  - Comparison Bar Chart for scenario comparison
  - Responsive charts with theme adaptation
- Scenario Comparison feature
  - Select 2-4 scenarios from Dashboard
  - Side-by-side comparison view
  - Comparison tables with delta indicators (color-coded)
  - Total cost and metrics comparison
- Dark/Light Mode toggle
  - System preference detection
  - Manual toggle in Header
  - All components support both themes
  - Charts adapt colors to current theme
- E2E Testing suite with 100 test cases (Playwright)
  - Multi-browser support (Chromium, Firefox)
  - Test coverage for all v0.4.0 features
  - Visual regression testing
  - Fixtures and mock data

### Technical
- Backend:
  - ReportLab for PDF generation
  - Pandas for CSV export
  - Report Service with async generation
  - Rate limiting (10 downloads/min)
  - Automatic cleanup of old reports
- Frontend:
  - Recharts for data visualization
  - next-themes for theme management
  - Radix UI components (Tabs, Checkbox, Select)
  - Tailwind CSS dark mode configuration
  - Responsive chart containers
- Testing:
  - Playwright E2E setup
  - 100 test cases across 4 suites
  - Multi-browser testing configuration
- DevOps:
  - Docker Compose configuration
  - CI/CD workflows
  - Storage directory for reports

### Changed
- Updated Header component with theme toggle
- Enhanced Scenario Detail page with charts
- Updated Dashboard with scenario selection for comparison
- Improved responsive design for all components

### Fixed
- Console errors cleanup
- TypeScript strict mode compliance
- Responsive layout issues on mobile devices

---

## [0.3.0] - 2026-04-07

### Added
- Frontend React 18 implementation with Vite
- TypeScript 5.0 with strict mode
- Tailwind CSS for styling
- shadcn/ui components (Button, Card, Dialog, Input, Label, Table, Textarea, Toast)
- TanStack Query (React Query) v5 for server state
- Axios HTTP client with interceptors
- React Router v6 for navigation
- Dashboard page with scenario list
- Scenario Detail page
- Scenario Edit/Create page
- Error handling with toast notifications
- Responsive design

### Technical
- Vite build tool with HMR
- ESLint and Prettier configuration
- Docker support for frontend
- Multi-stage Dockerfile for production

---

## [0.2.0] - 2026-04-07

### Added
- FastAPI backend with async support
- PostgreSQL 15 database
- SQLAlchemy 2.0 with async ORM
- Alembic migrations (6 migrations)
- Repository pattern implementation
- Service layer (PII detector, Cost calculator, Ingest service)
- Scenario CRUD API
- Log ingestion API with PII detection
- Metrics API with cost calculation
- AWS Pricing table with seed data
- SHA-256 message hashing for deduplication
- Email PII detection with regex
- AWS cost calculation (SQS, Lambda, Bedrock)
- Token counting with tiktoken

### Technical
- Pydantic v2 for validation
- asyncpg for async PostgreSQL
- slowapi for rate limiting (prepared)
- python-jose for JWT handling (prepared)
- pytest for testing

---

## [0.1.0] - 2026-04-07

### Added
- Initial project setup
- Basic FastAPI application
- Project structure and configuration
- Docker Compose setup for PostgreSQL

---

## Roadmap

### v0.5.0 (Planned)
- JWT Authentication
- API Keys management
- User preferences (theme, notifications)
- Advanced data export (JSON, Excel)

### v1.0.0 (Future)
- Production deployment guide
- Database backup automation
- Complete OpenAPI documentation
- Performance optimizations

---

*Changelog maintained by @spec-architect*
