# moreirachrygor/farmacia_trabalho architecture

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

- Interactive diagram: https://gitdiagram.com/moreirachrygor/farmacia_trabalho
- Repository: https://github.com/moreirachrygor/farmacia_trabalho

## Overview

This repository is a static interface prototype for managing a community pharmacy’s inventory. The user workflow spans reviewing dashboard alerts and stock, recording donations and dispensations, and maintaining patient records. The README says the forms and displayed data are not connected to persistent operations; the SQL file is present, but its schema and any application integration were not inspected. The page-specific styles are represented with their interfaces; no HTML excerpts were available to verify stylesheet or alert-script wiring.

Main entry points: [`js/alerts.js`](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/js/alerts.js) (Alert helpers), [`dashboard.html`](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/dashboard.html) (Dashboard), [`doacoes.html`](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/doacoes.html) (Donations), [`dispensacao.html`](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/dispensacao.html) (Dispensing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["Pharmacy interfaces"]
  node_dashboard["Dashboard<br/>[dashboard.html]"]
  node_donations["Donations<br/>[doacoes.html]"]
  node_dispensing["Dispensing<br/>[dispensacao.html]"]
  node_inventory["Inventory<br/>[estoque.html]"]
  node_patients["Patients<br/>[pacientes.html]"]
end

subgraph group_presentation["Presentation styles"]
  node_dashboard_css["Dashboard styles<br/>[dashboard.css]"]
  node_donations_css["Donation styles<br/>[doacoes.css]"]
  node_dispensing_css["Dispensing styles<br/>[dispensacao.css]"]
  node_inventory_css["Inventory styles<br/>[estoque.css]"]
  node_patients_css["Patient styles<br/>[pacientes.css]"]
end

subgraph group_support["Interaction support"]
  node_alerts["Alert helpers<br/>[alerts.js]"]
end

subgraph group_data["Data definition"]
  node_schema[("Pharmacy schema")]
end

node_user(("Pharmacy user"))
node_sweetalert["SweetAlert2"]

node_user -->|"reviews"| node_dashboard
node_user -->|"records donations"| node_donations
node_user -->|"records dispensing"| node_dispensing
node_user -->|"consults stock"| node_inventory
node_user -->|"maintains records"| node_patients
node_alerts -->|"calls"| node_sweetalert

click node_dashboard "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/dashboard.html"
click node_donations "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/doacoes.html"
click node_dispensing "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/dispensacao.html"
click node_inventory "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/estoque.html"
click node_patients "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/pacientes.html"
click node_dashboard_css "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/dashboard.css"
click node_donations_css "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/doacoes.css"
click node_dispensing_css "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/dispensacao.css"
click node_inventory_css "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/estoque.css"
click node_patients_css "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/pacientes.css"
click node_alerts "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/js/alerts.js"
click node_schema "https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/farmacia_solidaria.sql"

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_dashboard,node_donations,node_dispensing,node_inventory,node_patients,node_user toneBlue
class node_dashboard_css,node_donations_css,node_dispensing_css,node_inventory_css,node_patients_css toneAmber
class node_alerts toneMint
class node_schema toneRose
class node_sweetalert toneIndigo
```

## Components

### Pharmacy interfaces

- [Dashboard](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/dashboard.html): `dashboard.html`
- [Donations](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/doacoes.html): `doacoes.html`
- [Dispensing](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/dispensacao.html): `dispensacao.html`
- [Inventory](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/estoque.html): `estoque.html`
- [Patients](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/pacientes.html): `pacientes.html`

### Presentation styles

- [Dashboard styles](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/dashboard.css): `css/dashboard.css`
- [Donation styles](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/doacoes.css): `css/doacoes.css`
- [Dispensing styles](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/dispensacao.css): `css/dispensacao.css`
- [Inventory styles](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/estoque.css): `css/estoque.css`
- [Patient styles](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/css/pacientes.css): `css/pacientes.css`

### Interaction support

- [Alert helpers](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/js/alerts.js): `js/alerts.js`

### Data definition

- [Pharmacy schema](https://github.com/moreirachrygor/farmacia_trabalho/blob/firstScreen/farmacia_solidaria.sql): `farmacia_solidaria.sql`

### Other components

- **Pharmacy user**
- **SweetAlert2**

## Connections

- Pharmacy user → Dashboard: reviews (evidence: `README.md`)
- Pharmacy user → Donations: records donations (evidence: `README.md`)
- Pharmacy user → Dispensing: records dispensing (evidence: `README.md`)
- Pharmacy user → Inventory: consults stock (evidence: `README.md`)
- Pharmacy user → Patients: maintains records (evidence: `README.md`)
- Alert helpers → SweetAlert2: calls (evidence: `js/alerts.js`)
