Improve staff management UI and add sorting functionality
- Remove WIP badge from staff sidebar navigation - Make action buttons consistent between Customers and Staff pages - Edit button: icon + text with gray border - Masquerade button: icon + text with indigo border - Verify email button: icon-only with colored border (green/amber) - Add sortable columns to Staff list (name and role) - Include migrations for tenant manager role removal 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -122,7 +122,9 @@ const Tickets: React.FC = () => {
|
||||
setIsTicketModalOpen(false);
|
||||
};
|
||||
|
||||
const isOwnerOrManager = currentUser?.role === 'owner' || currentUser?.role === 'manager';
|
||||
// Owner and staff with can_access_tickets permission have full access
|
||||
const hasFullTicketAccess = currentUser?.role === 'owner' ||
|
||||
(currentUser?.role === 'staff' && currentUser?.effective_permissions?.can_access_tickets);
|
||||
|
||||
if (isLoading) {
|
||||
return (
|
||||
@@ -163,7 +165,7 @@ const Tickets: React.FC = () => {
|
||||
{t('tickets.title', 'Support Tickets')}
|
||||
</h2>
|
||||
<p className="text-gray-500 dark:text-gray-400">
|
||||
{isOwnerOrManager
|
||||
{hasFullTicketAccess
|
||||
? t('tickets.descriptionOwner', 'Manage support tickets for your business')
|
||||
: t('tickets.descriptionStaff', 'View and create support tickets')}
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user