Add mobile reliability fixes, Bahasa Indonesia UI, and continue OCR accuracy tuning

Reliability/PoC hardening: dedupe uploads by file_hash, surface editor sync
failures instead of a false success SnackBar with a retry-without-re-OCR path,
bound the OCR pipeline fetches with timeouts, share a single ApiClient/Dio
instance app-wide, tune capture JPEG quality, and add an opt-in
docker-compose.demo.yml for a production-mode run ahead of client demos.

Translate all Flutter-side user-facing text (screens, validators, SnackBars,
the printed delivery receipt, and shared API error messages) to Bahasa
Indonesia.

Also includes in-progress OCR parser/accuracy-tuning work from the same
session: table column/unit normalization fixes, store/customer master data,
accuracy history log, and test-image renaming/cleanup.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017eRAsLqN9Sg1b9YPz22Lxz
This commit is contained in:
Rafhan Mazaya FathurrahmanandClaude Sonnet 5 committed 2026-07-04 19:41:24 +07:00
1 parent 095dd4cb8b
commit 4808a798fb
78 files changed
+8069 -584

No files matched your search

+6 -6
View File
@@ -70,7 +70,7 @@ class CameraScreenState extends ConsumerState<CameraScreen> {
source: ImageSource.camera,
maxWidth: 2048,
maxHeight: 2048,
imageQuality: 90,
imageQuality: 85,
);
if (image != null) {
@@ -110,7 +110,7 @@ class CameraScreenState extends ConsumerState<CameraScreen> {
source: ImageSource.gallery,
maxWidth: 2048,
maxHeight: 2048,
imageQuality: 90,
imageQuality: 85,
);
if (image != null) {
@@ -169,7 +169,7 @@ class CameraScreenState extends ConsumerState<CameraScreen> {
return Scaffold(
backgroundColor: AppConfig.backgroundColor,
appBar: AppBar(
title: const Text('OCR Document Scanner'),
title: const Text('Pemindai Dokumen OCR'),
actions: [
Builder(
builder: (context) => IconButton(
@@ -323,7 +323,7 @@ class CameraScreenState extends ConsumerState<CameraScreen> {
),
const SizedBox(height: 12),
Text(
'OCR Scanner App',
'Aplikasi Pemindai OCR',
style: AppConfig.h2.copyWith(color: Colors.white),
),
],
@@ -356,14 +356,14 @@ class CameraScreenState extends ConsumerState<CameraScreen> {
),
ListTile(
leading: const Icon(Icons.info_outline),
title: Text('App Version', style: AppConfig.bodyLarge),
title: Text('Versi Aplikasi', style: AppConfig.bodyLarge),
subtitle: Text('v${AppConfig.appVersion}', style: AppConfig.bodySmall),
onTap: () {},
),
const Divider(),
ListTile(
leading: const Icon(Icons.logout, color: AppConfig.errorColor),
title: Text('Logout', style: AppConfig.bodyLarge.copyWith(color: AppConfig.errorColor)),
title: Text('Keluar', style: AppConfig.bodyLarge.copyWith(color: AppConfig.errorColor)),
onTap: () {
ref.read(authProvider.notifier).logout();
context.go('/login');