Commit graph

74 commits

Author SHA1 Message Date
Jens Reinemann
f52724ce0c fix(workflows): Board + Order-Zuweisung in [P]- und [B]-Workflows ergänzen
Beide Workflow-Prompts erstellten Sub-Tickets per gh issue create, setzten
aber weder Board-Zugehörigkeit (gh project item-add) noch Order-Wert
(gh project item-edit). Das führte dazu, dass neue Tickets auf dem Board
ohne Order-Wert blieben und von next-ticket.ps1 nicht gefunden wurden.

Lösung: In workflow-planning.prompt.md (Phase 4) und
workflow-block-planning.prompt.md (Phase 6) einen neuen Pflichtabschnitt
'Board & Order' ergänzt mit den konkreten gh-Befehlen und Verweis auf SKILL.md.
2026-05-13 22:59:56 +02:00
Jens Reinemann
645a110297 feat(#17): Room-Entities & LocalDateConverter
- Add CategoryEntity, LocationEntity, SettingsEntity, ItemEntity
- ItemEntity: FK to Category+Location with CASCADE, indices on FK columns
- LocalDateConverter: LocalDate? <-> String? (ISO-8601) via @TypeConverter
- Add LocalDateConverterTest: 4 unit tests (null/non-null round-trip)
2026-05-13 22:57:43 +02:00
Jens Reinemann
74bf5ef060 fix(gh-tickets): set-board-status akzeptiert 'In Progress' mit Leerzeichen
- ValidateSet entfernt (war zu restriktiv - kein Agent-Fehler mehr bei 'In Progress')
- Normalisierung: 'In Progress' → 'InProgress' via .Trim()/-replace
- Fehlerdetails bei gh-Fehler sichtbar (kein Out-Null mehr)
- Null-Check auf content vor content.number-Vergleich (robuster gegen Draft-Items)
- Board-Fehler mit Exit 1 und Klartext-Meldung
- Getestet: alle 3 Status-Übergänge + 'In Progress' mit Leerzeichen + Fehlerfälle
2026-05-13 22:46:46 +02:00
Jens Reinemann
22154cd5b8 chore: bump version to 1.2 (versionCode 3)
Verified via hot-reload workflow on running emulator.
UI shows 'Krisenvorrat' + 'v1.2' (confirmed via screenshot + uiautomator).

Closes #16
2026-05-13 22:33:24 +02:00
Jens Reinemann
085d8685a8 docs(skills): align emulator and build docs with actual scripts
android-emulator SKILL.md:
- Added hot-reload and screenshot.ps1 to operations section
- Replaced broken 'exec-out > file' screenshot command with
  screenshot.ps1 reference and UTF-16 corruption warning
- Replaced blocking 'adb wait-for-device' with polling loop + timeout
  (consistent with android-dev.ps1 implementation)
- Added 30s PackageManager wait note after boot

android-build SKILL.md:
- Added screenshot.ps1 section with usage examples
- Documented PowerShell binary redirect UTF-16 bug as known issue

Motivation: docs diverged from scripts after GPU-mode, PM-wait,
screenshot.ps1 and hot-reload changes were added to the scripts.
2026-05-13 22:29:09 +02:00
Jens Reinemann
6603016369 feat(skills): add hot-reload action and robust screenshot script
android-dev.ps1:
- Added 'hot-reload' action: build + force-stop + install + launch on
  a running emulator/device without restart (saves 60-90s vs deploy-emulator)
- Removed 'screenshot' action (replaced by standalone script)

screenshot.ps1 (new):
- Uses adb pull instead of exec-out pipe to avoid PowerShell's UTF-16
  CRLF corruption of binary data (root cause of all broken screenshots)
- Validates PNG magic bytes after capture
- ADB commands wrapped with configurable timeout (prevents hangs)
- Optional -UiDump flag extracts visible text via uiautomator for
  automated verification without image viewing

SKILL.md:
- Documented hot-reload action

app/build.gradle.kts:
- Version bump 1.0 → 1.1 (versionCode 1 → 2)
2026-05-13 22:27:06 +02:00
Jens Reinemann
a9a999fd1e fix(skills): harden deploy scripts for GPU and timing issues
android-dev.ps1:
- Changed GPU mode from 'auto' to 'guest' (host/auto/swiftshader/angle
  all fail with 'OpenGL Core Profile not supported' on this machine)
- Added -no-snapshot-load flag (prevents corrupt snapshot issues)
- Increased PackageManager wait from 5s to 30s (PM needs ~30s after
  sys.boot_completed=1 before adb install succeeds)
- Replaced blocking 'adb wait-for-device' with polling loop (120s timeout)
- Improved emulator-stop with force-kill fallback for hung processes
- Simplified screenshot action: exec-out screencap instead of push/pull/rm
- Made all timing values configurable via variables at top of script

android-emulator SKILL.md:
- Updated manual start command to use -gpu guest
- Updated PM wait time reference from 5s to 30s
- Added known issue #3: OpenGL Core Profile not supported (documents
  symptoms, affected GPU modes, and workaround)
