Apple verlangte iPad-Screenshots zusätzlich zu den iPhone-6.7-Shots, weil die App per Info.plist auch iPad unterstützt. 7 Shots auf iPad Pro 13-inch (M5) Simulator: Heim, Touren, Tour-Detail, Wetter, Tagebuch-Liste, Tagebuch-Detail, Mehr. Plus AppStore/scripts/check_dashboard.sh zum API-Debugging.
27 lines
880 B
Bash
Executable file
27 lines
880 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Login als reviewer und zeigt was /welcome-dashboard liefert.
|
|
# Aufruf: ./AppStore/scripts/check_dashboard.sh
|
|
set -euo pipefail
|
|
BASE="https://banyaro.app"
|
|
|
|
read -r -p "E-Mail: " EMAIL
|
|
read -r -s -p "Passwort: " PASS; echo
|
|
|
|
LOGIN=$(curl -s -X POST "$BASE/api/auth/login" \
|
|
-H 'Content-Type: application/json' \
|
|
-d "$(jq -nc --arg e "$EMAIL" --arg p "$PASS" '{email:$e,password:$p}')")
|
|
TOKEN=$(echo "$LOGIN" | jq -r '.token // empty')
|
|
if [ -z "$TOKEN" ]; then
|
|
echo "❌ Login fehlgeschlagen:"
|
|
echo "$LOGIN" | jq .
|
|
exit 1
|
|
fi
|
|
echo "✓ Eingeloggt"
|
|
|
|
DOG=$(curl -s "$BASE/api/dogs" -H "Authorization: Bearer $TOKEN" | jq -r '.[0].id // empty')
|
|
echo "Hund-ID: $DOG"
|
|
echo ""
|
|
echo "── welcome-dashboard ──"
|
|
curl -s "$BASE/api/dogs/$DOG/welcome-dashboard" \
|
|
-H "Authorization: Bearer $TOKEN" \
|
|
| jq '{random_photo, last_diary, next_appointment}'
|