From bc4fd8f6e0244272f37ccbca3d698b900a2c7e1c Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 06:15:45 +0200 Subject: [PATCH 01/21] =?UTF-8?q?Content:=20landing.html=20=E2=80=94=20Gas?= =?UTF-8?q?si-Score,=20Ern=C3=A4hrung,=20Pers=C3=B6nlichkeitstest,=20Reise?= =?UTF-8?q?,=20Hilfe/FAQ=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/landing.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/backend/static/landing.html b/backend/static/landing.html index a28d587..9fc52e5 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -92,7 +92,12 @@ "Notizblock mit KI-Analyse-Funktion", "Erste-Hilfe-Ratgeber für häufige Notfälle", "Hunde-Knigge (Begegnungen, ÖPNV, Leinenpflicht, Haftpflicht)", - "Admin-Panel mit Moderation, Outreach-Mailing und Statistiken" + "Admin-Panel mit Moderation, Outreach-Mailing und Statistiken", + "Gassi-Score mit 7-Tage-Wetter und persönlichen Wetter-Rekorden", + "Ernährungsrechner, BARF-Guide und Giftliste", + "Hunde-Persönlichkeitstest mit Trainingstipps", + "Reise-Checkliste und EU-Länder-Einreiseregeln", + "Integrierte Hilfe und FAQ ohne App Store" ], "screenshot": "https://banyaro.app/icons/icon-512.png", "softwareVersion": "1.2.1", @@ -463,10 +468,18 @@ 🌤️

Wetter & Zecken-Alarm

Aktuelles Wetter direkt in der App (ohne API-Key). Automatische Zecken-Warnung wenn Saison und Temperatur passen.

Kostenlos
+
+

Gassi-Score

Tägliche Bewertung 1–10: Ist heute ein guter Tag für eine Runde? Berechnet aus Temperatur, Regenwahrscheinlichkeit und Wind. Mit 7-Tage-Vorschau und persönlichen Wetter-Rekorden.

Kostenlos
📄

Digitaler Heimtierausweis

Alle Gesundheitsdaten als druckbares Dokument — für Tierarzt, Tierpension oder Auslandsreise.

Kostenlos
+
+

Ernährung & Futter

Kalorienbedarf nach Gewicht, Aktivität und Kastration berechnen. BARF-, Nass- und Trockenfutter-Vergleich, vollständige Giftliste für Hunde und KI-Futterberater.

Kostenlos
+
+

Hunde-Persönlichkeitstest

20 Fragen, 4 Typen (Forscher, Wächter, Spieler, Treuer). Personalisierte Trainingstipps passend zum Charakter deines Hundes.

Kostenlos
+
+

Reise mit Hund

Editierbare Reisecheckliste für den nächsten Urlaub und EU-Länder-Guide mit länderspezifischen Einreiseregeln, Impfvorschriften und Besonderheiten.

Kostenlos
🆔

NFC-Halsband-Tags

Öffentliche Profilseite für jeden Hund. Finder kontaktiert dich anonym — ohne deine Nummer preiszugeben.

Kostenlos + Shop
@@ -545,6 +558,8 @@ 🩹

Erste Hilfe

Notfallratgeber für häufige Situationen — Vergiftung, Wunden, Hitzschlag. Mit klaren Handlungsschritten.

Kostenlos
+
+

Hilfe & FAQ

Integriertes Handbuch direkt in der App — Installation, erste Schritte, Standort-Probleme, Account-Fragen. Kein App Store, kein Support-Ticket.

