Skip to content

feat(admin): Add custom discovery pages management #300

@DigitalDaDie

Description

@DigitalDaDie

Feature Summary

Add custom discovery pages management in admin panel

Problem Statement

Currently, the discovery section has fixed pages. Administrators need the ability to dynamically add custom pages with custom routes to the discovery section, allowing for flexible content management and better user experience customization.

Proposed Solution

Implement a complete discovery pages management system with the following components:

Database Layer:

  • Create discovery_pages table with fields: route, title, description, icon, content (JSONB), active status, display order
  • Implement RLS policies for admin management and user viewing
  • Add validation constraints for route format

Admin Interface:

  • Add "Discovery Pages" menu item in admin panel
  • Create page list UI showing all discovery pages with status
  • Implement add/edit form for creating new pages
  • Add route validation and duplicate checking
  • Enable drag-and-drop reordering by display_order

Service Layer:

  • Create discovery service for CRUD operations
  • Implement route validation logic
  • Add permissions checking

Implementation Plan:

  1. ✅ Database migration for discovery_pages table
  2. Basic admin page route structure
  3. I18n translations
  4. Service layer implementation
  5. UI components (list, form)
  6. CRUD operations
  7. Route validation and testing

Additional Context

This feature will enable administrators to:

  • Create custom discovery pages with unique routes
  • Manage page visibility (active/inactive)
  • Control display order
  • Use Lucide icons for visual consistency
  • Store flexible content in JSONB format for future extensibility

Contribution

  • I can help with frontend development
  • I can help with testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureRequest for a brand-new capability.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions