# profender-it/test architecture

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

- Interactive diagram: https://gitdiagram.com/profender-it/test
- Repository: https://github.com/profender-it/test

## Overview

Profender is a Flutter room-booking app backed by Supabase. Its principal workflow is a user accessing the app, signing in, and using the app’s room-booking experience; Supabase provides the backend and database migrations define profiles and room-booking data. The tree shows distinct login, home, and profile screens, but their runtime calls and the booking implementation are not excerpted. Accordingly, app-to-backend links are dashed and unverified rather than asserted as specific calls.

Main entry points: [`app/lib/src/router.dart`](https://github.com/profender-it/test/blob/main/app/lib/src/router.dart) (App routing), [`app/lib/src/app.dart`](https://github.com/profender-it/test/blob/main/app/lib/src/app.dart) (Flutter app), [`supabase`](https://github.com/profender-it/test/tree/main/supabase) (Supabase services), [`app/lib/src/supabase/providers.dart`](https://github.com/profender-it/test/blob/main/app/lib/src/supabase/providers.dart) (Supabase providers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Flutter app"]
  node_app["Flutter app<br/>[app.dart]"]
  node_router["App routing<br/>[router.dart]"]
end

subgraph group_features["App features"]
  node_login["Login screen<br/>[login_page.dart]"]
  node_home["Home screen<br/>[home_page.dart]"]
  node_profile["Profile screen<br/>[profile.dart]"]
end

subgraph group_backend["Supabase backend"]
  node_supabase_client["Supabase providers<br/>[providers.dart]"]
  node_supabase["Supabase services"]
end

subgraph group_data["Database schema"]
  node_profiles[("Profiles schema")]
  node_bookings[("Rooms and bookings schema")]
end

node_user(("User"))

node_user -.->|"uses"| node_app
node_app -.->|"routes through"| node_router
node_router -.->|"routes to"| node_login
node_router -.->|"routes to"| node_home
node_router -.->|"routes to"| node_profile
node_app -.->|"uses"| node_supabase_client
node_supabase_client -.->|"connects to"| node_supabase
node_supabase -.->|"uses schema"| node_profiles
node_supabase -.->|"uses schema"| node_bookings

click node_app "https://github.com/profender-it/test/blob/main/app/lib/src/app.dart"
click node_router "https://github.com/profender-it/test/blob/main/app/lib/src/router.dart"
click node_login "https://github.com/profender-it/test/blob/main/app/lib/src/features/auth/login_page.dart"
click node_home "https://github.com/profender-it/test/blob/main/app/lib/src/features/home/home_page.dart"
click node_profile "https://github.com/profender-it/test/blob/main/app/lib/src/features/profile/profile.dart"
click node_supabase_client "https://github.com/profender-it/test/blob/main/app/lib/src/supabase/providers.dart"
click node_supabase "https://github.com/profender-it/test/tree/main/supabase"
click node_profiles "https://github.com/profender-it/test/blob/main/supabase/migrations/20261116000000_profiles.sql"
click node_bookings "https://github.com/profender-it/test/blob/main/supabase/migrations/20261116100000_rooms_bookings.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_app,node_router,node_user toneBlue
class node_login,node_home,node_profile toneAmber
class node_supabase_client,node_supabase toneMint
class node_profiles,node_bookings toneRose
```

## Components

### Flutter app

- [Flutter app](https://github.com/profender-it/test/blob/main/app/lib/src/app.dart): `app/lib/src/app.dart`
- [App routing](https://github.com/profender-it/test/blob/main/app/lib/src/router.dart): `app/lib/src/router.dart`

### App features

- [Login screen](https://github.com/profender-it/test/blob/main/app/lib/src/features/auth/login_page.dart): `app/lib/src/features/auth/login_page.dart`
- [Home screen](https://github.com/profender-it/test/blob/main/app/lib/src/features/home/home_page.dart): `app/lib/src/features/home/home_page.dart`
- [Profile screen](https://github.com/profender-it/test/blob/main/app/lib/src/features/profile/profile.dart): `app/lib/src/features/profile/profile.dart`

### Supabase backend

- [Supabase providers](https://github.com/profender-it/test/blob/main/app/lib/src/supabase/providers.dart): `app/lib/src/supabase/providers.dart`
- [Supabase services](https://github.com/profender-it/test/tree/main/supabase): `supabase`

### Database schema

- [Profiles schema](https://github.com/profender-it/test/blob/main/supabase/migrations/20261116000000_profiles.sql): `supabase/migrations/20261116000000_profiles.sql`
- [Rooms and bookings schema](https://github.com/profender-it/test/blob/main/supabase/migrations/20261116100000_rooms_bookings.sql): `supabase/migrations/20261116100000_rooms_bookings.sql`

### Other components

- **User**

## Connections

- User → Flutter app: uses
- Flutter app → App routing: routes through
- App routing → Login screen: routes to
- App routing → Home screen: routes to
- App routing → Profile screen: routes to
- Flutter app → Supabase providers: uses
- Supabase providers → Supabase services: connects to
- Supabase services → Profiles schema: uses schema
- Supabase services → Rooms and bookings schema: uses schema
