Update codeowners to allow for self edits of privacy
1. Change Summary
This MR makes three related changes to the privacy pages and their CMS configuration:
CODEOWNERS
- Added
/content/en-us/privacy/to CODEOWNERS to scope approval requirements for privacy content edits.
Privacy template (app/components/templates/Privacy.vue)
- Added a new
Privacypage template supporting a side navigation panel, an optional intro section above the nav, and the main markdown content body. - Navigation links are defined explicitly in the page YAML (rather than auto-inferred from headings), giving content editors full control.
- Uses
overflow-y: autoon the side nav so a scrollbar only appears when content actually overflows.
Privacy content files
- Migrated all three privacy pages (
Privacy Statement,Cookie Policy,U.S. State Privacy Rights) to a structuredcontent: { intro, content, nav }YAML schema. - Each page now has an explicit
navlist defining the side navigation links and their anchor IDs. - The
Privacy Statement(index.yml) has no intro section; the other two pages use the intro for their preamble content.
Decap CMS (public/admin/pages/)
- Added a new
PagesCMS dashboard at/admin/pages/with a files-based collection covering all three privacy pages. - All three pages share the same
contentWithIntroFieldsschema in the CMS config, which includesintro(optional markdown),content(markdown), andnav(list of{ text, id }items).
2. Testing Steps
- Visit each privacy page and confirm the side navigation renders correctly with the expected links
- Click each nav link and confirm it scrolls to the correct section
- On the Cookie Policy and U.S. State pages, confirm the intro section renders above the side nav
- On the Privacy Statement page, confirm there is no intro section and the content renders directly
- On a short privacy page, confirm the side nav does not show an unnecessary scrollbar (verifying
overflow-y: auto) - Visit
/admin/pages/and confirm all three privacy pages are editable via the CMS, with Intro, Content, and Navigation fields visible. See the Decap local development guide for steps on running the CMS locally.
Edited by Chris Fraser