Kostenlos
From 172508ec91242ab242f6af035a4a05f3ed56f1b0 Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 06:21:18 +0200 Subject: [PATCH 02/21] =?UTF-8?q?Datenschutz:=20Direktnachrichten,=20KI-Tr?= =?UTF-8?q?ainer,=20Open-Meteo=20Wetter=20erg=C3=A4nzt=20(SW=20by-v728)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/js/pages/datenschutz.js | 32 ++++++++++++++++++++++++++ backend/static/sw.js | 2 +- 5 files changed, 36 insertions(+), 4 deletions(-) diff --git a/backend/main.py b/backend/main.py index dff2344..0b9a75d 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "727" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "728" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/index.html b/backend/static/index.html index 9fb7cef..b9ff82e 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index f2245de..473e0b1 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 = '727'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '728'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/datenschutz.js b/backend/static/js/pages/datenschutz.js index 73c2ba8..d2a8af8 100644 --- a/backend/static/js/pages/datenschutz.js +++ b/backend/static/js/pages/datenschutz.js @@ -82,6 +82,16 @@ window.Page_datenschutz = (() => { Plattformsicherheit).

`)} + ${sec('Direktnachrichten', ` +

+ Nachrichten zwischen Nutzern (z. B. zwischen Hundesitter und Hundeeigentümer oder + zwischen Interessenten und Züchtern) werden auf unserem Server gespeichert, bis du + das Gespräch oder deinen Account löschst. Admins können gemeldete Nachrichten zur + Missbrauchsprüfung einsehen (Art. 6 Abs. 1 lit. f DSGVO — berechtigtes Interesse + an Plattformsicherheit). Nachrichten werden nicht an Dritte weitergegeben. + Du kannst Gespräche jederzeit selbst löschen. +

`)} + ${sec('KI-Funktionen', `

Ban Yaro bietet KI-gestützte Funktionen (Trainingsempfehlungen, Terminvorschläge, @@ -99,12 +109,34 @@ window.Page_datenschutz = (() => { anthropic.com/privacy.

+

+ Der KI-Trainer analysiert deinen bisherigen Trainingsfortschritt + (Übungshistorie, Erfolgsquoten, Streaks) und gibt personalisierte Empfehlungen. + Diese Analyse läuft auf unserem lokalen Server in Deutschland — deine Trainingsdaten + verlassen dabei nicht unsere Infrastruktur. Es findet kein Training oder Fine-Tuning + von KI-Modellen auf Basis deiner Nutzerdaten statt. +

KI-Empfehlungen sind Vorschläge und ersetzen keine tierärztliche Beratung. Eine automatisierte Entscheidungsfindung mit rechtlicher Wirkung (Art. 22 DSGVO) findet nicht statt.

`)} + ${sec('Wetterdaten (Open-Meteo)', ` +

+ Die Wetter-Funktion übermittelt auf Wunsch deine GPS-Koordinaten einmalig an + Open-Meteo (Österreich, DSGVO-konform), um die lokale + Wettervorhersage abzurufen. Es werden ausschließlich anonyme Koordinaten übertragen — + keine Account- oder Profildaten. Open-Meteo protokolliert keine personenbezogenen + Daten. Die Funktion wird nur aktiv, wenn du deinen Standort im Browser freigibst. + Rechtsgrundlage: Einwilligung gem. Art. 6 Abs. 1 lit. a DSGVO. +

+

+ Datenschutzerklärung von Open-Meteo: + open-meteo.com/en/terms +

`)} + ${sec('Routenvorschläge (OpenRouteService)', `

Die Funktion „Routenvorschläge" berechnet auf Wunsch einen Rundweg diff --git a/backend/static/sw.js b/backend/static/sw.js index 8d5906a..65a06a7 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v727'; +const CACHE_VERSION = 'by-v728'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache From 4cd178a86aa33150f7fcce7d7372646631393b2f Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 06:28:38 +0200 Subject: [PATCH 03/21] =?UTF-8?q?SEO/AI:=20llms.txt=20Namens-Disambiguieru?= =?UTF-8?q?ng=20+=20Vertrauenssignale,=20landing.html=20=C3=9Cber-Section,?= =?UTF-8?q?=20Sitemap=20/presse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 1 + backend/static/landing.html | 48 +++++++++++++++++++++++++++++++++++++ backend/static/llms.txt | 48 +++++++++++++++++++++++++++++++++++-- 3 files changed, 95 insertions(+), 2 deletions(-) diff --git a/backend/main.py b/backend/main.py index 0b9a75d..df40ce5 100644 --- a/backend/main.py +++ b/backend/main.py @@ -378,6 +378,7 @@ async def sitemap(): urls = [ ("https://banyaro.app/", "weekly", "1.0"), ("https://banyaro.app/info", "monthly", "0.9"), + ("https://banyaro.app/presse", "monthly", "0.8"), ("https://banyaro.app/wiki/rassen", "weekly", "0.8"), ("https://banyaro.app/knigge", "monthly", "0.8"), ("https://banyaro.app/wurfboerse", "daily", "0.8"), diff --git a/backend/static/landing.html b/backend/static/landing.html index 9fc52e5..ae65568 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -891,6 +891,54 @@ +

+
+

Warum „Ban Yaro"?

+

+ Ban Yaro ist ein Hund. Genauer gesagt: ein Hund aus dem B-Wurf einer Züchterin, + die Star Wars liebt und ihre Würfe nach Charakteren dieses Epos benennt. + Ban Yaro ist der Namensgeber dieser App — und ein gutes Zeichen, dass hier + Hundemenschen für Hundemenschen bauen. +

+ +
+ +
+ 🗓️ +
+

Gegründet 2026

+

Ebersberg, Bayern. Ein-Mann-Projekt von René Degelmann — mit großem Herz für Hunde.

+
+
+ +
+ 🇩🇪 +
+

Server in Deutschland

+

Alle Daten bleiben in Deutschland. Kein US-Konzern, kein Datenhändler.

+
+
+ +
+ 🔒 +
+

DSGVO-konform

+

Vollständige Datenschutzerklärung, keine Tracker, keine Werbung.

+
+
+ +
+ ✉️ +
+

Direkt erreichbar

+

hallo@banyaro.app — kein Support-Ticket-System, echte Menschen.

+
+
+ +
+
+
+ + + diff --git a/backend/static/sw.js b/backend/static/sw.js index 1a3ba98..9f3ba1f 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v730'; +const CACHE_VERSION = 'by-v731'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache From e14f972c5e0dc8e317384ead4fcecd82b6556394 Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 18:04:35 +0200 Subject: [PATCH 10/21] =?UTF-8?q?Landing:=208=20emotionale=20Feature-Cards?= =?UTF-8?q?,=20DSGVO=E2=86=92'Daten=20in=20Deutschland',=20Preise=20berein?= =?UTF-8?q?igt=20(SW=20by-v732)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/landing.html | 112 +++++++++++++++++++----------------- backend/static/sw.js | 2 +- 5 files changed, 64 insertions(+), 56 deletions(-) diff --git a/backend/main.py b/backend/main.py index c28be48..e0ff450 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "731" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "732" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/index.html b/backend/static/index.html index 09ab4da..ac88024 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index c3efbb7..e969406 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 = '731'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '732'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/landing.html b/backend/static/landing.html index d21220f..e912501 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -457,10 +457,10 @@ Ban Yaro

Die deutschsprachige Hunde-Plattform

-

Alles rund um deinen Hund — von Welpe bis Opa. Kostenlos, DSGVO-konform, ohne App Store.

+

Alles rund um deinen Hund — von Welpe bis Opa. Kostenlos, ohne App Store, Daten in Deutschland.

Kostenlos nutzbar - DSGVO-konform + Daten in Deutschland Kein App Store nötig Made in Germany Offline-fähig @@ -517,23 +517,48 @@

Dein Hund. Dein Alltag. Alles an einem Ort.

-

Nie wieder Impftermine vergessen. Immer wissen was heute dran ist. Und nach 30 Tagen Training endlich der Rückruf der zuverlässig klappt.

+

Alles was Hundehalter täglich brauchen — in einer App. Hier ist was Ban Yaro für dich bedeutet.

-
-
🏥
-

Gesundheit im Griff

-

Impfpass, Tierarztbesuche und Medikamente digital. Automatische Erinnerungen damit du nie wieder einen Termin verpasst.

-
-
-
🎯
-

Training das wirklich funktioniert

-

Tägliche Übungsempfehlung passend zu eurem Stand. Ein KI-Trainer der analysiert wo ihr steht und was als nächstes kommt.

-
📖
-

Alles festhalten was zählt

-

Tagebuch mit Fotos, GPS und Stimmungen. Gassi-Score damit du weißt ob heute ein guter Tag für eine lange Runde ist.

+

Meine persönlichen Highlights

+

Ein Tagebuch das wirklich lebt — Fotos, GPS-Orte, Stimmungen. Schau in einem Jahr zurück und erinnere dich an jeden besonderen Moment.

+
+
+
🗺️
+

Gassi ohne Fragezeichen

+

Wo ist der nächste Mülleimer? Gibt es einen Kotbeutelspender? Mein Hund hat Durst — wo kann er trinken? Die Karte hat alle Antworten.

+
+
+
🛤️
+

Lieblingsrouten für immer

+

Speichere deine schönsten Strecken und teile sie mit anderen. Oder lass dir täglich eine neue Route vorschlagen — 2, 4 oder 6 km, direkt navigierbar.

+
+
+
🌤️
+

Das Gassiwetter

+

Nicht einfach nur Wetter — ein Gassi-Score von 1–10. Zu heiß, zu windig, Regen im Anzug? Du weißt es bevor du die Tür aufmachst.

+
+
+
💊
+

Gesundheit und Ausgaben im Blick

+

Impfpass, Tierarztbesuche, Medikamente — alles digital. Und was kostet mein Hund mich eigentlich? Ausgaben-Tracker inklusive.

+
+
+
🎓
+

Mein virtueller Trainer

+

104 Übungen mit Schritt-für-Schritt-Anleitungen. Der KI-Trainer analysiert euren Stand täglich und beantwortet auch spezielle Probleme — wie ein Profi, immer dabei.

+
+
+
💬
+

Leute unter sich

+

Ein Forum nur für Hundemenschen. Fragen stellen, Erfahrungen teilen, lokale Gassi-Treffen organisieren — ohne Algorithmen, ohne Werbung.

+
+
+
🏡
+

Jemanden für die Gassi gesucht?

+

Du musst da oder dort hin — finde jemanden der auf deinen Hund aufpasst. Hundesitting-Vermittlung mit nur 8% Provision statt 20% bei anderen.

@@ -678,7 +703,7 @@

Ban Yaro vs. Konkurrenz

-

Andere Apps decken einzelne Bereiche ab — Ban Yaro vereint alles in einer DSGVO-konformen Plattform. Kein anderer Anbieter kombiniert Community, Training, Zucht und KI auf Deutsch.

+

Andere Apps decken einzelne Bereiche ab — Ban Yaro vereint alles in einer Plattform. Kein anderer Anbieter kombiniert Community, Training, Zucht und KI auf Deutsch.

@@ -821,46 +846,29 @@

Preise

-

Ban Yaro ist kostenlos nutzbar — für immer. Ban Yaro Plus erweitert die Möglichkeiten für engagierte Hundebesitzer.

-
-
-

Kostenlos

-
0 € / Monat
-
    -
  • Hunde-Profile
  • -
  • Tagebuch (unbegrenzte Einträge)
  • -
  • Pflege-System (43 rassenspezifische Tipps)
  • -
  • Symptom-Checker (KI)
  • -
  • Giftköder-Alarm & Zecken-Warnung
  • -
  • Verlorener Hund Alarm
  • -
  • Wiki & Knigge (1003 Rassen)
  • -
  • Training-Logging & KI-Trainer
  • -
  • Forum & Community
  • -
  • Gassi-Treffen & Routen
  • -
  • NFC-Halsband-Profil
  • -
  • Heimtierausweis (Druck)
  • -
-
+

Ban Yaro ist aktuell vollständig kostenlos. Mehr kommt — aber das Kernprodukt bleibt für immer frei.

+
-

NFC-Tags

-
ab 6 €
+

Mehr kommt

+
In Planung
    -
  • Physisches NFC-Tag für Halsband
  • -
  • Scan → öffentliches Hunde-Profil
  • -
  • "Gefunden"-Benachrichtigung
  • -
  • Anonymer Kontakt ohne Telefon
  • -
  • Wetter- und kratzfest
  • +
  • Ban Yaro Pro — erweiterte Features
  • +
  • NFC-Halsband-Tags
  • +
  • Hundesitting-Provision (aktuell 8%)
+

Preise werden gemeinsam mit der Community entwickelt. Wer früh dabei ist, profitiert.

@@ -881,7 +889,7 @@
🔒
-

DSGVO-konform

+

Deine Daten. Dein Eigentum.

Keine Datenweitergabe an US-Konzerne. Cookielose Analytics (Umami). Transparente Datennutzung.

@@ -924,7 +932,7 @@ 🤖

KI Made in Europe

-

Alle KI-Funktionen laufen über Claude (Anthropic) — kein Training mit deinen Daten, kein Opt-out nötig, volle DSGVO-Konformität.

+

Alle KI-Funktionen laufen über Claude (Anthropic) — kein Training mit deinen Daten, kein Opt-out nötig, deine Daten bleiben deine Daten.

@@ -970,7 +978,7 @@
🔒
-

DSGVO-konform

+

Deine Daten. Dein Eigentum.

Vollständige Datenschutzerklärung, keine Tracker, keine Werbung.

diff --git a/backend/static/sw.js b/backend/static/sw.js index 9f3ba1f..e03773b 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v731'; +const CACHE_VERSION = 'by-v732'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache From 87a655e32f1def0103e11bf547c0701322cb1b3e Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 18:27:02 +0200 Subject: [PATCH 11/21] =?UTF-8?q?Preise:=20Tier-Modell=20Stufe1/Pro/Z?= =?UTF-8?q?=C3=BCchter=20auf=20Landing=20Page,=20Sitting=200%=20Provision,?= =?UTF-8?q?=20Memory=20gespeichert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/landing.html | 44 +++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/backend/static/landing.html b/backend/static/landing.html index e912501..9bf8b5d 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -846,29 +846,45 @@

Preise

-

Ban Yaro ist aktuell vollständig kostenlos. Mehr kommt — aber das Kernprodukt bleibt für immer frei.

-
+

Ban Yaro startet kostenlos — mit allem was du täglich brauchst. Mehr Features kommen, wenn die Community gewachsen ist.

+
-

Mehr kommt

-
In Planung
+

Ban Yaro Pro

+
Kommt bald
+

Mehrere Hunde · erweiterte Community

    -
  • Ban Yaro Pro — erweiterte Features
  • -
  • NFC-Halsband-Tags
  • -
  • Hundesitting-Provision (aktuell 8%)
  • +
  • Mehrere Hunde verwalten
  • +
  • KI-Trainer für personalisiertes Training
  • +
  • Direktnachrichten, Freunde, Playdate
  • +
  • Gassi-Treffen, Ernährung, Reise
  • +
  • Notizblock
  • +
+

Preis wird mit der Community entwickelt. Wer jetzt dabei ist, profitiert.

+
+
+

Züchter

+
Kommt bald
+

Professionelle Zucht · alles aus Pro

+
    +
  • Stammbaum bis 4 Generationen
  • +
  • Inzucht-Koeffizient nach Wright
  • +
  • Wurfverwaltung + Kaufvertrag
  • +
  • Tierschutz-Check (automatisch)
  • +
  • Wurfbörse + verifiziertes Profil
-

Preise werden gemeinsam mit der Community entwickelt. Wer früh dabei ist, profitiert.

From bcc7c27556b81cdf12d2e83537043f9440e057bc Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 18:36:23 +0200 Subject: [PATCH 12/21] Landing: Phosphor Icons statt Emoji, SW by-v733 --- backend/main.py | 2 +- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/landing.html | 124 +++++++++++++++++++++++++----------- backend/static/sw.js | 2 +- 5 files changed, 92 insertions(+), 40 deletions(-) diff --git a/backend/main.py b/backend/main.py index e0ff450..93a4f28 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "732" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "733" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/index.html b/backend/static/index.html index ac88024..5782464 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index e969406..5f77fd1 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 = '732'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '733'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/landing.html b/backend/static/landing.html index 9bf8b5d..4e590e0 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -391,8 +391,32 @@ box-shadow: 0 2px 12px rgba(0,0,0,.07); } .outcome-card .oc-icon { - font-size: 2rem; - margin-bottom: 0.75rem; + font-size: 0; /* Emoji-Fallback ausblenden */ + width: 3rem; + height: 3rem; + background: var(--primary-light); + border-radius: 14px; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 1rem; + flex-shrink: 0; + } + .outcome-card .oc-icon svg { + width: 1.6rem; + height: 1.6rem; + color: var(--primary); + } + .feature-card .feature-icon svg { + width: 1.4rem; + height: 1.4rem; + color: var(--primary); + } + .feature-card .feature-icon { + font-size: 0; + display: flex; + align-items: center; + justify-content: center; } .outcome-card h3 { font-size: 1.05rem; @@ -521,42 +545,58 @@
-
📖
+
+ +

Meine persönlichen Highlights

Ein Tagebuch das wirklich lebt — Fotos, GPS-Orte, Stimmungen. Schau in einem Jahr zurück und erinnere dich an jeden besonderen Moment.

-
🗺️
+
+ +

Gassi ohne Fragezeichen

Wo ist der nächste Mülleimer? Gibt es einen Kotbeutelspender? Mein Hund hat Durst — wo kann er trinken? Die Karte hat alle Antworten.

-
🛤️
+
+ +

Lieblingsrouten für immer

Speichere deine schönsten Strecken und teile sie mit anderen. Oder lass dir täglich eine neue Route vorschlagen — 2, 4 oder 6 km, direkt navigierbar.

-
🌤️
+
+ +

Das Gassiwetter

Nicht einfach nur Wetter — ein Gassi-Score von 1–10. Zu heiß, zu windig, Regen im Anzug? Du weißt es bevor du die Tür aufmachst.

-
💊
+
+ +

Gesundheit und Ausgaben im Blick

Impfpass, Tierarztbesuche, Medikamente — alles digital. Und was kostet mein Hund mich eigentlich? Ausgaben-Tracker inklusive.

-
🎓
+
+ +

Mein virtueller Trainer

104 Übungen mit Schritt-für-Schritt-Anleitungen. Der KI-Trainer analysiert euren Stand täglich und beantwortet auch spezielle Probleme — wie ein Profi, immer dabei.

-
💬
+
+ +

Leute unter sich

Ein Forum nur für Hundemenschen. Fragen stellen, Erfahrungen teilen, lokale Gassi-Treffen organisieren — ohne Algorithmen, ohne Werbung.

-
🏡
+
+ +

Jemanden für die Gassi gesucht?

Du musst da oder dort hin — finde jemanden der auf deinen Hund aufpasst. Hundesitting-Vermittlung mit nur 8% Provision statt 20% bei anderen.

@@ -569,43 +609,43 @@
Mein Hund
- 🏠 +

Personalisiertes Dashboard

Täglich wechselndes Foto deines Hundes, aktuelle Stats, nächster Termin, Gewicht, Übung des Tages.

- 📓 +

Tagebuch

Fotos, Videos, Texte und GPS-Orte — alle Momente mit deinem Hund. Kalender-, Karten- und Medien-Ansicht.

- 💉 +

Gesundheit & Impfpass

Impfungen, Tierarztbesuche, Medikamente digital verwalten. Automatische Erinnerungen per Push-Notification.

- 🎯 +

Training & KI-Trainer

104 Übungen, Einheiten loggen, Fortschritt in 5 Stufen. Virtueller Trainer mit täglichen Empfehlungen, Streaks und Abzeichen.

- 🏥 +

Symptom-Checker

KI-gestützte Ersteinschätzung: beobachten, Tierarzt oder Notfall?

- 🛁 +

Pflege-System

43 rassenspezifische Pflegetipps in 10 Kategorien — Tipp des Tages automatisch ausgewählt.

- 🌤️ +

Wetter, Gassi-Score & Zecken-Alarm

7-Tage-Wetter, tägliche Bewertung 1–10 für Gassi-Eignung, automatische Zecken-Warnung.

- 🍖 +

Ernährung & Futter

Kalorienbedarf berechnen, BARF-Guide, Giftliste und KI-Futterberater.

- ✈️ +

Reise mit Hund

Reisecheckliste und EU-Länder-Guide mit länderspezifischen Einreiseregeln und Impfvorschriften.

- 🆔 +

NFC-Halsband-Tags

Öffentliche Profilseite für jeden Hund. Finder kontaktiert dich anonym — ohne deine Nummer preiszugeben.

@@ -615,27 +655,27 @@
Community & Entdecken
- ⚠️ +

Giftköder-Alarm

GPS-Meldungen mit Foto, sofortige Push-Notification für alle Nutzer im Umkreis.

- 🚨 +

Verlorener Hund

Sofortalarm für alle Nutzer in der Nähe — mit Foto, letzter GPS-Position und direktem Kontakt.

- 🧭 +

Tages-Gassirunde

Täglich neue Rundroute — 2, 4 oder 6 km ab deinem Standort. Berechnet via OpenRouteService.

- 🐕 +

Gassi-Treffen

Spontane oder geplante Gassi-Treffen erstellen und finden.

- 💬 +

Forum

Öffentlich lesbar ohne Anmeldung. Kategorien nach Rasse, Region, Gesundheit und Erziehung.

- 📚 +

Hunde-Wiki

1003 Hunderassen — Wikipedia-grounded und von KI angereichert. Community-Fotos und Rassen-Quiz.

@@ -652,17 +692,23 @@
-
🧬
+
+ +

Transparenz die Vertrauen schafft

Stammbaum bis 4 Generationen, Gesundheitstests, Gentests — alles für Käufer sichtbar. Die erste Plattform die Zucht wirklich transparent macht.

-
⚖️
+
+ +

Tierschutz automatisch

Der Tierschutz-Check läuft bei jeder Verpaarung automatisch. Nicht abschaltbar — weil die Tiere zählen. Dein stärkstes Argument gegenüber Käufern.

-
📋
+
+ +

Von der Verpaarung bis zum Kaufvertrag

Wurfbörse, Welpen-Verwaltung, automatischer Kaufvertrag. Interessenten schreiben direkt per Chat — du hast alles an einem Ort.

@@ -680,17 +726,23 @@
-
🔍
+
+ +

Nur verifizierte Züchter

Jeder Züchter auf Ban Yaro wurde geprüft. Stammbaum und Gesundheitstests öffentlich einsehbar — bevor du fragst.

-
💬
+
+ +

Direkt zum Züchter

Kein Umweg über Kleinanzeigen. Schreib direkt per Nachricht, sieh Fotos der Eltern und des Wurfs.

-
🏠
+
+ +

Vorbereitet wenn der Welpe kommt

Starte direkt mit Tagebuch, Training und Gesundheitsakte. Alles bereit für den ersten Tag.

@@ -976,7 +1028,7 @@
- 🗓️ +

Gegründet 2026

Ebersberg, Bayern. Ein-Mann-Projekt von René Degelmann — mit großem Herz für Hunde.

@@ -984,7 +1036,7 @@
- 🇩🇪 +

Server in Deutschland

Alle Daten bleiben in Deutschland. Kein US-Konzern, kein Datenhändler.

@@ -992,7 +1044,7 @@
- 🔒 +

Deine Daten. Dein Eigentum.

Vollständige Datenschutzerklärung, keine Tracker, keine Werbung.

@@ -1000,7 +1052,7 @@
- ✉️ +

Direkt erreichbar

hallo@banyaro.app — kein Support-Ticket-System, echte Menschen.

diff --git a/backend/static/sw.js b/backend/static/sw.js index e03773b..0659e84 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v732'; +const CACHE_VERSION = 'by-v733'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache From 71f29dcce0a4d3bb1e5a24436489887877ca5ef5 Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 18:39:27 +0200 Subject: [PATCH 13/21] Feature: Subscription-Tier-System (standard/pro/breeder + _test), has_pro_access(), Admin-Tier-UI (SW by-v734) --- backend/auth.py | 28 +++++++++++++++++- backend/database.py | 8 ++++++ backend/main.py | 2 +- backend/routes/admin.py | 23 ++++++++++----- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/js/pages/admin.js | 49 ++++++++++++++++++++++++++++++++ backend/static/sw.js | 2 +- 8 files changed, 104 insertions(+), 12 deletions(-) diff --git a/backend/auth.py b/backend/auth.py index a4d5af3..0b3bff1 100644 --- a/backend/auth.py +++ b/backend/auth.py @@ -87,7 +87,7 @@ def get_current_user( user_id = int(payload["sub"]) with db() as conn: row = conn.execute( - "SELECT id, email, name, rolle, is_premium, is_moderator, is_banned, ban_reason, is_social_media, notes_ki_enabled, gassi_stunde_push, breeder_status, is_founder, is_partner, founder_number, email_verified, luna_trial_until FROM users WHERE id=?", + "SELECT id, email, name, rolle, is_premium, is_moderator, is_banned, ban_reason, is_social_media, notes_ki_enabled, gassi_stunde_push, breeder_status, is_founder, is_partner, founder_number, email_verified, luna_trial_until, subscription_tier FROM users WHERE id=?", (user_id,) ).fetchone() @@ -130,6 +130,32 @@ def require_admin(user=Depends(get_current_user)): return user +def has_pro_access(user: dict) -> bool: + """True wenn User Pro-Features nutzen darf.""" + if not user: + return False + role = user.get("rolle", "user") + tier = user.get("subscription_tier", "standard") + if role in ("admin", "moderator"): + return True + if user.get("is_moderator") or user.get("is_social_media"): + return True + return tier in ("pro", "breeder", "pro_test", "breeder_test") + + +def has_breeder_access(user: dict) -> bool: + """True wenn User Züchter-Features nutzen darf.""" + if not user: + return False + role = user.get("rolle", "user") + tier = user.get("subscription_tier", "standard") + if role in ("admin", "moderator"): + return True + if user.get("is_moderator") or user.get("is_social_media"): + return True + return tier in ("breeder", "breeder_test") or role == "breeder" + + def require_social_media(user=Depends(get_current_user)): """Dependency: Social-Media-Manager, Luna-Probezugang oder Admin.""" from datetime import datetime as _dt diff --git a/backend/database.py b/backend/database.py index efb9266..c56a2f6 100644 --- a/backend/database.py +++ b/backend/database.py @@ -2075,6 +2075,14 @@ def _migrate(conn_factory): _seed_help_articles(conn) logger.info("Migration: Hilfe/FAQ-Tabelle bereit.") + # ---- Feature: Subscription-Tier ---- + try: + conn.execute("ALTER TABLE users ADD COLUMN subscription_tier TEXT DEFAULT 'standard'") + conn.execute("CREATE INDEX IF NOT EXISTS idx_users_tier ON users(subscription_tier)") + logger.info("Migration: subscription_tier Spalte hinzugefügt.") + except Exception: + pass # Spalte existiert bereits + def _seed_help_articles(conn): """Befüllt help_articles mit Starter-FAQs — nur wenn die Tabelle noch leer ist.""" diff --git a/backend/main.py b/backend/main.py index 93a4f28..3bb5f90 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "733" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "734" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/routes/admin.py b/backend/routes/admin.py index c2ffebb..5e82927 100644 --- a/backend/routes/admin.py +++ b/backend/routes/admin.py @@ -81,12 +81,15 @@ def require_admin(user=Depends(get_current_user)): # ------------------------------------------------------------------ # Schemas # ------------------------------------------------------------------ +_VALID_TIERS = {"standard", "pro", "breeder", "standard_test", "pro_test", "breeder_test"} + class UserPatch(BaseModel): - rolle: Optional[str] = None # user | moderator | admin - is_moderator: Optional[int] = None - is_banned: Optional[int] = None - ban_reason: Optional[str] = None - is_social_media: Optional[int] = None + rolle: Optional[str] = None # user | moderator | admin + is_moderator: Optional[int] = None + is_banned: Optional[int] = None + ban_reason: Optional[str] = None + is_social_media: Optional[int] = None + subscription_tier: Optional[str] = None class WikiEnrichBody(BaseModel): limit: int = 10 @@ -331,7 +334,7 @@ async def list_users( SELECT u.id, u.name, {_email_col}, u.rolle, u.is_premium, u.is_moderator, u.is_banned, u.ban_reason, u.is_founder, u.is_partner, u.founder_number, - u.created_at, u.last_login, + u.created_at, u.last_login, u.subscription_tier, (SELECT COUNT(*) FROM dogs d WHERE d.user_id=u.id) AS dog_count, (SELECT COUNT(*) FROM forum_threads t WHERE t.user_id=u.id AND t.is_deleted=0) AS thread_count, ROUND(COALESCE((SELECT SUM(r.distanz_km) FROM routes r WHERE r.user_id=u.id), 0), 1) AS total_km, @@ -365,6 +368,10 @@ async def patch_user(uid: int, data: UserPatch, user=Depends(require_mod)): raise HTTPException(403, "is_moderator darf nur von Admins geändert werden.") if data.is_social_media is not None and user["rolle"] != "admin": raise HTTPException(403, "is_social_media darf nur von Admins geändert werden.") + if data.subscription_tier is not None and user["rolle"] != "admin": + raise HTTPException(403, "subscription_tier darf nur von Admins geändert werden.") + if data.subscription_tier is not None and data.subscription_tier not in _VALID_TIERS: + raise HTTPException(400, f"Ungültiger Tier. Erlaubt: {', '.join(sorted(_VALID_TIERS))}") with db() as conn: target = conn.execute("SELECT id, rolle, name FROM users WHERE id=?", (uid,)).fetchone() @@ -385,7 +392,7 @@ async def patch_user(uid: int, data: UserPatch, user=Depends(require_mod)): cols = ", ".join(f"{k}=?" for k in updates) conn.execute(f"UPDATE users SET {cols} WHERE id=?", [*updates.values(), uid]) row = conn.execute( - "SELECT id, name, email, rolle, is_moderator, is_banned, ban_reason FROM users WHERE id=?", + "SELECT id, name, email, rolle, is_moderator, is_banned, ban_reason, subscription_tier FROM users WHERE id=?", (uid,) ).fetchone() @@ -395,6 +402,8 @@ async def patch_user(uid: int, data: UserPatch, user=Depends(require_mod)): detail_parts.append("gesperrt" if updates["is_banned"] else "entsperrt") if "rolle" in updates: detail_parts.append(f"Rolle→{updates['rolle']}") + if "subscription_tier" in updates: + detail_parts.append(f"Tier→{updates['subscription_tier']}") _audit(conn, user, "user_patch", f"user:{uid} ({target['name']})", ", ".join(detail_parts) or None) return dict(row) diff --git a/backend/static/index.html b/backend/static/index.html index 5782464..ffe279f 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 5f77fd1..7aebf45 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 = '733'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '734'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/admin.js b/backend/static/js/pages/admin.js index 3e485d5..b03c463 100644 --- a/backend/static/js/pages/admin.js +++ b/backend/static/js/pages/admin.js @@ -795,6 +795,9 @@ window.Page_admin = (() => { ${_esc(u.rolle)} + · + ${_esc(u.subscription_tier || 'standard')} + · ${u.dog_count} Hund${u.dog_count !== 1 ? 'e' : ''} · ${u.thread_count} Threads
@@ -823,6 +826,11 @@ window.Page_admin = (() => { title="Rolle ändern"> + + `).join('')} +
+ `, + }); + + document.querySelectorAll('.adm-tier-choice').forEach(btn => { + btn.addEventListener('click', async () => { + UI.modal.close(); + try { + await API.patch(`/admin/users/${uid}`, { subscription_tier: btn.dataset.tier }); + UI.toast.success(`${name}: Abo-Stufe ist jetzt ${btn.dataset.tier}.`); + _renderTab(); + } catch (e) { UI.toast.error(e.message); } + }); + }); + } + async function _deleteUser(uid, name) { const ok = await UI.modal.confirm({ title: `${name} löschen?`, diff --git a/backend/static/sw.js b/backend/static/sw.js index 0659e84..7b9adbd 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v733'; +const CACHE_VERSION = 'by-v734'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache From 98ac7fcb797d67cc34faf5a9bc6a3087fbf8b84d Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 18:42:15 +0200 Subject: [PATCH 14/21] Fix: Tier-Modal zeigt alle 6 Optionen, aktiver Tier markiert statt herausgefiltert (SW by-v735) --- backend/main.py | 2 +- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/js/pages/admin.js | 9 +++++---- backend/static/sw.js | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/backend/main.py b/backend/main.py index 3bb5f90..35a8577 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "734" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "735" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/index.html b/backend/static/index.html index ffe279f..8fe4dfe 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 7aebf45..85a44c4 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 = '734'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '735'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/admin.js b/backend/static/js/pages/admin.js index b03c463..2139e07 100644 --- a/backend/static/js/pages/admin.js +++ b/backend/static/js/pages/admin.js @@ -931,16 +931,17 @@ window.Page_admin = (() => { Aktuelle Stufe: ${currentTier}

- ${tiers.filter(t => t !== currentTier).map(t => ` - `).join('')}
`, }); - document.querySelectorAll('.adm-tier-choice').forEach(btn => { + document.querySelectorAll('.adm-tier-choice:not([disabled])').forEach(btn => { btn.addEventListener('click', async () => { UI.modal.close(); try { diff --git a/backend/static/sw.js b/backend/static/sw.js index 7b9adbd..dbc104c 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v734'; +const CACHE_VERSION = 'by-v735'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache From 11067d9ef8a6ac0484bc8b08eeff3b747fedf9ec Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 18:50:54 +0200 Subject: [PATCH 15/21] =?UTF-8?q?Fix:=20Update-Button=20leert=20SW-Cache?= =?UTF-8?q?=20vor=20Reload,=20Fallback-Text=20f=C3=BCr=20Desktop=20(Cmd+Sh?= =?UTF-8?q?ift+R)=20(SW=20by-v736)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/index.html | 2 +- backend/static/js/app.js | 18 ++++++++---------- backend/static/sw.js | 2 +- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/backend/main.py b/backend/main.py index 35a8577..9c00a1b 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "735" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "736" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/index.html b/backend/static/index.html index 8fe4dfe..5038216 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 85a44c4..a8b5cf3 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 = '735'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '736'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; @@ -978,8 +978,8 @@ const App = (() => { 1. Drücke lange auf das App-Icon am Homescreen
2. Wähle „App entfernen" (nur das Symbol, keine Daten)
3. Öffne banyaro.app in Safari und füge die App erneut hinzu` - : `Falls die App nicht aktualisiert:
- Öffne banyaro.app im Browser und füge sie erneut zum Startbildschirm hinzu.`} + : `Falls die Seite noch die alte Version zeigt:
+ Drücke Cmd+Shift+R (Mac) bzw. Ctrl+Shift+R (Windows/Android Chrome) für einen harten Reload.`}
`; @@ -991,18 +991,16 @@ const App = (() => { const btn = banner.querySelector('#upd-btn-reload'); btn.textContent = 'Lädt…'; btn.disabled = true; - // SW-Update anstoßen + sessionStorage.setItem('by_update_reload', APP_VER); try { + // SW aktivieren + alle Caches leeren für sauberen Reload const reg = await navigator.serviceWorker?.getRegistration(); if (reg?.waiting) reg.waiting.postMessage({ type: 'SKIP_WAITING' }); await reg?.update(); + const keys = await caches.keys(); + await Promise.all(keys.map(k => caches.delete(k))); } catch { /* ignorieren */ } - // Kurz warten, dann hard reload - setTimeout(() => { - location.reload(); - }, 800); - // Nach Reload: wenn Version immer noch alt, iOS-Hinweis anzeigen - sessionStorage.setItem('by_update_reload', APP_VER); + setTimeout(() => location.reload(), 600); }); } diff --git a/backend/static/sw.js b/backend/static/sw.js index dbc104c..e929ebd 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v735'; +const CACHE_VERSION = 'by-v736'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache From a6c25cf0f0d42347abb11b4bfe0b5f50a0ca39d7 Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 19:06:37 +0200 Subject: [PATCH 16/21] =?UTF-8?q?Feature:=20Feature-Gating=20nach=20Tier?= =?UTF-8?q?=20=E2=80=94=20Pro-Seiten/Chips=20f=C3=BCr=20Standard=20verstec?= =?UTF-8?q?kt,=20Admin=20immer=20alles=20(SW=20by-v737)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/index.html | 2 +- backend/static/js/app.js | 55 ++++++++++++++++++++++++----- backend/static/js/pages/settings.js | 7 ++++ backend/static/js/worlds.js | 26 ++++++++++---- backend/static/sw.js | 2 +- 6 files changed, 76 insertions(+), 18 deletions(-) diff --git a/backend/main.py b/backend/main.py index 9c00a1b..eb694a0 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "736" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "737" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/index.html b/backend/static/index.html index 5038216..cc3c9db 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index a8b5cf3..4d15a48 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 = '736'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '737'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.4.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; @@ -43,7 +43,7 @@ const App = (() => { routes: { title: 'Routen', module: null }, events: { title: 'Events', module: null }, poison: { title: 'Giftköder-Alarm', module: null }, - walks: { title: 'Gassi-Treffen', module: null, requiresAuth: true }, + walks: { title: 'Gassi-Treffen', module: null, requiresAuth: true, requiresPro: true }, sitting: { title: 'Sitting', module: null, requiresAuth: true }, forum: { title: 'Forum', module: null }, wiki: { title: 'Wiki', module: null }, @@ -51,12 +51,12 @@ const App = (() => { movies: { title: 'Filme', module: null }, trainingsplaene: { title: 'Trainingspläne', module: null }, uebungen: { title: 'Übungsbibliothek', module: null }, - notes: { title: 'Notizblock', module: null, requiresAuth: true }, + notes: { title: 'Notizblock', module: null, requiresAuth: true, requiresPro: true }, 'erste-hilfe': { title: 'Erste Hilfe', module: null }, settings: { title: 'Einstellungen', module: null }, lost: { title: 'Verlorener Hund', module: null }, - friends: { title: 'Freunde', module: null, requiresAuth: true }, - chat: { title: 'Nachrichten', module: null, requiresAuth: true }, + friends: { title: 'Freunde', module: null, requiresAuth: true, requiresPro: true }, + chat: { title: 'Nachrichten', module: null, requiresAuth: true, requiresPro: true }, social: { title: 'Social Media', module: null, requiresAuth: true }, admin: { title: 'Admin', module: null, requiresAuth: true }, moderation: { title: 'Moderation', module: null, requiresAuth: true }, @@ -74,14 +74,25 @@ const App = (() => { expenses: { title: 'Ausgaben', module: null, requiresAuth: true }, recalls: { title: 'Rückrufe', module: null }, adoption: { title: 'Adoption', module: null }, - playdate: { title: 'Playdate', module: null, requiresAuth: true }, + playdate: { title: 'Playdate', module: null, requiresAuth: true, requiresPro: true }, wetter: { title: 'Wetter', module: null }, - ernaehrung: { title: 'Ernährung', module: null, requiresAuth: true }, + ernaehrung: { title: 'Ernährung', module: null, requiresAuth: true, requiresPro: true }, personality: { title: 'Persönlichkeitstest', module: null }, - reise: { title: 'Reise mit Hund', module: null }, + reise: { title: 'Reise mit Hund', module: null, requiresPro: true }, hilfe: { title: 'Hilfe & FAQ', module: null }, }; + // ---------------------------------------------------------- + // TIER-CHECK — Frontend-Pendant zu has_pro_access() in auth.py + // ---------------------------------------------------------- + function _hasPro(user) { + if (!user) return false; + if (user.rolle === 'admin' || user.rolle === 'moderator') return true; + if (user.is_moderator || user.is_social_media) return true; + const t = user.subscription_tier || 'standard'; + return ['pro','breeder','pro_test','breeder_test'].includes(t); + } + // ---------------------------------------------------------- // AUTH GUARD — Login-Gate Texte pro Seite // ---------------------------------------------------------- @@ -142,6 +153,34 @@ const App = (() => { return; } + // Pro-Guard — nur wenn User eingeloggt aber kein Pro-Zugang + if (page.requiresPro && state.user && !_hasPro(state.user)) { + const container = document.querySelector(`#page-${pageId} .page-body`); + if (container) { + container.innerHTML = ` +
+
+

Ban Yaro Pro

+

+ Dieses Feature ist Teil von Ban Yaro Pro — verfügbar wenn wir die nächste Stufe zünden.
+ Du wirst benachrichtigt wenn es soweit ist. +

+
+
Ban Yaro Pro enthält:
+
    +
  • Mehrere Hunde verwalten
  • +
  • KI-Trainer für personalisiertes Training
  • +
  • Direktnachrichten & Freunde
  • +
  • Gassi-Treffen, Playdate, Ernährung, Reise
  • +
  • Notizblock
  • +
+
+
`; + } + return; + } + if (page.module) { const hasParams = params && Object.keys(params).length > 0; if (hasParams) { diff --git a/backend/static/js/pages/settings.js b/backend/static/js/pages/settings.js index beb8ae0..743004e 100644 --- a/backend/static/js/pages/settings.js +++ b/backend/static/js/pages/settings.js @@ -276,6 +276,13 @@ window.Page_settings = (() => { Hilfe & FAQ
+ ${!_appState.user?.subscription_tier || _appState.user.subscription_tier === 'standard' || _appState.user.subscription_tier === 'standard_test' ? ` +
+ ⭐ Ban Yaro Pro kommt bald — mehr Features, mehrere Hunde. +
+ ` : ''}