Skip to content

feat(site): Read users into basic UsersTable #981

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 26 commits into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lint
  • Loading branch information
presleyp committed Apr 13, 2022
commit be60aa8634b84d829a9eb52104a630c6c5521a09
2 changes: 1 addition & 1 deletion site/src/components/ErrorSummary/ErrorSummary.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Template: Story<ErrorSummaryProps> = (args) => <ErrorSummary {...args} />

export const WithError = Template.bind({})
WithError.args = {
error: new Error("Something went wrong!")
error: new Error("Something went wrong!"),
}

export const WithUndefined = Template.bind({})
2 changes: 1 addition & 1 deletion site/src/components/ErrorSummary/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"

const Language = {
unknownErrorMessage: "Unknown error"
unknownErrorMessage: "Unknown error",
}

export interface ErrorSummaryProps {
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/UsersPage/UsersPageView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Template: Story<UsersPageViewProps> = (args) => <UsersPageView {...args} /
export const Ready = Template.bind({})
Ready.args = {
users: [MockUser, MockUser2],
pager: MockPager
pager: MockPager,
}
export const Empty = Template.bind({})
Empty.args = {
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/UsersPage/UsersPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { UsersTable } from "../../components/UsersTable/UsersTable"

export const Language = {
pageTitle: "Users",
pageSubtitle: (pager: Pager | undefined) => (pager ? `{pager.total} total` : ""),
pageSubtitle: (pager: Pager | undefined): string => (pager ? `{pager.total} total` : ""),
}

export interface UsersPageViewProps {
Expand Down
1 change: 0 additions & 1 deletion site/src/test_helpers/entities.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { v4 as uuidv4 } from "uuid"
import {
BuildInfoResponse,
Organization,
Expand Down