diff --git a/.env.example b/.env.example index 78c0412..a4fe63f 100644 --- a/.env.example +++ b/.env.example @@ -12,6 +12,12 @@ DEFAULT_EVENT_SLUG=demo # Encrypts the session cookie. REQUIRED, min 32 chars. # openssl rand -base64 48 SESSION_SECRET= +# While rotating: the old secret(s), comma-separated, still accepted for +# reading cookies for one session lifetime so nobody is signed out. +# SESSION_SECRET_PREVIOUS= +# Hashes login codes. Defaults to SESSION_SECRET; set it separately in +# production so rotating the session secret leaves codes in flight working. +# OTP_PEPPER= # ── Postgres ────────────────────────────────────────────────── POSTGRES_USER=matchmaker diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 824252a..b1d8b60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + # The migration gate compares with the base commit. + fetch-depth: 0 - uses: actions/setup-node@v4 with: @@ -47,29 +50,31 @@ jobs: - name: Unit tests run: npx vitest run tests/unit + # Migrations run before the new code starts, and a rollback runs the + # previous image on the migrated schema: released migrations never + # change and new ones only expand. + - name: Migrations are safe to roll back from + run: npx tsx tools/check-migrations.ts "${{ github.event.pull_request.base.sha || github.event.before }}" + integration: name: Integration tests runs-on: ubuntu-latest - services: - postgres: - image: pgvector/pgvector:pg16 - env: - POSTGRES_USER: matchmaker - POSTGRES_PASSWORD: matchmaker - POSTGRES_DB: matchmaker - ports: - - 5432:5432 - options: >- - --health-cmd "pg_isready -U matchmaker" - --health-interval 5s - --health-timeout 5s - --health-retries 20 - + # The same Postgres (with the Keycloak database) and Keycloak (with the + # realm import and theme) that docker compose runs locally. env: DATABASE_URL: postgres://matchmaker:matchmaker@localhost:5432/matchmaker DATABASE_SSL: disable SESSION_SECRET: ci-session-secret-long-enough-for-validation-x + KEYCLOAK_ISSUER: http://localhost:8080/realms/match-maker + KEYCLOAK_PUBLIC_URL: http://localhost:8080 + KEYCLOAK_ADMIN: admin + KEYCLOAK_ADMIN_PASSWORD: admin + KEYCLOAK_CLIENT_ID: match-maker-web + KEYCLOAK_CLIENT_SECRET: ci-client-secret + APP_BASE_URL: http://localhost:3000 + # Suites skip themselves without these services; here that is a failure. + REQUIRE_SERVICES: db,keycloak steps: - uses: actions/checkout@v4 @@ -81,13 +86,104 @@ jobs: - run: npm ci + - name: Start Postgres and Keycloak + run: docker compose up -d --wait postgres keycloak + # The suite calls migrate() itself, so this only proves the runner works # standalone — the way the deploy pipeline invokes it. - name: Apply migrations run: npm run db:migrate + - name: Configure Keycloak + run: | + npm run keycloak:wait + npm run keycloak:sync + - name: Integration tests - run: npx vitest run tests/integration + run: npx vitest run tests/integration --reporter=default --reporter=json --outputFile=vitest-report.json + + # A suite that skipped itself would otherwise count as a pass. + - name: Every integration test ran + run: npx tsx tools/check-test-report.ts vitest-report.json + + - name: Service logs + if: failure() + run: docker compose logs --no-color postgres keycloak | tail -n 300 + + browser: + name: Browser acceptance + runs-on: ubuntu-latest + needs: [quality] + + # The built app and the worker against the compose Postgres and Keycloak. + # Login codes are logged instead of e-mailed and read from the app's log. + env: + DATABASE_URL: postgres://matchmaker:matchmaker@localhost:5432/matchmaker + DATABASE_SSL: disable + SESSION_SECRET: ci-session-secret-long-enough-for-validation-x + KEYCLOAK_ISSUER: http://localhost:8080/realms/match-maker + KEYCLOAK_PUBLIC_URL: http://localhost:8080 + KEYCLOAK_ADMIN: admin + KEYCLOAK_ADMIN_PASSWORD: admin + KEYCLOAK_CLIENT_ID: match-maker-web + KEYCLOAK_CLIENT_SECRET: ci-client-secret + APP_BASE_URL: http://localhost:3000 + EMAIL_DEV_FALLBACK: "true" + MATCH_REFRESH_DELAY_SECONDS: "3" + E2E_BASE_URL: http://localhost:3000 + E2E_WEB_LOG: ${{ github.workspace }}/e2e-web.log + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: npm + + - run: npm ci + + - name: Start Postgres and Keycloak + run: docker compose up -d --wait postgres keycloak + + - name: Migrate, seed and configure Keycloak + run: | + npm run db:migrate + npm run db:seed + npm run keycloak:wait + npm run keycloak:sync + + - name: Build + run: npm run build + + - name: Install Chromium + run: npx playwright install --with-deps chromium + + - name: Start app and worker + run: | + (cd apps/web && nohup npx next start -p 3000 > "$E2E_WEB_LOG" 2>&1 &) + nohup npm run worker > e2e-worker.log 2>&1 & + for i in $(seq 1 60); do + curl -fsS http://localhost:3000/api/health/ready && exit 0 + sleep 2 + done + cat "$E2E_WEB_LOG" + exit 1 + + - name: Browser tests + run: npm run test:e2e + + - name: Keep report and logs + if: failure() + uses: actions/upload-artifact@v4 + with: + name: browser-acceptance + path: | + playwright-report/ + test-results/ + e2e-web.log + e2e-worker.log + retention-days: 7 build: name: Build images diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 25ad537..6b8dffa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,6 +5,15 @@ on: branches: [main] workflow_dispatch: inputs: + environment: + description: "Where to deploy. Staging is a separate Terraform stack (environment = staging)." + type: choice + options: [production, staging] + default: production + promote_tag: + description: "Promote: copy this tag's staging images to production unchanged, then migrate and roll out (production only)" + type: string + default: "" deploy_keycloak: description: "Also rebuild and roll out Keycloak" type: boolean @@ -16,7 +25,7 @@ on: # Never let two deploys race for the same service. concurrency: - group: deploy-production + group: deploy-${{ inputs.environment || 'production' }} cancel-in-progress: false permissions: @@ -24,29 +33,59 @@ permissions: id-token: write contents: read +# Staging names follow the Terraform stack (match-maker-staging-*) and never +# fall back to production's repository variables. Each job that touches AWS +# runs in the GitHub environment of the target, so its role, subnets and URL +# come from that environment's secrets and variables. env: + TARGET: ${{ inputs.environment || 'production' }} + STACK: ${{ inputs.environment == 'staging' && 'match-maker-staging' || 'match-maker-prod' }} AWS_REGION: ${{ vars.AWS_REGION || 'ap-south-1' }} - ECS_CLUSTER: ${{ vars.ECS_CLUSTER || 'match-maker-prod-cluster' }} - ECS_WEB_SERVICE: ${{ vars.ECS_WEB_SERVICE || 'match-maker-prod-web' }} - ECS_WORKER_SERVICE: ${{ vars.ECS_WORKER_SERVICE || 'match-maker-prod-worker' }} - ECS_KEYCLOAK_SERVICE: ${{ vars.ECS_KEYCLOAK_SERVICE || 'match-maker-prod-keycloak' }} - MIGRATE_TASK_FAMILY: ${{ vars.MIGRATE_TASK_FAMILY || 'match-maker-prod-migrate' }} + ECS_CLUSTER: ${{ inputs.environment == 'staging' && 'match-maker-staging-cluster' || vars.ECS_CLUSTER || 'match-maker-prod-cluster' }} + ECS_WEB_SERVICE: ${{ inputs.environment == 'staging' && 'match-maker-staging-web' || vars.ECS_WEB_SERVICE || 'match-maker-prod-web' }} + ECS_WORKER_SERVICE: ${{ inputs.environment == 'staging' && 'match-maker-staging-worker' || vars.ECS_WORKER_SERVICE || 'match-maker-prod-worker' }} + ECS_KEYCLOAK_SERVICE: ${{ inputs.environment == 'staging' && 'match-maker-staging-keycloak' || vars.ECS_KEYCLOAK_SERVICE || 'match-maker-prod-keycloak' }} + MIGRATE_TASK_FAMILY: ${{ inputs.environment == 'staging' && 'match-maker-staging-migrate' || vars.MIGRATE_TASK_FAMILY || 'match-maker-prod-migrate' }} jobs: # Decides what ships: the pushed commit, or an existing tag on rollback. plan: name: Plan release runs-on: ubuntu-latest + environment: ${{ inputs.environment || 'production' }} outputs: tag: ${{ steps.plan.outputs.tag }} rollback: ${{ steps.plan.outputs.rollback }} + promote: ${{ steps.plan.outputs.promote }} steps: + # A staging run must find staging's own settings, never production's. + - name: Check the target environment + env: + STACK_NAME: ${{ vars.STACK_NAME }} + run: | + set -euo pipefail + if [ "$TARGET" = "staging" ] && [ "${STACK_NAME:-}" != "match-maker-staging" ]; then + echo "::error::Set STACK_NAME=match-maker-staging (and staging's AWS secrets) in the GitHub 'staging' environment first." + exit 1 + fi + - id: plan env: ROLLBACK_TAG: ${{ inputs.rollback_tag }} + PROMOTE_TAG: ${{ inputs.promote_tag }} run: | set -euo pipefail - if [ -n "${ROLLBACK_TAG:-}" ]; then + echo "promote=false" >> "$GITHUB_OUTPUT" + if [ -n "${PROMOTE_TAG:-}" ]; then + if [ "$TARGET" != "production" ] || [ -n "${ROLLBACK_TAG:-}" ] || ! [[ "$PROMOTE_TAG" =~ ^[0-9a-f]{7,40}$ ]]; then + echo "::error::promote_tag takes an image tag, targets production, and cannot be combined with rollback_tag." + exit 1 + fi + echo "tag=$PROMOTE_TAG" >> "$GITHUB_OUTPUT" + echo "rollback=false" >> "$GITHUB_OUTPUT" + echo "promote=true" >> "$GITHUB_OUTPUT" + echo "Promoting the staging images tagged $PROMOTE_TAG" + elif [ -n "${ROLLBACK_TAG:-}" ]; then if ! [[ "$ROLLBACK_TAG" =~ ^[0-9a-f]{7,40}$ ]]; then echo "::error::rollback_tag must be an image tag (a commit SHA prefix), got '$ROLLBACK_TAG'." exit 1 @@ -67,7 +106,8 @@ jobs: ci: name: Required checks needs: [plan] - if: needs.plan.outputs.rollback != 'true' + # A promoted tag passed these checks when it was built for staging. + if: needs.plan.outputs.rollback != 'true' && needs.plan.outputs.promote != 'true' uses: ./.github/workflows/ci.yml with: build_images: false @@ -76,6 +116,10 @@ jobs: name: Build & push images runs-on: ubuntu-latest needs: [plan, ci] + if: >- + !cancelled() && needs.plan.result == 'success' && needs.plan.outputs.rollback != 'true' && + (needs.plan.outputs.promote == 'true' || needs.ci.result == 'success') + environment: ${{ inputs.environment || 'production' }} env: TAG: ${{ needs.plan.outputs.tag }} steps: @@ -91,7 +135,24 @@ jobs: - uses: docker/setup-buildx-action@v3 + # The same image digests that passed staging; nothing is rebuilt. Needs + # both stacks' repositories in one AWS account and registry. + - name: Copy the staging images + if: needs.plan.outputs.promote == 'true' + env: + REGISTRY: ${{ steps.ecr.outputs.registry }} + run: | + set -euo pipefail + repos="web migrate worker" + if [ "${{ inputs.deploy_keycloak }}" = "true" ]; then repos="$repos keycloak"; fi + for repo in $repos; do + docker buildx imagetools create \ + --tag "$REGISTRY/$STACK/$repo:$TAG" --tag "$REGISTRY/$STACK/$repo:latest" \ + "$REGISTRY/match-maker-staging/$repo:$TAG" + done + - name: Build & push web + if: needs.plan.outputs.promote != 'true' uses: docker/build-push-action@v6 with: context: . @@ -99,24 +160,26 @@ jobs: push: true build-args: APP_VERSION=${{ env.TAG }} tags: | - ${{ steps.ecr.outputs.registry }}/match-maker-prod/web:${{ env.TAG }} - ${{ steps.ecr.outputs.registry }}/match-maker-prod/web:latest + ${{ steps.ecr.outputs.registry }}/${{ env.STACK }}/web:${{ env.TAG }} + ${{ steps.ecr.outputs.registry }}/${{ env.STACK }}/web:latest cache-from: type=gha cache-to: type=gha,mode=max - name: Build & push migrate + if: needs.plan.outputs.promote != 'true' uses: docker/build-push-action@v6 with: context: . file: infra/docker/migrate.Dockerfile push: true tags: | - ${{ steps.ecr.outputs.registry }}/match-maker-prod/migrate:${{ env.TAG }} - ${{ steps.ecr.outputs.registry }}/match-maker-prod/migrate:latest + ${{ steps.ecr.outputs.registry }}/${{ env.STACK }}/migrate:${{ env.TAG }} + ${{ steps.ecr.outputs.registry }}/${{ env.STACK }}/migrate:latest cache-from: type=gha cache-to: type=gha,mode=max - name: Build & push worker + if: needs.plan.outputs.promote != 'true' uses: docker/build-push-action@v6 with: context: . @@ -124,21 +187,21 @@ jobs: push: true build-args: APP_VERSION=${{ env.TAG }} tags: | - ${{ steps.ecr.outputs.registry }}/match-maker-prod/worker:${{ env.TAG }} - ${{ steps.ecr.outputs.registry }}/match-maker-prod/worker:latest + ${{ steps.ecr.outputs.registry }}/${{ env.STACK }}/worker:${{ env.TAG }} + ${{ steps.ecr.outputs.registry }}/${{ env.STACK }}/worker:latest cache-from: type=gha cache-to: type=gha,mode=max - name: Build & push Keycloak - if: inputs.deploy_keycloak + if: inputs.deploy_keycloak && needs.plan.outputs.promote != 'true' uses: docker/build-push-action@v6 with: context: . file: infra/docker/keycloak.Dockerfile push: true tags: | - ${{ steps.ecr.outputs.registry }}/match-maker-prod/keycloak:${{ env.TAG }} - ${{ steps.ecr.outputs.registry }}/match-maker-prod/keycloak:latest + ${{ steps.ecr.outputs.registry }}/${{ env.STACK }}/keycloak:${{ env.TAG }} + ${{ steps.ecr.outputs.registry }}/${{ env.STACK }}/keycloak:latest cache-from: type=gha cache-to: type=gha,mode=max @@ -146,6 +209,9 @@ jobs: name: Run migrations runs-on: ubuntu-latest needs: [plan, build-and-push] + if: >- + !cancelled() && needs.plan.outputs.rollback != 'true' && needs.build-and-push.result == 'success' + environment: ${{ inputs.environment || 'production' }} env: TAG: ${{ needs.plan.outputs.tag }} steps: @@ -164,7 +230,7 @@ jobs: REGISTRY="$(aws sts get-caller-identity --query Account --output text).dkr.ecr.${AWS_REGION}.amazonaws.com" aws ecs describe-task-definition --task-definition "$MIGRATE_TASK_FAMILY" \ --query 'taskDefinition' > migrate-taskdef.json - jq --arg IMAGE "$REGISTRY/match-maker-prod/migrate:$TAG" ' + jq --arg IMAGE "$REGISTRY/$STACK/migrate:$TAG" ' .containerDefinitions[0].image = $IMAGE | del(.taskDefinitionArn, .revision, .status, .requiresAttributes, .compatibilities, .registeredAt, .registeredBy, .deregisteredAt) @@ -198,7 +264,7 @@ jobs: echo "Exit code: $EXIT_CODE ($REASON)" if [ "$EXIT_CODE" != "0" ]; then - echo "::error::Migration failed — aborting deploy. Check /ecs/match-maker-prod/migrate." + echo "::error::Migration failed — aborting deploy. Check /ecs/$STACK/migrate." exit 1 fi @@ -206,6 +272,7 @@ jobs: name: Roll out runs-on: ubuntu-latest needs: [plan, build-and-push, migrate] + environment: ${{ inputs.environment || 'production' }} # A rollback skips checks, build and migrations (the schema only moves # forward); a normal release needs all of them to have succeeded. if: >- @@ -228,7 +295,7 @@ jobs: repos="web worker" if [ "${{ inputs.deploy_keycloak }}" = "true" ]; then repos="$repos keycloak"; fi for repo in $repos; do - aws ecr describe-images --repository-name "match-maker-prod/$repo" \ + aws ecr describe-images --repository-name "$STACK/$repo" \ --image-ids imageTag="$TAG" >/dev/null \ || { echo "::error::No $repo image tagged $TAG in ECR."; exit 1; } done @@ -272,7 +339,7 @@ jobs: # Strip the server-managed fields that RegisterTaskDefinition rejects, # then point the container at the immutable tag. - jq --arg IMAGE "$REGISTRY/match-maker-prod/web:$TAG" ' + jq --arg IMAGE "$REGISTRY/$STACK/web:$TAG" ' .containerDefinitions[0].image = $IMAGE | del(.taskDefinitionArn, .revision, .status, .requiresAttributes, .compatibilities, .registeredAt, .registeredBy, .deregisteredAt) @@ -304,7 +371,7 @@ jobs: aws ecs describe-task-definition --task-definition "$FAMILY" \ --query 'taskDefinition' > worker-taskdef.json - jq --arg IMAGE "$REGISTRY/match-maker-prod/worker:$TAG" ' + jq --arg IMAGE "$REGISTRY/$STACK/worker:$TAG" ' .containerDefinitions[0].image = $IMAGE | del(.taskDefinitionArn, .revision, .status, .requiresAttributes, .compatibilities, .registeredAt, .registeredBy, .deregisteredAt) @@ -335,7 +402,7 @@ jobs: --query 'services[0].taskDefinition' --output text | sed -E 's#^.*task-definition/([^:]+):[0-9]+$#\1#') aws ecs describe-task-definition --task-definition "$FAMILY" \ --query 'taskDefinition' > keycloak-taskdef.json - jq --arg IMAGE "$REGISTRY/match-maker-prod/keycloak:$TAG" ' + jq --arg IMAGE "$REGISTRY/$STACK/keycloak:$TAG" ' .containerDefinitions[0].image = $IMAGE | del(.taskDefinitionArn, .revision, .status, .requiresAttributes, .compatibilities, .registeredAt, .registeredBy, .deregisteredAt) diff --git a/.gitignore b/.gitignore index d1464f3..88b2c56 100644 --- a/.gitignore +++ b/.gitignore @@ -68,6 +68,8 @@ infra/terraform/*.tfstate infra/terraform/*.tfstate.* infra/terraform/*.tfvars !infra/terraform/*.tfvars.example +infra/terraform/environments/*.tfvars +!infra/terraform/environments/*.tfvars.example infra/terraform/*.tfplan infra/terraform/.terraform.lock.hcl infra/terraform/override.tf diff --git a/ReadMe.md b/ReadMe.md index 6ea993d..6a6b387 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -4,7 +4,7 @@ Mr. Bridge is a multi event networking and matchmaking app. Organizers create ev The implementation follows the architecture described in [docs/PROJECT_STRUCTURE.md](docs/PROJECT_STRUCTURE.md). The [end-to-end flow](docs/END_TO_END_FLOW.md) and [matching pipeline](docs/BRIDGE_ENGINE_PIPELINE.md) docs show the product journeys. -See the [production roadmap](docs/PRODUCTION_ROADMAP.md) for authentication findings, the invited-account signup policy, Google setup, and remaining work ordered by implementation effort. +See the [production roadmap](docs/PRODUCTION_ROADMAP.md) for authentication findings, the invited-account signup policy, Google setup, and remaining work ordered by implementation effort. The [operations runbook](docs/OPERATIONS.md) covers releases, staging, rollback, alarms, database restore, secret rotation and the launch checklist. ## Architecture @@ -102,8 +102,11 @@ The first command imports the global attendee directory so the organizer account | `npm run build` | Build workspace packages and the app | | `npm run typecheck` | Type-check all workspaces | | `npm run lint` | Run ESLint | -| `npm test` | Run unit and integration suites | +| `npm test` | Run unit and integration suites. Integration suites skip without Postgres/Keycloak; set `REQUIRE_SERVICES=db,keycloak` to fail instead (CI does, and `tools/check-test-report.ts` fails on any skipped test). Stop a locally running worker first, or it claims the pipeline test's jobs | +| `npm run test:e2e` | Browser acceptance suite (Playwright) against a running app and worker started with `EMAIL_DEV_FALLBACK=true`; set `E2E_BASE_URL` and `E2E_WEB_LOG` (the app's output, where login codes are read) | | `npm run db:migrate` | Apply pending PostgreSQL migrations | +| `npm run capacity:check` | Measure matching throughput, search latency and model calls for an event size against the budgets in the runbook | +| `npm run db:verify` / `db:restore-rehearsal` | Check a database (or a restored copy) is usable; rehearse dump and restore locally | | `npm run db:seed` | Upsert demo roster, organization, event, and organizer | | `npm run db:import -- [event-slug]` | Import attendee rows and optionally attach them to an event | | `npm run keycloak:wait` | Wait for the configured Keycloak realm to respond | diff --git a/apps/web/app/(participant)/e/[eventSlug]/connections/page.tsx b/apps/web/app/(participant)/e/[eventSlug]/connections/page.tsx index f95bc06..e961833 100644 --- a/apps/web/app/(participant)/e/[eventSlug]/connections/page.tsx +++ b/apps/web/app/(participant)/e/[eventSlug]/connections/page.tsx @@ -1,13 +1,13 @@ import Link from "next/link"; import SignOutButton from "@/components/ui/SignOutButton"; -import { getParticipantConnections, respondToParticipantIntro, shareVenueZoneAction } from "../../../../actions/intro.actions"; +import { answerLocationAction, getParticipantConnections, requestLocationAction, respondToParticipantIntro, shareVenueZoneAction } from "../../../../actions/intro.actions"; import { requireParticipantEvent } from "@/src/lib/auth"; import { ActionForm } from "@/components/ui/form"; import { eventAllows } from "@/src/domain/shared/event-lifecycle"; export default async function ConnectionsPage({ params, searchParams }: { params: Promise<{ eventSlug: string }>; - searchParams: Promise<{ requested?: string; location?: string }>; + searchParams: Promise<{ requested?: string; location?: string; asked?: string; replied?: string; declined?: string }>; }) { const { eventSlug } = await params; const notice = await searchParams; @@ -18,9 +18,12 @@ export default async function ConnectionsPage({ params, searchParams }: { INTRODUCTIONS · {event.name}

