The problem
Partners relied on email and phone for quotes, prices and account questions, which tied up staff and gave the business no structured data about the people it worked with.
The opportunity
Give each partner one authenticated place to manage their account and get work done, with what they do written straight into the CRM so sales and marketing can act on it.
My approach
- 01
Accounts people can manage
Sign-in, a profile and business details the user keeps up to date, and support tools for staff: view the product as a given user or as a given role.
- 02
Roles from the system of record
A user's role is derived from a field in Salesforce, with two hard rules: internal roles are never derived from Salesforce, and missing or unknown data never demotes anyone, so a CRM outage can't lock people out.
- 03
A dashboard per role
Each role sees its own tools, its own price list and its own next steps. Features are switched on per role, and the switch denies access when anything is unclear.
- 04
Workflows that land in the CRM
Cloud Functions talk to the Salesforce REST API on the JWT Bearer flow, so no credentials ever reach the browser. Quotes and registrations sync back as records or tasks for the rep, and opportunities route to partners by service area.
- 05
Reporting for the business
Monthly adoption, engagement and sync health, with internal staff excluded by default so the numbers describe real users.
Architecture
Select a component to see what it does, what it connects to, and its status.
A React PWA on Firebase. Cloud Functions are the trusted layer for every Salesforce call; Firestore rules and fail-closed feature flags decide who sees what.
- Clients
- Server
- Data
- External
Architectural decisions
- Fail closed, never demote
- Feature flags deny access when anything is unclear, while role sync never removes access on missing data. Each failure mode defaults to the safe side for that specific risk.
- Credentials stay on the server
- The browser never holds a CRM credential. It asks a Cloud Function, which checks who is asking before it talks to Salesforce.
- Rules in two places
- What a role may see is enforced in the interface and again in the database rules, so hiding a link is never the only protection.
Challenges overcome
Counting the right people
Reporting showed 61% of activity came from internal staff testing and supporting users. Internal roles are now excluded by default, so adoption numbers reflect real users.
Metrics that predate their tracking
77% of older quotes were missing a submitted date and had to be backfilled. Reports now show a dash for metrics that weren't instrumented yet, instead of a misleading zero.
Capability status
Completed, experimental and planned capabilities, kept separate on purpose.
Live8
- Sign-in and account management
- Role-based access synced from the CRM
- Dashboards and price lists scoped by role
- Quick quote with Salesforce sync
- Opportunity routing by service area
- View-as-user and preview-as-role for support
- Admin reporting
- Installable PWA with safe update prompts
Results & current status
- Shipped to production, designed and built solo.
- Access is enforced on the server and in the database rules, not only in the interface.