# newgreivin/taskflow-movil architecture

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

- Interactive diagram: https://gitdiagram.com/newgreivin/taskflow-movil
- Repository: https://github.com/newgreivin/taskflow-movil

## Overview

TaskFlow is an offline-first task management app. Users create and edit dated, categorized tasks and subtasks, organize tasks into projects, then review and update them in task lists, Today, or the calendar. SQLite repositories provide persistence; reminders are scheduled through the notification service, while settings support themes, statistics, and data export or backup. The graph includes documented capabilities whose implementation was not sampled; those links are cited to the README, and no unsampled source is treated as inspected.

Main entry points: [`src/data/taskRepository.js`](https://github.com/newgreivin/taskflow-movil/blob/master/src/data/taskRepository.js) (Task Repository), [`src/data/database.js`](https://github.com/newgreivin/taskflow-movil/blob/master/src/data/database.js) (SQLite Database), [`src/data/notificationRepository.js`](https://github.com/newgreivin/taskflow-movil/blob/master/src/data/notificationRepository.js) (Notification Records), [`src/app/task/new.js`](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/task/new.js) (Task Editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_work["Task Workflow"]
  node_task_entry["Task Editor<br/>[new.js]"]
  node_task_detail["Task Details<br/>[&#91;id&#93;.js]"]
  node_task_list["Task List<br/>[tasks.js]"]
  node_today["Today View<br/>[today.js]"]
  node_task_cards["Task Cards<br/>[TaskCard.js]"]
end

subgraph group_organize["Planning &amp; Progress"]
  node_calendar["Calendar View<br/>[calendar.js]"]
  node_projects["Project List<br/>[projects.js]"]
  node_project_tasks["Project Tasks<br/>[project_tasks.js]"]
  node_assign_tasks["Task Assignment"]
  node_categories["Category Manager<br/>[categories.js]"]
  node_statistics["Statistics<br/>[statistics_view.js]"]
end

subgraph group_storage["Local Data"]
  node_task_repo["Task Repository<br/>[taskRepository.js]"]
  node_database[("SQLite Database<br/>[database.js]")]
  node_settings_repo["Settings Repository"]
  node_notification_repo["Notification Records"]
end

subgraph group_platform["Settings &amp; Services"]
  node_notifications["Local Reminders<br/>[notifications.js]"]
  node_preferences["App Preferences<br/>[notifications.js]"]
  node_theme["Theme Provider<br/>[ThemeContext.js]"]
  node_appearance["Appearance Settings<br/>[appearance.js]"]
  node_export["Data Export<br/>[export.js]"]
  node_backup["Data Backup<br/>[backup.js]"]
  node_drive["Google Drive<br/>[googleDrive.js]"]
  node_diagnostics["Database Diagnostics<br/>[diagnostics.js]"]
end

node_user(("User"))

node_user -->|"creates or edits"| node_task_entry
node_task_entry -->|"saves tasks"| node_task_repo
node_task_entry -->|"uses SQLite"| node_database
node_task_detail -->|"loads tasks"| node_task_repo
node_task_detail -->|"manages reminders"| node_notification_repo
node_task_list -->|"queries and updates"| node_task_repo
node_task_list -->|"cancels reminders"| node_notification_repo
node_today -->|"loads tasks"| node_task_repo
node_today -->|"manages reminders"| node_notification_repo
node_calendar -->|"loads tasks"| node_task_repo
node_calendar -->|"manages reminders"| node_notification_repo
node_task_list -->|"renders"| node_task_cards
node_today -->|"renders"| node_task_cards
node_calendar -->|"renders"| node_task_cards
node_user -->|"reviews by date"| node_calendar
node_user -->|"organizes projects"| node_projects
node_project_tasks -->|"loads and updates"| node_task_repo
node_project_tasks -->|"opens assignment"| node_assign_tasks
node_assign_tasks -->|"assigns tasks"| node_task_repo
node_categories -->|"manages categories"| node_task_repo
node_statistics -->|"reads statistics"| node_task_repo
node_task_repo -.->|"reads and writes"| node_database
node_task_entry -->|"schedules reminders"| node_notifications
node_notification_repo -->|"cancels reminders"| node_notifications
node_preferences -->|"updates preferences"| node_settings_repo
node_preferences -->|"configures reminders"| node_notifications
node_appearance -->|"changes theme"| node_theme
node_theme -->|"reads and saves theme"| node_database
node_export -->|"reads data"| node_database
node_backup -->|"backs up data"| node_database
node_backup -->|"uses optional backup"| node_drive
node_diagnostics -.->|"checks database"| node_database
node_database -->|"persists offline data"| node_user

click node_task_entry "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/task/new.js"
click node_task_detail "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/task/%5Bid%5D.js"
click node_task_list "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/(tabs)/tasks.js"
click node_today "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/(tabs)/today.js"
click node_task_cards "https://github.com/newgreivin/taskflow-movil/blob/master/src/components/TaskCard.js"
click node_calendar "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/(tabs)/calendar.js"
click node_projects "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/(tabs)/projects.js"
click node_project_tasks "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/project_tasks.js"
click node_assign_tasks "https://github.com/newgreivin/taskflow-movil/blob/master/src/components/AssignTasksModal.js"
click node_categories "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/categories.js"
click node_statistics "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/statistics_view.js"
click node_task_repo "https://github.com/newgreivin/taskflow-movil/blob/master/src/data/taskRepository.js"
click node_database "https://github.com/newgreivin/taskflow-movil/blob/master/src/data/database.js"
click node_settings_repo "https://github.com/newgreivin/taskflow-movil/blob/master/src/data/settingsRepository.js"
click node_notification_repo "https://github.com/newgreivin/taskflow-movil/blob/master/src/data/notificationRepository.js"
click node_notifications "https://github.com/newgreivin/taskflow-movil/blob/master/src/services/notifications.js"
click node_preferences "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/settings/notifications.js"
click node_theme "https://github.com/newgreivin/taskflow-movil/blob/master/src/theme/ThemeContext.js"
click node_appearance "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/appearance.js"
click node_export "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/settings/export.js"
click node_backup "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/settings/backup.js"
click node_drive "https://github.com/newgreivin/taskflow-movil/blob/master/src/services/googleDrive.js"
click node_diagnostics "https://github.com/newgreivin/taskflow-movil/blob/master/src/app/diagnostics.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_task_entry,node_task_detail,node_task_list,node_today,node_task_cards,node_user toneBlue
class node_calendar,node_projects,node_project_tasks,node_assign_tasks,node_categories,node_statistics toneAmber
class node_task_repo,node_database,node_settings_repo,node_notification_repo toneMint
class node_notifications,node_preferences,node_theme,node_appearance,node_export,node_backup,node_drive,node_diagnostics toneRose
```

## Components

### Task Workflow

- [Task Editor](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/task/new.js): `src/app/task/new.js`
- [Task Details](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/task/%5Bid%5D.js): `src/app/task/[id].js`
- [Task List](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/(tabs)/tasks.js): `src/app/(tabs)/tasks.js`
- [Today View](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/(tabs)/today.js): `src/app/(tabs)/today.js`
- [Task Cards](https://github.com/newgreivin/taskflow-movil/blob/master/src/components/TaskCard.js): `src/components/TaskCard.js`

### Planning & Progress

- [Calendar View](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/(tabs)/calendar.js): `src/app/(tabs)/calendar.js`
- [Project List](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/(tabs)/projects.js): `src/app/(tabs)/projects.js`
- [Project Tasks](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/project_tasks.js): `src/app/project_tasks.js`
- [Task Assignment](https://github.com/newgreivin/taskflow-movil/blob/master/src/components/AssignTasksModal.js): `src/components/AssignTasksModal.js`
- [Category Manager](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/categories.js): `src/app/categories.js`
- [Statistics](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/statistics_view.js): `src/app/statistics_view.js`

### Local Data

- [Task Repository](https://github.com/newgreivin/taskflow-movil/blob/master/src/data/taskRepository.js): `src/data/taskRepository.js`
- [SQLite Database](https://github.com/newgreivin/taskflow-movil/blob/master/src/data/database.js): `src/data/database.js`
- [Settings Repository](https://github.com/newgreivin/taskflow-movil/blob/master/src/data/settingsRepository.js): `src/data/settingsRepository.js`
- [Notification Records](https://github.com/newgreivin/taskflow-movil/blob/master/src/data/notificationRepository.js): `src/data/notificationRepository.js`

### Settings & Services

- [Local Reminders](https://github.com/newgreivin/taskflow-movil/blob/master/src/services/notifications.js): `src/services/notifications.js`
- [App Preferences](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/settings/notifications.js): `src/app/settings/notifications.js`
- [Theme Provider](https://github.com/newgreivin/taskflow-movil/blob/master/src/theme/ThemeContext.js): `src/theme/ThemeContext.js`
- [Appearance Settings](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/appearance.js): `src/app/appearance.js`
- [Data Export](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/settings/export.js): `src/app/settings/export.js`
- [Data Backup](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/settings/backup.js): `src/app/settings/backup.js`
- [Google Drive](https://github.com/newgreivin/taskflow-movil/blob/master/src/services/googleDrive.js): `src/services/googleDrive.js`
- [Database Diagnostics](https://github.com/newgreivin/taskflow-movil/blob/master/src/app/diagnostics.js): `src/app/diagnostics.js`

### Other components

- **User**

## Connections

- User → Task Editor: creates or edits (evidence: `README.md`)
- Task Editor → Task Repository: saves tasks (evidence: `src/app/task/new.js`)
- Task Editor → SQLite Database: uses SQLite (evidence: `src/app/task/new.js`)
- Task Details → Task Repository: loads tasks (evidence: `src/app/task/[id].js`)
- Task Details → Notification Records: manages reminders (evidence: `src/app/task/[id].js`)
- Task List → Task Repository: queries and updates (evidence: `src/app/(tabs)/tasks.js`)
- Task List → Notification Records: cancels reminders (evidence: `src/app/(tabs)/tasks.js`)
- Today View → Task Repository: loads tasks (evidence: `src/app/(tabs)/today.js`)
- Today View → Notification Records: manages reminders (evidence: `src/app/(tabs)/today.js`)
- Calendar View → Task Repository: loads tasks (evidence: `src/app/(tabs)/calendar.js`)
- Calendar View → Notification Records: manages reminders (evidence: `src/app/(tabs)/calendar.js`)
- Task List → Task Cards: renders (evidence: `src/app/(tabs)/tasks.js`)
- Today View → Task Cards: renders (evidence: `src/app/(tabs)/today.js`)
- Calendar View → Task Cards: renders (evidence: `src/app/(tabs)/calendar.js`)
- User → Calendar View: reviews by date (evidence: `README.md`)
- User → Project List: organizes projects (evidence: `README.md`)
- Project Tasks → Task Repository: loads and updates (evidence: `src/app/project_tasks.js`)
- Project Tasks → Task Assignment: opens assignment (evidence: `src/app/project_tasks.js`)
- Task Assignment → Task Repository: assigns tasks (evidence: `src/components/AssignTasksModal.js`)
- Category Manager → Task Repository: manages categories (evidence: `src/app/categories.js`)
- Statistics → Task Repository: reads statistics (evidence: `src/app/statistics_view.js`)
- Task Repository → SQLite Database: reads and writes
- Task Editor → Local Reminders: schedules reminders (evidence: `src/app/task/new.js`)
- Notification Records → Local Reminders: cancels reminders (evidence: `src/data/notificationRepository.js`)
- App Preferences → Settings Repository: updates preferences (evidence: `src/app/settings/notifications.js`)
- App Preferences → Local Reminders: configures reminders (evidence: `src/app/settings/notifications.js`)
- Appearance Settings → Theme Provider: changes theme (evidence: `src/app/appearance.js`)
- Theme Provider → SQLite Database: reads and saves theme (evidence: `src/theme/ThemeContext.js`)
- Data Export → SQLite Database: reads data (evidence: `src/app/settings/export.js`)
- Data Backup → SQLite Database: backs up data (evidence: `src/app/settings/backup.js`)
- Data Backup → Google Drive: uses optional backup (evidence: `src/app/settings/backup.js`)
- Database Diagnostics → SQLite Database: checks database
- SQLite Database → User: persists offline data (evidence: `README.md`)
