Skip to content

chore: replace MUI icons - 3 #17733

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 3 commits into from
May 9, 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
6 changes: 4 additions & 2 deletions site/src/components/Paywall/Paywall.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Interpolation, Theme } from "@emotion/react";
import TaskAltIcon from "@mui/icons-material/TaskAlt";
import { CircleCheckBigIcon } from "lucide-react";
import Link from "@mui/material/Link";
import { PremiumBadge } from "components/Badges/Badges";
import { Button } from "components/Button/Button";
Expand Down Expand Up @@ -73,7 +73,9 @@ export const Paywall: FC<PaywallProps> = ({

const FeatureIcon: FC = () => {
return (
<TaskAltIcon
<CircleCheckBigIcon
aria-hidden="true"
className="size-icon-sm"
css={[
(theme) => ({
color: theme.branding.premium.border,
Expand Down
6 changes: 4 additions & 2 deletions site/src/components/Paywall/PopoverPaywall.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Interpolation, Theme } from "@emotion/react";
import TaskAltIcon from "@mui/icons-material/TaskAlt";
import { CircleCheckBigIcon } from "lucide-react";
import Link from "@mui/material/Link";
import { PremiumBadge } from "components/Badges/Badges";
import { Button } from "components/Button/Button";
Expand Down Expand Up @@ -77,7 +77,9 @@ export const PopoverPaywall: FC<PopoverPaywallProps> = ({

const FeatureIcon: FC = () => {
return (
<TaskAltIcon
<CircleCheckBigIcon
aria-hidden="true"
className="size-icon-sm"
css={[
(theme) => ({
color: theme.branding.premium.border,
Expand Down
4 changes: 2 additions & 2 deletions site/src/components/Pill/Pill.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import InfoOutlined from "@mui/icons-material/InfoOutlined";
import { InfoIcon } from "lucide-react";
import type { Meta, StoryObj } from "@storybook/react";
import { Pill, PillSpinner } from "./Pill";

Expand Down Expand Up @@ -68,7 +68,7 @@ export const WithIcon: Story = {
args: {
children: "Information",
type: "info",
icon: <InfoOutlined />,
icon: <InfoIcon aria-hidden="true" className="size-icon-sm" />,
},
};

Expand Down
8 changes: 4 additions & 4 deletions site/src/modules/resources/AppLink/AppLink.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useTheme } from "@emotion/react";
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
import { CircleAlertIcon } from "lucide-react";
import { API } from "api/api";
import type * as TypesGen from "api/typesGenerated";
import { displayError } from "components/GlobalSnackbar/utils";
Expand Down Expand Up @@ -74,12 +74,12 @@ export const AppLink: FC<AppLinkProps> = ({ app, workspace, agent }) => {
primaryTooltip = "Initializing...";
}
if (app.health === "unhealthy") {
icon = <ErrorOutlineIcon css={{ color: theme.palette.warning.light }} />;
icon = <CircleAlertIcon aria-hidden="true" className="size-icon-sm" css={{ color: theme.palette.warning.light }} />;
primaryTooltip = "Unhealthy";
}
if (!appsHost && app.subdomain) {
canClick = false;
icon = <ErrorOutlineIcon css={{ color: theme.palette.grey[300] }} />;
icon = <CircleAlertIcon aria-hidden="true" className="size-icon-sm" css={{ color: theme.palette.grey[300] }} />;
primaryTooltip =
"Your admin has not configured subdomain application access";
}
Expand Down Expand Up @@ -175,4 +175,4 @@ export const AppLink: FC<AppLinkProps> = ({ app, workspace, agent }) => {
}

return button;
};
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ErrorOutline from "@mui/icons-material/ErrorOutline";
import { CircleAlertIcon } from "lucide-react";
import Tooltip, {
type TooltipProps,
tooltipClasses,
Expand Down Expand Up @@ -31,10 +31,10 @@ export const WorkspaceStatusBadge: FC<WorkspaceStatusBadgeProps> = ({
<FailureTooltip
title={
<div css={{ display: "flex", alignItems: "center", gap: 10 }}>
<ErrorOutline
<CircleAlertIcon
aria-hidden="true"
className="size-icon-xs"
css={(theme) => ({
width: 14,
height: 14,
color: theme.palette.error.light,
})}
/>
Expand Down Expand Up @@ -87,4 +87,4 @@ const FailureTooltip: FC<TooltipProps> = ({ children, ...tooltipProps }) => {
{children}
</Tooltip>
);
};
};
4 changes: 2 additions & 2 deletions site/src/pages/WorkspacePage/ChangeVersionDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css } from "@emotion/css";
import InfoIcon from "@mui/icons-material/InfoOutlined";
import { InfoIcon } from "lucide-react";
import AlertTitle from "@mui/material/AlertTitle";
import Autocomplete from "@mui/material/Autocomplete";
import CircularProgress from "@mui/material/CircularProgress";
Expand Down Expand Up @@ -106,7 +106,7 @@ export const ChangeVersionDialog: FC<ChangeVersionDialogProps> = ({
>
{option.name}
{option.message && (
<InfoIcon css={{ width: 12, height: 12 }} />
<InfoIcon aria-hidden="true" className="size-icon-xs" />
)}
</Stack>
{template?.active_version_id === option.id && (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Interpolation, Theme } from "@emotion/react";
import InfoOutlined from "@mui/icons-material/InfoOutlined";
import { InfoIcon } from "lucide-react";
import WarningRounded from "@mui/icons-material/WarningRounded";
import { workspaceResolveAutostart } from "api/queries/workspaceQuota";
import type {
Expand Down Expand Up @@ -251,7 +251,7 @@ export const WorkspaceNotifications: FC<WorkspaceNotificationsProps> = ({
<Notifications
items={infoNotifications}
severity="info"
icon={<InfoOutlined />}
icon={<InfoIcon aria-hidden="true" className="size-icon-sm" />}
/>
)}

Expand Down
8 changes: 4 additions & 4 deletions site/src/utils/workspace.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Theme } from "@emotion/react";
import ErrorIcon from "@mui/icons-material/ErrorOutline";
import { CircleAlertIcon } from "lucide-react";
import QueuedIcon from "@mui/icons-material/HourglassEmpty";
import PlayIcon from "@mui/icons-material/PlayArrowOutlined";
import StopIcon from "@mui/icons-material/StopOutlined";
Expand Down Expand Up @@ -227,7 +227,7 @@ export const getDisplayWorkspaceStatus = (
return {
type: "danger",
text: "Deleted",
icon: <ErrorIcon />,
icon: <CircleAlertIcon aria-hidden="true" className="size-icon-sm" />,
} as const;
case "canceling":
return {
Expand All @@ -239,13 +239,13 @@ export const getDisplayWorkspaceStatus = (
return {
type: "inactive",
text: "Canceled",
icon: <ErrorIcon />,
icon: <CircleAlertIcon aria-hidden="true" className="size-icon-sm" />,
} as const;
case "failed":
return {
type: "error",
text: "Failed",
icon: <ErrorIcon />,
icon: <CircleAlertIcon aria-hidden="true" className="size-icon-sm" />,
} as const;
case "pending":
return {
Expand Down
Loading