mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-07-30 17:59:13 -04:00
- Introduced `capture-search.mjs` script for end-to-end mobile search flow captures. - Added `SearchDemo` scene as a Remotion composition for the home-page hero clip. - Integrated dynamic video selection based on theme in `home/search-demo.tsx` component. - Included `fetch-media.mjs` script for fetching demo assets during build. - Enabled optional email verification bypass for local captures (`dev-flags.ts`). - Updated related documentation and scripts for media creation and deployment.
18 lines
854 B
TypeScript
18 lines
854 B
TypeScript
import {IS_LOCAL} from 'common/hosting/constants'
|
|
|
|
/**
|
|
* Render the message composer for an unverified account.
|
|
*
|
|
* Needed by `media-creator/scripts/capture-search.mjs`: the marketing clip ends on someone reaching
|
|
* out, and against a fresh local seed the viewer account has no verified email, so the payoff shot
|
|
* would otherwise be the "verify your email" error state.
|
|
*
|
|
* This only changes which UI is drawn. The real enforcement is server-side in
|
|
* `backend/api/src/create-private-user-message-channel.ts`, which still rejects unverified senders with
|
|
* a 403 — so this cannot be used to actually message anyone, here or anywhere else.
|
|
*
|
|
* Enable with NEXT_PUBLIC_SKIP_EMAIL_VERIFICATION=1 in a local .env, running `yarn dev`.
|
|
*/
|
|
export const skipEmailVerification =
|
|
IS_LOCAL && process.env.NEXT_PUBLIC_SKIP_EMAIL_VERIFICATION === '1'
|