# mohammed-hindi/mafhroui-vue architecture

> Architecture diagram of the GitHub repository mohammed-hindi/mafhroui-vue, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohammed-hindi/mafhroui-vue
- Repository: https://github.com/mohammed-hindi/mafhroui-vue

## Overview

Mashroui is a Vue frontend for graduation-project management, with a public marketing/archive site and role-based portals for students, supervisors, committee members, and administrators. Users authenticate, enter the dashboard for their role, and manage project teams and proposals through tasks, meetings, reviews, and progress tracking; the frontend sends requests to a Laravel API, scoped by the active academic term. The graph preserves the README’s major capabilities, including discussions, announcements, and reporting. Some feature connections are documented only at a high level, so those edges cite the README rather than unsampled implementation.

Main entry points: [`src/services/api.js`](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/services/api.js) (HTTP client), [`src/layouts/DashboardLayout.vue`](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/layouts/DashboardLayout.vue) (Role dashboards), [`src/router/index.js`](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/router/index.js) (Route assembly), [`src/stores/auth.store.js`](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/stores/auth.store.js) (Session and role)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public site"]
  node_landing["Marketing and archive"]
end

subgraph group_access["Identity and navigation"]
  node_authpages["Login and magic login"]
  node_router["Route assembly<br/>[index.js]"]
  node_guards["Access guards<br/>[guards.js]"]
  node_authstore["Session and role<br/>[auth.store.js]"]
  node_dashboard["Role dashboards"]
end

subgraph group_workflow["Project workflow"]
  node_teamadmin["Teams and members<br/>[MembersPage.vue]"]
  node_proposals["Proposal workflow"]
  node_tasks["Task management<br/>[TaskBoard.vue]"]
  node_taskadmin["Task assignment<br/>[TasksWorkspace.vue]"]
  node_meetings["Meetings and schedule<br/>[MeetingsPage.vue]"]
  node_discussions["Discussions"]
  node_evaluation["Evaluation and review"]
  node_progress["Progress tracking<br/>[progressData.js]"]
  node_announcements["Announcements"]
  node_reports["Report exports<br/>[ucasReports.js]"]
end

subgraph group_platform["Frontend services"]
  node_teamsstore["Team data store<br/>[teams.store.js]"]
  node_api["HTTP client<br/>[api.js]"]
end

node_visitor(("Visitor or user"))
node_backend{{"Mashroui Laravel API"}}

node_visitor -->|"browses"| node_landing
node_visitor -->|"signs in"| node_authpages
node_landing -->|"routes through"| node_router
node_authpages -->|"authenticates with"| node_authstore
node_authstore -->|"sends credentials"| node_api
node_router -->|"checks access"| node_guards
node_guards -.->|"checks session"| node_authstore
node_router -->|"routes role pages"| node_dashboard
node_dashboard -->|"serves portal"| node_visitor
node_dashboard -->|"hosts team pages"| node_teamadmin
node_dashboard -->|"hosts review pages"| node_proposals
node_dashboard -->|"hosts task pages"| node_tasks
node_dashboard -->|"hosts meeting pages"| node_meetings
node_dashboard -->|"hosts evaluation pages"| node_evaluation
node_teamadmin -.->|"manages teams"| node_teamsstore
node_tasks -->|"renders assignment tool"| node_taskadmin
node_taskadmin -->|"manages assignments"| node_api
node_proposals -->|"reviews proposals"| node_api
node_evaluation -->|"submits evaluations"| node_api
node_teamsstore -->|"requests team data"| node_api
node_progress -->|"fetches progress"| node_api
node_meetings -.->|"manages meetings"| node_backend
node_discussions -.->|"supports discussions"| node_backend
node_announcements -->|"manages announcements"| node_api
node_api -->|"sends API requests"| node_backend
node_api -->|"scopes by term"| node_backend
node_progress -.->|"informs reporting"| node_reports

