diff --git a/VERSION b/VERSION
index c789257..b8d1607 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1254
\ No newline at end of file
+1255
\ No newline at end of file
diff --git a/backend/routes/admin.py b/backend/routes/admin.py
index e709b53..715addd 100644
--- a/backend/routes/admin.py
+++ b/backend/routes/admin.py
@@ -152,6 +152,12 @@ async def action_items(user=Depends(require_mod)):
).fetchone()[0]
except Exception:
invoices_unpaid = 0
+ try:
+ partner_profiles_pending = conn.execute(
+ "SELECT COUNT(*) FROM partner_profiles WHERE submitted_at IS NOT NULL AND approved=0"
+ ).fetchone()[0]
+ except Exception:
+ partner_profiles_pending = 0
return {
"jobs_pending": jobs,
"breeder_pending": breeders,
@@ -161,6 +167,7 @@ async def action_items(user=Depends(require_mod)):
"users_today": users_today,
"upgrades_pending": upgrades_pending,
"invoices_unpaid": invoices_unpaid,
+ "partner_profiles_pending": partner_profiles_pending,
}
diff --git a/backend/static/index.html b/backend/static/index.html
index 42da1ae..da8b74c 100644
--- a/backend/static/index.html
+++ b/backend/static/index.html
@@ -86,14 +86,14 @@
Ban Yaro
-
+
-
-
-
-
-
+
+
+
+
+
@@ -612,11 +612,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -626,7 +626,7 @@
-
+
diff --git a/backend/static/js/app.js b/backend/static/js/app.js
index a0c2263..f6bd714 100644
--- a/backend/static/js/app.js
+++ b/backend/static/js/app.js
@@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
-const APP_VER = '1254'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
+const APP_VER = '1255'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt
window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator)
window.APP_VERSION = APP_VERSION;
diff --git a/backend/static/js/pages/admin.js b/backend/static/js/pages/admin.js
index 717677c..cd992a5 100644
--- a/backend/static/js/pages/admin.js
+++ b/backend/static/js/pages/admin.js
@@ -123,6 +123,7 @@ window.Page_admin = (() => {
{ key: 'fotos_pending', label: 'Foto-Einreichungen',tab: 'moderation', icon: 'image' },
{ key: 'poi_edits_pending', label: 'POI-Korrekturen', tab: 'moderation', icon: 'map-pin' },
{ key: 'invoices_unpaid', label: 'Offene Rechnungen', tab: 'rechnungen', icon: 'receipt' },
+ { key: 'partner_profiles_pending', label: 'Partner-Profile', tab: 'partner', icon: 'handshake' },
];
const open = items.filter(i => d[i.key] > 0);
diff --git a/backend/static/landing.html b/backend/static/landing.html
index ef59aea..2d5176f 100644
--- a/backend/static/landing.html
+++ b/backend/static/landing.html
@@ -4,7 +4,7 @@
-
+
Ban Yaro — Die Hunde-App für Deutschland, Österreich & Schweiz
diff --git a/backend/static/sw.js b/backend/static/sw.js
index 6d66ba9..8b178df 100644
--- a/backend/static/sw.js
+++ b/backend/static/sw.js
@@ -4,7 +4,7 @@
============================================================ */
// ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab
-const VER = '1254';
+const VER = '1255';
const CACHE_VERSION = `by-v${VER}`;
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
diff --git a/tests/test_partner_profile.py b/tests/test_partner_profile.py
index 2dbe2d0..f62d256 100644
--- a/tests/test_partner_profile.py
+++ b/tests/test_partner_profile.py
@@ -136,6 +136,18 @@ def test_heic_uploads_convert(client, user):
assert r.json()["photos"][0].endswith(".webp")
+def test_submit_appears_in_admin_action_items(client, user, admin):
+ """Eingereichtes Profil taucht im Admin-'Zu erledigen'-Zaehler auf."""
+ _make_partner(user["email"])
+ client.put("/api/partner/my-profile", headers=user["headers"],
+ json={"display_name": "Action-Item-Test"})
+ before = client.get("/api/admin/action-items", headers=admin["headers"]).json()
+ r = client.post("/api/partner/my-profile/submit", headers=user["headers"], json={})
+ assert r.status_code == 200
+ after = client.get("/api/admin/action-items", headers=admin["headers"]).json()
+ assert after["partner_profiles_pending"] == before.get("partner_profiles_pending", 0) + 1
+
+
def test_partner_has_pro_access(client, user):
"""is_partner=1 -> has_pro_access True (Pro gratis fuer Partner)."""
from auth import has_pro_access