Skip to content

feat: show organization name for groups on user profile #14448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Aug 29, 2024
Merged
Prev Previous commit
Next Next commit
fix entities
  • Loading branch information
aslilac committed Aug 27, 2024
commit 90643b591fa31a171162fbe6907e0693db2346b0
14 changes: 7 additions & 7 deletions site/src/testHelpers/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2491,35 +2491,35 @@ export const MockWorkspaceQuota: TypesGen.WorkspaceQuota = {
budget: 100,
};

export const MockGroup: TypesGen.Group = {
export const MockGroup: TypesGen.GroupWithOrganizationInfo = {
id: "fbd2116a-8961-4954-87ae-e4575bd29ce0",
name: "Front-End",
display_name: "Front-End",
avatar_url: "https://example.com",
organization_id: MockOrganization.id,
organization_name: MockOrganization.name,
organization_display_name: MockOrganization.display_name,
members: [MockUser, MockUser2],
quota_allowance: 5,
source: "user",
total_member_count: 2,
};

const everyOneGroup = (organizationId: string): TypesGen.Group => ({
id: organizationId,
const MockEveryoneGroup: TypesGen.Group = {
id: `${MockOrganization.id}-everyone`,
name: "Everyone",
display_name: "",
organization_id: organizationId,
organization_display_name: "",
organization_id: MockOrganization.id,
members: [],
avatar_url: "",
quota_allowance: 0,
source: "user",
total_member_count: 0,
});
};

export const MockTemplateACL: TypesGen.TemplateACL = {
group: [
{ ...everyOneGroup(MockOrganization.id), role: "use" },
{ ...MockEveryoneGroup, role: "use" },
{ ...MockGroup, role: "admin" },
],
users: [{ ...MockUser, role: "use" }],
Expand Down
Loading