click node_landing "https://github.com/mohammed-hindi/mafhroui-vue/tree/main/src/views/landing"
click node_authpages "https://github.com/mohammed-hindi/mafhroui-vue/tree/main/src/views/auth"
click node_router "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/router/index.js"
click node_guards "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/router/guards.js"
click node_authstore "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/stores/auth.store.js"
click node_dashboard "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/layouts/DashboardLayout.vue"
click node_teamadmin "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/committee/MembersPage.vue"
click node_proposals "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/super-admin/ProposalsReview.vue"
click node_tasks "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/components/shared/TaskBoard.vue"
click node_taskadmin "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/super-admin/TasksWorkspace.vue"
click node_meetings "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/supervisor/MeetingsPage.vue"
click node_discussions "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/stores/discussions.store.js"
click node_evaluation "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/super-admin/EvaluationSheet.vue"
click node_progress "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/utils/progressData.js"
click node_announcements "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/super-admin/AnnouncementsDesk.vue"
click node_reports "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/utils/ucasReports.js"
click node_teamsstore "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/stores/teams.store.js"
click node_api "https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/services/api.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_landing,node_visitor,node_backend toneBlue
class node_authpages,node_router,node_guards,node_authstore,node_dashboard toneAmber
class node_teamadmin,node_proposals,node_tasks,node_taskadmin,node_meetings,node_discussions,node_evaluation,node_progress,node_announcements,node_reports toneMint
class node_teamsstore,node_api toneRose
```

## Components

### Public site

- [Marketing and archive](https://github.com/mohammed-hindi/mafhroui-vue/tree/main/src/views/landing): `src/views/landing`

### Identity and navigation

- [Login and magic login](https://github.com/mohammed-hindi/mafhroui-vue/tree/main/src/views/auth): `src/views/auth`
- [Route assembly](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/router/index.js): `src/router/index.js`
- [Access guards](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/router/guards.js): `src/router/guards.js`
- [Session and role](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/stores/auth.store.js): `src/stores/auth.store.js`
- [Role dashboards](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/layouts/DashboardLayout.vue): `src/layouts/DashboardLayout.vue`

### Project workflow

- [Teams and members](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/committee/MembersPage.vue): `src/views/committee/MembersPage.vue`
- [Proposal workflow](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/super-admin/ProposalsReview.vue): `src/views/super-admin/ProposalsReview.vue`
- [Task management](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/components/shared/TaskBoard.vue): `src/components/shared/TaskBoard.vue`
- [Task assignment](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/super-admin/TasksWorkspace.vue): `src/views/super-admin/TasksWorkspace.vue`
- [Meetings and schedule](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/supervisor/MeetingsPage.vue): `src/views/supervisor/MeetingsPage.vue`
- [Discussions](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/stores/discussions.store.js): `src/stores/discussions.store.js`
- [Evaluation and review](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/super-admin/EvaluationSheet.vue): `src/views/super-admin/EvaluationSheet.vue`
- [Progress tracking](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/utils/progressData.js): `src/utils/progressData.js`
- [Announcements](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/views/super-admin/AnnouncementsDesk.vue): `src/views/super-admin/AnnouncementsDesk.vue`
- [Report exports](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/utils/ucasReports.js): `src/utils/ucasReports.js`

### Frontend services

- [Team data store](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/stores/teams.store.js): `src/stores/teams.store.js`
- [HTTP client](https://github.com/mohammed-hindi/mafhroui-vue/blob/main/src/services/api.js): `src/services/api.js`

### Other components

- **Visitor or user**
- **Mashroui Laravel API**

## Connections

- Visitor or user → Marketing and archive: browses
- Visitor or user → Login and magic login: signs in
- Marketing and archive → Route assembly: routes through (evidence: `src/router/index.js`)
- Login and magic login → Session and role: authenticates with (evidence: `src/stores/auth.store.js`)
- Session and role → HTTP client: sends credentials (evidence: `src/stores/auth.store.js`)
- Route assembly → Access guards: checks access (evidence: `src/router/index.js`)
- Access guards → Session and role: checks session
- Route assembly → Role dashboards: routes role pages
- Role dashboards → Visitor or user: serves portal
- Role dashboards → Teams and members: hosts team pages (evidence: `src/router/routes/committee.routes.js`)
- Role dashboards → Proposal workflow: hosts review pages (evidence: `src/router/routes/supervisor.routes.js`)
- Role dashboards → Task management: hosts task pages
- Role dashboards → Meetings and schedule: hosts meeting pages (evidence: `src/router/routes/supervisor.routes.js`)
- Role dashboards → Evaluation and review: hosts evaluation pages (evidence: `src/router/routes/super-admin.routes.js`)
- Teams and members → Team data store: manages teams
- Task management → Task assignment: renders assignment tool (evidence: `src/views/committee/MyTasksPage.vue`)
- Task assignment → HTTP client: manages assignments (evidence: `src/views/super-admin/TasksWorkspace.vue`)
- Proposal workflow → HTTP client: reviews proposals (evidence: `src/views/super-admin/ProposalsReview.vue`)
- Evaluation and review → HTTP client: submits evaluations (evidence: `src/views/super-admin/EvaluationSheet.vue`)
- Team data store → HTTP client: requests team data (evidence: `src/stores/teams.store.js`)
- Progress tracking → HTTP client: fetches progress (evidence: `src/utils/progressData.js`)
- Meetings and schedule → Mashroui Laravel API: manages meetings
- Discussions → Mashroui Laravel API: supports discussions
- Announcements → HTTP client: manages announcements (evidence: `src/views/super-admin/AnnouncementsDesk.vue`)
- HTTP client → Mashroui Laravel API: sends API requests
- HTTP client → Mashroui Laravel API: scopes by term
- Progress tracking → Report exports: informs reporting
