Scanning a stack of bills and keying them in are the same daily job, ending in the same ledger path, so OCR intake becomes a mode of the capture screen instead of a second menu entry: - components/Captura.tsx holds the mode switch; the manual check form moves verbatim to components/ManualCheckCapture.tsx and the OCR intake to components/StatementIntake.tsx. - /estado-cuenta/lote opens on manual, /recibos on automatic — both render Captura, so batch-review links and old bookmarks still land right. - Nav drops "Recibos (OCR)"; "Captura" covers both, with a NavLink.aliases field so /recibos still highlights it. Also fixes the "El almacenamiento de documentos no está configurado" failure staff hit on upload. Uploading with no object storage configured used to succeed, then die on the first put minutes later, leaving a FAILED batch whose only explanation was that string. createBatch now refuses up front, GET /statements/status reports storageAvailable alongside ocrAvailable, and the intake tab explains the situation instead of offering an upload that cannot work. S3_* documented in .env.example (deploy stacks already set it). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
16 lines
441 B
TypeScript
16 lines
441 B
TypeScript
import { AppShell } from "@/components/AppShell";
|
|
import { Captura } from "@/components/Captura";
|
|
|
|
/**
|
|
* Same capture screen as `/estado-cuenta/lote`, opened on the automatic
|
|
* (scanned recibos + OCR) mode. Kept as its own route so links from a batch
|
|
* review page and older bookmarks land on the right tab.
|
|
*/
|
|
export default function RecibosPage() {
|
|
return (
|
|
<AppShell>
|
|
<Captura initialMode="auto" />
|
|
</AppShell>
|
|
);
|
|
}
|