Connections

{notice.requested &&

Intro request sent. You will see their contact details once they accept.

} - {notice.location &&

Your venue zone is shared with your accepted connections.

} + {notice.location &&

Your venue zone is shared with all your accepted connections for 15 minutes.

} + {notice.asked &&

Request sent. They decide whether to share where they are.

} + {notice.replied &&

Your zone is shared with them for 15 minutes.

} + {notice.declined &&

Request declined. They have been told you would rather not share right now.

} {!connections.length ?

Your intro requests will show up here. Find someone you would like to meet from your matches or search.

:
- {connections.map((connection) =>
+ {connections.map((connection) =>

{connection.participant.name}

{[connection.participant.designation, connection.participant.domain].filter(Boolean).join(" · ")}

@@ -31,7 +34,25 @@ export default async function ConnectionsPage({ params, searchParams }: { {connection.contact.email && } {connection.contact.phone && } {connection.contact.venueZone &&
At the venue: {connection.contact.venueZone}
} - {event.zones.length > 0 && eventAllows(event.status, "shareZone") && + {connection.locationAsked?.status === "answered" &&
Replied: at {connection.locationAsked.zone}
} + {connection.locationAsked?.status === "pending" &&
Asked where they are. Waiting for a reply.
} + {connection.locationAsked?.status === "declined" &&
They would rather not share where they are right now.
} + {event.zones.length > 0 && eventAllows(event.status, "shareZone") && <> + {connection.locationIncoming &&
+ {connection.participant.name} is asking where you are. Sharing is up to you; only they will see it, for 15 minutes. +
+ + + + + +
+
} + {connection.locationAsked?.status !== "pending" && } + } + {event.zones.length > 0 && eventAllows(event.status, "shareZone") &&