From 8064e017dcb57c77589d1e1ac5bc985e73133e9a Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Tue, 2 Dec 2025 17:40:39 -0500 Subject: [PATCH 1/2] db:seeds create staff users for testing in development --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 422921309..2979c1b41 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -14,7 +14,7 @@ else def create_tenant(signal_account_name) tenant_id = ActiveRecord::FixtureSet.identify signal_account_name email_address = "david@37signals.com" - identity = Identity.find_or_create_by!(email_address: email_address) + identity = Identity.find_or_create_by!(email_address: email_address, staff: true) unless account = Account.find_by(external_account_id: tenant_id) account = Account.create_with_owner( From 6345aa4787153f3401ff5eb7a9afdd5286e487ea Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 3 Dec 2025 15:35:25 -0500 Subject: [PATCH 2/2] Update seeds to use `@example.com` See also https://www.rfc-editor.org/rfc/rfc2606.html --- AGENTS.md | 4 +-- README.md | 2 +- bin/dev | 2 +- db/seeds.rb | 2 +- db/seeds/37signals.rb | 8 +++--- db/seeds/honcho.rb | 12 ++++----- script/migrations/signal-id-email-update.rb | 27 --------------------- 7 files changed, 15 insertions(+), 42 deletions(-) delete mode 100755 script/migrations/signal-id-email-update.rb diff --git a/AGENTS.md b/AGENTS.md index ee391cc03..428c802a8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,7 +15,7 @@ bin/dev # Start development server (runs on port 3006) ``` Development URL: http://fizzy.localhost:3006 -Login with: david@37signals.com (development fixtures), password will appear in the browser console +Login with: david@example.com (development fixtures), password will appear in the browser console ### Testing ```bash @@ -142,7 +142,7 @@ Key recurring tasks (via `config/recurring.yml`): ### Chrome MCP (Local Dev) URL: `http://fizzy.localhost:3006` -Login: david@37signals.com (passwordless magic link auth - check rails console for link) +Login: david@example.com (passwordless magic link auth - check rails console for link) Use Chrome MCP tools to interact with the running dev app for UI testing and debugging. diff --git a/README.md b/README.md index b668747e9..8a7877326 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ bin/dev You'll be able to access the app in development at http://fizzy.localhost:3006. -To login, enter `david@37signals.com` and grab the verification code from the browser console to sign in. +To login, enter `david@example.com` and grab the verification code from the browser console to sign in. ### Running tests diff --git a/bin/dev b/bin/dev index 287127eda..51d232d91 100755 --- a/bin/dev +++ b/bin/dev @@ -1,7 +1,7 @@ #!/usr/bin/env sh bin/rails runner - < #{change[:to]}" - user.email_address = change[:to] - user.save! - end - end -end