2026-05-13 22:16:11 +02:00
Jens Reinemann
c818b0d46e feat(ui): add version number to start screen
app/build.gradle.kts:
- Enabled buildConfig in buildFeatures to expose VERSION_NAME

app/src/main/java/de/krisenvorrat/app/MainActivity.kt:
- Replaced plain Text greeting with centered Column layout
- Shows app title 'Krisenvorrat' (headlineLarge) and version
  'v1.0' via BuildConfig.VERSION_NAME (bodyMedium, onSurfaceVariant)

Verified: built, deployed to emulator, and confirmed via screenshot.
2026-05-13 21:57:21 +02:00
Jens Reinemann
9ea57f89a5 chore(skills): update paths after project move from OneDrive to X:\
android-build SKILL.md:
- Replaced all OneDrive path references with x:\krisenvorrat
- Changed 'OneDrive-Locks' terminology to 'File-Locks'

android-build android-dev.ps1:
- Changed 'OneDrive-Lock' comments to 'File-Lock'
- Script already used dynamic $PSScriptRoot path resolution, no path fix needed

android-emulator SKILL.md:
- Updated path references to new project location

Motivation: project was moved from C:\Users\JensR\OneDrive\Code\krisenvorrat
to x:\krisenvorrat to avoid OneDrive sync issues.
2026-05-13 21:57:13 +02:00
Jens Reinemann
906397fb4c docs(emulator): Pixel-Referenzen als SDK-Basisprofil klarstellen
pixel_7_pro ist nur das SDK-Hardwareprofil, kein Zielgerät. Erklärung
ergänzt, dass kein Samsung-Profil im SDK verfügbar ist und das AVD
über config.ini auf S24-Ultra-Werte angepasst wird.
2026-05-13 17:00:27 +02:00
Jens Reinemann
e2c77b4ba5 chore: temporäre Dateien in tmp/ speichern
Screenshots und andere temporäre Dateien werden jetzt nach tmp/ statt
ins Projekt-Root geschrieben. tmp/ ist in .gitignore eingetragen.
Betrifft android-dev.ps1 Screenshot-Aktion und Skill-Beispiele.
2026-05-13 16:59:26 +02:00
Jens Reinemann
6116a6c6ef docs: Android-Skills und Dev-Skript hinzufügen
Drei Copilot-Skills für den Android-Workflow:
- android-build: Gradle-Build, bekannte Issues (OneDrive, stderr)
- android-emulator: AVD-Verwaltung, Boot-Handling, S24Ultra_API35
- android-device: Physisches Gerät (Samsung S24 Ultra), USB/Wireless ADB

