Repository navigation
Admin Guide
The Admin Dashboard (/dashboard/admin) provides full administrative control over all content, users, and association operations.
Permissions are stored as a JSONB array in profiles.permissions. The app evaluates access using hasPermission(permissionName):
| Permission Name | Authorized Capabilities |
|---|---|
manage_news |
Create, edit, delete news articles; toggle pinned status. |
manage_events |
Create, edit, delete events; manage attendee registrations. |
manage_programs |
Create, edit, delete community programs and beneficiary lists. |
manage_projects |
Create, edit, delete development projects and supporter records. |
manage_gallery |
Upload photos to Supabase Storage, manage trilingual captions, toggle featured status. |
manage_testimonials |
Moderate, approve, or reject user-submitted testimonials. |
manage_partners |
Add, update, and remove sponsor and partner logos. |
manage_users |
View full user directory, verify membership applications, award gamification points. |
manage_donations |
View financial records from Stripe and PayPal; manually verify bank transfers. |
manage_branches |
Create and edit branch locations, addresses, and map GPS coordinates. |
manage_admins |
Grant or revoke administrative privileges for other volunteer accounts. |
super_admin |
Unrestricted global access across all administrative panels. |
- Overview: Key metrics (total volunteers, active projects, donations, pending member requests).
- News: Article publisher with multilingual title/content fields and image URL input.
- Programs & Projects: Manage goals, execution dates, and participant rosters.
- Events: Schedule association events, assign venues, and view attendee lists.
-
Gallery: Image manager with trilingual captions (
ar,fr,en) and category selection. - Partners: Manage partner organization profiles and logos.
- Users: User account management and role promotions.
- Memberships: Approval queue for new volunteer membership requests.
- Donations: Financial ledger tracking Stripe, PayPal, and bank wire contributions.
- Testimonials: Community review moderation.
- Branches: Branch chapter manager with Leaflet GPS coordinates.
- Admins: RBAC permission management for administrative team members.
Admins with the manage_admins permission can promote an existing account from Admin Dashboard > Admins > Invite new admin. The person must sign up first; the database function make_admin_by_email rejects callers without manage_admins and returns "not found" for unknown emails. The promoted user receives an in-app notification.
- Overview shows live KPIs (members, paid members and fees this year, verified donations, events and confirmed participations) and a Needs attention list. Each item shows how many things are waiting and opens the right panel; for example, Attendance to confirm opens Community βΊ Attendance. Confirming a participation gives the volunteer +20 points.
- Inbox collects problem reports (move them through open β in progress β resolved/closed) and event suggestions (approve or reject; the author is notified).
- Data rules: statuses only accept standard values (for example, donations: pending/verified/rejected; registrations: pending/confirmed/attended/rejected; reports: open/in_progress/resolved/closed).
Production Web App: https://a-a-b-v.netlify.app/
Official Email: asosoufaraelkhir48@gmail.com | GitHub Repo: Bosaj/les-ambassadeurs-web
Facebook β’ Instagram β’ X (Twitter) β’ LinkedIn β’ WhatsApp
Platform developed & maintained by Oussama ELHADJI β All Rights Reserved Β© 2026