Skip to content
Prev Previous commit
Next Next commit
Fix and suggestions by @code-asher
  • Loading branch information
BrunoQuaresma committed Sep 6, 2024
commit fa4cd29b70a5419e2050028df8f917473eb8e085
2 changes: 1 addition & 1 deletion site/src/pages/UsersPage/UsersPage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export const UpdateUserRoleError: Story = {
await user.click(
within(userRow).getByLabelText("Auditor", { exact: false }),
);
await within(document.body).findByText("Error updating the user roles.");
await within(document.body).findByText("Error on updating the user roles.");
},
};

Expand Down
6 changes: 2 additions & 4 deletions site/src/pages/UsersPage/storybookData/groups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ export const MockGroups: Group[] = [
findMockedUserById("0bac0dfd-b086-4b6d-b8ba-789e0eca7451"),
],
total_member_count: 5,
avatar_url:
"https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg",
avatar_url: "",
quota_allowance: 0,
source: "user",
organization_name: "coder",
Expand Down Expand Up @@ -197,8 +196,7 @@ export const MockGroups: Group[] = [
organization_id: "703f72a1-76f6-4f89-9de6-8a3989693fe5",
members: [findMockedUserById("c5eb8310-cf4f-444c-b223-0e991f828b40")],
total_member_count: 1,
avatar_url:
"https://missionfitlife.com/wp-content/uploads/2019/04/winners.jpg",
avatar_url: "",
quota_allowance: 1000,
source: "user",
organization_name: "coder",
Expand Down
7 changes: 0 additions & 7 deletions site/src/pages/UsersPage/storybookData/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export const MockUsers: User[] = [
},
{
id: "27c64335-5e08-44ac-b93f-e454b82a9a06",
email: "austin@coder.com",
created_at: "2024-06-10T18:10:33.595496Z",
updated_at: "2024-07-25T22:39:21.144268Z",
last_seen_at: "2024-07-25T22:39:21.144268Z",
Expand Down Expand Up @@ -217,7 +216,6 @@ export const MockUsers: User[] = [
},
{
id: "9e3e4c5a-5949-417f-9380-d0a393c78bdd",
email: "ben.peinhardt@coder.com",
created_at: "2024-07-15T02:00:51.816307Z",
updated_at: "2024-09-05T04:32:12.923203Z",
last_seen_at: "2024-09-05T04:32:12.923203Z",
Expand Down Expand Up @@ -324,7 +322,6 @@ export const MockUsers: User[] = [
},
{
id: "9bc756d1-5e95-4c6f-8e1b-a1bd20547151",
email: "christin@coder.com",
created_at: "2024-09-04T11:29:24.168944Z",
updated_at: "2024-09-04T11:29:24.658926Z",
last_seen_at: "2024-09-04T11:29:24.658926Z",
Expand All @@ -341,7 +338,6 @@ export const MockUsers: User[] = [
},
{
id: "59da0bfe-9c99-47fa-a563-f9fdb18449d0",
email: "cian@coder.com",
created_at: "2022-08-15T08:30:10.343828Z",
updated_at: "2024-09-05T12:27:22.098297Z",
last_seen_at: "2024-09-05T12:27:22.098297Z",
Expand Down Expand Up @@ -422,7 +418,6 @@ export const MockUsers: User[] = [
},
{
id: "c323e5c3-57cb-45e7-81c4-56d6cacb2f8c",
email: "danny@coder.com",
created_at: "2024-03-04T11:12:41.201352Z",
updated_at: "2024-09-05T07:24:39.32465Z",
last_seen_at: "2024-09-05T07:24:39.324649Z",
Expand All @@ -439,7 +434,6 @@ export const MockUsers: User[] = [
},
{
id: "9e7815af-bc48-435a-91c7-72dcbf26f036",
email: "davidkramer@coder.com",
created_at: "2024-05-24T14:53:53.996555Z",
updated_at: "2024-07-22T16:43:16.494533Z",
last_seen_at: "2024-07-22T16:43:16.494533Z",
Expand Down Expand Up @@ -530,7 +524,6 @@ export const MockUsers: User[] = [
},
{
id: "806e35bb-37fd-4810-b5f2-88aa47c30c84",
email: "ethan@coder.com",
created_at: "2024-06-03T03:09:52.16976Z",
updated_at: "2024-09-05T12:51:39.933117Z",
last_seen_at: "2024-09-05T12:51:39.933117Z",
Expand Down
Loading