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

+5 -3
View File
@@ -4,7 +4,9 @@ import '../../core/network/api_client.dart';
import '../../config/app_config.dart';
class AuthNotifier extends StateNotifier<bool> {
AuthNotifier() : super(false);
AuthNotifier(this._ref) : super(false);
final Ref _ref;
Future<bool> checkLoginState() async {
final prefs = await SharedPreferences.getInstance();
@@ -18,7 +20,7 @@ class AuthNotifier extends StateNotifier<bool> {
}
Future<void> login(String username, String password) async {
final apiClient = ApiClient();
final apiClient = _ref.read(apiClientProvider);
try {
final response = await apiClient.client.post(
AppConfig.loginEndpoint,
@@ -55,5 +57,5 @@ class AuthNotifier extends StateNotifier<bool> {
}
final authProvider = StateNotifierProvider<AuthNotifier, bool>((ref) {
return AuthNotifier();
return AuthNotifier(ref);
});