Skip to content

docs: update vue-privacy to 2.0.2 and wire the preference centre - #669

Merged
polaz merged 2 commits into
mainfrom
docs/#668-vue-privacy
Oct 14, 2026
Merged

polaz merged 2 commits into
mainfrom
docs/#668-vue-privacy

Conversation

@polaz

@polaz polaz commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The docs site runs @structured-world/vue-privacy 2.0.2 and its preference centre works.

Changes

  • Update @structured-world/vue-privacy to 2.0.2.
  • Mount ConsentPreferenceModal beside the banner, so the banner's "Customize" opens the preference centre (it opened nothing before).
  • Declare usedCategories: ['analytics']: the site measures visits only, so marketing and functional are neither offered nor granted by "Accept all". vue-privacy limits every stored and restored choice to these categories, so earlier choices need no new consent version.
  • A "Cookie settings" button on every page reopens the preference centre, so a visitor can review or withdraw consent after choosing.
  • The GA4 search, download and outbound link trackers are bound to the consent manager in the tracker component's setup; called from event handlers, useConsent() could not inject it and those events were never sent.

Testing

  • The docs site builds. On the built site the preference centre opens from the banner and from the cookie settings button and lists only the necessary and analytics categories, the consent default keeps every ad_* signal denied, and an outbound click with analytics allowed reaches the data layer.
  • Lint passes. The full suite fails on three tests that fail on main as well (the closing_issues and removeLabelIds integration tests and the pool test reading timeouts from .env.test); feat(settings): add per-account settings, native settings page and connection panel #662 fixes them.

Closes #668

- Update @structured-world/vue-privacy to 2.0.2.
- The banner's "Customize" button opened nothing: the site never mounted
  ConsentPreferenceModal. It is now mounted beside the banner.
- The site measures visits only, so it declares usedCategories:
  ['analytics']; marketing and functional are no longer offered or
  granted by "Accept all".

Closes #668
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T14:44:40.781585Z 82ed39f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: structured-world/gitlab-mcp/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: e73d418d-5f93-4a3c-a0ed-8a1abd6c4dbf
📥 Commits

Reviewing files that changed from the base of the PR and between a68744d and 82ed39f.

📒 Files selected for processing: 4
  • packages/gitlab-mcp/docs/.vitepress/theme/components/CookieSettingsButton.vue
  • packages/gitlab-mcp/docs/.vitepress/theme/components/GA4EventTracker.vue
  • packages/gitlab-mcp/docs/.vitepress/theme/composables/useGA4Tracking.ts
  • packages/gitlab-mcp/docs/.vitepress/theme/index.ts

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: structured-world/gitlab-mcp/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 940ef4e0-33b5-45e7-a680-7aee39a71854
📥 Commits

Reviewing files that changed from the base of the PR and between f5c27f3 and a68744d.

⛔ Files ignored due to path filters: 1
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing: 2
  • packages/gitlab-mcp/docs/.vitepress/theme/index.ts
  • packages/gitlab-mcp/package.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The docs theme now declares analytics as its used consent category and renders a consent-preference modal. The @structured-world/vue-privacy devDependency range changes from ^2.0.1 to ^2.0.2.

Changes: Docs consent preference center

Layer / File(s) Summary
Configure and render consent preferences
packages/gitlab-mcp/docs/.vitepress/theme/index.ts, packages/gitlab-mcp/package.json
The theme declares analytics as its used category and renders ConsentPreferenceModal beside the consent banner. The @structured-world/vue-privacy devDependency range changes to ^2.0.2.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to a6874

The docs theme adds an analytics preference centre and resolves the privacy package to 2.0.2. No concrete merge-blocking failure is established; proceed with normal checks.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Linked Issues check Passed PR #668 requires vue-privacy 2.0.2, usedCategories: ['analytics'], and a mounted ConsentPreferenceModal. The reviewed changes update packages/gitlab-mcp/package.json from ^2.0.1 to ^2.0.2 an…
Out of Scope Changes check Passed The reviewed changes are limited to the docs site's vue-privacy dependency and consent configuration. The dependency update, analytics-only category declaration, modal mount, and related comment updat…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly summarizes the two main changes: updating @structured-world/vue-privacy to 2.0.2 and wiring the preference centre.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a68744da5a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/gitlab-mcp/docs/.vitepress/theme/index.ts
Comment thread packages/gitlab-mcp/docs/.vitepress/theme/index.ts
- Once a visitor had chosen, nothing on the site reopened the
  preference centre, so consent could not be reviewed or withdrawn. A
  "Cookie settings" button now opens it on every page.
- The search, download and outbound link events were never sent: the
  trackers called useConsent() from event handlers, where it cannot
  inject the consent manager, and the error was swallowed. The trackers
  are now bound to the manager in the tracker component's setup.

Checked on the built site: the button opens the preference centre, and
an outbound click with analytics allowed reaches the data layer (it did
not before).
@polaz

polaz commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

@codex review

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 82ed39fcf7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@polaz
polaz merged commit 4dae65d into main Oct 14, 2026
19 checks passed
@polaz
polaz deleted the docs/#668-vue-privacy branch October 14, 2026 21:00
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.

docs: update vue-privacy to 2.0.2 and wire the preference centre

1 participant