8000 feat: add Organization Provisioner Keys view by johnstcn · Pull Request #17889 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add Organization Provisioner Keys view #17889

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 9 commits into from
May 19, 2025
Merged
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
fix WithError story
  • Loading branch information
johnstcn committed May 19, 2025
commit 3979e76c852c4130d8e44fe8d96c295934005290
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import {
ProvisionerKeyIDPSK,
ProvisionerKeyIDUserAuth,
} from "api/typesGenerated";
import { MockProvisioner, MockProvisionerKey } from "testHelpers/entities";
import {
MockProvisioner,
MockProvisionerKey,
mockApiError,
} from "testHelpers/entities";
import { OrganizationProvisionerKeysPageView } from "./OrganizationProvisionerKeysPageView";

const mockProvisionerKeyDaemons: ProvisionerKeyDaemons[] = [
Expand Down Expand Up @@ -96,10 +100,13 @@ export const Empty: Story = {
},
};

export const ErrorLoadingProvisionerKeys: Story = {
export const WithError: Story = {
...Default,
args: {
provisionerKeyDaemons: [],
error: "Failed to load provisioner keys",
provisionerKeyDaemons: undefined,
error: mockApiError({
message: "Error loading provisioner keys",
detail: "Something went wrong. This is an unhelpful error message.",
}),
},
};
Loading
0