# caique07sp/browz_app-react-native-expo architecture

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

- Interactive diagram: https://gitdiagram.com/caique07sp/browz_app-react-native-expo
- Repository: https://github.com/caique07sp/browz_app-react-native-expo

## Overview

This is a Portuguese-language field-service app for managing customer service calls (“chamados”), including scheduling, field work, reports, photos, signatures, and budgets. The user workflow begins with domain-based sign-in, then call discovery and execution, followed by report completion and synchronization. Offline queueing and session handling support work without connectivity. The README is empty, and several screens were not sampled, so their capabilities are represented from the file tree; unsampled relationships are not asserted.

Main entry points: [`src/services/api.ts`](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/api.ts) (Domain API Client), [`src/services/sync.ts`](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/sync.ts) (Synchronization), [`src/services/session.ts`](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/session.ts) (Session Management), [`src/app/home.tsx`](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/home.tsx) (Call Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Navigation"]
  node_login["Sign-in<br/>[index.tsx]"]
  node_home["Call Dashboard<br/>[home.tsx]"]
  node_settings["Settings<br/>[configuracoes.tsx]"]
end

subgraph group_calls["Call Management"]
  node_call_details["Call Details<br/>[detalhes.tsx]"]
  node_check["Call Check-in<br/>[check.tsx]"]
  node_checklist["Checklist<br/>[checklist.tsx]"]
  node_map["Call Map<br/>[mapa-chamados.tsx]"]
  node_photos["Call Photos<br/>[fotos-chamado.tsx]"]
  node_signature["Customer Signature"]
end

subgraph group_reporting["Reports and Budgets"]
  node_final_report["Report Finalization"]
  node_edit_report["Edit Report"]
  node_view_report["View Report"]
  node_budget["Call Budget"]
end

subgraph group_platform["Offline and Services"]
  node_api["Domain API Client<br/>[api.ts]"]
  node_session["Session Management<br/>[session.ts]"]
  node_network["Connectivity Check<br/>[network.ts]"]
  node_queue[("Offline Queue<br/>[offlineQueue.ts]")]
  node_sync["Synchronization<br/>[sync.ts]"]
  node_timezone["Timezone Service<br/>[TimezoneService.ts]"]
  node_notifications["Notifications<br/>[notifications.ts]"]
  node_push["Push Registration"]
  node_theme["Theme Context<br/>[ThemeContext.tsx]"]
  node_numbering["Budget Numbering"]
  node_photos_offline["Offline Photos<br/>[offlinePhotos.ts]"]
end

node_user(("Field User"))
node_backend{{"Browz Service API"}}

node_user -->|"signs in"| node_login
node_login -->|"requests endpoint"| node_api
node_login -->|"checks session"| node_session
node_login -->|"registers device"| node_push
node_api -->|"sends requests"| node_backend
node_home -->|"loads calls"| node_api
node_home -->|"logs out"| node_session
node_home -->|"checks connectivity"| node_network
node_home -->|"uses sync"| node_sync
node_home -->|"uses notifications"| node_notifications
node_call_details -->|"requests call data"| node_api
node_check -->|"requests call data"| node_api
node_check -->|"uses offline queue"| node_queue
node_check -->|"uses synchronization"| node_sync
node_check -->|"uses timezone"| node_timezone
node_final_report -->|"requests report data"| node_api
node_final_report -->|"uses offline queue"| node_queue
node_final_report -->|"uses synchronization"| node_sync
node_final_report -->|"uses timezone"| node_timezone
node_edit_report -->|"requests report data"| node_api
node_budget -->|"requests budget data"| node_api
node_budget -->|"checks connectivity"| node_network
node_budget -->|"uses offline queue"| node_queue
node_session -->|"checks connectivity"| node_network
node_session -->|"starts background sync"| node_sync
node_session -->|"requests endpoint"| node_api
node_sync -->|"reads pending items"| node_queue
node_sync -->|"validates session"| node_session
node_sync -->|"revalidates numbers"| node_numbering
node_sync -->|"uploads pending data"| node_api
node_settings -->|"uses notifications"| node_notifications
node_settings -->|"uses session"| node_session
node_photos_offline -->|"uses offline queue"| node_queue
node_home -->|"uses theme"| node_theme
node_call_details -->|"uses theme"| node_theme
node_check -->|"uses theme"| node_theme
node_final_report -->|"uses theme"| node_theme
node_budget -->|"uses theme"| node_theme

click node_login "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/index.tsx"
click node_home "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/home.tsx"
click node_settings "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/configuracoes.tsx"
click node_call_details "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/detalhes.tsx"
click node_check "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/check.tsx"
click node_checklist "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/checklist.tsx"
click node_map "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/mapa-chamados.tsx"
click node_photos "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/fotos-chamado.tsx"
click node_signature "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/assinatura-cliente.tsx"
click node_final_report "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/finalizacao-relatorio.tsx"
click node_edit_report "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/editar-relatorio.tsx"
click node_view_report "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/visualizar-relatorio.tsx"
click node_budget "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/OrcamentoChamado.tsx"
click node_api "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/api.ts"
click node_session "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/session.ts"
click node_network "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/network.ts"
click node_queue "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/offlineQueue.ts"
click node_sync "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/sync.ts"
click node_timezone "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/TimezoneService.ts"
click node_notifications "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/notifications.ts"
click node_push "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/Pushnotifications.ts"
click node_theme "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/theme/ThemeContext.tsx"
click node_numbering "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/Orcamentonumeracao.ts"
click node_photos_offline "https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/offlinePhotos.ts"

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_login,node_home,node_settings,node_user toneBlue
class node_call_details,node_check,node_checklist,node_map,node_photos,node_signature toneAmber
class node_final_report,node_edit_report,node_view_report,node_budget,node_backend toneMint
class node_api,node_session,node_network,node_queue,node_sync,node_timezone,node_notifications,node_push,node_theme,node_numbering,node_photos_offline toneRose
```

## Components

### Access and Navigation

- [Sign-in](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/index.tsx): `src/app/index.tsx`
- [Call Dashboard](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/home.tsx): `src/app/home.tsx`
- [Settings](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/configuracoes.tsx): `src/app/configuracoes.tsx`

### Call Management

- [Call Details](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/detalhes.tsx): `src/app/detalhes.tsx`
- [Call Check-in](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/check.tsx): `src/app/check.tsx`
- [Checklist](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/checklist.tsx): `src/app/checklist.tsx`
- [Call Map](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/mapa-chamados.tsx): `src/app/mapa-chamados.tsx`
- [Call Photos](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/fotos-chamado.tsx): `src/app/fotos-chamado.tsx`
- [Customer Signature](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/assinatura-cliente.tsx): `src/app/assinatura-cliente.tsx`

### Reports and Budgets

- [Report Finalization](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/finalizacao-relatorio.tsx): `src/app/finalizacao-relatorio.tsx`
- [Edit Report](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/editar-relatorio.tsx): `src/app/editar-relatorio.tsx`
- [View Report](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/visualizar-relatorio.tsx): `src/app/visualizar-relatorio.tsx`
- [Call Budget](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/app/OrcamentoChamado.tsx): `src/app/OrcamentoChamado.tsx`

### Offline and Services

- [Domain API Client](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/api.ts): `src/services/api.ts`
- [Session Management](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/session.ts): `src/services/session.ts`
- [Connectivity Check](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/network.ts): `src/services/network.ts`
- [Offline Queue](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/offlineQueue.ts): `src/services/offlineQueue.ts`
- [Synchronization](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/sync.ts): `src/services/sync.ts`
- [Timezone Service](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/TimezoneService.ts): `src/services/TimezoneService.ts`
- [Notifications](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/notifications.ts): `src/services/notifications.ts`
- [Push Registration](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/Pushnotifications.ts): `src/services/Pushnotifications.ts`
- [Theme Context](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/theme/ThemeContext.tsx): `src/theme/ThemeContext.tsx`
- [Budget Numbering](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/Orcamentonumeracao.ts): `src/services/Orcamentonumeracao.ts`
- [Offline Photos](https://github.com/caique07sp/browz_app-react-native-expo/blob/main/src/services/offlinePhotos.ts): `src/services/offlinePhotos.ts`

### Other components

- **Field User**
- **Browz Service API**

## Connections

- Field User → Sign-in: signs in (evidence: `src/app/index.tsx`)
- Sign-in → Domain API Client: requests endpoint (evidence: `src/app/index.tsx`)
- Sign-in → Session Management: checks session (evidence: `src/app/index.tsx`)
- Sign-in → Push Registration: registers device (evidence: `src/app/index.tsx`)
- Domain API Client → Browz Service API: sends requests
- Call Dashboard → Domain API Client: loads calls (evidence: `src/app/home.tsx`)
- Call Dashboard → Session Management: logs out (evidence: `src/app/home.tsx`)
- Call Dashboard → Connectivity Check: checks connectivity (evidence: `src/app/home.tsx`)
- Call Dashboard → Synchronization: uses sync (evidence: `src/app/home.tsx`)
- Call Dashboard → Notifications: uses notifications (evidence: `src/app/home.tsx`)
- Call Details → Domain API Client: requests call data (evidence: `src/app/detalhes.tsx`)
- Call Check-in → Domain API Client: requests call data (evidence: `src/app/check.tsx`)
- Call Check-in → Offline Queue: uses offline queue (evidence: `src/app/check.tsx`)
- Call Check-in → Synchronization: uses synchronization (evidence: `src/app/check.tsx`)
- Call Check-in → Timezone Service: uses timezone (evidence: `src/app/check.tsx`)
- Report Finalization → Domain API Client: requests report data (evidence: `src/app/finalizacao-relatorio.tsx`)
- Report Finalization → Offline Queue: uses offline queue (evidence: `src/app/finalizacao-relatorio.tsx`)
- Report Finalization → Synchronization: uses synchronization (evidence: `src/app/finalizacao-relatorio.tsx`)
- Report Finalization → Timezone Service: uses timezone (evidence: `src/app/finalizacao-relatorio.tsx`)
- Edit Report → Domain API Client: requests report data (evidence: `src/app/editar-relatorio.tsx`)
- Call Budget → Domain API Client: requests budget data (evidence: `src/app/OrcamentoChamado.tsx`)
- Call Budget → Connectivity Check: checks connectivity (evidence: `src/app/OrcamentoChamado.tsx`)
- Call Budget → Offline Queue: uses offline queue (evidence: `src/app/OrcamentoChamado.tsx`)
- Session Management → Connectivity Check: checks connectivity (evidence: `src/services/session.ts`)
- Session Management → Synchronization: starts background sync (evidence: `src/services/session.ts`)
- Session Management → Domain API Client: requests endpoint (evidence: `src/services/session.ts`)
- Synchronization → Offline Queue: reads pending items (evidence: `src/services/sync.ts`)
- Synchronization → Session Management: validates session (evidence: `src/services/sync.ts`)
- Synchronization → Budget Numbering: revalidates numbers (evidence: `src/services/sync.ts`)
- Synchronization → Domain API Client: uploads pending data (evidence: `src/services/sync.ts`)
- Settings → Notifications: uses notifications (evidence: `src/app/configuracoes.tsx`)
- Settings → Session Management: uses session (evidence: `src/app/configuracoes.tsx`)
- Offline Photos → Offline Queue: uses offline queue (evidence: `src/services/offlinePhotos.ts`)
- Call Dashboard → Theme Context: uses theme (evidence: `src/app/home.tsx`)
- Call Details → Theme Context: uses theme (evidence: `src/app/detalhes.tsx`)
- Call Check-in → Theme Context: uses theme (evidence: `src/app/check.tsx`)
- Report Finalization → Theme Context: uses theme (evidence: `src/app/finalizacao-relatorio.tsx`)
- Call Budget → Theme Context: uses theme (evidence: `src/app/OrcamentoChamado.tsx`)
