Skip to content

Rename VIP role to Managerial across codebase#6

Open
cmbaldwin wants to merge 1 commit intomasterfrom
claude/replace-vip-managerial-zZ7Dj
Open

Rename VIP role to Managerial across codebase#6
cmbaldwin wants to merge 1 commit intomasterfrom
claude/replace-vip-managerial-zZ7Dj

Conversation

@cmbaldwin
Copy link
Copy Markdown
Owner

Summary

This PR renames the vip user role to managerial throughout the codebase to better reflect the actual responsibilities and permissions of this role level.

Key Changes

  • User Model: Updated the role enum from vip: 1 to managerial: 1 in User model and all related files
  • Authorization Policies: Updated all policy files (OrderPolicy, SupplierPolicy, SupplyPolicy) to check user.managerial? instead of user.vip?
  • Model Scopes: Updated authorization scopes in Order, Supplier, and Supply models to use the new role
  • Controllers: Renamed check_vip methods to check_managerial in application controllers and updated role checks
  • Tests: Updated all test files to use @managerial user fixture and managerial trait instead of vip
  • Test Factories: Updated user factory to use :managerial trait and set default role accordingly
  • Views: Updated conditional checks in ERB templates to reference managerial? instead of vip?
  • Documentation: Updated README, sandbox demo, and integration documentation to reference "Managerial" role
  • Demo Accounts: Updated sandbox demo account from vip@oroshi.local to managerial@oroshi.local

Implementation Details

  • All functionality remains identical; this is purely a naming/terminology change
  • The role maintains the same permission level (full access alongside admin, with read-only access for employees)
  • All 30+ files updated consistently to ensure no references to the old vip terminology remain in active code

https://claude.ai/code/session_01DedDwrxdECCXZYKgMWLjxP

Replace all references to "VIP" with "managerial" for a more
professional role name. The integer enum value (1) is unchanged
so no database migration is needed.

Updated 25 files: models, controllers, policies, views, tests,
factories, generators, sandbox script, and documentation.

https://claude.ai/code/session_01DedDwrxdECCXZYKgMWLjxP
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.

2 participants