# v372 — Workspace Settings Tabs and Integration Cleanup

## Purpose

v372 continues the application cleanup cycle after v371. The goal is to keep normal user surfaces useful, simple, and clearly separated by job.

Workspace Settings should not become a large mixed setup page. It should help a company admin manage the company profile and team access. Third-party provider setup belongs in the Third-Party Integrations page.

## What changed

- Rebuilt `/company` into a simpler tabbed Workspace Settings page.
- Workspace Settings now has three clear tabs:
  - Profile
  - Team
  - Access & setup
- Removed visible business phone/Twilio setup panels from `/company`.
- Kept provider setup in `/company/integrations`.
- Kept SMTP credential setup in `/company/integrations` under the Email tab.
- Clarified that Twilio, Google Maps, QuickBooks, Stripe Connect, Email, and future APIs belong on the Integrations page.
- Removed duplicate sidebar links:
  - Drivers in CRM
  - Owner Operators in CRM
  - Dispatcher Billing Setup
- Preserved main useful work surfaces:
  - Dispatch Board for live work
  - Loads for load records
  - Documents for paperwork
  - Billing for billing records
  - CORI Financial for AI money briefing

## Placement decisions

### Workspace Settings

`/company` is now for:

- company name
- workspace slug
- team users
- team roles
- links to security, integrations, and billing records

It is not for:

- Twilio setup
- SMTP setup
- provider keys
- OAuth setup
- webhook setup
- API readiness details

### Third-Party Integrations

`/company/integrations` is now the single Workspace Admin home for:

- Email
- Custom SMTP
- Google Maps API
- Twilio
- QuickBooks API
- Stripe Connect
- Other APIs

### Billing

`/billing` remains a work surface for billing records and payment review.

`/billing/dispatcher-services` now redirects to `/company/integrations` because dispatcher-service Stripe setup is a provider/integration setup task, not a daily billing work page.

## Rule result

This build reduces duplicate setup surfaces and keeps technical provider setup out of normal work pages.

## Prisma schema impact

None.
