From 2c0ffdd590df04d4084baa24397925087032cf8d Mon Sep 17 00:00:00 2001 From: Jake Howell Date: Tue, 10 Feb 2026 00:01:48 +1100 Subject: [PATCH] feat: refactor `` component (#22004) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Quick easy and simple set of changes, with some added flavour. Removes two use-cases of MUI-based components with our drop-in-place links. Added a refresh icon to the `Refresh` button and added the external link icon `➚` to all of the links as they all link out to `/docs` (this is inline with the rest of the application). | | | |---|---| | Old | ALERT_1 | | New | ALERT_1_FIX | | | | |---|---| | Old | ALERT_2 | | New | ALERT_2_FIX | --- site/src/pages/TerminalPage/TerminalAlerts.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/src/pages/TerminalPage/TerminalAlerts.tsx b/site/src/pages/TerminalPage/TerminalAlerts.tsx index 43f875d79e..911e2abce3 100644 --- a/site/src/pages/TerminalPage/TerminalAlerts.tsx +++ b/site/src/pages/TerminalPage/TerminalAlerts.tsx @@ -1,4 +1,3 @@ -import Link from "@mui/material/Link"; import type { WorkspaceAgent } from "api/typesGenerated"; import { Alert, @@ -6,6 +5,8 @@ import { type AlertProps, } from "components/Alert/Alert"; import { Button } from "components/Button/Button"; +import { Link } from "components/Link/Link"; +import { RefreshCcwIcon } from "lucide-react"; import { type FC, useEffect, useRef, useState } from "react"; import { cn } from "utils/cn"; import { docs } from "utils/docs"; @@ -205,6 +206,7 @@ const RefreshSessionButton: FC = () => { window.location.reload(); }} > + {isRefreshing ? "Refreshing session..." : "Refresh session"} );