Complete visual overview of the platform architecture, data flows, company-user linkage, and all the improvements made.
How all the pieces of BlueDXP fit together — from the browser to the database.
12+ standalone HTML pages with inline CSS/JS. No framework — each page is self-contained with its own styling and logic.
Node.js API functions deployed on Vercel. Each file is an independent serverless function handling specific routes.
Vercel Postgres with 20+ tables covering users, orgs, submissions, freight exchange, warehouses, billing, and more.
15-minute access tokens + 30-day refresh tokens. MFA support, account lockout, session management, and anomaly detection.
All the major tables in your database and how they connect to each other. Green lines show the new organization linkage.
| Table | Purpose | Org Linked? | Record Count Scope |
|---|---|---|---|
| organizations | Company accounts (branding, settings) | Primary | Platform-wide |
| users | User accounts + auth | organization_id | Platform-wide |
| submissions | RFIs, freight quotes, feedback | organization_id | Org-scoped |
| freight_listings | Load board: loads & capacity | poster_org_id | Market-wide (visible) |
| freight_bids | Bids on freight listings | bidder_org_id | Per listing |
| warehouses | Warehouse network profiles | organization_id | Org-scoped |
| billing_accounts | Stripe-ready billing | organization_id | Org-level |
| stakeholders | Client contacts for SLAs | organization_id | Org-scoped |
| sla_definitions | Custom SLA rules | organization_id | Org-scoped |
| conversations | AI chat history | organization_id | Per user |
| sessions | Login sessions + refresh tokens | Via user | Per user |
How users sign up, log in, and get routed to the right part of the platform based on their role.
Via invite or open registration with company name
Admin reviews (if open signup)
Full access per role + org
All data scoped to their company
Submit RFIs, bid on freight, manage warehouses
How companies (organizations) connect to everything else in the platform. This is the core of multi-tenancy.
Admin invites user with email + role + org
User clicks invite link and creates account
organization_id set from invitation
All queries filtered by their org
User signs up with company name
System auto-creates organization
Admin approves the user
User is active in their company
How loads are posted, bids are placed, and deals are awarded — now with company context.
Companies post loads with origin, destination, equipment, cargo type, DG class, incoterms, and budget. Company name now displayed on each listing.
Company Context AddedCarriers bid on loads with amount, currency, and message. The bidder's company name is now stored and visible to the listing owner.
Company Context AddedListing owner accepts a bid — the listing is marked "awarded", winning bid "accepted", and all other pending bids are auto-rejected.
AI agent assists with rate analysis, route optimization, DG classification, and market outlook via the built-in chat.
How organization branding (logo, colors) flows from the database to every page the user sees.
| Page | File | Branding Applied |
|---|---|---|
| Login | login.html | Yes (built-in + loader) |
| Signup | signup.html | Yes (built-in) |
| Customer Portal | portal.html | Yes (built-in + loader) |
| Settings | settings.html | Yes (loader added) |
| Admin / Command Center | admin.html | Yes (loader added) |
| Freight Exchange | wajeeh-enterprise-master.html?fx=1 (Loadboard tab) | Yes (built-in to master shell) |
| Dispatch Center | dispatch.html | Yes (loader added) |
| Main Workspace | wajeeh-enterprise-master.html | Partial (large file, manual) |
Side-by-side comparison of what the platform looked like before and after the architecture improvements.
The 10 roles in the platform and what each one can access. Higher level = more permissions.
| Permission | Platform Admin | Ops Manager | Commercial | Warehouse | Support | Customer | Partner | Viewer |
|---|---|---|---|---|---|---|---|---|
| Manage Users | + | — | — | — | — | — | — | — |
| Invite Users | + | — | — | — | — | — | — | — |
| View All Submissions | + | + | — | — | — | — | — | — |
| View Own Submissions | + | + | + | + | + | + | + | — |
| Create Submissions | + | + | + | + | — | + | + | — |
| Manage Settings | + | — | — | — | — | — | — | — |
| View Settings | + | + | — | — | — | — | — | — |
| Manage Billing | + | — | — | — | — | — | — | — |
| Security Audit | + | — | — | — | — | — | — | — |
| AI Analyze | + | + | + | + | + | — | — | — |
| AI Ask | + | + | + | + | + | + | + | + |
| Export CSV | + | + | + | + | + | — | — | — |
| Portal Access | — | — | — | — | — | + | + | — |
| Org Members | + | + | + | + | — | — | — | — |
| Org Manage Members | + | + | — | — | — | — | — | — |
| Tier | Price/mo | Daily AI Tokens | Monthly AI Tokens | API Requests/day | Max Users | Default For |
|---|---|---|---|---|---|---|
| Free | $0 | 10,000 | 200,000 | 100 | 1 | Viewer |
| Standard | $49 | 100,000 | 2,000,000 | 1,000 | 5 | Customer, Partner, Support, Compliance, Finance |
| Professional | $199 | 500,000 | 10,000,000 | 5,000 | 25 | Ops Manager, Commercial, Warehouse |
| Enterprise | Custom | Unlimited | Unlimited | Unlimited | Unlimited | Platform Admin |