Rename default staff roles: Manager, Support Staff, Staff

- Renamed "Full Access Staff" to "Manager"
- Renamed "Front Desk" to "Support Staff"
- Renamed "Limited Staff" to "Staff"
- Updated permissions: Support Staff now has access to messages and payments
- Updated all references in code, tests, help docs, and translations
- Added migration 0016 to rename existing roles in database

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
poduck
2025-12-17 21:52:57 -05:00
parent 9a013ad968
commit 9848268d34
8 changed files with 128 additions and 54 deletions

View File

@@ -1979,7 +1979,7 @@
"deleteRole": "Delete Role",
"roleName": "Role Name",
"roleDescription": "Description",
"roleNamePlaceholder": "e.g., Front Desk",
"roleNamePlaceholder": "e.g., Support Staff",
"roleDescriptionPlaceholder": "Brief description of this role's responsibilities",
"permissions": "Permissions",
"menuAccess": "Menu Access",

View File

@@ -84,28 +84,28 @@ const HelpSettingsStaffRoles: React.FC = () => {
<div className="flex flex-col gap-2 p-4 bg-gray-50 dark:bg-gray-700/50 rounded-lg">
<div className="flex items-center gap-2">
<Shield size={20} className="text-green-500" />
<h4 className="font-medium text-gray-900 dark:text-white">Full Access Staff</h4>
<h4 className="font-medium text-gray-900 dark:text-white">Manager</h4>
</div>
<p className="text-sm text-gray-500 dark:text-gray-400">
Access to all menu items and all dangerous permissions. Best for managers and supervisors.
</p>
</div>
<div className="flex flex-col gap-2 p-4 bg-gray-50 dark:bg-gray-700/50 rounded-lg">
<div className="flex items-center gap-2">
<Shield size={20} className="text-blue-500" />
<h4 className="font-medium text-gray-900 dark:text-white">Limited Staff</h4>
</div>
<p className="text-sm text-gray-500 dark:text-gray-400">
Access to Scheduler, Customers, and Messages only. No dangerous permissions. Best for general staff.
Full access to all features and settings. Best for supervisors and team leads.
</p>
</div>
<div className="flex flex-col gap-2 p-4 bg-gray-50 dark:bg-gray-700/50 rounded-lg">
<div className="flex items-center gap-2">
<Shield size={20} className="text-purple-500" />
<h4 className="font-medium text-gray-900 dark:text-white">Front Desk</h4>
<h4 className="font-medium text-gray-900 dark:text-white">Support Staff</h4>
</div>
<p className="text-sm text-gray-500 dark:text-gray-400">
Access to Scheduler, Services, Customers, and Messages. No delete permissions. Best for reception.
Customer-facing operations including scheduling, customers, tickets, messages, and payments.
</p>
</div>
<div className="flex flex-col gap-2 p-4 bg-gray-50 dark:bg-gray-700/50 rounded-lg">
<div className="flex items-center gap-2">
<Shield size={20} className="text-blue-500" />
<h4 className="font-medium text-gray-900 dark:text-white">Staff</h4>
</div>
<p className="text-sm text-gray-500 dark:text-gray-400">
Basic access to own schedule and availability. Best for general staff members.
</p>
</div>
</div>
@@ -406,7 +406,7 @@ const HelpSettingsStaffRoles: React.FC = () => {
<div>
<h4 className="font-medium text-gray-900 dark:text-white">Start with Default Roles</h4>
<p className="text-sm text-gray-500 dark:text-gray-400">
Use the built-in roles (Full Access, Limited, Front Desk) as templates when creating custom roles
Use the built-in roles (Manager, Support Staff, Staff) as templates when creating custom roles
</p>
</div>
</li>