Skip to content

feat: display provisioner jobs and daemons for an organization #16532

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 22 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b6430bb
Set base structure to display the provisioner jobs
BrunoQuaresma Feb 5, 2025
5d7d58f
Merge branch 'main' of https://github.com/coder/coder into bq/refacto…
BrunoQuaresma Feb 7, 2025
643c362
[WIP]: Load data and display them in the table
BrunoQuaresma Feb 7, 2025
f9db209
Merge branch 'main' of https://github.com/coder/coder into bq/refacto…
BrunoQuaresma Feb 10, 2025
6e967f1
Update table to use API data
BrunoQuaresma Feb 10, 2025
943b7d7
Finish job structure
BrunoQuaresma Feb 10, 2025
2bc6ccf
Display tiny alert for error
BrunoQuaresma Feb 10, 2025
71f4fe5
Fix tags
BrunoQuaresma Feb 10, 2025
f027485
Add daemons page
BrunoQuaresma Feb 10, 2025
dcf8140
Merge branch 'main' of https://github.com/coder/coder into bq/refacto…
BrunoQuaresma Feb 10, 2025
994e186
Merge branch 'main' of https://github.com/coder/coder into bq/refacto…
BrunoQuaresma Feb 11, 2025
3083cef
Merge branch 'main' of https://github.com/coder/coder into bq/refacto…
BrunoQuaresma Feb 11, 2025
d66141e
Display all daemon data from server
BrunoQuaresma Feb 11, 2025
49a7ec7
Remove unused imports
BrunoQuaresma Feb 11, 2025
ffee2ed
Run fmt
BrunoQuaresma Feb 11, 2025
7802636
Add cancel provisioner job
BrunoQuaresma Feb 12, 2025
4f9030f
Run fmt
BrunoQuaresma Feb 12, 2025
22dc7be
Merge branch 'main' of https://github.com/coder/coder into bq/refacto…
BrunoQuaresma Feb 13, 2025
0ff39e5
Merge branch 'main' of https://github.com/coder/coder into bq/refacto…
BrunoQuaresma Feb 14, 2025
5953960
Apply PR reviews
BrunoQuaresma Feb 14, 2025
aabf8df
FMT
BrunoQuaresma Feb 14, 2025
ed61ce7
Reset devcontainer.json
BrunoQuaresma Feb 18, 2025
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
Run fmt
  • Loading branch information
BrunoQuaresma committed Feb 12, 2025
commit 4f9030fa63687c32b12c3142ba51a7e87db3d59e
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Meta, StoryObj } from "@storybook/react";
import { CancelJobButton } from "./CancelJobButton";
import { MockProvisionerJob } from "testHelpers/entities";
import { userEvent, waitFor, within } from "@storybook/test";
import { MockProvisionerJob } from "testHelpers/entities";
import { CancelJobButton } from "./CancelJobButton";

const meta: Meta<typeof CancelJobButton> = {
title: "pages/OrganizationSettingsPage/ProvisionersPage/CancelJobButton",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { useState, type FC } from "react";
import type { ProvisionerJob } from "api/typesGenerated";
import { Button } from "components/Button/Button";
import { ConfirmDialog } from "components/Dialogs/ConfirmDialog/ConfirmDialog";
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "components/Tooltip/Tooltip";
import { Button } from "components/Button/Button";
import { BanIcon } from "lucide-react";
import type { ProvisionerJob } from "api/typesGenerated";
import { ConfirmDialog } from "components/Dialogs/ConfirmDialog/ConfirmDialog";
import { type FC, useState } from "react";

type CancelJobButtonProps = {
job: ProvisionerJob;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Meta, StoryObj } from "@storybook/react";
import { CancelJobConfirmationDialog } from "./CancelJobConfirmationDialog";
import { expect, fn, userEvent, waitFor, within } from "@storybook/test";
import type { Response } from "api/typesGenerated";
import { MockProvisionerJob } from "testHelpers/entities";
import { fn, userEvent, within, expect, waitFor } from "@storybook/test";
import { withGlobalSnackbar } from "testHelpers/storybook";
import type { Response } from "api/typesGenerated";
import { CancelJobConfirmationDialog } from "./CancelJobConfirmationDialog";

const meta: Meta<typeof CancelJobConfirmationDialog> = {
title:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { API } from "api/api";
import {
getProvisionerDaemonsKey,
provisionerJobQueryKey,
} from "api/queries/organizations";
import type { ProvisionerJob } from "api/typesGenerated";
import {
ConfirmDialog,
type ConfirmDialogProps,
} from "components/Dialogs/ConfirmDialog/ConfirmDialog";
import { displayError, displaySuccess } from "components/GlobalSnackbar/utils";
import type { FC } from "react";
import { API } from "api/api";
import { useMutation, useQueryClient } from "react-query";
import {
getProvisionerDaemonsKey,
provisionerJobQueryKey,
} from "api/queries/organizations";
import { displayError, displaySuccess } from "components/GlobalSnackbar/utils";

type CancelJobConfirmationDialogProps = Omit<
ConfirmDialogProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import { useQuery } from "react-query";
import { cn } from "utils/cn";
import { docs } from "utils/docs";
import { relativeTime } from "utils/time";
import { CancelJobButton } from "./CancelJobButton";
import { DataGrid } from "./DataGrid";
import { JobStatusIndicator } from "./JobStatusIndicator";
import { ShrinkTags, Tag, Tags } from "./Tags";
import { CancelJobButton } from "./CancelJobButton";

type ProvisionerJobsPageProps = {
org: Organization;
Expand Down
Loading