Implement Role Management Features and UI Enhancements
- Introduced a new composable `useActiveRole` for managing user roles, including fetching role status and switching roles with server validation. - Updated `RoleSwitcher.vue` to utilize the new composable, enhancing role selection with improved error handling and UI feedback. - Added new API endpoints for role management, including fetching user role status and switching active roles. - Enhanced product visibility logic to filter based on the user's active role, ensuring a tailored experience. - Updated database schema to support last active role tracking for users, improving session management. - Refined UI components across the application to reflect role-based changes and improve user experience.
This commit is contained in:
@@ -80,7 +80,12 @@
|
||||
"Bash(pnpm remove:*)",
|
||||
"Bash(pnpm db:generate:*)",
|
||||
"Bash(pnpm tsx:*)",
|
||||
"Bash(node test-roleswitcher-keyboard.mjs:*)"
|
||||
"Bash(node test-roleswitcher-keyboard.mjs:*)",
|
||||
"Bash(tmux capture-pane:*)",
|
||||
"Bash(tmux list-sessions:*)",
|
||||
"Bash(tmux send-keys:*)",
|
||||
"Bash(tmux new-session:*)",
|
||||
"Bash(tmux kill-session:*)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
|
||||
Reference in New Issue
Block a user