feat(widget): implement home screen widget and fix Google Sheets range synchronization

- Add SatieaAppWidgetProvider with last meal recap, daily summary, and 1-tap logging shortcuts
- Implement reactive UDF quick-log action in MealViewModel and MainActivity
- Safeguard widget updates against concurrency with debounced SupervisorJob scope
- Migrate Google Sheets tab names automatically and encode range URLs per RFC 3986
- Add unit tests for widget UI model formatting and range encoding
This commit is contained in:
bleackstorm committed 2026-11-11 09:48:50 +01:00
1 parent 3d1d0f43e7
commit 1d6e9a3752
17 files changed
+708 -23

No files matched your search

@@ -152,6 +152,7 @@ class GoogleSheetsDataFormatterTest {
assertEquals("https://drive.google.com/file/1", rows[1][9])
}
@Test
@Test
fun `encodePathRange replaces plus signs with percent twenty according to RFC 3986`() {
val range = "'Journal des repas'!A1"
@@ -161,6 +162,9 @@ class GoogleSheetsDataFormatterTest {
val foodRange = "'Mes plats et aliments'!A1:C"
val foodEncoded = com.example.util.GoogleSheetsSyncService.encodePathRange(foodRange)
assertEquals("%27Mes%20plats%20et%20aliments%27%21A1%3AC", foodEncoded)
assertTrue(!encoded.contains("+"))
assertTrue(!foodEncoded.contains("+"))
}
}
}