# JIRA AI Fixer v2.0

Enterprise AI-powered issue analysis and automated fix generation platform.

## 🚀 Features

### Issue Analysis
- 🤖 **AI-Powered Analysis** — Automatic root cause analysis using LLMs
- 🔀 **Auto PR Generation** — Creates Pull Requests with suggested fixes
- 🎯 **Confidence Scoring** — AI confidence level for each analysis
- 📊 **Analytics Dashboard** — Track trends, resolution rates, and team performance

### Multi-Source Integration
- 🔵 **JIRA Cloud** — Full bidirectional sync
- ⚙️ **ServiceNow** — Incident and change management
- 🐙 **GitHub** — Issues and repository integration
- 🦊 **GitLab** — Issues and merge requests
- 💚 **Zendesk** — Support ticket analysis
- 🎫 **TicketHub** — Native integration

### Enterprise Features
- 🏢 **Multi-Organization** — Manage multiple teams/projects
- 🔐 **JWT Authentication** — Secure token-based auth
- 👥 **Team Management** — Role-based access control
- 📧 **Email Notifications** — Automated alerts via Resend
- 📈 **Reports & Analytics** — Performance metrics and insights
- 🔌 **Webhooks** — Incoming webhooks from any platform
- 📝 **Audit Logs** — Complete action history

### Modern UI
- ⚡ **React 18** + Vite (fast builds)
- 🎨 **shadcn/ui** components (Button, Dialog, Command, Toast, Skeleton...)
- 📊 **Recharts** interactive charts
- 🌙 **Dark Mode** by default
- 📱 **Responsive** layout

## 📦 Tech Stack

| Layer | Technology |
|-------|-----------|
| **Frontend** | React 18, Vite, TailwindCSS, shadcn/ui, Recharts |
| **Backend** | Python 3.11, FastAPI, SQLAlchemy (async) |
| **Database** | PostgreSQL 14+ |
| **Queue** | Redis |
| **Email** | Resend |
| **AI** | OpenRouter (Llama, Claude, GPT) |

## 🛠 Quick Start

```bash
# Clone
git clone https://gitea.startdata.com.br/startdata/jira-ai-fixer.git
cd jira-ai-fixer

# Backend
pip install fastapi uvicorn sqlalchemy[asyncio] asyncpg pydantic-settings python-jose passlib httpx
uvicorn app.main:app --reload

# Frontend
cd frontend && npm install && npm run dev
```

## 📖 Documentation

- **[Installation Guide](INSTALL.md)** — Full setup instructions
- **[API Documentation](https://jira-fixer.startdata.com.br/api/docs)** — Swagger UI

## 🌐 Live Demo

- **App:** https://jira-fixer.startdata.com.br
- **API:** https://jira-fixer.startdata.com.br/api/docs

## 📄 License

MIT © StartData
