<aside> 🔁 Synced from GitHub #a2a1bfcab74c. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.

</aside>

Mobile app

Repo: mobile · Flutter (Dart ≥ 3.0.5) · flutter_bloc / cubits · get_it DI · dio · go_router · shared_preferences, flutter_secure_storage, Isar · Firebase

In one paragraph

The mobile app (called Pade in the code) is the employee's PaidHR. It covers the home dashboard, payslips, requests (leave, loans, salary advance, documents, exits, redeployment), live clock-in and out for time & attendance, earned wage access, the wallet, bills, performance and notifications. It is the only place, apart from terminals, where people clock in live.

Layout of the code

Folder Holds
lib/main*.dart Entry points per flavour: main_dev.dart, main_staging.dart, main.dart (production), main_release.dart (production-backed side-by-side build)
lib/app App shell (pade_app.dart), constants
lib/core Shared infrastructure: config (env and every endpoint in app_config.dart), di, network (dio, interceptors), routing, session, storage, db, analytics, notifications, error
lib/features//{data,domain,presentation} Feature modules in clean-architecture layers
lib/models, lib/widgets, lib/utils Older shared models and widgets, being migrated into features

Features

Feature What it is
auth Sign-in, MFA setup, biometrics, password change
onboarding, app_selector First-run screens; choosing which PaidHR experience to open
home Dashboard, payslips, profile, EWA home (new_ewa.dart), force update, landing page for blocked (exited or suspended) users
employee_requests Leave, loan, salary advance, document, exit and redeployment requests
wallet, bills, get_pade Wallet, transfers, airtime, data, cable, electricity, transaction screens
paid_life A financial-wellness bundle: EWA, wallet, loans, bills and security, each with its own repository. Status: Built The virtual cards section on the PaidLife home and wallet screens now shows for every organisation; before, it only showed in development builds and for PaidHR's own organisation
performance Reviews and goals
notifications In-app and push
custom HubSpot integration

How it talks to the backends

core/config/env.dart defines three base URLs per flavour: baseUrl (core-backend), baseUrl2 (ewa-service: EWA, time & attendance, files at /v1/files) and walletBaseUrl (wallet-service). Every endpoint path is declared in core/config/app_config.dart.

Approving PIN transactions with biometrics Status: Built

On develop. In PaidLife, the transaction PIN sheet (for example when sending money or making an EWA withdrawal, which used to hide the biometric option) can be approved with Face ID or a fingerprint instead of typing the PIN. There is no separate "Face ID / Fingerprint for transactions" switch any more; it follows the single Biometrics setting on the PaidLife profile.

Branches

develop is the mainline; release/x.x.x for releases; feature/-name for work; hotfix/x.x.x from master.

Gotchas