Skip to content

PWA Toggle Option - #149

Merged
iMattPro merged 3 commits into
phpbb-extensions:mainfrom
iMattPro:pwa-toggle
Nov 9, 2026
Merged

iMattPro merged 3 commits into
phpbb-extensions:mainfrom
iMattPro:pwa-toggle

Conversation

@iMattPro

@iMattPro iMattPro commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Added an option to disable extension-generated PWA metadata for boards that provide their own PWA setup.

@iMattPro
iMattPro requested review from rxu and a lite review from Copilot November 9, 2026 15:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the ACP-controlled PWA metadata toggle and its related configuration, rendering, localization, and coverage changes.

No open issues 🎉

What changed in this PR

Adds an ACP-controlled option to disable extension-generated PWA metadata while preserving Web Push functionality and the install banner.

Changes:

  • Adds and migrates the pwa_metadata_enabled configuration option, enabled by default.
  • Conditionally renders PWA manifest and related metadata.
  • Adds ACP controls, English/Russian translations, and test coverage.
  • Updates Composer platform and dependency lock metadata.
File Description
tests/​functional/​functional_test.php Tests enabling and disabling PWA metadata output.
tests/​event/​listener_test.php Verifies the metadata-enabled template variable.
tests/​controller/​controller_acp_test.php Covers saving and displaying the ACP setting.
styles/​all/​template/​event/​overall_header_head_append.html Conditionally renders PWA metadata; the theme-color CSS variable should remain available when metadata is disabled.
migrations/​add_pwa_metadata_toggle.php Adds the persisted configuration option.
language/​ru/​webpushnotifications_module_acp.php Adds Russian ACP labels and help text.
language/​en/​webpushnotifications_module_acp.php Adds English ACP labels and help text.
event/​listener.php Assigns the metadata-enabled template variable.
controller/​acp_controller.php Displays and saves the ACP setting.
composer.lock Updates dependency lock metadata and package versions.
composer.json Defines the PHP platform version for dependency resolution.
adm/​style/​wpn_acp_pwa.html Adds enable/disable ACP controls.

This pull request requires changes.

Review effort: Lite

@codecov-commenter

codecov-commenter commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.23%. Comparing base (094aa67) to head (f130614).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #149   +/-   ##
=========================================
  Coverage     98.23%   98.23%           
  Complexity      276      276           
=========================================
  Files            11       11           
  Lines           792      794    +2     
=========================================
+ Hits            778      780    +2     
  Misses           14       14           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: rxu <rxu@mail.ru>
@iMattPro
iMattPro merged commit 5dabeb3 into phpbb-extensions:main Nov 9, 2026
33 checks passed
@iMattPro
iMattPro deleted the pwa-toggle branch November 9, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants