Skip to content

Fix consent managment load#78

Merged
lazaki merged 21 commits intomasterfrom
fix-consent-managment-load
Mar 24, 2026
Merged

Fix consent managment load#78
lazaki merged 21 commits intomasterfrom
fix-consent-managment-load

Conversation

@lazaki
Copy link
Copy Markdown
Collaborator

@lazaki lazaki commented Mar 20, 2026

Closes #
Fixed consent management locale loading so it no longer defaults to German and now resolves the correct language from app/user locale settings.
Changelog
New

  • Added locale resolution fallback logic for consent management initialization.
    Changed
  • Updated consent management script/config loading to use the detected locale instead of always de. - Improved language mapping/normalization handling for supported locales.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to fix consent manager initialization so the correct locale’s consent script is loaded (and re-loaded) rather than ending up with stale/default language behavior, and updates repository automation around registry/lockfile handling.

Changes:

  • Update consent manager loader to de-dupe concurrent requests and remove previously injected consent-manager scripts before injecting the new locale.
  • Adjust root update:registry script (JFrog URL) and remove the “Update npm registry” step from CI.
  • Regenerate/update multiple package package-lock.json files.

Reviewed changes

Copilot reviewed 3 out of 13 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/utils/src/integration/integration.ts Adds request de-duping and script cleanup for consent manager script injection.
.github/workflows/continuous.yml Removes the workflow step that ran npm run update:registry.
package.json Updates the registry replacement URL used by update:registry.
packages/validators/package-lock.json Lockfile updated; notably drops entries for internal deps.
packages/validators-vue/package-lock.json Lockfile updated; notably drops entries for internal deps.
packages/validators-angular/package-lock.json Lockfile updated; notably drops entries for internal deps.
packages/pipes/package-lock.json Lockfile updated; notably drops entries for internal deps.
packages/pipes-vue/package-lock.json Lockfile updated; notably drops entries for internal deps.
packages/pipes-angular/package-lock.json Lockfile updated; notably drops entries for internal deps.
packages/form-vue/package-lock.json Lockfile updated; notably drops entries for internal deps.
packages/utils/package-lock.json Lockfile formatting update (EOF change).
packages/unsupported-browsers/package-lock.json Lockfile updated (metadata/EOF changes).
packages/clean-architecture/package-lock.json Lockfile formatting update (EOF change).
Files not reviewed (8)
  • packages/form-vue/package-lock.json: Language not supported
  • packages/pipes-angular/package-lock.json: Language not supported
  • packages/pipes-vue/package-lock.json: Language not supported
  • packages/pipes/package-lock.json: Language not supported
  • packages/unsupported-browsers/package-lock.json: Language not supported
  • packages/validators-angular/package-lock.json: Language not supported
  • packages/validators-vue/package-lock.json: Language not supported
  • packages/validators/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 9 to 13
"version": "3.17.0",
"license": "Apache-2.0",
"dependencies": {
"@baloise/web-app-utils": "^3.17.0",
"date-fns": "^2.28.0",
"lodash.capitalize": "^4.2.1",
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

package-lock.json no longer lists @baloise/web-app-utils under the root package dependencies (and its node_modules/@baloise/web-app-utils entry was removed), but packages/validators/package.json still declares @baloise/web-app-utils as a dependency. This makes the lockfile inconsistent with the manifest and can lead to incorrect installs (e.g., npm ci not installing required runtime deps). Regenerate this lockfile from the package manifest (or revert the dependency removal) so the lock reflects the declared dependencies.

Copilot uses AI. Check for mistakes.
Comment on lines 9 to 13
"version": "3.17.0",
"license": "Apache-2.0",
"dependencies": {
"@baloise/web-app-utils": "^3.17.0",
"lodash.capitalize": "^4.2.1",
"lodash.isarray": "^4.0.0",
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

package-lock.json no longer lists @baloise/web-app-utils under the root package dependencies (and its node_modules/@baloise/web-app-utils entry was removed), but packages/pipes/package.json still declares @baloise/web-app-utils as a dependency. This makes the lockfile inconsistent with the manifest and can lead to incorrect installs. Regenerate this lockfile from the package manifest (or revert the dependency removal) so the lock reflects the declared dependencies.

Copilot uses AI. Check for mistakes.
Comment on lines 9 to 13
"version": "3.17.0",
"license": "Apache-2.0",
"dependencies": {
"@baloise/web-app-validators": "^3.17.0",
"lodash.isarray": "^4.0.0"
},
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

package-lock.json no longer lists @baloise/web-app-validators under the root package dependencies (and the corresponding node_modules/@baloise/web-app-validators entry was removed), but packages/validators-vue/package.json still declares @baloise/web-app-validators as a dependency. This makes the lockfile inconsistent with the manifest and can lead to incorrect installs. Regenerate this lockfile from the package manifest (or revert the dependency removal) so the lock reflects the declared dependencies.

Copilot uses AI. Check for mistakes.
Comment on lines 9 to 13
"version": "3.17.0",
"license": "Apache-2.0",
"dependencies": {
"@baloise/web-app-validators": "^3.17.0",
"tslib": "^2.2.0"
},
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

package-lock.json no longer lists @baloise/web-app-validators under the root package dependencies (and the corresponding node_modules/@baloise/web-app-validators entry was removed), but packages/validators-angular/package.json still declares @baloise/web-app-validators as a dependency. This makes the lockfile inconsistent with the manifest and can lead to incorrect installs. Regenerate this lockfile from the package manifest (or revert the dependency removal) so the lock reflects the declared dependencies.

Copilot uses AI. Check for mistakes.
@nobilo nobilo self-assigned this Mar 23, 2026
const removeInjectedConsentManagerScripts = (): void => {
const scripts = document.querySelectorAll(`script[${CONSENT_MANAGER_SCRIPT_ATTRIBUTE}="true"]`)
scripts.forEach(script => script.parentNode?.removeChild(script))
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

works?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes

@lazaki lazaki requested review from baengel and svene March 23, 2026 15:02
@baloise baloise deleted a comment from Copilot AI Mar 24, 2026
@baloise baloise deleted a comment from Copilot AI Mar 24, 2026
@baloise baloise deleted a comment from Copilot AI Mar 24, 2026
@baloise baloise deleted a comment from Copilot AI Mar 24, 2026
@lazaki lazaki merged commit 2870e8e into master Mar 24, 2026
1 check passed
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