feat(bot): increase bot transparency

This commit removes some actions and interactions that a bot user should
not be part:
  - No actions available when clicking over bot user in the user-list
  - Remove bot from exported user-list
  - Remove bot from available users to be assigned to breakouts
This commit is contained in:
Arthurk12 2024-10-18 15:15:49 -03:00
parent c359a38329
commit 22c2a371b0
5 changed files with 6 additions and 2 deletions

View File

@ -88,6 +88,7 @@ select_permissions:
- disconnected
- expired
- extId
- bot
- guest
- guestStatus
- hasDrawPermissionOnCurrentPage

View File

@ -89,6 +89,7 @@ export interface User {
reactionEmoji: string;
presenter?: boolean;
pinned?: boolean;
bot?: boolean;
guest?: boolean;
guestStatus: string;
joinErrorCode: string;

View File

@ -25,6 +25,7 @@ export interface getBreakoutsResponse {
export const getUser = gql`
query getUser {
user(
where: { bot: {_eq: false } }
order_by: [
{role: asc},
{raiseHandTime: asc_nulls_last},

View File

@ -565,7 +565,7 @@ const UserActions: React.FC<UserActionsProps> = ({
];
const actions = dropdownOptions.filter((key) => key.allowed);
if (!actions.length) {
if (!actions.length || user.bot) {
return (
<span>
{children}

View File

@ -30,6 +30,7 @@ subscription UserListSubscription($offset: Int!, $limit: Int!) {
locked
authed
mobile
bot
guest
clientType
disconnected
@ -79,7 +80,7 @@ export const GET_USER_IDS = gql`
export const GET_USER_NAMES = gql`
query Users {
user {
user(where: { bot: { _eq: false } } ) {
name
}
}