Skip to content

Admin: Privacy settings page #225

@tayebmokni

Description

@tayebmokni

Summary

Add a Privacy settings page in the admin at /admin/settings/privacy. Uses the JSON-Schema-driven <SchemaForm> against the privacy schema from the settings registry. Fields: privacy.policy_page_id (page picker), privacy.cookie_banner (boolean), plus retention defaults. This is a thin UI on top of the existing settings registry — a contained good-first-issue once the registry lands.

Design reference

  • docs/05-admin-api.md §2.6 (Settings — Privacy page)

Acceptance criteria

  • /admin/settings/privacy/page.tsx exists and renders <SchemaForm page="privacy">
  • privacy.policy_page_id registered as a string schema with a page-picker UI widget
  • privacy.cookie_banner boolean toggle
  • Save bar shows pending state; success toast on save
  • Validation errors surface inline against fields
  • Capability gate: manage_options

Dependencies

Depends on Settings registry.

Complexity

XS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions