# BuzzTrail Test Configurations

This directory contains test `buzztrail.txt` files for MVP development and testing.

## Test Sites

### ACCU (accu.co.uk)
- **Type**: Professional C++ development community
- **Video AI**: ✅ Enabled
- **Voice AI**: ✅ Enabled  
- **Text AI**: ✅ Enabled
- **Partnership**: Gold tier
- **Currency**: GBP

### JMLSG (jmlsg.org.uk)
- **Type**: Financial compliance guidance
- **Video AI**: ✅ Enabled
- **Voice AI**: ❌ Disabled
- **Text AI**: ✅ Enabled
- **Partnership**: Silver tier
- **Currency**: GBP

### MooCar (moocar.com.au)
- **Type**: Australian car marketplace
- **Video AI**: ✅ Enabled
- **Voice AI**: ❌ Disabled
- **Text AI**: ✅ Enabled
- **Partnership**: Bronze tier
- **Currency**: AUD

## Usage

### For MVP Testing

Instead of building a complex site configuration manager, use the `TestBuzzTrailLoader`:

```typescript
import { TestBuzzTrailLoader } from './testing/buzztrail-examples/test-loader';

// Load configuration for a test site
const config = await TestBuzzTrailLoader.loadTestConfig('accu.co.uk');

// Check if a domain has test configuration
const hasConfig = await TestBuzzTrailLoader.hasTestConfig('accu.co.uk');

// Get list of all test domains
const domains = await TestBuzzTrailLoader.getTestDomains();
```

### Adding New Test Sites

1. Create a new `.txt` file in this directory (e.g., `example.com.txt`)
2. Add the domain mapping to `test-config.json`
3. Follow the format shown in existing files

### File Format

Each `buzztrail.txt` file follows this format:

```
Site Name: [Site Name]
Description: [Description]
Offering Type: [type]
Offers Credits: [true/false]
Credit Amount: [number] (optional)
Provides Guidance: [true/false]
Partnership Tier: [bronze/silver/gold/platinum]
Pays For Text: [true/false]
Pays For Voice: [true/false]
Pays For Video: [true/false]
Show Costs: [true/false]
Currency: [USD/EUR/GBP/AUD]
```

## Benefits for MVP

- ✅ **Simple**: No complex site configuration manager needed
- ✅ **Fast**: No network requests during development
- ✅ **Reliable**: Predictable test data
- ✅ **Flexible**: Easy to add new test sites
- ✅ **Realistic**: Based on actual site types

This approach lets you focus on the core video functionality without getting bogged down in site configuration complexity.

## Development Integration

### How It Works

When you visit one of the test sites during development, the extension will:

1. **Check if it's development mode** (version 0.0.0 or NODE_ENV=development)
2. **Look for local test configuration** in `testing/buzztrail-examples/`
3. **Load the local file** instead of fetching from the actual website
4. **Fall back to remote** if no local config exists

### Testing

To test the local configuration loading:

```typescript
import { testLocalConfigLoading } from './testing/buzztrail-examples/test-integration';

// Run in your content script or background
await testLocalConfigLoading();
```

### Adding New Test Sites

1. Create a new `.txt` file in `testing/buzztrail-examples/`
2. Add the domain mapping to `test-config.json`
3. The extension will automatically use it during development

### Production Behavior

In production (non-development mode), the extension will:
- Skip local file checking
- Fetch `buzztrail.txt` from actual websites
- Use default configuration if no file exists 