11 Commits

Author SHA1 Message Date
76ad44a7ca refactor: replace zoom/pan image cropping with fixed-image draggable frame UI in ImageCropBottomSheet
- Remove transform gestures (zoom/pan) in favor of fixed ContentScale.Fit background image
- Implement draggable crop frame with corner handles for resize and center drag for repositioning
- Add `FrameHandle` composable with circular white/blue indicators at frame corners
- Replace complex scale/offset calculations with direct frame coordinate manipulation
- Enforce minimum frame size (48dp) and container
2026-04-27 07:05:46 -04:00
c8dff8df40 feat: add interactive image cropping with bottom sheet UI for shopping list item photos
- Extract `ImageCropBottomSheet` component for reusable crop interface
- Remove inline `saveCroppedImage` helper in favor of centralized cropping flow
- Add tap-to-recrop functionality on existing item photos in detail sheet
- Implement crop state management with `cropBitmap`, `cropForNewItem`, and `cropForItemId` flags
- Pass `onRequestCrop` callback to `ItemDetailSheet` for both camera/gallery and existing
2026-04-27 06:45:14 -04:00
48a9266942 feat: implement center-crop image processing for custom items, enhance onboarding UI with numbered step cards and allergen level selection
- Add `saveCroppedImage` helper to center-crop photos to square, resize to 512px, and compress to JPEG
- Apply cropping to both camera capture and gallery picker in `ListDetailScreen` and `ItemDetailSheet`
- Display custom item photos in tiles with `AsyncImage` and camera badge overlay
- Show full-width photos in item detail sheet
- Redesign onboarding "How it works" step
2026-04-26 18:47:11 -04:00
4ac951cf6e feat: implement photo-based item creation and product-to-list functionality with bottom sheet UI
- Add camera/gallery photo capture for custom shopping list items with name and description fields
- Implement `addCustomItemWithImage` in `ListDetailViewModel` to create items with attached photos
- Add "Add to list" button in `ResultScreen` with list picker bottom sheet for scanned products
- Extend `ResultViewModel` with `addToList` method to save scanned products to shopping lists
- Add `PhotoSource
2026-04-26 16:31:16 -04:00
8a19d46949 feat: add tag system to shopping list items, implement dashboard quick access cards, and enhance item detail sheet with photo picker
- Add `tag` field to `ShoppingListItemEntity` for visual tags (urgent, offre, whenever)
- Increment database version to 5
- Implement dashboard quick access cards showing shopping lists with remaining item counts
- Add tag selection buttons in item detail sheet with toggle functionality
- Display tag badges on item tiles with color-coded styling (danger for urgent, safe
2026-04-26 15:23:26 -04:00
b68212b99c feat: add custom emoji field to shopping list items, expand catalog with 200+ items across 12 categories, and implement icon picker in item detail sheet
- Add `customEmoji` field to `ShoppingListItemEntity` for user-selected icons
- Increment database version to 4
- Reorganize catalog categories: add "Condiments & Épices", "Snacks & Bonbons", "Maison & Jardin"
- Expand catalog from ~50 to 200+ items with comprehensive product coverage across all categories
- Add detail tags (Urgent, Offre, Quand cela convient) and
2026-04-26 13:25:16 -04:00
a9eb582c93 refactor: replace LazyVerticalGrid with Column/Row layout in AllergenSelectionGrid for improved performance and layout control 2026-04-26 12:42:51 -04:00
1656b189f4 feat: redesign shopping list detail screen with Bring!-style interface, add item notes field, and implement bottom sheet for item management
- Add `note` field to `ShoppingListItemEntity` for quantity/description tracking
- Redesign `ListDetailScreen` with vertical hierarchy: active items, recently used section, catalog categories
- Replace swipe gestures with tap (mark bought/restore) and long-press (details sheet) interactions
- Implement `ItemDetailSheet` modal bottom sheet for editing notes,
2026-04-26 12:03:17 -04:00
6ad4d64db1 feat: implement core application architecture, navigation system, database schema, and initial UI screens for SafeBite 2026-04-26 11:11:19 -04:00
134f23f9a7 first commit 2026-04-25 10:26:13 -04:00
83b92c942d Ajout de composants pour la gestion des allergènes et des éléments personnalisés dans l'interface utilisateur 2026-04-25 10:25:20 -04:00