Issue #3613414: Add integration warnings for admins

Closes #3613414

Summary

  • add integration status tracking for low balance, auth failures, API errors, and last successful checks
  • show admin-facing warnings on the settings form, spam protection point list, spam list page, and Drupal status report
  • add optional email reminders with throttling while the integration remains degraded

Testing

  • php -l src/Form/SettingsForm.php
  • php -l src/Hook/NoBotIQSpamProtectionCronHook.php
  • php -l src/Hook/NoBotIQSpamProtectionPageAttachmentsHook.php
  • php -l src/Hook/NoBotIQSpamProtectionRequirementsHook.php
  • php -l src/Services/IntegrationStatusManager.php
  • php -l src/Services/IntegrationStatusManagerInterface.php
  • php -l src/Services/SpamChecker.php
  • php -l src/SpamProtectionInterface.php
  • php -l nobotiq_spam_protection.module

Notes

  • the low-balance detection currently relies on HTTP 402 or response text containing credit/balance, because the exact upstream payload contract is not documented

Merge request reports

Loading
Loading