Skip to content

Create dev users only in dev environment, show usernames on login screen dev environment only#414

Merged
scherztc merged 3 commits intoqafrom
LIBAPPO1-82-create-usable-admin-and
Mar 19, 2026
Merged

Create dev users only in dev environment, show usernames on login screen dev environment only#414
scherztc merged 3 commits intoqafrom
LIBAPPO1-82-create-usable-admin-and

Conversation

@Janell-Huyck
Copy link
Copy Markdown
Contributor

Summary

This PR updates development seed data and adds development-only login guidance in the UI.

Changes

  • Seeds

    • Removed the legacy test user that had no password.
    • Added four new development-only seed users, one per role:
      • root_admin
      • owner
      • manager
      • viewer
    • These users are created only when db:seed is run in development and are not created in other environments.
  • UI (Development only)

    • Added a development-only section to the login page (or relevant view) with instructions listing the seeded users and the shared password.

Local development:
Screenshot 2026-03-19 at 10 30 42 AM

Branch deployed to QA/Libappstest
Screenshot 2026-03-19 at 10 31 19 AM

Testing

  • ✅ All RSpec tests are still passing.

Notes

  • This keeps production/test seed behavior unchanged while providing consistent, role-based accounts for local development and QA.

@scherztc scherztc self-requested a review March 19, 2026 19:18
Copy link
Copy Markdown
Contributor

@scherztc scherztc left a comment

Choose a reason for hiding this comment

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

Test passed locally.

@scherztc scherztc merged commit a6ef050 into qa Mar 19, 2026
4 checks passed
@scherztc scherztc deleted the LIBAPPO1-82-create-usable-admin-and branch March 19, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants