ponshu-room-lite/lib/screens
Ponshu Developer 2890b6cb6f refactor: replace disk cache with in-memory session cache (v1.0.33)
Analysis cache redesign:
- Remove Hive persistence from AnalysisCacheService entirely
- Use Map<String, SakeAnalysisResult> in-memory instead of Hive boxes
- Cache now lives only for the duration of an app session; restart always
  produces a fresh analysis — no stale misidentifications can persist
- Remove Hive init(), TTL/cleanupExpired(), getCachedByBrand() dead code
- API surface unchanged: callers (gemini_service, dev_menu) need no edits
- main.dart: delete legacy Hive boxes (analysis_cache_v1, brand_index_v1)
  from disk on startup for existing users
- dev_menu_screen: update cache description text to reflect new behavior

Rationale:
- Camera captures always produce unique files -> cache hit rate was ~0%
- Each user supplies their own Gemini API key -> no shared cost benefit
- Persistent wrong results (e.g. misrecognized brand names) could survive
  up to 30 days under the old design
- Different sake editions photographed separately have different hashes
  and were never affected by the cache in the first place

Made-with: Cursor
2026-04-12 08:13:18 +09:00
..
features fix: ソムリエ画面UIを統一 — カードスタイル・padding・重複ヘッダー削除 2026-04-11 12:11:21 +09:00
sake_detail fix: 外部コードレビュー指摘の修正4件 2026-04-11 08:14:37 +09:00
camera_screen.dart fix: address remaining code audit findings and bump to v1.0.32 2026-04-12 07:25:24 +09:00
dev_menu_screen.dart refactor: replace disk cache with in-memory session cache (v1.0.33) 2026-04-12 08:13:18 +09:00
guide_screen.dart feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00
home_screen.dart chore: v1.0.26 — Pro版ライセンス管理リリース 2026-04-11 00:23:36 +09:00
license_screen.dart fix: セルフコードレビュー修正 — ライセンス管理バグ4件 2026-04-11 06:42:35 +09:00
main_screen.dart feat: ライセンス管理システムを追加(Pro機能解放型) 2026-04-11 00:05:53 +09:00
menu_creation_screen.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
menu_pricing_screen.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
menu_settings_screen.dart feat: v1.0.16 brushup + Synology Proxy integration 2026-02-16 00:13:12 +09:00
pdf_preview_screen.dart chore: guard DevMenu in release build, clean up Phase/TODO comments 2026-04-05 03:02:01 +09:00
pending_analysis_screen.dart refactor: apply critical code review fixes 2026-04-12 00:24:57 +09:00
sake_detail_screen.dart refactor: code quality improvements based on critical review 2026-04-12 00:09:09 +09:00
scan_screen.dart feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00
shop_settings_screen.dart feat: Code quality improvements (v1.0-full-with-qr) 2026-01-30 00:54:22 +09:00
soul_screen.dart fix: remove Pro-only placeholder in consumer APK, fix A-1/A-3 visibility 2026-04-05 14:33:40 +09:00