feat(pages): add admin pages UI and public page rendering (#148)
* feat(pages): add admin pages UI and public page rendering
Add frontend for the admin pages mini-CMS feature, replacing hardcoded
/legal/* routes with dynamic CMS-powered pages served at /p/{slug}.
Changes:
- Page types and 7 API client functions (public + admin)
- Admin pages list at /admin/pages with tree display and CRUD
- Admin page editor at /admin/pages/[id] with markdown write/preview,
slug auto-generation, parent page select, and meta description
- PageForm extracted as reusable component (<150 lines each)
- Public page rendering at /p/[slug] with JSON-LD WebPage, OpenGraph,
breadcrumbs, and sanitized markdown content
- PageRow recursive tree component with status badges
- Admin nav: added Pages item with Article icon
- Footer links updated: /legal/* -> /p/*
- Deleted 6 hardcoded legal page files (3 pages + 3 tests)
- MSW handlers and mock data for all page endpoints
- 935 tests pass, TypeScript clean
Closes barazo-forum/barazo-workspace#TBD
* style(pages): fix Prettier formatting in 4 files
authored by