8000 feat: add provisioner jobs into the UI by BrunoQuaresma · Pull Request #16867 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: add provisioner jobs into the UI #16867

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 8 commits into from
Mar 14, 2025
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
Apply Kaylas suggestions
  • Loading branch information
BrunoQuaresma committed Mar 12, 2025
commit a56246f027bd7ca6028dd3fc65fc27e7f203a7b4
6 changes: 2 additions & 4 deletions site/src/modules/management/OrganizationSettingsLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ export type OrganizationSettingsValue = Readonly<{
organizationPermissions?: OrganizationPermissions;
}>;

export const useOrganizationSettings = (
defaultValues?: OrganizationSettingsValue,
): OrganizationSettingsValue => {
const context = useContext(OrganizationSettingsContext) ?? defaultValues;
export const useOrganizationSettings = (): OrganizationSettingsValue => {
const context = useContext(OrganizationSettingsContext);

if (!context) {
throw new Error(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Meta, StoryObj } from "@storybook/react";
import { expect, userEvent, waitFor, within } from "@storybook/test";
import { Table, TableBody } from "components/Table/Table";
import { MockProvisionerJob } from "testHelpers/entities";
import { daysAgo } from "utils/time";
import { JobRow } from "./JobRow";

Expand All @@ -9,35 +10,8 @@ const meta: Meta<typeof JobRow> = {
component: JobRow,
args: {
job: {
id: "373cb47a-c33b-4e35-83bf-23c64fde0293",
...MockProvisionerJob,
created_at: daysAgo(2),
started_at: "2025-03-09T08:01:22.118677Z",
completed_at: "2025-03-09T08:01:33.310184Z",
status: "succeeded",
worker_id: "d4f5452e-3d1b-4400-a7c1-233c2dee6f1a",
file_id: "a99685a6-4441-4258-8102-f07e571204fb",
tags: {
cluster: "dogfood-v2",
env: "gke",
owner: "",
scope: "organization",
},
queue_position: 0,
queue_size: 24,
organization_id: "703f72a1-76f6-4f89-9de6-8a3989693fe5",
input: {
workspace_build_id: "0153584a-6cbe-4c90-8e9e-4ffb40fd1069",
},
type: "workspace_build",
metadata: {
template_version_name: "54745b1",
template_id: "0d286645-29aa-4eaf-9b52-cc5d2740c90b",
template_name: "coder",
template_display_name: "Write Coder on Coder",
template_icon: "/emojis/1f3c5.png",
workspace_id: "e1a7f977-28e7-4567-b91a-179a14c3658b",
workspace_name: "nowjosias",
},
},
},
render: (args) => {
Expand Down
Loading
Loading
0