Skip to content

feat(consent): version consent records and re-prompt on policy change (#1185) - #1282

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
OpensrcLord:fix/issue-1185
Aug 29, 2026
Merged

feat(consent): version consent records and re-prompt on policy change (#1185)#1282
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
OpensrcLord:fix/issue-1185

Conversation

@OpensrcLord

Copy link
Copy Markdown
Contributor

Summary

Closes #1185

Tracks the policy version accepted with each consent decision and invalidates consent when the policy version is bumped, so returning users are re-prompted.

  • src/lib/consent/constants.tsCONSENT_POLICY_VERSION
  • src/lib/consent/types.tsacceptedPolicyVersion on the consent schema and default state
  • src/lib/consent/store.ts — records the accepted version and invalidates consent on version change
  • Adds unit tests for versioning, re-prompting, and persistence

Verification

tsc clean; consent suite: 33 passing.

Track the policy version accepted by each consent decision and invalidate
consent whenever the policy is bumped, re-prompting returning users.

Closes rinafcode#1185
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@OpensrcLord Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit c6a6b31 into rinafcode:main Aug 29, 2026
6 checks 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.

Version consent records and re-prompt on policy change

2 participants