Dani 31c4ba4cba Add detailed logging for Firebase upload debugging
🔍 Upload Debugging:
- Added logs to show when items are added to Hive
- Shows item key and householdId after Hive save
- Logs upload attempts to Firebase
- Shows success/failure for each upload
- Logs reason for skipping Firebase sync

📝 Log Messages:
- 📝 Added item to Hive: {name}, key={key}, householdId={id}
- 🚀 Uploading item to Firebase: {name} (key: {key})
-  Successfully uploaded to Firebase
-  Failed to sync item to Firebase: {error}
- ⚠️ Skipping Firebase sync: householdId={id}, key={key}

🎯 Next Steps for User:
1. Install new APK
2. Add an item while in household
3. Check logcat for upload messages
4. If seeing "⚠️ Skipping" → item.householdId is null
5. If seeing " Failed" → Firebase error details shown
6. If seeing " Successfully" → check Firebase Console

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-04 16:07:42 -04:00

🌿 Sage - Smart Kitchen Management

A beautiful Flutter app for tracking your kitchen inventory and reducing food waste.

Features

Smart Inventory Management

  • Barcode scanning for quick item entry
  • Auto-populated product information from multiple databases
  • Smart expiration date predictions based on food category
  • Visual expiration status indicators

Modern UI

  • Clean, intuitive Material Design 3 interface
  • Sage green theme
  • Custom sage leaf vector icon
  • Smooth animations and transitions

Notifications

  • Local expiration alerts
  • Discord webhook integration for remote notifications
  • Customizable alert settings (persisted!)

Local-First Data

  • All data stored locally using Hive
  • No cloud dependencies
  • Privacy-focused design
  • Fast and offline-capable

Tech Stack

  • Framework: Flutter 3.35.5
  • State Management: Riverpod 2.6.1
  • Database: Hive 2.2.3 (local)
  • Barcode Scanning: mobile_scanner 5.2.3
  • API Integration: Open Food Facts, UPCItemDB
  • Platform: Android (iOS coming soon)

Getting Started

Prerequisites

  • Flutter 3.x installed
  • Android Studio or VS Code
  • Android SDK (for mobile) or Visual Studio (for Windows desktop)

Setup

  1. Clone the repository
  2. Install dependencies:
flutter pub get
  1. Run the app:
# On Android device/emulator
flutter run

# On Windows (for development)
flutter run -d windows

Project Structure

sage/
├── lib/
│   ├── core/              # Core utilities, constants, extensions
│   ├── features/          # Feature modules (inventory, recipes, etc.)
│   ├── services/          # Business logic services
│   ├── data/              # Data layer (local + remote)
│   └── shared/            # Shared widgets and providers
├── assets/                # Images, icons, fonts
└── test/                  # Tests

Documentation

Roadmap

  • Phase 1: Foundation - Basic inventory tracker IN PROGRESS
  • Phase 2: Barcode scanning with Open Food Facts
  • Phase 3: Smart alerts & notifications
  • Phase 4: Recipe management
  • Phase 5: Shopping lists
  • Phase 6: Multi-user & cloud sync
  • Phase 7: Advanced features & polish

Author

Danielle Sapelli

  • Built with ❤️ using Flutter & Claude Code

Contributing

Ideas and suggestions are welcome!

License

TBD


🌿 Making kitchens smarter, one scan at a time!

Description
No description provided
Readme 525 KiB
Languages
HTML 45.6%
Dart 39.1%
C++ 7.9%
CMake 6.1%
Swift 0.8%
Other 0.4%