# ajayjames027/feedback architecture

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

- Interactive diagram: https://gitdiagram.com/ajayjames027/feedback
- Repository: https://github.com/ajayjames027/feedback

## Overview

This Flask application collects segregated faculty curricular feedback and provides IQAC administrators with submission tracking, analytics, response exports, and a printable audit report. Faculty select their roster entry, complete and submit the feedback form, and receive a confirmation; administrators use separate views to monitor compliance and analyze submitted responses. The excerpts establish the backend, database, analytics, and roster-sync relationships. The README documents the major portal capabilities; unsampled template behavior is represented at the template-directory level.

Main entry points: [`app.py`](https://github.com/ajayjames027/feedback/blob/main/app.py) (Flask Routes), [`database.py`](https://github.com/ajayjames027/feedback/blob/main/database.py) (SQLite Data Access), [`sync_roster.py`](https://github.com/ajayjames027/feedback/blob/main/sync_roster.py) (Roster Synchronizer), [`templates/form.html`](https://github.com/ajayjames027/feedback/blob/main/templates/form.html) (Feedback Form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Faculty Feedback"]
  node_feedback_form["Feedback Form<br/>[form.html]"]
  node_roster_selector["Faculty Selector<br/>[form.html]"]
  node_confirmation["Submission Confirmation"]
end

subgraph group_admin["IQAC Administration"]
  node_tracking["Submission Tracker"]
  node_dashboard["Analytics Dashboard<br/>[dashboard.html]"]
  node_response_explorer["Response Explorer<br/>[responses.html]"]
  node_audit_report["IQAC Audit Report<br/>[report.html]"]
end

subgraph group_backend["Application Services"]
  node_flask_app["Flask Routes<br/>[app.py]"]
  node_analytics["Analytics Engine"]
end

subgraph group_data["Roster and Records"]
  node_database[("SQLite Data Access<br/>[database.py]")]
  node_roster_sync["Roster Synchronizer<br/>[sync_roster.py]"]
  node_faculty_roster[("Faculty Roster<br/>[feedback.db]")]
  node_response_records[("Feedback Responses<br/>[feedback.db]")]
  node_roster_workbook["Master Roster Workbook"]
  node_seed_generator["Sample Response Generator<br/>[seed_data.py]"]
end

node_faculty(("Faculty"))
node_iqac(("IQAC Admin"))

node_faculty -->|"completes"| node_feedback_form
node_feedback_form -->|"selects faculty"| node_roster_selector
node_roster_selector -->|"requests faculty"| node_flask_app
node_flask_app -->|"looks up roster"| node_database
node_database -.->|"reads roster"| node_faculty_roster
node_feedback_form -->|"submits response"| node_flask_app
node_flask_app -->|"saves response"| node_database
node_database -.->|"stores response"| node_response_records
node_flask_app -->|"renders confirmation"| node_confirmation
node_iqac -->|"monitors submissions"| node_tracking
node_iqac -->|"reviews analytics"| node_dashboard
node_iqac -->|"explores responses"| node_response_explorer
node_iqac -->|"reviews audit"| node_audit_report
node_tracking -->|"requests tracking"| node_flask_app
node_dashboard -->|"requests analytics"| node_flask_app
node_response_explorer -->|"requests responses"| node_flask_app
node_audit_report -->|"requests report"| node_flask_app
node_flask_app -->|"loads responses"| node_database
node_flask_app -->|"computes analytics"| node_analytics
node_analytics -->|"loads responses"| node_database
node_flask_app -->|"syncs roster"| node_roster_sync
node_roster_sync -->|"reads workbook"| node_roster_workbook
node_roster_sync -->|"updates roster"| node_faculty_roster
node_seed_generator -->|"syncs roster"| node_roster_sync
node_seed_generator -->|"creates sample responses"| node_database

click node_feedback_form "https://github.com/ajayjames027/feedback/blob/main/templates/form.html"
click node_roster_selector "https://github.com/ajayjames027/feedback/blob/main/templates/form.html"
click node_confirmation "https://github.com/ajayjames027/feedback/blob/main/templates/faculty_success.html"
click node_flask_app "https://github.com/ajayjames027/feedback/blob/main/app.py"
click node_analytics "https://github.com/ajayjames027/feedback/blob/main/analytics_engine.py"
click node_database "https://github.com/ajayjames027/feedback/blob/main/database.py"
click node_roster_sync "https://github.com/ajayjames027/feedback/blob/main/sync_roster.py"
click node_faculty_roster "https://github.com/ajayjames027/feedback/blob/main/feedback.db"
click node_response_records "https://github.com/ajayjames027/feedback/blob/main/feedback.db"
click node_roster_workbook "https://github.com/ajayjames027/feedback/blob/main/Faculty_2026_2027.xlsx"
click node_tracking "https://github.com/ajayjames027/feedback/blob/main/templates/admin_tracking.html"
click node_dashboard "https://github.com/ajayjames027/feedback/blob/main/templates/dashboard.html"
click node_response_explorer "https://github.com/ajayjames027/feedback/blob/main/templates/responses.html"
click node_audit_report "https://github.com/ajayjames027/feedback/blob/main/templates/report.html"
click node_seed_generator "https://github.com/ajayjames027/feedback/blob/main/seed_data.py"

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_feedback_form,node_roster_selector,node_confirmation toneBlue
class node_tracking,node_dashboard,node_response_explorer,node_audit_report toneAmber
class node_flask_app,node_analytics toneMint
class node_database,node_roster_sync,node_faculty_roster,node_response_records,node_roster_workbook,node_seed_generator toneRose
class node_faculty,node_iqac toneIndigo
```

## Components

### Faculty Feedback

- [Feedback Form](https://github.com/ajayjames027/feedback/blob/main/templates/form.html): `templates/form.html`
- [Faculty Selector](https://github.com/ajayjames027/feedback/blob/main/templates/form.html): `templates/form.html`
- [Submission Confirmation](https://github.com/ajayjames027/feedback/blob/main/templates/faculty_success.html): `templates/faculty_success.html`

### IQAC Administration

- [Submission Tracker](https://github.com/ajayjames027/feedback/blob/main/templates/admin_tracking.html): `templates/admin_tracking.html`
- [Analytics Dashboard](https://github.com/ajayjames027/feedback/blob/main/templates/dashboard.html): `templates/dashboard.html`
- [Response Explorer](https://github.com/ajayjames027/feedback/blob/main/templates/responses.html): `templates/responses.html`
- [IQAC Audit Report](https://github.com/ajayjames027/feedback/blob/main/templates/report.html): `templates/report.html`

### Application Services

- [Flask Routes](https://github.com/ajayjames027/feedback/blob/main/app.py): `app.py`
- [Analytics Engine](https://github.com/ajayjames027/feedback/blob/main/analytics_engine.py): `analytics_engine.py`

### Roster and Records

- [SQLite Data Access](https://github.com/ajayjames027/feedback/blob/main/database.py): `database.py`
- [Roster Synchronizer](https://github.com/ajayjames027/feedback/blob/main/sync_roster.py): `sync_roster.py`
- [Faculty Roster](https://github.com/ajayjames027/feedback/blob/main/feedback.db): `feedback.db`
- [Feedback Responses](https://github.com/ajayjames027/feedback/blob/main/feedback.db): `feedback.db`
- [Master Roster Workbook](https://github.com/ajayjames027/feedback/blob/main/Faculty_2026_2027.xlsx): `Faculty_2026_2027.xlsx`
- [Sample Response Generator](https://github.com/ajayjames027/feedback/blob/main/seed_data.py): `seed_data.py`

### Other components

- **Faculty**
- **IQAC Admin**

## Connections

- Faculty → Feedback Form: completes (evidence: `README.md`)
- Feedback Form → Faculty Selector: selects faculty (evidence: `README.md`)
- Faculty Selector → Flask Routes: requests faculty (evidence: `README.md`)
- Flask Routes → SQLite Data Access: looks up roster (evidence: `app.py`)
- SQLite Data Access → Faculty Roster: reads roster
- Feedback Form → Flask Routes: submits response (evidence: `README.md`)
- Flask Routes → SQLite Data Access: saves response (evidence: `app.py`)
- SQLite Data Access → Feedback Responses: stores response
- Flask Routes → Submission Confirmation: renders confirmation (evidence: `README.md`)
- IQAC Admin → Submission Tracker: monitors submissions (evidence: `README.md`)
- IQAC Admin → Analytics Dashboard: reviews analytics (evidence: `README.md`)
- IQAC Admin → Response Explorer: explores responses (evidence: `README.md`)
- IQAC Admin → IQAC Audit Report: reviews audit (evidence: `README.md`)
- Submission Tracker → Flask Routes: requests tracking (evidence: `README.md`)
- Analytics Dashboard → Flask Routes: requests analytics (evidence: `README.md`)
- Response Explorer → Flask Routes: requests responses (evidence: `README.md`)
- IQAC Audit Report → Flask Routes: requests report (evidence: `README.md`)
- Flask Routes → SQLite Data Access: loads responses (evidence: `app.py`)
- Flask Routes → Analytics Engine: computes analytics (evidence: `app.py`)
- Analytics Engine → SQLite Data Access: loads responses (evidence: `analytics_engine.py`)
- Flask Routes → Roster Synchronizer: syncs roster (evidence: `app.py`)
- Roster Synchronizer → Master Roster Workbook: reads workbook (evidence: `sync_roster.py`)
- Roster Synchronizer → Faculty Roster: updates roster (evidence: `sync_roster.py`)
- Sample Response Generator → Roster Synchronizer: syncs roster (evidence: `seed_data.py`)
- Sample Response Generator → SQLite Data Access: creates sample responses (evidence: `seed_data.py`)
