> ## Documentation Index
> Fetch the complete documentation index at: https://docs.younegotiate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Import History

> ABC Collections uploaded a consumer file yesterday. Today, an employee wants to confirm whether all consumers were imported successfully.

## Real-World Example

ABC Collections uploaded a consumer file yesterday. Today, an employee wants to confirm whether all consumers were imported successfully.

Import History should show the uploaded file, when it was processed, whether it completed, and whether any rows failed. If rows failed, the creditor should be able to understand that the import was not fully clean.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["File is uploaded"] --> B["Import starts processing"]
    B --> C["Import status is recorded"]
    C --> D{"Were there errors?"}
    D -->|No| E["Show completed import"]
    D -->|Yes| F["Show completed with errors or failed status"]
    F --> G["Creditor reviews error details"]
    classDef default fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef actor fill:#E0F2FE,stroke:#0284C7,stroke-width:2px,color:#0C4A6E;
    classDef system fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef decision fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#78350F;
    classDef risk fill:#FEE2E2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;
    class A actor;
    class B system;
    class C,E,F outcome;
    class D decision;
    class G risk;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should show previous uploads and their processing status.
* It should help the creditor understand whether an import succeeded, failed, or partially completed.
* It should provide access to error details when available.

## How It Should Not Work

* It should not show import files from another creditor.
* It should not hide failed imports.
* It should not mark an import complete before background processing is finished.

## Developer Notes

* Imports and reports can involve background work, so visible status should never claim completion before processing is done.
* Partial failures should remain visible to the creditor instead of being treated as a clean success.

## Related App Areas

* `app/Livewire/Creditor/ImportConsumers`
* `app/Livewire/Creditor/Reports`
* `app/Jobs/ImportConsumersCoordinatorJob.php`
* `app/Jobs/ProcessConsumerChunkJob.php`
