Files
bilety.brzezovka.pl/.paul/STATE.md
Jacek Pyziak df1c1f4a7d feat(04-cookie-notice-bugfix): fix CookieNoticePro injectScripts error
Phase 4 complete:

- remove undefined injectScripts calls from CookieNoticePro

- preserve Consent Mode v2 and GTM integration

- add PAUL plan, summary, and changelog
2026-05-08 23:43:17 +02:00

3.0 KiB

Project State

Project Reference

See: .paul/PROJECT.md (updated 2026-05-08)

Core value: Uzytkownicy moga szybko i bezpiecznie kupic bilety online oraz otrzymac natychmiastowe potwierdzenie zakupu. Current focus: v0.3 Cookie Notice Hotfix - COMPLETE

Current Position

Milestone: v0.3 Cookie Notice Hotfix - COMPLETE Phase: 1 of 1 (Cookie Notice Bugfix) - Complete Plan: 04-01 complete Status: Milestone complete - ready for next milestone Last activity: 2026-05-08 - Phase 4 complete, v0.3 hotfix shipped

Progress:

  • Milestone: [##########] 100%
  • Phase 4: [##########] 100%

Loop Position

Current loop state:

PLAN ---> APPLY ---> UNIFY
  ok       ok        ok      [Loop complete - milestone complete]

Accumulated Context

Codebase Mapped

Date: 2026-04-26 Documents: .paul/codebase/ (8 files - stack, architecture, structure, conventions, testing, integrations, concerns, db_schema)

GTM Status

  • GTM-TW9WCD9J already integrated in templates/site/layout-logged.php.
  • layout-unlogged.php is not rendered; view/class.Site.php always uses layout-logged.php.

Decisions

  • 2026-04-19: Event purchase emitted on order-confirm, not on przelewy24.
  • 2026-04-19: Ecommerce payload built in backend and safely serialized into the view.
  • 2026-04-26: Event purchase moved to przelewy24 (post-order, pre-payment) to capture all orders.
  • 2026-04-26: cookieNoticePro.init() used instead of $.fn.cookieNoticePro().
  • 2026-04-26: Consent Mode v2 default-denied initialized before the GTM snippet.
  • 2026-05-08: Undefined injectScripts() calls removed from CookieNoticePro instead of adding a no-op stub.
  • Library: libraries/CookieNoticePro/.
  • Analytics denied bug fixed around line 351.
  • Additional fixes: CSS initial hide for acceptBtnSettingsLabel, Bootstrap 5 compatibility reset.
  • Consent Mode v2 init is before the GTM snippet in templates/site/layout-logged.php.
  • Reported browser error: Uncaught ReferenceError: injectScripts is not defined.
  • Root cause: libraries/CookieNoticePro/cookienoticepro.script.js called injectScripts() but this function was absent in the local library copy.
  • Applied fix: removed both injectScripts() calls from libraries/CookieNoticePro/cookienoticepro.script.js.
  • Verification passed: no injectScripts references remain, node --check passes, and layout still contains Consent Mode v2, GTM, and cookieNoticePro.init().
  • Summary: .paul/phases/04-cookie-notice-bugfix/04-01-SUMMARY.md.

Deferred Issues

None.

Blockers/Concerns

None.

Git State

Last commit: current phase commit (feat(04-cookie-notice-bugfix): fix CookieNoticePro injectScripts error) Branch: main Feature branches merged: none

Session Continuity

Last session: 2026-05-08 Stopped at: v0.3 hotfix milestone complete Next action: Start next milestone when needed Resume file: .paul/phases/04-cookie-notice-bugfix/04-01-SUMMARY.md


STATE.md - Updated after every significant action