Zentrales PowerShell-Skript android-dev.ps1 mit 13 Aktionen:
build, clean, clean-build, emulator-start/stop, install-emulator/device,
launch, deploy-emulator/device, logcat, devices, screenshot.
Getestet: build, deploy-emulator, screenshot, emulator-stop.
2026-05-13 16:57:24 +02:00
Jens Reinemann
85f3084ffa fix: Build-Fehler beheben (gradle.properties, Theme, Icon) (#13)
- gradle.properties mit android.useAndroidX=true erstellt
- themes.xml: Parent-Theme auf android:Theme.Material.Light.NoActionBar geändert
- ic_launcher_background.xml: Ungültiges <rect> durch <path> ersetzt
2026-05-13 16:18:22 +02:00
Jens Reinemann
040f007cd5 feat: Android-Projekt-Gerüst anlegen (#13)
- Gradle Kotlin DSL (settings.gradle.kts, build.gradle.kts)
- Version Catalog (libs.versions.toml) mit Compose BOM, Hilt, Room,
  Navigation Compose, kotlinx.serialization
- App-Modul (app/build.gradle.kts), minSdk 26, compileSdk 35
- AndroidManifest.xml mit KrisenvorratApp + MainActivity
- KrisenvorratApp (@HiltAndroidApp)
- MainActivity (@AndroidEntryPoint, Jetpack Compose + Material3)
- KrisenvorratTheme (ui/theme/Theme.kt)
- MVVM-Paketstruktur: data/, domain/, presentation/, di/
- Adaptive Launcher-Icons (mipmap-anydpi-v26)
- Gradle Wrapper 8.11.1 (gradlew, gradlew.bat, gradle-wrapper.jar)
2026-05-13 15:24:39 +02:00
Jens Reinemann
4514e5cef9 chore(prompts): Audit-Prompt für gh-tickets-Skripte
Dokumentiert die 3 in diesem Repo gefundenen Fehlerklassen als
wiederverwendbares Prüf-Prompt für andere Repos mit ähnlichen
gh-tickets PowerShell-Skripten.
2026-05-13 15:11:17 +02:00
Jens Reinemann
8a6882cc56 fix(gh-tickets skill): 3 Bugs in next-ticket + create-next-ticket korrigiert
next-ticket.ps1:
- --json-Flag: Leerzeichen nach Kommas entfernt ('number, title, labels'
  → 'number,title,labels'). gh CLI interpretierte die Felder als 3
  separate Argumente → Fehler 'accepts 1 arg(s), received 3'.
- gh project item-list ohne --limit ergänzt (--limit 200). Das
  Standard-Limit von 20 führt bei >20 Board-Items dazu, dass Tickets
  nicht gefunden werden.

create-next-ticket.ps1:
- Type-Label-Validierung war unvollständig: nur migration, tech-decision
  und infrastructure wurden akzeptiert. Alle 8 gültigen Typen ergänzt
  (block-planning, feature, refactoring, planning, test).
2026-05-13 15:10:28 +02:00
Jens Reinemann
5030ac929a docs: UI/Design-Entscheidungen dokumentiert (#3)
- Seed Color: #4A6741 (Olivgrün) für Dark Theme
- Fixed Custom Palette (kein Dynamic Color)
- Default Roboto M3 TypeScale
- Material Icons Extended

Closes #3
2026-05-13 15:01:30 +02:00
Jens Reinemann
cf05c54a42 chore: Grobplanung abgeschlossen, Planungs-Tickets #2-#11 angelegt 2026-05-13 14:38:58 +02:00
Jens Reinemann
fbac5fbcaf fix: remove spaces in gh CLI --json args (formatter artifact) 2026-05-13 14:02:38 +02:00
Jens Reinemann
4cfc96b04a docs: clarify data persistence - Room as sole runtime source, JSON for import/export only 2026-05-13 13:59:36 +02:00
Jens Reinemann
bc97e4b621 docs: rename and update requirements for native Android app 2026-05-13 13:57:03 +02:00
Jens Reinemann
5d4e139a2f docs: add original requirements document to Anforderungen/ 2026-05-13 13:54:21 +02:00
Jens Reinemann
f62d069555 chore: update all paths and IDs from kispielwiese to krisenvorrat repo 2026-05-13 13:49:40 +02:00
Jens Reinemann
60d1281b40 chore: initial project setup with Copilot config, skills, and workspace structure 2026-05-13 13:40:41 +02:00