# ModuleCrafter Enterprise LiveChat v7.0.0

## Live-deployment fixes

- Fixed broken Branding & Widget simulation caused by unconstrained preview content/logo sizing.
- Fixed agent reply composer disappearing below the viewport by repairing inbox flex/grid height constraints.
- Fixed same-agent multi-browser call ringing: accepting/rejecting/ending from one browser now stops the call ring in every session for that agent.
- Strengthened the reported one-way WebRTC path with direct mobile HTML-audio playback and `sendrecv` offer transceivers while retaining the agent-side offered-transceiver `replaceTrack` flow.
- Fixed Meta incoming messages so they arrive as realtime visitor messages rather than depending on a refresh.
- Fixed Instagram outgoing sender-ID preference.

## Slack reliability

- Preserves one Slack parent thread per conversation with a cross-process MySQL named lock.
- Ignores bot/app echoes and non-thread messages.
- Human thread replies can atomically claim an unassigned chat and are attributed to a ModuleCrafter user; Auto fallback prefers Superadmin.
- Event endpoint acknowledges Slack immediately and processes work after validation.
- Added inbound-event/thread diagnostics in Admin.

## Meta webhook reliability

- Adds `brand_settings.meta_verify_token` and generates one stable token per brand.
- Adds one recommended callback URL: `/api/v1/integrations/webhooks/meta/:brandId`.
- Callback is generated from configured HTTPS `APP_URL`.
- Verification responds with exact plain-text `hub.challenge`.
- Keeps provider-specific webhook aliases for upgrades.

## Widget styles

Adds Glass and Soft Support presets. Existing Zendesk-inspired, Chatwoot-inspired, Messenger Pro, AI Clean, Modern, Compact, Classic and Minimal styles remain.

## Database

Adds migration `006_v7_reliability_integrations.sql` with:

- stable Meta verify token
- expanded widget layout enum
- `slack_agent_mappings` table for explicit future Slack-user-to-agent mappings

## Deployment

- New `scripts/upgrade-v7.sh`
- New `scripts/fresh-install-v7.sh`
- New `UPGRADE_V6_TO_V7.md`
- New `FRESH_INSTALL_V7.md`
