diff --git a/apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/Terminal.tsx b/apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/Terminal.tsx index 40f9073fff4..00272f61965 100644 --- a/apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/Terminal.tsx +++ b/apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/Terminal.tsx @@ -1,3 +1,5 @@ +import { Button } from "@superset/ui/button"; +import { Card } from "@superset/ui/card"; import { toast } from "@superset/ui/sonner"; import type { FitAddon } from "@xterm/addon-fit"; import type { SearchAddon } from "@xterm/addon-search"; @@ -5,6 +7,8 @@ import type { IDisposable, Terminal as XTerm } from "@xterm/xterm"; import "@xterm/xterm/css/xterm.css"; import debounce from "lodash/debounce"; import { useCallback, useEffect, useRef, useState } from "react"; +import { HiExclamationTriangle } from "react-icons/hi2"; +import { LuPower, LuTerminal } from "react-icons/lu"; import { electronTrpc } from "renderer/lib/electron-trpc"; import { clearTerminalKilledByUser, @@ -1537,60 +1541,71 @@ export const Terminal = ({ tabId, workspaceId }: TerminalProps) => { /> {exitStatus === "killed" && !connectionError && !isRestoredMode && ( -
-
-

Session killed

-

- This terminal was terminated by you. Restart to start a new - session. -

-
- +
+ +
+ +
+

Session killed

+

+ You terminated this shell session +

+
+
+
+ +
+
)} {connectionError && ( -
-
-

Connection Error

-

{connectionError}

-
- +
+ +
+ +
+

Connection error

+

+ Lost connection to terminal daemon +

+
+
+
+ +
+
)} {isRestoredMode && ( -
-
-

- ↻ - Session Restored -

-

- Your previous terminal output was preserved. Click below to start - a new shell session. -

- {restoredCwd && ( -

{restoredCwd}

- )} -
- +
+ +
+ +
+

Session restored

+

+ Previous scrollback preserved after restart +

+
+
+
+ +
+
)}