Twenty months building the merchant dashboard · Feb 2025 – Oct 2026
Twenty months on the merchant dashboard, from the login page out
The merchant dashboard was our first attempt to rebuild the old operations console on current technology: Next.js, React 19 and TypeScript. Someone else set up its architecture. I joined in its first weeks, built the whole login flow first, and over the next twenty months built most of what merchants use in it.
- Role
- One of its main frontend engineers
- When
- Feb 2025 – Oct 2026
- Where
- PayGlocal
- Stack
- Next.js 15React 19TypeScriptTanStack QueryZustandAnt Design
The situation
Merchants had been managed through the old operations console, a five-year-old React 17 app built for internal staff. The new dashboard was meant to give merchants a product of their own, and to move internal screens onto a modern base along the way. It started as an empty Next.js app in January 2025. Everything a merchant does happens after signing in, and sign-in was being rebuilt on the backend at the same time, so the login had to come first and had to work with an API that was still changing.
What I built
- Login, first: every screen designed and built before the API was ready, then wired to a new status-driven auth service where the server says what comes next (password, OTP, phone, account setup). Forgot password, locked accounts, resend limits, device signals, terms acceptance with scroll-to-end gating, server-side session checks on protected routes, and redirects that knew which environment they were in.
- Developer foundations: a data-fetching hook with caching, and a local API proxy so the app could run against development or UAT without browser cross-origin problems.
- Accounts and configuration: guest account setup, My Account, encrypted username and password changes, and a set of shared configuration components that operations screens reused for KYC and KYB, bank and settlement accounts, and merchant terms with maker-checker approval.
- Then most of the product: the partner dashboard (its own case study), self-serve onboarding, payment, invoice and multi-currency links in one configurable table, recurring payment links, PayPal linking, platform withdrawals and settlement reconciliation, an invoicing product, clients and SKUs, a new analytics dashboard, Refer and Earn, disputes for merchants and operations, transactions list and details, the partner program, and export-compliance screens.
- Build and quality: the production pipeline cut from 12 minutes to about 3, custom lint rules and editor snippets, and the React Compiler enabled in annotation mode.
- Internal screens embedded in the old console through an iframe bridge, so operations could use new pages before they had a home of their own.
Twenty months, quarter by quarter
My commits by quarter. Pick a quarter to see what it was about.
Read before you accept
The accept checkbox unlocks when the last line of the agreement becomes visible, using IntersectionObserver rather than scroll arithmetic.
Sample merchant agreement · v3
1. This is placeholder text standing in for clause 1. A real agreement would explain fees, settlement timelines, refunds and disputes here, in language a merchant can actually follow.
2. This is placeholder text standing in for clause 2. A real agreement would explain fees, settlement timelines, refunds and disputes here, in language a merchant can actually follow.
3. This is placeholder text standing in for clause 3. A real agreement would explain fees, settlement timelines, refunds and disputes here, in language a merchant can actually follow.
4. This is placeholder text standing in for clause 4. A real agreement would explain fees, settlement timelines, refunds and disputes here, in language a merchant can actually follow.
5. This is placeholder text standing in for clause 5. A real agreement would explain fees, settlement timelines, refunds and disputes here, in language a merchant can actually follow.
6. This is placeholder text standing in for clause 6. A real agreement would explain fees, settlement timelines, refunds and disputes here, in language a merchant can actually follow.
7. This is placeholder text standing in for clause 7. A real agreement would explain fees, settlement timelines, refunds and disputes here, in language a merchant can actually follow.
— End of agreement —
Scroll to the end to enable the checkbox.
Decisions
Build the screens before the API
Waiting for the auth service would have stalled everything behind the login. Building every screen against agreed shapes first, then integrating, meant the frontend was ready when the backend was, and API changes landed in one service layer instead of every form.
Let the server decide the next step
A status-driven login means the client doesn’t guess whether a user needs a password, an OTP or account setup. It asks, and renders the step it’s told. New sign-in rules then need backend changes, not a new release of every client.
Shared pieces for repeated screens
Operations configuration has dozens of similar forms. Building the shared configuration components once made each new screen mostly declaration, and kept them consistent.
What it taught us for the rewrite
Without a design system, every screen styled itself, and the app grew heavy: 3.2 MB of JavaScript a page and a five-minute build by late 2026. Those lessons shaped the next rebuild, on one stack and one design system.
Outcome
| What | Before | After | Detail |
|---|---|---|---|
| My commits | 1,531 | Feb 2025 – Oct 2026 | |
| Peak quarter | 301 commits | invoicing, analytics, disputes | |
| Production pipeline | 12 min | ~3 min | redundant build removed |
| Product areas I built in | 10+ | login to compliance | |