From f8891d6f28169780fa029d604d1c8802f1347e10 Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Thu, 19 Feb 2026 16:07:05 +0100 Subject: [PATCH] feat: add Facebook connection troubleshooting info in UI - Expandable help section on Integracje page explaining when connection may stop working (password change, app removal, role loss) - Troubleshooting link on Social Publisher stats panel - Actionable error message on failed posts pointing to Integracje Co-Authored-By: Claude Opus 4.6 --- templates/admin/company_settings.html | 16 ++++++++++++++++ templates/admin/social_publisher.html | 4 ++++ templates/admin/social_publisher_form.html | 3 ++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/templates/admin/company_settings.html b/templates/admin/company_settings.html index 8870565..cbf8779 100644 --- a/templates/admin/company_settings.html +++ b/templates/admin/company_settings.html @@ -502,6 +502,22 @@ Rozłącz +
+ + + Kiedy połączenie może przestać działać? + +
+

Połączenie może wymagać odnowienia, gdy:

+
    +
  • Zmienisz hasło do konta Facebook
  • +
  • Usuniesz aplikację NordaBiz z ustawień Facebooka (Ustawienia → Aplikacje i strony)
  • +
  • Stracisz rolę administratora strony na Facebooku
  • +
  • Facebook zmieni zasady dostępu do API
  • +
+

Co zrobić: Kliknij Rozłącz, następnie Połącz konto i ponownie wybierz stronę Facebook. Publikowanie postów i statystyki wrócą do normy.

+
+
{% elif oauth_available.get('meta') %}
{% endfor %} {% endif %} diff --git a/templates/admin/social_publisher_form.html b/templates/admin/social_publisher_form.html index fc39e02..9dccd6c 100644 --- a/templates/admin/social_publisher_form.html +++ b/templates/admin/social_publisher_form.html @@ -482,7 +482,8 @@ {% elif post.status == 'approved' %}Zatwierdzony {% elif post.status == 'scheduled' %}Zaplanowany {% elif post.status == 'published' %}Opublikowany - {% elif post.status == 'failed' %}Błąd + {% elif post.status == 'failed' %}Błąd publikacji + — sprawdź połączenie z Facebookiem w Integracje. Jeśli połączenie działa, kliknij "Spróbuj ponownie". {% else %}{{ post.status }}{% endif %} {% if post.creator %} | Autor: {{ post.creator.name }}