Skip to content

feat(db): add translator2 credentials to .env.example and setup script#218

Merged
kaseywright merged 1 commit into
mainfrom
fix/add-second-dev-user
Jul 8, 2026
Merged

feat(db): add translator2 credentials to .env.example and setup script#218
kaseywright merged 1 commit into
mainfrom
fix/add-second-dev-user

Conversation

@kaseywright

@kaseywright kaseywright commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Add SEED_TRANSLATOR2_EMAIL and SEED_TRANSLATOR2_PASSWORD to .env.example and surface them in the setup.ts credential summary. Fix default password for translator2 in dev-users seed (was 't2@123456', now 't@123456' to match the .env.example default and the other translator account).

Summary by CodeRabbit

  • New Features
    • Added support for seeding a second translator account in development.
    • Introduced new environment variables for the additional translator credentials.
    • Setup output now includes the second translator’s login details alongside the existing dev accounts.

Add SEED_TRANSLATOR2_EMAIL and SEED_TRANSLATOR2_PASSWORD to .env.example
and surface them in the setup.ts credential summary. Fix default password
for translator2 in dev-users seed (was 't2@123456', now 't@123456' to
match the .env.example default and the other translator account).
@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Adds environment variables SEED_TRANSLATOR2_EMAIL and SEED_TRANSLATOR2_PASSWORD to .env.example, wires them into dev-users.ts seed data, and updates setup.ts to read these variables and log translator2 credentials alongside existing Manager and Translator output.

Changes

Translator2 Seed Credentials

Layer / File(s) Summary
Env vars and dev seed data
.env.example, src/db/seeds/dev-users.ts
Adds SEED_TRANSLATOR2_EMAIL/SEED_TRANSLATOR2_PASSWORD defaults and formats the translator2 password assignment in DEV_USERS.
Setup script logging
src/db/scripts/setup.ts
Reads new translator2 env variables with fallback defaults and extends console output to log Translator2 credentials.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding Translator2 credentials to the env example and setup script.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/add-second-dev-user

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/db/scripts/setup.ts`:
- Around line 61-66: The setup summary in the seeding script is printing
cleartext passwords for Manager, Translator, and Translator2, which should be
removed or redacted. Update the logging in the setup routine to omit password
values entirely or replace them with a masked placeholder while still keeping
the email/username identifiers visible. Use the existing seed variables in the
setup flow to locate the affected console.log statements and keep the summary
safe for stdout and CI logs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 8493f56b-f128-4996-b35c-a91e63d0cecc

📥 Commits

Reviewing files that changed from the base of the PR and between 50c3ebe and 0d290ff.

📒 Files selected for processing (3)
  • .env.example
  • src/db/scripts/setup.ts
  • src/db/seeds/dev-users.ts

Comment thread src/db/scripts/setup.ts
@kaseywright kaseywright merged commit f8fb826 into main Jul 8, 2026
2 checks passed
@github-actions github-actions Bot deleted the fix/add-second-dev-user branch July 8, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant