• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scarver2 / ehr-portal / 23272596537
77%

Build:
DEFAULT BRANCH: main
Ran 18 Mar 2026 11:44PM UTC
Jobs 1
Files 7
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Mar 2026 11:43PM UTC coverage: 100.0%. Remained the same
23272596537

push

github

web-flow
feat: role-based access control (replace AdminUser with User role enum + Pundit) (#14)

* disabled guard-bundler

* feat: replace AdminUser with role enum on User model

Removes the separate AdminUser Devise resource and consolidates
identity into the existing User model using a string-backed enum
(admin, provider, staff, patient). Updates migration, schema, seeds,
and RBS signatures accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat: add Pundit policy, admin role guard, and ActiveAdmin::Devise routing

- ApplicationPolicy: deny-by-default Pundit base class
- ApplicationController: include Pundit::Authorization; add
  require_admin_role that signs out and redirects non-admin users
- active_admin.rb: wire require_admin_role as before_action; switch
  authentication/logout helpers to User Devise methods
- routes.rb: devise_for :users with ActiveAdmin::Devise.config (login
  at /admin/login); root redirects to /admin

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: silence GraphQL empty Mutation type warning

has_no_fields(true) suppresses the GraphQL-Ruby warning until real
mutations are introduced.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: silence Turbopack multi-lockfile warning in monorepo

root: __dirname pins the app root so Turbopack does not warn about
multiple bun.lock files discovered in the monorepo.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore: update bin/steps for role-based user model

- 13_security.sh: add Pundit gem install and RBS shim
- 14_activeadmin.sh: update to configure User as the admin identity
- Rename 30_administrators_modeling → 30_users_modeling (role enum)
- Rename 40_administrators_seeds → 40_users_seeds (role-based seeds)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore: run db:drop + migrate + seed on every bin/dev startup

Ensures a clean database state on each dev boot while schema and seeds
are actively evo... (continued)

24 of 24 relevant lines covered (100.0%)

3.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 23272596537.1 18 Mar 2026 11:44PM UTC 7
100.0
GitHub Action Run
Source Files on build 23272596537
  • Tree
  • List 7
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23272596537
  • 8c8ca685 on github
  • Prev Build on main (#23267164453)
  • Next Build on main (#23272596518)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc