feat(consent): load walker.js after consent and pass the state to walkerOS #28
No reviewers
Labels
No labels
Area/Admin
Area/CI
Area/Tagging
Kind/Bug
Kind/Chore
Kind/Docs
Kind/Feature
Phase/1 Grundgerüst
Phase/2 Grundattribute
Phase/3 Automatische Auszeichnung
Phase/4 Interaktionen
Phase/5 Übergang in den Shop
Phase/6 Release
Priority/High
Priority/Low
Priority/Normal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Sulu-Bundles/wsc_sulubundle_walkeros!28
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/walker-loader"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Umsetzung von #23 mit der Ladebedingung aus #27 (refs #23, refs #27).
Was neu ist
{{ wsc_elb_loader() }}(Twig, direkt nach{{ wsc_cookie_consent() }}): gibt<script defer src="/bundles/wscsuluwalkeros/walkeros-consent.js" data-walker="…">aus, dazudata-videobzw.data-userdata, wenn die Events an sind. Kein Inline-JS. Bei abgeschaltetem Tagging oder ohne Adresse gibt die Funktion nichts aus.walkeros-consent.js: setzt denelb-Stub, abonniertwindow.wscConsentund ruft bei jeder Änderungelb('walker consent', {analytics, marketing})auf, auch mitfalse(Widerruf).walker.jslädt einmal bei Analyse oder Marketing; ein unter „Analyse“ abgewählter Dienstwalkeroszählt nicht. Fehlt der Dienst im Banner, gibt das Skript eine Konsolenwarnung aus. Video- und User-Data-Skript laden erst nachwalker.js.walker.jsje Webspace: Feld im Admin-Tab „WalkerOS“ oderwalker_urlin der Konfiguration (Rangfolge Admin vor Webspace vor Standard).Service\WalkerUrllässt nur absolute http(s)-Adressen oder absolute Pfade zu, sonst gibt es einen Fehler beim Container-Build bzw. HTTP 400 im Admin.Version20261113070000: neue Spaltewalker_url. Nach dem Updatedoctrine:migrations:migrateausführen. Fehlt die Spalte, fallen die Admin-Werte auf die Konfiguration zurück.docs/consent.md(Ladebedingung als Tabelle mit Begründung),docs/theme.md,README.md,docs/architecture.md,docs/testmatrix.md,STATUS.md.Geprüft
cs-checkohne Befund, PHPStan Level 8 ohne Fehler,composer auditsauber.v2026-11-4, Attrappe vonwalker.js), alle fünf Fälle ok:elb-Aufruf, nichts geladen.walker.jswird nicht angefragt,false/falsekommt an.walker.jslädt, mit Warnung.walker.jslädt mitanalytics: false.false/falsean.Offen (bleibt in #23)
walkerosabgewählt“ im DDEV: Der Dienst fehlt in der dortigen Datenbank.🤖 Generated with Claude Code
The bundle now loads walker.js itself, since consentanalytics is archived. wsc_elb_loader() renders a deferred script tag for walkeros-consent.js with the walker.js address in a data attribute (no inline JS). The script sets the elb stub, subscribes to window.wscConsent, calls elb('walker consent') on every state including withdrawal, and loads walker.js with analytics or marketing consent; a walkeros service deselected under analytics does not count (#27). Video and user data scripts load after walker.js. The address is set per webspace in the admin tab or as walker_url in the configuration (admin before webspace before default) and is validated as an absolute http(s) URL or absolute path. New column walker_url, migration Version20261113070000. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>