H2O Portal
One inbox, one pipeline, for a franchise network. A multi-territory enquiry portal that turns website forms into a tracked pipeline, from first message to completed job.
- Client
- H2O Restoration
- Services
- Web development
- Stack
- Next.js, React

All screenshots and videos show the super admin view and seeded demo data (about 617 enquiries over 14 months, four territories). The company brand, H2O Restoration, is shown with permission. No client data appears.
Context and problem
H2O Restoration works as a franchise network. Customers send enquiries through several websites. Each territory handles its own follow-up.
Without a shared view, enquiries sit in separate inboxes. Quotes go cold. Nobody can say which territory is winning work or which job needs a call today.
My role
I built the whole product on my own: product and UI design, architecture, development and deployment. The client brought the problems they needed to solve. I turned each one into a feature, from the data model and permissions to the screens.
Solution overview
The portal is one flow. A website form posts to an intake API. A spam filter scores the submission. The portal routes it to a territory by postcode. The enquiry enters a pipeline. The dashboard summarises the pipeline for each viewer.
Everything is scoped by the viewer's role and territories. A franchisee sees only their own patch. An admin sees all of it.
Key features
1. A dashboard that tells you what to do next
The money figures follow event dates, not cohorts. "Won this month" counts enquiries that moved to Won in that month, whenever they arrived. Trends compare the period so far with the same elapsed span of the previous period, so a half-finished month is not judged against a full one. Every KPI carries a help icon that says what it counts and what it is compared to.
Two leaderboards rank territories and forms. The need-attention list ranks open enquiries by reason. An expired quote scores highest, then an uncontacted enquiry that is overdue. A planned follow-up silences "gone quiet" warnings, but never deadline warnings. One territory filter re-scopes every widget on the page.
2. Every enquiry in one place
Enquiries from every form and territory land in one list. Search covers the contact's name, email and phone and the message. Filters combine status, next action, form, territory and date. The money columns sort, so the biggest open quotes come first.
The same list is also a map and a board. The chosen view is saved per user in the database, so each person returns to the view they work in.
3. A pipeline with rules
Enquiries move through New, Contacted, Quoted, Won, Lost and Completed. The kanban board and the detail page share one transition dialog. It asks for what that step needs: a quoted value for Quoted, a final price for Won, a reason for Lost. Each move can also set a follow-up date.
Dragging on the board only goes forward. A revert needs a reason, so it lives on the detail page. Money is stored in pence in the database and typed as such in code, so a pounds-versus-pence mix-up fails at compile time.
4. The whole story of a job
One enquiry holds its stage, its money, its next action and every note, edit and status change in one activity feed. It opens as a drawer over the list, so staff keep their place, filters and scroll.
The portal matches enquiries to contacts by email, then phone. The contact shows lifetime value, open pipeline, a relationship label (New, Active, Customer, Repeat customer, Lapsed) and every linked enquiry. The enquiry drawer can open the contact on top of it.
5. Every enquiry, any shape
Not every enquiry comes from a form. Staff add phone, WhatsApp and social media enquiries through a drawer. Typing a name suggests an existing contact, and picking one reuses it instead of creating a duplicate. The address prefills from the contact. The territory resolves from the postcode, and a scoped user can only create inside their own territories. The form asks only for what the chosen status needs: a quote value for Quoted, a sale value for Won, a reason for Lost.
Manual entries use the same intake path as web forms, so they get the same contact matching, history and live updates.
Web forms differ per site. A field-mapping screen lets an admin map any form's fields into one shared schema.
6. Nothing gets lost
Public forms attract bots. Each submission gets a score from field-shape rules: fictional phone numbers, blocked email domains, template messages, non-UK postcodes and keyword lists. A score of 5 blocks. Some rules block alone, others need company.
Blocked submissions go to quarantine, not the bin. An admin sees the signals that fired and can release the submission, which turns it into a real enquiry. The bot sees an identical "accepted" response, so it cannot tell it was blocked.
Deleting an enquiry moves it to Trash, where an admin can recover it. Permanent deletion is a separate permission. Releases, recoveries, deletions, status changes, edits, notes and invitations all write to an audit log with the time, the user and the record.
Deep dives
Realtime
A new enquiry should appear without a refresh, and only for people allowed to see it. I used Ably with one channel per territory.
The first version used one channel per form. That broke in two ways. The first enquiry for a new form-and-territory pair was missed, because the client only subscribed to forms that already had enquiries. And channel count grew with forms times territories, against Ably's limit of 200 channels per connection. Territory channels derive from the user's scope, so the count stays small and never misses a first enquiry.
The security boundary is the token, not the client. The token route grants an admin subscribe-only access to all territory channels. A franchisee gets only their own, and nobody can publish. Tokens last two minutes, which bounds how long a revoked permission can linger.
Staff can pause live data while they read, so rows do not move under the cursor. Paused events are dropped, not queued. On resume the screen refetches from the server, which is the source of truth, so nothing is missed.
RBAC and entitlements
Two questions are kept apart. Roles and territories decide who may see or change something. Entitlements decide whether the plan includes the feature at all.
There are four roles. Admins see every territory. Franchisee roles see only assigned ones. The invite dialog sets role and territories together.
Plans are data. A single catalogue lists 25 features, each with a minimum tier and optional add-ons. A feature moves between plans by changing one line. I rejected comparing tier names in code, which scatters plan logic everywhere. A lint rule now bans it.
A single point in the system decides what a portal has. Today it reads a demo cookie, or grants everything. A future per-customer plan plugs in there and nothing else changes. Gates apply on the server and in the UI. The server gate is the security boundary. Gates hide and refuse. They never delete data, so a downgrade is safe.
Data layer scoping and caching
Every database query must receive the viewer's visibility scope. The scope becomes the conditions of the query: no filter for admins, no results for a user with no territories, and only the assigned territories for everyone else. A query without it can leak across territories, so the rule has no exceptions.
Counts need the same care. A board that scopes its rows but not its column totals still leaks volume, so counts go through the scope too. Dashboard tests pass an out-of-scope territory filter and expect zeros.
For caching, Next.js 16 cache components hold slow-changing data such as territory lookups. Anything that takes a scope is never shared-cached. Hot data stays dynamic, refreshed by TanStack Query and Ably. Opening a record uses an intercepted route, so the drawer shows the same server content as the full page and the list keeps its scroll and filters.
Outcome
One portal replaces separate inboxes. Website forms, phone calls and manual entries land in the same pipeline. Each territory sees only its own work, and the network sees all of it. Spam is held back, deleted records can be recovered, and every change is in the audit log.
More projects
Other cases where design and development work together to sell more and explain better what the brand does.

[01]
Elastic Heads
Design and development proposal for the new website of Elastic Heads, a digital product design studio in Madrid and UX/UI school. One landing page for two businesses, with a five-step contact form and a bilingual version.

[02]
Pérdida de Grasa Avanzada
A web app that turns body data into calorie and macro targets, then into real meals, weekly diet plans, a shopping list and a PDF.
Four ways to talk to me. Pick the one that suits you best and I will reply within 24 hours.
Currently accepting projects
Hours: Mon–Fri · 9:00–18:00 (Madrid time)
