# 11 - QC Changes

**Status: EXPLORATORY**

## Summary

Evaluate bringing the Quality Control (QC) system into Arda for better integration with the order and manufacturing workflow. This is an exploratory item requiring team discussion before implementation.

## Current State

QC is partially implemented in the job system:

**Job States for QC:**
- `AwaitingQA` (state 17)
- `QAInProgress` (state 18)
- `QAFailed` (state 19)
- `AwaitingManufacturingQC` (state 103)
- `ManufacturingQCFailed` (state 104)

**Job Actions for QC:**
- `TryQA`, `QASuccess`, `QAFailed`
- `ManufacturingQCFailed`, `ManufacturingQCSuccess`

**Inventory Status:**
- `RequiresQA` - Item needs QC steps
- `Damaged` - Item flagged as damaged during QC

## Open Questions

These must be answered before implementation:
1. Should QC have its own dedicated section in Arda?
2. Are there QC metrics that should be tracked (pass rate, failure reasons)?
3. Should QC failures automatically create support cases?
4. Is there a need for QC photo documentation?
5. Current QC workflow pain points?
6. What data needs to be captured during QC?
7. Should QC tie into the fabricator or be standalone?

## Potential Files to Create

| File | Purpose |
|------|---------|
| `webapps/src/components/QC/QCDashboard.jsx` | Overview of QC status and metrics |
| `webapps/src/components/QC/QCQueue.jsx` | Items awaiting QC review |
| `webapps/src/components/QC/QCItem.jsx` | Individual item QC workflow |

## Potential Files to Modify

| File | Change |
|------|--------|
| `webapps/app/ArdaWrapper.jsx` | Add QC section to main navigation |
| `api/src/fabricator/FabricatorSchemas.ts` | Add QC-specific schemas if needed |
| `api/src/fabricator/InventoryAdminApi.ts` | Add QC-related endpoints |

## Implementation Notes

- This is not ready for implementation until the open questions are answered
- Depends on understanding manufacturing team's actual pain points
- May be a large feature or a small one depending on answers to questions above
