Commit graph

15 commits

Author SHA1 Message Date
Daniel
38d9f50c31 Fix Calorie AI release publishing
All checks were successful
Android CI / build (push) Successful in 2m19s
Web CI / test (push) Successful in 1m12s
Android Release / release-apk (push) Successful in 1m45s
2026-05-25 04:11:00 +02:00
Daniel
ef6b3a494c Use Node 22 in Calorie AI workflows
Some checks failed
Android CI / build (push) Successful in 2m26s
Web CI / test (push) Successful in 1m14s
Android Release / release-apk (push) Failing after 1m36s
2026-05-25 04:03:47 +02:00
Daniel
fcef0d48db Add personalized plans with Postgres storage
Some checks failed
Android CI / build (push) Successful in 1m34s
Web CI / test (push) Successful in 58s
Android Release / release-apk (push) Failing after 22s
2026-05-20 23:43:03 +02:00
Daniel
f14b433085 Replace Kotlin app with Capacitor WebView wrapper
Some checks failed
Android CI / build (push) Successful in 1m33s
Web CI / test (push) Failing after 1m23s
Android Release / release-apk (push) Failing after 22s
The native Kotlin/Compose app is replaced by a Capacitor shell that
loads the existing Svelte web app from the self-hosted server URL,
set via APP_SERVER_URL secret at build time.

- web/capacitor.config.ts: appId com.danvics.calorieai, reads
  APP_SERVER_URL env var so the WebView points at the live server
- web/android/: Capacitor-generated Android project (gradlew included)
- AndroidManifest.xml: added CAMERA, READ_MEDIA_IMAGES, READ_EXTERNAL_STORAGE
- MealForm.svelte: split file input into Camera (capture=environment)
  and Gallery buttons so both options are accessible natively
- release.yml: npm ci → npm run build → cap sync → gradlew assembleDebug;
  removed manual Gradle installation, uses bundled gradlew instead
- package.json: Capacitor packages as devDependencies (not shipped in
  the Docker server image)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 18:14:53 +02:00
Daniel
9f660d50bc Refactor Android app to production grade with improved UI and sync
Some checks failed
Android CI / build (push) Successful in 1m16s
Web CI / test (push) Failing after 1m46s
Android Release / release-apk (push) Successful in 1m16s
Android:
- Add adaptive app icon (blue background, white flame foreground)
- Add android:icon and roundIcon references to manifest
- Add windowSoftInputMode=adjustResize for keyboard handling
- Dark mode support via isSystemInDarkTheme() in Theme.kt
- Bump versionCode 1→2, versionName 1.0→1.1, named APK output
- Merge Trash into Diary as a tab (was a 6th bottom-nav item)
- Add sync refresh button in top bar with loading indicator
- Add CalorieGoalBar progress indicator on dashboard
- Add calorieTarget to ServerSettings, Settings screen, and API
- Add clearTrash() to ApiRepository (server route was unused)
- Fix onCancelEdit to also clear selected image state
- AiClient.kt: remove old pre-server AiClient class (replaced by ApiRepository)
- LogMealScreen: side-by-side field rows, DropdownField for meal type

Web server:
- Add calorieTarget to settings defaults and allowed field list
- Remove dead handleRequest() function (never called, Express routes it)

CI:
- Fix APK paths in android.yml and release.yml for renamed output

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 05:32:01 +02:00
Daniel
f42e8c8784 Add release APK workflow and server plans
All checks were successful
Android CI / build (push) Successful in 1m10s
Web CI / test (push) Successful in 51s
Android Release / release-apk (push) Successful in 1m5s
2026-05-20 03:27:25 +02:00
Daniel
87102dbc5b Rewrite Android app with Kotlin Compose
All checks were successful
Android CI / build (push) Successful in 1m13s
Web CI / test (push) Successful in 51s
2026-05-19 19:35:15 +02:00
Daniel
f57c04c989 Add web auth and app navigation
All checks were successful
Android CI / build (push) Successful in 31s
Web CI / test (push) Successful in 46s
2026-05-19 17:59:02 +02:00
Daniel
71c8837b48 Add web calorie tracker and analytics 2026-05-19 17:13:41 +02:00
Daniel
344d21bd4a Add Android release APK workflow 2026-05-17 19:11:37 +02:00
Daniel
4dac08fffe Use Forgejo-compatible artifact upload
All checks were successful
Android CI / build (push) Successful in 36s
2026-05-17 17:57:44 +02:00
Daniel
93ae39a7df Use shell checkout in Android CI
Some checks failed
Android CI / build (push) Failing after 30s
2026-05-17 17:55:46 +02:00
Daniel
f3863384fd Use Android SDK runner image for CI
Some checks failed
Android CI / build (push) Failing after 2s
2026-05-17 17:53:56 +02:00
Daniel
fd089c1e22 Use local Forgejo runner for Android CI
Some checks failed
Android CI / build (push) Failing after 28s
2026-05-17 17:46:51 +02:00
Daniel
5cdc1c1142 Add Calorie AI Android app 2026-05-17 17:43:16 +02:00