Skip to content

feat: add realistic prisma seed and improve auth UX/localization#2

Merged
BODMAT merged 3 commits into
masterfrom
feat/seed-login-refactor
May 20, 2026
Merged

feat: add realistic prisma seed and improve auth UX/localization#2
BODMAT merged 3 commits into
masterfrom
feat/seed-login-refactor

Conversation

@BODMAT

@BODMAT BODMAT commented May 20, 2026

Copy link
Copy Markdown
Owner

Summary

This PR adds a complete Prisma seed setup for CoinRadar and improves auth/frontend UX consistency.

Changes

  • Added Prisma seed entry in backend package config (prisma.seed)
  • Added apps/backend/prisma/seed.ts with realistic demo data:
    • 3 users
    • 2 wallets per user
    • rich transaction history with buy/sell
    • 80/20 recent-vs-older distribution
    • swap scenarios linked by swapGroupId
    • lowercase symbols (btc, eth, sol, bnb) for consistent API/UI matching
    • test password for seeded users (Test12345, stored as bcrypt hash)
  • Improved auth popup password UX:
    • show/hide via clickable eye SVG icon
  • Unified copy language to English across touched auth/wallet validation and related messages/comments (frontend + backend)
  • Applied Prettier formatting and validated lint

Validation

  • npm run lint
  • npm run check / npm run format

Notes

  • Seed is reproducible for teammates after DB setup/migrations.
  • To run seed:
    1. cd apps/backend
    2. npx prisma db seed

BODMAT added 2 commits May 20, 2026 19:46
Add initial CoinRadar seed with users, wallets, transactions, and swap scenarios.
Add eye toggle for password visibility and translate auth/wallet validation + leftover UI/backend messages to English.
@BODMAT BODMAT force-pushed the feat/seed-login-refactor branch from 7681ac5 to 21057ee Compare May 20, 2026 16:46
@BODMAT BODMAT merged commit a268baa into master May 20, 2026
1 check passed
@BODMAT BODMAT deleted the feat/seed-login-refactor branch May 20, 2026 18:16
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