PromucFlow_constructor/app/client/src/ce/constants/workspaceConstants.ts

44 lines
819 B
TypeScript
Raw Normal View History

export interface WorkspaceRole {
id: string;
name: string;
2020-01-14 09:47:45 +00:00
displayName?: string;
isDefault?: boolean;
}
export interface Workspace {
id: string;
name: string;
website?: string;
email?: string;
logoUrl?: string;
uploadProgress?: number;
userPermissions?: string[];
}
export interface WorkspaceUserRoles {
id?: string;
name?: string;
description?: string;
entityType: ENTITY_TYPE;
entityName?: string;
entityId?: string;
autoCreated: boolean;
}
export interface WorkspaceUser {
name: string;
username: string;
userId: string;
permissionGroupId: string;
permissionGroupName: string;
isDeleting: boolean;
isChangingRole: boolean;
fix: Conditionally call for profile photo api (#20306) ## Description We used to blindly call for profile photos of all users in the applications page. This lead to 404 errors getting printed in the console when the photo does not exist. After fix: #20132 we were able to conditionally decide if we wanted to call for a profile photo or not > Removes the tons of 404 error messages from the console when a user does not have a profile photo Fixes #9322 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## How Has This Been Tested? - Manual ### Test Plan > Add Testsmith test cases links that relate to this PR ### Issues raised during DP testing > Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR) ## Checklist: ### Dev activity - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] PR is being merged under a feature flag ### QA activity: - [ ] Test plan has been approved by relevant developers - [ ] Test plan has been peer reviewed by QA - [ ] Cypress test cases have been added and approved by either SDET or manual QA - [ ] Organized project review call with relevant stakeholders after Round 1/2 of QA - [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-02-15 07:39:50 +00:00
photoId?: string;
roles: WorkspaceUserRoles[];
}
export enum ENTITY_TYPE {
WORKSPACE = "Workspace",
APPLICATION = "Application",
}