Files
libra/docs/tasks/6-9.md
T
Naser Mansour 7f35297025 Mark all libra tasks Done — confirmed live in production ~1 year
Naser confirmed all remaining QA Review / Draft rows (97 subtasks, 16
parent rollups) are done in substance: the site has been in production
for roughly a year. Overrides the conservative QA-Review/Draft mapping
from the prior takeover commit (0f9d12c) at his explicit instruction.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-27 22:04:04 +03:00

1.4 KiB

id, title, status, date, parent
id title status date parent
6-9 6-9 Legal Pages Editor Done 2026-09-27 6

Description

As an admin, I want to edit Terms of Service and Privacy Policy pages, So that I can maintain legal compliance and update policies. This project uses class-based Volt components for interactivity. Follow existing patterns in resources/views/livewire/. Full implementation history: docs/stories/story-6.9-legal-pages-editor.md

Acceptance Criteria

  • Terms of Service (/page/terms)
  • Privacy Policy (/page/privacy)
  • Rich text editor using Quill.js (lightweight, RTL-friendly)
  • Bilingual content with Arabic/English tabs in editor UI
  • Save and publish button updates database immediately
  • Preview opens modal showing rendered content in selected language
  • HTML content sanitized before save (prevent XSS)
  • Accessible under Admin Dashboard > Settings section
  • Sidebar item: "Legal Pages" or integrate into Settings page
  • List view showing both pages with "Edit" action
  • Edit page shows language tabs (Arabic | English) above editor
  • Pages accessible from footer links (no auth required)
  • Route: /page/{slug} where slug is terms or privacy
  • Content displayed in user's current language preference
  • Last updated timestamp displayed at bottom of page
  • Professional layout consistent with site design (navy/gold)