Skip to content

[FE-55] Implement cookie consent banner with preference management #929

@mftee

Description

@mftee

Overview

Build a cookie consent banner that appears on first visit and lets users accept or decline non-essential cookies, persisting their choice. All work goes in frontend/sandbox/.

Acceptance Criteria

  • Component at frontend/sandbox/components/CookieConsentBanner.tsx
  • Appears at the bottom of the screen on first visit (no prior consent stored)
  • Two buttons: Accept All and Manage Preferences
  • Manage Preferences opens a modal with toggles for: Analytics cookies, Marketing cookies (Essential cookies always on and non-toggleable)
  • Consent choice stored in localStorage under cookie_consent
  • Banner does not reappear once a choice is made
  • Cookie Settings link in the footer re-opens the preferences modal
  • Demo page at frontend/sandbox/page.tsx includes a Reset consent button for testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions