Skip to content
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
🧹
  • Loading branch information
aslilac committed Mar 5, 2024
commit 288ed0e1f0ed36a002a135e6004e0f223379f1e0
2 changes: 1 addition & 1 deletion site/src/pages/404Page/404Page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";

export const NotFoundPage: FC = () => {
return (
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/AuditPage/AuditFilter.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import capitalize from "lodash/capitalize";
import { type FC } from "react";
import type { FC } from "react";
import { AuditActions, ResourceTypes } from "api/typesGenerated";
import {
Filter,
Expand All @@ -14,7 +14,7 @@ import {
type UseFilterMenuOptions,
} from "components/Filter/menu";
import type { BaseOption } from "components/Filter/options";
import { UserMenu, type UserFilterMenu } from "components/Filter/UserFilter";
import { type UserFilterMenu, UserMenu } from "components/Filter/UserFilter";
import { docs } from "utils/docs";

const PRESET_FILTERS = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from "@mui/material/Link";
import { type FC } from "react";
import type { FC } from "react";
import { Link as RouterLink } from "react-router-dom";
import type { AuditLog } from "api/typesGenerated";
import { BuildAuditDescription } from "./BuildAuditDescription";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Interpolation, type Theme } from "@emotion/react";
import { type FC } from "react";
import type { Interpolation, Theme } from "@emotion/react";
import type { FC } from "react";
import type { AuditDiff } from "api/typesGenerated";
import { MONOSPACE_FONT_FAMILY } from "theme/constants";
import colors from "theme/tailwindColors";
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/AuditPage/AuditLogRow/AuditLogRow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type CSSObject, type Interpolation, type Theme } from "@emotion/react";
import type { CSSObject, Interpolation, Theme } from "@emotion/react";
import Collapse from "@mui/material/Collapse";
import TableCell from "@mui/material/TableCell";
import { type FC, useState } from "react";
Expand All @@ -9,7 +9,7 @@ import { Pill } from "components/Pill/Pill";
import { Stack } from "components/Stack/Stack";
import { TimelineEntry } from "components/Timeline/TimelineEntry";
import { UserAvatar } from "components/UserAvatar/UserAvatar";
import { type ThemeRole } from "theme/roles";
import type { ThemeRole } from "theme/roles";
import { AuditLogDescription } from "./AuditLogDescription/AuditLogDescription";
import { AuditLogDiff } from "./AuditLogDiff/AuditLogDiff";
import { determineGroupDiff } from "./AuditLogDiff/auditUtils";
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/AuditPage/AuditPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { useSearchParams } from "react-router-dom";
import { paginatedAudits } from "api/queries/audits";
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/AuditPage/AuditPageView.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react";
import { type ComponentProps } from "react";
import type { ComponentProps } from "react";
import {
MockMenu,
getDefaultFilterProps,
Expand All @@ -8,7 +8,7 @@ import {
mockInitialRenderResult,
mockSuccessResult,
} from "components/PaginationWidget/PaginationContainer.mocks";
import { type UsePaginatedQueryResult } from "hooks/usePaginatedQuery";
import type { UsePaginatedQueryResult } from "hooks/usePaginatedQuery";
import { chromaticWithTablet } from "testHelpers/chromatic";
import { MockAuditLog, MockAuditLog2, MockUser } from "testHelpers/entities";
import { AuditPageView } from "./AuditPageView";
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/AuditPage/AuditPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableRow from "@mui/material/TableRow";
import { type ComponentProps, type FC } from "react";
import type { ComponentProps, FC } from "react";
import type { AuditLog } from "api/typesGenerated";
import { ChooseOne, Cond } from "components/Conditionals/ChooseOne";
import { EmptyState } from "components/EmptyState/EmptyState";
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/CliAuthPage/CliAuthPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { useQuery } from "react-query";
import { apiKey } from "api/queries/users";
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/CliAuthPage/CliAuthPageView.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Interpolation, type Theme } from "@emotion/react";
import type { Interpolation, Theme } from "@emotion/react";
import { visuallyHidden } from "@mui/utils";
import { type FC } from "react";
import type { FC } from "react";
import { Link as RouterLink } from "react-router-dom";
import { CodeExample } from "components/CodeExample/CodeExample";
import { FullScreenLoader } from "components/Loader/FullScreenLoader";
Expand Down
8 changes: 4 additions & 4 deletions site/src/pages/CreateTemplatePage/CreateTemplateForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import TextField from "@mui/material/TextField";
import { useFormik } from "formik";
import camelCase from "lodash/camelCase";
import capitalize from "lodash/capitalize";
import { type FC } from "react";
import type { FC } from "react";
import * as Yup from "yup";
import type {
ProvisionerJobLog,
Expand All @@ -26,9 +26,9 @@ import {
onChangeTrimmed,
templateDisplayNameValidator,
} from "utils/formUtils";
import {
type TemplateAutostartRequirementDaysValue,
type TemplateAutostopRequirementDaysValue,
import type {
TemplateAutostartRequirementDaysValue,
TemplateAutostopRequirementDaysValue,
} from "utils/schedule";
import { TemplateUpload, type TemplateUploadProps } from "./TemplateUpload";
import { VariableInput } from "./VariableInput";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { useQuery } from "react-query";
import { useNavigate, useSearchParams } from "react-router-dom";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { useQuery } from "react-query";
import { useNavigate, useSearchParams } from "react-router-dom";
import {
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/CreateTemplatePage/VariableInput.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { type Interpolation, type Theme } from "@emotion/react";
import type { Interpolation, Theme } from "@emotion/react";
import FormControlLabel from "@mui/material/FormControlLabel";
import Radio from "@mui/material/Radio";
import RadioGroup from "@mui/material/RadioGroup";
import TextField from "@mui/material/TextField";
import { type FC } from "react";
import type { FC } from "react";
import type { TemplateVersionVariable } from "api/typesGenerated";
import { Stack } from "components/Stack/Stack";

Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/CreateUserPage/CreateUserPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { useMutation, useQuery, useQueryClient } from "react-query";
import { useNavigate } from "react-router-dom";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Interpolation, type Theme } from "@emotion/react";
import type { Interpolation, Theme } from "@emotion/react";
import Button from "@mui/material/Button";
import FormHelperText from "@mui/material/FormHelperText";
import TextField from "@mui/material/TextField";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LoadingButton from "@mui/lab/LoadingButton";
import Button from "@mui/material/Button";
import Tooltip from "@mui/material/Tooltip";
import { visuallyHidden } from "@mui/utils";
import { type FC } from "react";
import type { FC } from "react";
import type { TemplateVersionExternalAuth } from "api/typesGenerated";
import { ExternalImage } from "components/ExternalImage/ExternalImage";
import { Pill } from "components/Pill/Pill";
Expand Down
4 changes: 2 additions & 2 deletions site/src/pages/CreateWorkspacePage/SelectedTemplate.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Interpolation, type Theme } from "@emotion/react";
import { type FC } from "react";
import type { Interpolation, Theme } from "@emotion/react";
import type { FC } from "react";
import type { Template, TemplateExample } from "api/typesGenerated";
import { ExternalAvatar } from "components/Avatar/Avatar";
import { Stack } from "components/Stack/Stack";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { waitFor } from "@testing-library/react";
import { type Workspace } from "api/typesGenerated";
import type { Workspace } from "api/typesGenerated";
import * as M from "testHelpers/entities";
import { renderHookWithAuth } from "testHelpers/renderHelpers";
import CreateWorkspacePage from "./CreateWorkspacePage";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useQuery } from "react-query";
import { useNavigate } from "react-router-dom";
import { workspaceBuildParameters } from "api/queries/workspaceBuilds";
import type { Workspace, WorkspaceBuildParameter } from "api/typesGenerated";
import { type CreateWorkspaceMode } from "./CreateWorkspacePage";
import type { CreateWorkspaceMode } from "./CreateWorkspacePage";

function getDuplicationUrlParams(
workspaceParams: readonly WorkspaceBuildParameter[],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { useMutation, useQueryClient } from "react-query";
import { getErrorMessage } from "api/errors";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { pageTitle } from "utils/page";
import { useDeploySettings } from "../DeploySettingsLayout";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import { type FC } from "react";
import type { FC } from "react";
import type { DeploymentValues, ExternalAuthConfig } from "api/typesGenerated";
import { Alert } from "components/Alert/Alert";
import { EnterpriseBadge } from "components/Badges/Badges";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useTheme } from "@emotion/react";
import Paper from "@mui/material/Paper";
import { type HTMLProps, type ReactNode, type FC } from "react";
import type { FC, HTMLProps, ReactNode } from "react";

export interface ChartSectionProps {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { useQuery } from "react-query";
import { deploymentDAUs } from "api/queries/deployment";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import type {
ClibaseOption,
DAUsResponse,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import KeyboardArrowLeft from "@mui/icons-material/KeyboardArrowLeft";
import Button from "@mui/material/Button";
import TextField from "@mui/material/TextField";
import { type FC } from "react";
import type { FC } from "react";
import { Link as RouterLink } from "react-router-dom";
import { ErrorAlert } from "components/Alert/ErrorAlert";
import { FileUpload } from "components/FileUpload/FileUpload";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Interpolation, type Theme } from "@emotion/react";
import { type FC, type PropsWithChildren } from "react";
import type { Interpolation, Theme } from "@emotion/react";
import type { FC, PropsWithChildren } from "react";

export const DividerWithText: FC<PropsWithChildren> = ({ children }) => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { type CSSObject, type Interpolation, type Theme } from "@emotion/react";
import type { CSSObject, Interpolation, Theme } from "@emotion/react";
import Button from "@mui/material/Button";
import Paper from "@mui/material/Paper";
import { compareAsc } from "date-fns";
import dayjs from "dayjs";
import { type FC, useState } from "react";
import { type GetLicensesResponse } from "api/api";
import type { GetLicensesResponse } from "api/api";
import { ConfirmDialog } from "components/Dialogs/ConfirmDialog/ConfirmDialog";
import { Pill } from "components/Pill/Pill";
import { Stack } from "components/Stack/Stack";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Button from "@mui/material/Button";
import MuiLink from "@mui/material/Link";
import Skeleton from "@mui/material/Skeleton";
import Tooltip from "@mui/material/Tooltip";
import { type FC } from "react";
import type { FC } from "react";
import Confetti from "react-confetti";
import { Link } from "react-router-dom";
import useWindowSize from "react-use/lib/useWindowSize";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { pageTitle } from "utils/page";
import { useDeploySettings } from "../DeploySettingsLayout";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import type { ClibaseOption } from "api/typesGenerated";
import { Badges, EnabledBadge, DisabledBadge } from "components/Badges/Badges";
import { Stack } from "components/Stack/Stack";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import KeyboardArrowLeft from "@mui/icons-material/KeyboardArrowLeft";
import Button from "@mui/material/Button";
import { type FC } from "react";
import type { FC } from "react";
import { Link } from "react-router-dom";
import type * as TypesGen from "api/typesGenerated";
import { ErrorAlert } from "components/Alert/ErrorAlert";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import LoadingButton from "@mui/lab/LoadingButton";
import TextField from "@mui/material/TextField";
import { type FC, type ReactNode } from "react";
import type { FC, ReactNode } from "react";
import { isApiValidationError, mapApiErrorToFieldErrors } from "api/errors";
import type * as TypesGen from "api/typesGenerated";
import { Stack } from "components/Stack/Stack";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { useQuery } from "react-query";
import { getApps } from "api/queries/oauth2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import { type FC } from "react";
import type { FC } from "react";
import { Link, useNavigate } from "react-router-dom";
import type * as TypesGen from "api/typesGenerated";
import { ErrorAlert } from "components/Alert/ErrorAlert";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { useDashboard } from "modules/dashboard/useDashboard";
import { pageTitle } from "utils/page";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import type { ClibaseOption } from "api/typesGenerated";
import {
Badges,
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/DeploySettingsPage/Option.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css, type Interpolation, type Theme, useTheme } from "@emotion/react";
import CheckCircleOutlined from "@mui/icons-material/CheckCircleOutlined";
import { type FC, type HTMLAttributes, type PropsWithChildren } from "react";
import type { FC, HTMLAttributes, PropsWithChildren } from "react";
import { DisabledBadge, EnabledBadge } from "components/Badges/Badges";
import { MONOSPACE_FONT_FAMILY } from "theme/constants";

Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/DeploySettingsPage/OptionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TableCell from "@mui/material/TableCell";
import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import { type FC } from "react";
import type { FC } from "react";
import type { ClibaseOption } from "api/typesGenerated";
import {
OptionConfig,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { useDashboard } from "modules/dashboard/useDashboard";
import { pageTitle } from "utils/page";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import type { ClibaseOption } from "api/typesGenerated";
import {
Badges,
Expand Down
3 changes: 1 addition & 2 deletions site/src/pages/DeploySettingsPage/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import MonitorHeartOutlined from "@mui/icons-material/MonitorHeartOutlined";
import Globe from "@mui/icons-material/PublicOutlined";
import ApprovalIcon from "@mui/icons-material/VerifiedUserOutlined";
import VpnKeyOutlined from "@mui/icons-material/VpnKeyOutlined";
// import Token from "@mui/icons-material/Token";
import { type FC } from "react";
import type { FC } from "react";
import { GitIcon } from "components/Icons/GitIcon";
import {
Sidebar as BaseSidebar,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type FC } from "react";
import type { FC } from "react";
import { Helmet } from "react-helmet-async";
import { pageTitle } from "utils/page";
import { useDeploySettings } from "../DeploySettingsLayout";
Expand Down