Skip to content
← PortfolioPublic on GitHubReact Native · Expo

WPERP Suite · Case study An HR portal in the pocket, on WordPress.

An employee self-service app for the WP ERP plugin. Staff clock in and out, request leave, follow their attendance and log their standups from a phone, over WP ERP’s own REST API.

●Face or fingerprint sign-in✓Light · Dark · SystemREST routes 38
My commits72
AI-paired57
Screens19
REST routes38
My role
Developer and designer, with Claude Code as pair
Team
1 developer, 1 repository
Timeline
About five weeks, in two bursts
Stack
React Native, Expo SDK 54, TypeScript, React Navigation, Axios
01 — Timeline

72 commits, two bursts.

Pick a week to see what shipped.

Week 5 · 32 commitsVersion 2: standups and payment requests, a More tab, redesigned dialogs, the Security screen, biometric sign-in and a new logo and splash.
02 — Platform

38 routes, one WordPress site behind them.

  • No new backend: WP ERP’s own API
  • Employees only, by role
  • Features follow the site’s modules
  • Light, dark or system
  • Stays signed in
Expo app · React Native5 tabs · 19 screenshome · leave · attendance …Auth and theme contextssession · modules · modeuseStyles() per screenlight · dark · systemcallSession · on the phoneAxios clientBearer token · 401 logs outexpo-secure-storesession · device tokenNative fetchclock in · file uploadsRESTWordPress · WP ERPerp/v1 · WP ERP23 routes · HR, accountingerp-app/v1 · companion14 routes · login, standup …erp_pro/v1 · ERP Prothe active modules
App: Screens are grouped by domain under a five-tab bar, and every one renders the shared header. Styles come from a useStyles() hook that recomputes when the theme changes between light, dark and system.
03 — Key decisions

Four calls that shaped the app.

Authentication

A companion plugin for phone sign-in

WordPress has no REST sign-in a phone app can use, so a small companion plugin trades a username and password for a Bearer token. The app then checks for an employee, HR manager or admin role before it loads the profile and the site’s modules.

erp-app/v1/login · secure store
sign-in
POSTerp-app/v1/login → Bearer tokenCheckrole: employee, HR manager or adminGETthe employee, with department and avatarGETerp_pro/v1/admin/modulesStorethe session in expo-secure-storeGuarda 401 on any call logs out✓ signed in; restored on the next launch
What each site runs

The site’s modules decide what shows

A WP ERP site switches modules on and off. The app reads the active list once at sign-in, so an employee never sees an attendance tab or a reimbursement button that would only answer with an error.

isModuleActive()
FeatureModuleWhen it’s off
Attendance tabattendanceLeft out of the tab bar
Dashboard clock cardattendanceNot drawn
Clock button in the headerattendanceNot drawn
Attendance status chartattendanceNot drawn
Reimburse quick actionreimbursementHidden
Version 2

Biometric sign-in on its own device token

Turning biometrics on asks the plugin for a separate device token, kept in the secure store. A face or fingerprint later trades it for a fresh session, it survives a logout, and turning it off revokes it on the server.

expo-local-authentication
01Confirm a face or fingerexpo-local-authentication02Register the deviceerp-app/v1/biometric/register03Keep the device tokensecure store, apart from the session04Sign in with it laterbiometric/login → a fresh Bearer token05Turn it offbiometric/revoke on the server
Where Axios tripped

Plain fetch where WordPress answers oddly

WP ERP’s self-attendance handler replies through wp_send_json_success and then die(), which Axios handled badly, so clocking in and out goes through native fetch. Leave documents and the profile photo upload as FormData the same way.

fetch · FormData
clock in
TapCheck-in on the dashboardfetchPOST hrm/attendance/self-attendanceReplywp_send_json_success, then die()Checksuccess: false → show its messageUploadleave documents and photos as FormData✓ every other call stays on the Axios client
04 — Version 2

Version 2, in one week.

The second burst turned a leave-and-attendance app into a daily tool. Flip the switch to compare the first release with 2.1.0.

19Screens
REST routes3814 on the companion plugin
Tabs5More: standups, payments, security
Sign-inBiometricFace or fingerprint, revocable
TypeScript10,875lines in src/

v1.0 measured at the last commit of the first burst, v2.1 at the latest. Lines counted over the .ts and .tsx files in src/.

05 — Screens

The working day, in light and dark.

Sign-in, the dashboard, leave, holidays, attendance, the monthly report and the profile.

06 — Behind the build

One developer, Claude Code as pair.

57 / 72commits carry a Claude co-author trailer. I set the scope and the API contract, then landed small commits I could try on a phone.
With Claude Code (57)Other commits (15)
I directed

The feature scope from WP ERP’s employee portal, the indigo look, the companion plugin’s routes, which features follow which module, and the version 2 plan.

Claude drafted

The screens and their skeleton loaders, the API layer and its types, the theme hook, the biometric flow and the landing page.

Announcements for employees

The main announcements route needs an admin capability, so the app reads the employee-scoped one and maps the raw WordPress post fields itself.

Dates in two shapes

WP ERP returns some dates as Unix timestamps and others as ISO strings, so small helpers normalise them before any screen formats one.

Builds and updates

EAS profiles for development, preview and production, an arm64-only APK that keeps the download small, and expo-updates for fixes without a reinstall.

The landing page

A static page in the repo with a phone-framed preview of every screen in light and dark, a Swiper carousel and the APK download.

Where it stands

Version 2.1.0: an Android APK for ARM64 on Android 7.0 and later, with iOS set up under the same bundle ID.

React NativeExpoTypeScriptReact NavigationAxiosWordPressWP ERPClaude Code

Non-merge commits on the main branch, all mine. Commit counts measure activity, not effort.

Lets work together

Need a successful project?

I’m available for freelance work.

Hire/Contact Me Now