# System Names Configuration

This document explains how to control the visibility of technical system names (like "Odoo") in the customer-facing portal.

## Environment Variable

Add this to your `.env.local` or `.env.production` file:

```env
# Show technical system names (set to 'false' for production to hide backend system names like "Odoo")
NEXT_PUBLIC_SHOW_SYSTEM_NAMES=true
```

## Usage

### Development Environment
Set `NEXT_PUBLIC_SHOW_SYSTEM_NAMES=true` to show technical names like "Odoo" for debugging and development purposes.

### Production Environment
Set `NEXT_PUBLIC_SHOW_SYSTEM_NAMES=false` to hide technical system names from customers. All references will be replaced with generic terms:

- "Odoo" → "system"
- "Odoo ERP" → "backend system"
- "Odoo Integration" → "System Integration"
- "from Odoo" → "in real-time"
- "to Odoo" → "to the backend system"
- "Linked to Odoo" → "Account linked"

## Implementation

The configuration is centralized in `src/lib/config.js`:

```javascript
import { getSystemName, getIntegrationText } from '@/lib/config';

// Use in your components:
<h3>{getIntegrationText('✅ Odoo Integration Active')}</h3>
// Outputs: "✅ System Integration Active" when NEXT_PUBLIC_SHOW_SYSTEM_NAMES=false
```

## Files Updated

The following customer-facing pages use this configuration:

- `src/app/(portal)/dashboard/page.js` - Dashboard integration status
- `src/app/(portal)/payments/page.js` - Billing integration status
- `src/app/(portal)/services/page.js` - Services integration status
- `src/components/modals/kyc-upload-modal.js` - KYC upload description

## Testing

1. Set `NEXT_PUBLIC_SHOW_SYSTEM_NAMES=true` in `.env.local`
2. Run `npm run dev`
3. Check that "Odoo" appears in integration status messages

4. Set `NEXT_PUBLIC_SHOW_SYSTEM_NAMES=false`
5. Restart the dev server
6. Verify that "Odoo" is replaced with generic terms

## Production Deployment

For production builds, ensure your `.env.production` file has:

```env
NEXT_PUBLIC_SHOW_SYSTEM_NAMES=false
```

This will ensure customers never see internal system names.
