# Tasks - {{FEATURE_NAME_TITLE}}

> Checklist de implementação para a feature.
> Atualize o status conforme progresso.

## Summary

| Metric | Value |
|--------|-------|
| **Total Tasks** | 0 |
| **Completed** | 0 |
| **In Progress** | 0 |
| **Pending** | 0 |
| **Estimated** | 0h |
| **Actual** | 0h |

---

## Checkpoints

| After | Type | Description | Status |
|-------|------|-------------|--------|
| T003 | Review | Review contracts and data model | Pending |
| T006 | Review | Review service implementation | Pending |
| T009 | Approval | Approve UI before tests | Pending |

---

## Phase 1: Contracts & Data Model

### T001: Define service interfaces
- **Type:** Contract
- **Priority:** 1
- **Estimate:** 30min
- **Status:** [ ] Pending

**Description:**
Create I{Feature}Service interface with all required methods.

**Acceptance Criteria:**
- [ ] Interface follows naming conventions
- [ ] All CRUD methods defined
- [ ] Async methods with CancellationToken

**Files:**
- [ ] Create: `Application/Features/{Feature}/Services/I{Feature}Service.cs`

---

### T002: Define repository interfaces
- **Type:** Contract
- **Priority:** 1
- **Estimate:** 20min
- **Status:** [ ] Pending

**Description:**
Create I{Feature}Repository interface.

**Files:**
- [ ] Create: `Application/Features/{Feature}/Services/I{Feature}Repository.cs`

---

### T003: Create domain entities
- **Type:** Domain
- **Priority:** 1
- **Estimate:** 45min
- **Status:** [ ] Pending
- **Checkpoint:** Review after this task

**Description:**
Create {Feature} entity with factory methods.

**Files:**
- [ ] Create: `Domain/Entities/{Feature}.cs`

---

## Phase 2: Infrastructure

### T004: Create EF configuration and migration
- **Type:** Infrastructure
- **Priority:** 2
- **Estimate:** 30min
- **Status:** [ ] Pending
- **Dependencies:** T003

**Description:**
Configure entity mapping and create migration.

**Files:**
- [ ] Create: `Infrastructure/Data/Configurations/{Feature}Configuration.cs`
- [ ] Create: `Infrastructure/Data/Migrations/{timestamp}_Add{Feature}.cs`
- [ ] Modify: `Infrastructure/Data/AppDbContext.cs`

---

### T005: Implement repository
- **Type:** Infrastructure
- **Priority:** 2
- **Estimate:** 45min
- **Status:** [ ] Pending
- **Dependencies:** T002, T004

**Description:**
Implement I{Feature}Repository.

**Files:**
- [ ] Create: `Infrastructure/Data/Repositories/{Feature}Repository.cs`

---

## Phase 3: Implementation

### T006: Implement service layer
- **Type:** Service
- **Priority:** 2
- **Estimate:** 1h
- **Status:** [ ] Pending
- **Dependencies:** T001, T005
- **Checkpoint:** Review after this task

**Description:**
Implement I{Feature}Service with business logic.

**Files:**
- [ ] Create: `Application/Features/{Feature}/Services/{Feature}Service.cs`

---

### T007: Implement AI agent (if applicable)
- **Type:** Agent
- **Priority:** 3
- **Estimate:** 1h
- **Status:** [ ] Pending
- **Dependencies:** T006

**Description:**
Create AI agent for analysis/processing.

**Files:**
- [ ] Create: `Agents/{Feature}Analyzer/{Feature}AnalyzerAgent.cs`

---

### T008: Implement background job (if applicable)
- **Type:** Job
- **Priority:** 3
- **Estimate:** 45min
- **Status:** [ ] Pending
- **Dependencies:** T006

**Description:**
Create Hangfire job for scheduled processing.

**Files:**
- [ ] Create: `Application/Features/{Feature}/Jobs/{Feature}ProcessorJob.cs`

---

## Phase 4: UI Components

### T009: Create list component
- **Type:** UI
- **Priority:** 2
- **Estimate:** 1h
- **Status:** [ ] Pending
- **Dependencies:** T006
- **Checkpoint:** Approval after this task

**Description:**
Create Blazor component to list items.

**Files:**
- [ ] Create: `Web/Components/Pages/{Feature}/{Feature}List.razor`

---

### T010: Create form component
- **Type:** UI
- **Priority:** 2
- **Estimate:** 1h
- **Status:** [ ] Pending
- **Dependencies:** T009

**Description:**
Create Blazor component for create/edit.

**Files:**
- [ ] Create: `Web/Components/Pages/{Feature}/{Feature}Form.razor`

---

## Phase 5: Testing

### T011: Write unit tests
- **Type:** Test
- **Priority:** 2
- **Estimate:** 1h
- **Status:** [ ] Pending
- **Dependencies:** T006

**Description:**
Unit tests for service layer.

**Files:**
- [ ] Create: `Tests/Unit/{Feature}ServiceTests.cs`

---

### T012: Write integration tests
- **Type:** Test
- **Priority:** 3
- **Estimate:** 1h
- **Status:** [ ] Pending
- **Dependencies:** T011

**Description:**
Integration tests for repository and API.

**Files:**
- [ ] Create: `Tests/Integration/{Feature}IntegrationTests.cs`

---

## Status Legend

- [ ] Pending
- [~] In Progress
- [x] Completed
- [!] Blocked

---

*Generated by MORPH Framework*
