teqo/.env.test
Francisco Ignácio Fontoura Solla e2724c10da Remodel the campaign vertical from Praça to Município
Rename the operational unit "Praça"/"Núcleo" to "Município" (code identifier
`municipality`) and land the 2026-07-23 course changes:

- New `candidate` role with unrestricted visibility (`isCampaignStaff` now
  includes it) alongside coordinator/advisor; leader is locked down to the
  supporter contact tool only.
- Demandas become staff-only; dobradinhas modeled via a `stateDeputy` entity.
- Camaçari consolidated to a single município (ZE 170/171 aggregated);
  Salvador keeps its 19 zone municípios.
- Map moves to the staff dashboard; `/campanha/municipios` is list/overview.
- Vote pledges keep the declared vs estimated (scenario) asymmetry; leaders
  never see estimates.

Destructive migration for the campaign vertical (drops nucleus/plaza-era
tables, wipes campaign rows, seeds 435 municípios). Public-site data untouched.

Includes the post-delivery /simplify cleanups: shared reloadStaffActor /
reloadCoordinatorActor helpers, req.context cache for getFreshCampaignUser,
parallelized dashboard loads, candidate dashboard-copy fix, and dead
leader-dashboard / roleKind code removal.
2026-07-23 21:36:20 -03:00

15 lines
852 B
Text

# Environment for the automated test suite (vitest + playwright).
#
# This file is committed ON PURPOSE: it contains no secrets, only local values.
# The test suite deletes and recreates records, so it MUST use an isolated,
# throwaway database. Tests load THIS file (not .env / .env.local) and refuse to
# run unless the database name ends with "_test" (see assertTestDatabase.ts).
#
# Requires the local Postgres from docker-compose (`pnpm db:start`), which
# auto-creates the teqo_test database on first run.
# Optional when Docker Postgres is not on localhost:5432 (e.g. port mapped to 5433):
# TEQO_TEST_DATABASE_URL=postgresql://teqo:teqo@127.0.0.1:5433/teqo_test
DATABASE_URL=postgresql://teqo:teqo@localhost:5432/teqo_test
PAYLOAD_SECRET=test-only-secret-not-used-in-production
BLOB_READ_WRITE_TOKEN=
NEXT_PUBLIC_SITE_URL=http://localhost:3000