Skip to content

Add cookie banner and privacy policy page - #6

Merged
JinxiangChen22 merged 2 commits into
mainfrom
baseline-legal-compliance
May 15, 2026
Merged

Add cookie banner and privacy policy page#6
JinxiangChen22 merged 2 commits into
mainfrom
baseline-legal-compliance

Conversation

@HuffmanJoey

Copy link
Copy Markdown
Collaborator

Summary

This PR implements the Legal Compliance baseline requirement for CPT304 Coursework 1.

Changes

  • Added a dedicated Privacy Policy page at /privacy
  • Added a functional cookie banner
  • Added Accept and Decline actions for cookie consent
  • Saved the user’s cookie preference in localStorage
  • Added tests for the Privacy Policy route
  • Confirmed existing tests still pass

我已经完成 Legal Compliance baseline 的实现,并开了 PR。

主要内容:

  1. 新增 /privacy Privacy Policy 页面
  2. 新增 functional Cookie Banner
  3. Accept/Decline 后会保存用户选择到 localStorage
  4. 增加了 /privacy 的测试,npm test 已通过

麻烦 review 一下。

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
taskify Ready Ready Preview, Comment May 13, 2026 7:57pm

@codecov

codecov Bot commented May 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/app.js 95.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@JinxiangChen22
JinxiangChen22 merged commit d35d64b into main May 15, 2026
4 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.

2 participants