# Manus Project Settings Update Guide

This guide provides instructions for updating Manus project settings to reflect the new playcoinkrazy.com domain.

## Overview

The Manus Management UI allows you to update project settings including website name, domain, and visibility. Follow these steps to update your project configuration.

## Step 1: Access Manus Management UI

1. Open the Manus Management UI (right panel in the web editor)
2. Click on **Settings** in the left sidebar
3. You should see several sub-panels:
   - General
   - Domains
   - Notifications
   - Secrets
   - GitHub

## Step 2: Update General Settings

### Update Website Name

1. Go to **Settings → General**
2. Find "Website Name" field
3. Update from "CoinKrazy" to "PlayCoinKrazy"
4. Click **Save**

### Update Website Title

1. In the same General settings
2. Find "Website Title" field
3. Update to "PlayCoinKrazy - Sweepstakes Social Casino"
4. Click **Save**

### Update Website Description

1. Find "Website Description" field
2. Update to: "Experience the thrill of PlayCoinKrazy - Your premier sweepstakes social casino with exciting games, real prizes, and community features."
3. Click **Save**

### Update Favicon

1. Find "Favicon" section
2. Upload your PlayCoinKrazy logo (PNG, 32x32 or 64x64)
3. Click **Save**

## Step 3: Configure Custom Domain

### Add Custom Domain

1. Go to **Settings → Domains**
2. Click **"Add Custom Domain"**
3. Enter: `playcoinkrazy.com`
4. Click **Add**

### Configure DNS for Custom Domain

1. Manus will provide DNS instructions
2. Follow the DNS setup guide (DNS_SETUP.md)
3. Add the required DNS records to your registrar
4. Wait for DNS propagation (24-48 hours)

### Verify Domain

1. Once DNS is configured, click **Verify** next to your domain
2. Manus will check DNS records
3. Once verified, your domain is active

### Set as Primary Domain

1. Find playcoinkrazy.com in the domains list
2. Click **"Set as Primary"**
3. Your site will now be accessible at playcoinkrazy.com

### Remove Old Domain (Optional)

1. Find coinkrazy.com in the domains list
2. Click **"Remove"** if you no longer need it
3. Confirm removal

## Step 4: Update Notification Settings

### Configure Notifications

1. Go to **Settings → Notifications**
2. Set up notification preferences:
   - Email notifications for admin alerts
   - Webhook notifications for reputation changes
   - Slack integration (if available)

### Enable Email Alerts

1. Check "Email Alerts" checkbox
2. Enter admin email: `admin@playcoinkrazy.com`
3. Select alert types:
   - ✅ Campaign delivery alerts
   - ✅ Reputation degradation alerts
   - ✅ User signup notifications
   - ✅ System errors
4. Click **Save**

## Step 5: Verify Secrets Configuration

### Check Environment Variables

1. Go to **Settings → Secrets**
2. Verify the following are configured:
   - `BREVO_SMTP_HOST`: smtp-relay.brevo.com
   - `BREVO_SMTP_PORT`: 587
   - `BREVO_SMTP_USER`: [your-brevo-email]
   - `BREVO_SMTP_PASS`: [your-smtp-password]
   - `VITE_APP_TITLE`: PlayCoinKrazy
   - `VITE_APP_LOGO`: [your-logo-url]

### Update Secrets if Needed

1. Click on any secret to edit
2. Update the value
3. Click **Save**
4. Server will restart with new values

## Step 6: Check GitHub Integration

### Verify GitHub Sync

1. Go to **Settings → GitHub**
2. Verify the repository is connected
3. Check that changes are syncing to GitHub
4. The domain update should be reflected in the latest commit

## Step 7: Update Dashboard Visibility

### Set Website Visibility

1. Go to **Settings → General**
2. Find "Website Visibility" setting
3. Choose visibility level:
   - **Public:** Anyone can access
   - **Private:** Only authenticated users
   - **Unlisted:** Only with direct link
4. Click **Save**

### Enable Analytics

1. Find "Analytics" section
2. Enable analytics tracking
3. Choose analytics provider
4. Configure tracking ID
5. Click **Save**

## Step 8: Verify All Settings

### Checklist

- [ ] Website name updated to "PlayCoinKrazy"
- [ ] Website title updated
- [ ] Website description updated
- [ ] Favicon uploaded
- [ ] Custom domain playcoinkrazy.com added
- [ ] DNS records verified
- [ ] Domain set as primary
- [ ] Email alerts configured
- [ ] Brevo SMTP credentials verified
- [ ] GitHub integration synced
- [ ] Analytics enabled
- [ ] Website visibility set correctly

## Step 9: Test Updated Settings

### Test Website Access

1. Open browser
2. Navigate to playcoinkrazy.com
3. Verify website loads correctly
4. Check that favicon displays
5. Verify all links work

### Test Email Delivery

1. Follow EMAIL_DELIVERY_TEST.md guide
2. Send test campaign
3. Verify emails are sent from noreply@playcoinkrazy.com
4. Check email headers for authentication

### Test Admin Panel

1. Log in to admin panel
2. Check all pages load correctly
3. Verify domain references are updated
4. Test email campaign creation
5. Test reputation dashboard

## Step 10: Deploy to Production

### Save Checkpoint

1. In Manus Management UI, click **"Save Checkpoint"**
2. Add description: "Update domain to playcoinkrazy.com"
3. Click **Save**

### Publish Website

1. Click **"Publish"** button in Management UI
2. Confirm deployment
3. Wait for deployment to complete
4. Verify website is live at playcoinkrazy.com

### Monitor Deployment

1. Check deployment logs in Management UI
2. Verify no errors
3. Test website functionality
4. Monitor error logs for issues

## Troubleshooting

### Domain Not Resolving

**Issue:** Website not accessible at playcoinkrazy.com

**Solution:**
1. Wait 24-48 hours for DNS propagation
2. Clear browser cache
3. Verify DNS records in registrar
4. Check Manus domain verification status
5. Contact Manus support if persistent

### Settings Not Saving

**Issue:** Changes to settings don't persist

**Solution:**
1. Refresh the Management UI
2. Check for error messages
3. Verify you have admin permissions
4. Try again after server restart
5. Check browser console for errors

### Email Not Sending

**Issue:** Emails not being delivered

**Solution:**
1. Verify Brevo SMTP credentials
2. Check email address is valid
3. Review Brevo dashboard for bounces
4. Verify SPF/DKIM/DMARC records
5. Check server logs for errors

### Favicon Not Displaying

**Issue:** Favicon not showing in browser tab

**Solution:**
1. Clear browser cache
2. Hard refresh (Ctrl+Shift+R)
3. Verify favicon file is correct format (PNG)
4. Check favicon size (32x32 or 64x64)
5. Re-upload favicon

## Next Steps

1. **Monitor analytics** - Track website traffic and user behavior
2. **Set up alerts** - Get notified of important events
3. **Configure backups** - Ensure data is backed up regularly
4. **Review security** - Verify SSL/TLS is enabled
5. **Plan scaling** - Monitor performance and scale as needed

## Support

For issues with:
- **Manus Settings:** Check Manus documentation or contact support
- **Domain Configuration:** Contact your domain registrar
- **Email Delivery:** Check Brevo dashboard or contact Brevo support
- **Website Deployment:** Contact Manus support

## Additional Resources

- [Manus Documentation](https://docs.manus.im)
- [Manus Management UI Guide](https://docs.manus.im/management-ui)
- [Custom Domain Setup](https://docs.manus.im/custom-domains)
- [Email Configuration](https://docs.manus.im/email-setup)
