# zethosroot/paymytime architecture

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

- Interactive diagram: https://gitdiagram.com/zethosroot/paymytime
- Repository: https://github.com/zethosroot/paymytime

## Overview

PayMyTime is an early-stage mobile app for tracking work hours and reporting them to management. The visible workflow is a user opening the welcome screen and navigating to login or account registration; those forms currently have no implemented submit actions. Firebase is initialized for authentication, but the sampled screens do not use it. Time tracking and management reporting are README capabilities, not represented by sampled implementation, so they are not drawn as runtime stages.

Main entry points: [`app/WelcomeScreen.tsx`](https://github.com/zethosroot/paymytime/blob/main/app/WelcomeScreen.tsx) (Welcome screen), [`app/index.tsx`](https://github.com/zethosroot/paymytime/blob/main/app/index.tsx) (Home route), [`app/register.tsx`](https://github.com/zethosroot/paymytime/blob/main/app/register.tsx) (Registration screen), [`src/ui/styles.tsx`](https://github.com/zethosroot/paymytime/blob/main/src/ui/styles.tsx) (Shared UI styles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_screens["App screens"]
  node_layout["Root navigation<br/>[_layout.tsx]"]
  node_welcome["Welcome screen<br/>[WelcomeScreen.tsx]"]
  node_entry["Home route<br/>[index.tsx]"]
  node_login["Login screen<br/>[login.tsx]"]
  node_register["Registration screen<br/>[register.tsx]"]
  node_styles["Shared UI styles<br/>[styles.tsx]"]
end

subgraph group_services["Service setup"]
  node_firebase["Firebase auth setup<br/>[firebaseConfig.ts]"]
end

node_user(("App user"))
node_firebase_service{{"Firebase"}}

node_user -->|"opens app"| node_entry
node_entry -->|"re-exports"| node_welcome
node_layout -->|"configures route"| node_entry
node_layout -->|"configures route"| node_register
node_welcome -->|"navigates to"| node_login
node_welcome -->|"navigates to"| node_register
node_welcome -->|"uses styles"| node_styles
node_login -->|"uses styles"| node_styles
node_register -->|"uses styles"| node_styles
node_firebase -->|"initializes auth"| node_firebase_service

click node_layout "https://github.com/zethosroot/paymytime/blob/main/app/_layout.tsx"
click node_welcome "https://github.com/zethosroot/paymytime/blob/main/app/WelcomeScreen.tsx"
click node_entry "https://github.com/zethosroot/paymytime/blob/main/app/index.tsx"
click node_login "https://github.com/zethosroot/paymytime/blob/main/app/login.tsx"
click node_register "https://github.com/zethosroot/paymytime/blob/main/app/register.tsx"
click node_styles "https://github.com/zethosroot/paymytime/blob/main/src/ui/styles.tsx"
click node_firebase "https://github.com/zethosroot/paymytime/blob/main/src/firebaseConfig.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_layout,node_welcome,node_entry,node_login,node_register,node_styles,node_user toneBlue
class node_firebase toneAmber
class node_firebase_service toneIndigo
```

## Components

### App screens

- [Root navigation](https://github.com/zethosroot/paymytime/blob/main/app/_layout.tsx): `app/_layout.tsx`
- [Welcome screen](https://github.com/zethosroot/paymytime/blob/main/app/WelcomeScreen.tsx): `app/WelcomeScreen.tsx`
- [Home route](https://github.com/zethosroot/paymytime/blob/main/app/index.tsx): `app/index.tsx`
- [Login screen](https://github.com/zethosroot/paymytime/blob/main/app/login.tsx): `app/login.tsx`
- [Registration screen](https://github.com/zethosroot/paymytime/blob/main/app/register.tsx): `app/register.tsx`
- [Shared UI styles](https://github.com/zethosroot/paymytime/blob/main/src/ui/styles.tsx): `src/ui/styles.tsx`

### Service setup

- [Firebase auth setup](https://github.com/zethosroot/paymytime/blob/main/src/firebaseConfig.ts): `src/firebaseConfig.ts`

### Other components

- **App user**
- **Firebase**

## Connections

- App user → Home route: opens app (evidence: `README.md`)
- Home route → Welcome screen: re-exports (evidence: `app/index.tsx`)
- Root navigation → Home route: configures route (evidence: `app/_layout.tsx`)
- Root navigation → Registration screen: configures route (evidence: `app/_layout.tsx`)
- Welcome screen → Login screen: navigates to (evidence: `app/WelcomeScreen.tsx`)
- Welcome screen → Registration screen: navigates to (evidence: `app/WelcomeScreen.tsx`)
- Welcome screen → Shared UI styles: uses styles (evidence: `app/WelcomeScreen.tsx`)
- Login screen → Shared UI styles: uses styles (evidence: `app/login.tsx`)
- Registration screen → Shared UI styles: uses styles (evidence: `app/register.tsx`)
- Firebase auth setup → Firebase: initializes auth (evidence: `src/firebaseConfig.ts`)
