Skip to content

🙌 OpenHands: AI-Driven Development

refactor(frontend): remove dead code (#10839)

Hiep Le1523555eea6f
diff --git a/frontend/__tests__/components/file-operations.test.tsx b/frontend/__tests__/components/file-operations.test.tsx
deleted file mode 100644
index a8ad9e14db..0000000000
--- a/frontend/__tests__/components/file-operations.test.tsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import { describe, it } from "vitest";
-
-describe("File Operations Messages", () => {
- it.todo("should show success indicator for successful file read operation");
-
- it.todo("should show failure indicator for failed file read operation");
-
- it.todo("should show success indicator for successful file edit operation");
-
- it.todo("should show failure indicator for failed file edit operation");
-});
diff --git a/frontend/__tests__/components/upload-image-input.test.tsx b/frontend/__tests__/components/upload-image-input.test.tsx
deleted file mode 100644
index c16d60d4c7..0000000000
--- a/frontend/__tests__/components/upload-image-input.test.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-import { render, screen } from "@testing-library/react";
-import userEvent from "@testing-library/user-event";
-import { afterEach, describe, expect, it, vi } from "vitest";
-import { UploadImageInput } from "#/components/features/images/upload-image-input";
-
-describe("UploadImageInput", () => {
- const user = userEvent.setup();
- const onUploadMock = vi.fn();
-
- afterEach(() => {
- vi.clearAllMocks();
- });
-
- it("should render an input", () => {
- render(<UploadImageInput onUpload={onUploadMock} />);
- expect(screen.getByTestId("upload-image-input")).toBeInTheDocument();
- });
-
- it("should call onUpload when a file is selected", async () => {
- render(<UploadImageInput onUpload={onUploadMock} />);
-
- const file = new File(["(⌐□_□)"], "chucknorris.png", { type: "image/png" });
- const input = screen.getByTestId("upload-image-input");
-
- await user.upload(input, file);
-
- expect(onUploadMock).toHaveBeenNthCalledWith(1, [file]);
- });
-
- it("should call onUpload when multiple files are selected", async () => {
- render(<UploadImageInput onUpload={onUploadMock} />);
-
- const files = [
- new File(["(⌐□_□)"], "chucknorris.png", { type: "image/png" }),
- new File(["(⌐□_□)"], "chucknorris2.png", { type: "image/png" }),
- ];
- const input = screen.getByTestId("upload-image-input");
-
- await user.upload(input, files);
-
- expect(onUploadMock).toHaveBeenNthCalledWith(1, files);
- });
-
- it("should render custom labels", () => {
- const { rerender } = render(<UploadImageInput onUpload={onUploadMock} />);
- expect(screen.getByTestId("default-label")).toBeInTheDocument();
-
- function CustomLabel() {
- return <span>Custom label</span>;
- }
- rerender(
- <UploadImageInput onUpload={onUploadMock} label={<CustomLabel />} />,
- );
-
- expect(screen.getByText("Custom label")).toBeInTheDocument();
- expect(screen.queryByTestId("default-label")).not.toBeInTheDocument();
- });
-});
diff --git a/frontend/__tests__/utils/browser-tab.test.ts b/frontend/__tests__/utils/browser-tab.test.ts
deleted file mode 100644
index 72ccfc394e..0000000000
--- a/frontend/__tests__/utils/browser-tab.test.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
-
-import { browserTab } from "#/utils/browser-tab";
-
-// These tests exercise the browser-tab notification flasher behavior.
-// Specifically we verify that when the document title changes externally
-// while a notification is active, the flasher updates its internal
-// baseline so it restores/toggles to the new title instead of an old one.
-
-describe("browserTab notifications", () => {
- const MESSAGE = "Agent ready";
- const INITIAL = "Conversation 123 | OpenHands";
- const RENAMED = "My renamed title | OpenHands";
-
- beforeEach(() => {
- vi.useFakeTimers();
- // reset title for each test
- document.title = INITIAL;
- });
-
- afterEach(() => {
- browserTab.stopNotification();
- vi.runOnlyPendingTimers();
- vi.useRealTimers();
- });
-
- it("updates baseline when title changes during an active notification and restores to the new title", () => {
- // Start flashing
- browserTab.startNotification(MESSAGE);
-
- // Tick once: should switch to the message
- vi.advanceTimersByTime(1000);
- expect(document.title).toBe(MESSAGE);
-
- // Simulate an external rename while flashing (e.g., user edits title)
- document.title = RENAMED;
-
- // Next tick: flasher observes the external change and updates baseline
- vi.advanceTimersByTime(1000);
- // On this tick, we toggle back to the message
- expect(document.title).toBe(MESSAGE);
-
- // Next tick should toggle to the updated baseline (renamed title)
- vi.advanceTimersByTime(1000);
- expect(document.title).toBe(RENAMED);
-
- // Stop flashing: title should remain the updated baseline
- browserTab.stopNotification();
- expect(document.title).toBe(RENAMED);
- });
-});
diff --git a/frontend/__tests__/utils/format-ms.test.ts b/frontend/__tests__/utils/format-ms.test.ts
deleted file mode 100644
index 76b517b628..0000000000
--- a/frontend/__tests__/utils/format-ms.test.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { test, expect } from "vitest";
-import { formatMs } from "../../src/utils/format-ms";
-
-test("formatMs", () => {
- expect(formatMs(1000)).toBe("00:01");
- expect(formatMs(1000 * 60)).toBe("01:00");
- expect(formatMs(1000 * 60 * 2.5)).toBe("02:30");
- expect(formatMs(1000 * 60 * 12)).toBe("12:00");
-});
diff --git a/frontend/__tests__/utils/i18n-test-utils.tsx b/frontend/__tests__/utils/i18n-test-utils.tsx
deleted file mode 100644
index 7153540a19..0000000000
--- a/frontend/__tests__/utils/i18n-test-utils.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { ReactNode } from "react";
-import { I18nextProvider } from "react-i18next";
-
-const mockI18n = {
- language: "ja",
- t: (key: string) => {
- const translations: Record<string, string> = {
- "SUGGESTIONS$TODO_APP": "ToDoリストアプリを開発する",
- "LANDING$BUILD_APP_BUTTON": "プルリクエストを表示するアプリを開発する",
- "SUGGESTIONS$HACKER_NEWS": "Hacker Newsのトップ記事を表示するbashスクリプトを作成する",
- "LANDING$TITLE": "一緒に開発を始めましょう!",
- "OPEN_IN_VSCODE": "VS Codeで開く",
- "INCREASE_TEST_COVERAGE": "テストカバレッジを向上",
- "AUTO_MERGE_PRS": "PRを自動マージ",
- "FIX_README": "READMEを修正",
- "CLEAN_DEPENDENCIES": "依存関係を整理"
- };
- return translations[key] || key;
- },
- exists: () => true,
- changeLanguage: () => new Promise(() => {}),
- use: () => mockI18n,
-};
-
-export function I18nTestProvider({ children }: { children: ReactNode }) {
- return (
- <I18nextProvider i18n={mockI18n as any}>{children}</I18nextProvider>
- );
-}
diff --git a/frontend/__tests__/utils/parse-github-url.test.ts b/frontend/__tests__/utils/parse-github-url.test.ts
deleted file mode 100644
index 95dbee363e..0000000000
--- a/frontend/__tests__/utils/parse-github-url.test.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { expect, test } from "vitest";
-import { parseGithubUrl } from "../../src/utils/parse-github-url";
-
-test("parseGithubUrl", () => {
- expect(
- parseGithubUrl("https://github.com/alexreardon/tiny-invariant"),
- ).toEqual(["alexreardon", "tiny-invariant"]);
-
- expect(parseGithubUrl("https://github.com/All-Hands-AI/OpenHands")).toEqual([
- "All-Hands-AI",
- "OpenHands",
- ]);
-
- expect(parseGithubUrl("https://github.com/All-Hands-AI/")).toEqual([
- "All-Hands-AI",
- "",
- ]);
-
- expect(parseGithubUrl("https://github.com/")).toEqual([]);
-});
diff --git a/frontend/src/assets/arrow.tsx b/frontend/src/assets/arrow.tsx
deleted file mode 100644
index 004776be28..0000000000
--- a/frontend/src/assets/arrow.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-function ArrowIcon() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-5 h-5"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"
- />
- </svg>
- );
-}
-
-export default ArrowIcon;
diff --git a/frontend/src/assets/branding/all-hands-logo-spark.svg b/frontend/src/assets/branding/all-hands-logo-spark.svg
deleted file mode 100644
index 00cf1097c0..0000000000
--- a/frontend/src/assets/branding/all-hands-logo-spark.svg
+++ /dev/null
@@ -1,35 +0,0 @@
-<svg width="70" height="46" viewBox="0 0 70 46" fill="none" xmlns="http://www.w3.org/2000/svg">
- <g clip-path="url(#clip0_8467_33285)">
- <g clip-path="url(#clip1_8467_33285)">
- <path
- d="M66.7813 13.7968C64.5776 12.4773 63.1054 14.4995 63.286 17.2452L63.2677 17.2659C63.2738 14.3987 62.8759 11.232 61.5537 8.67021C61.0854 7.7629 60.1366 6.27147 58.2604 6.97419C57.4371 7.28256 56.6903 8.21062 57.0759 10.6064C57.0759 10.6064 57.5044 13.1208 57.4248 16.2815V16.326C56.8892 7.60872 54.8692 4.94905 51.9799 5.12103C51.0555 5.28114 49.7915 5.66956 50.2169 8.34998C50.2169 8.34998 50.6791 11.146 50.8291 13.3728L50.8382 13.4855H50.8291C49.4701 8.6791 47.6398 8.61387 46.3146 8.80067C45.1117 8.96968 43.7987 10.1854 44.4628 12.5811C46.5472 20.0976 46.1401 29.1499 45.984 30.4456C45.5586 29.5591 45.427 28.8564 44.8362 27.8838C42.4612 23.9788 41.3318 23.6912 39.9453 23.6319C38.568 23.5726 37.0805 24.3999 37.1784 25.9743C37.2794 27.5488 38.1027 27.8097 39.2719 30.0038C40.184 31.7117 40.4442 33.9503 42.2806 38.0184C43.8017 41.3867 47.7776 45.0812 55.0191 44.6424C60.8865 44.4526 69.6492 42.4541 68.125 29.3308C67.7454 27.0506 68.0301 25.1411 68.229 23.1842C68.5382 20.148 68.9911 15.1163 66.7844 13.7938L66.7813 13.7968Z"
- fill="#FFE165" />
- <path
- d="M30.1451 23.724C28.7586 23.81 27.6384 24.1154 25.3368 28.0619C24.7644 29.0433 24.6481 29.749 24.238 30.6415C24.0574 29.3487 23.479 20.3053 25.4194 12.7533C26.0377 10.3486 24.7032 9.15665 23.4973 9.0084C22.169 8.84532 20.3356 8.94317 19.0685 13.797H19.0532L19.0716 13.6576C19.1787 11.4279 19.5888 8.62591 19.5888 8.62591C19.9592 5.93659 18.6921 5.57189 17.7647 5.4266C14.8815 5.308 12.9165 7.97952 12.537 16.6197H12.5309C12.3993 13.4916 12.7758 11.0009 12.7758 11.0009C13.1155 8.59626 12.3503 7.68302 11.5209 7.38948C9.63244 6.71937 8.71117 8.22859 8.26125 9.14479C6.98801 11.7303 6.64827 14.9029 6.70949 17.7702L6.69112 17.7494C6.81661 15.0008 5.30769 13.0053 3.12849 14.3633C0.949283 15.7243 1.49715 20.7471 1.86443 23.7774C2.10316 25.7314 2.42147 27.6349 2.0848 29.921C0.811553 43.0681 9.61101 44.9094 15.4814 44.9954C22.7291 45.3067 26.6345 41.5381 28.0914 38.1431C29.8482 34.0454 30.0686 31.8008 30.947 30.0781C32.0734 27.8632 32.8936 27.5875 32.964 26.013C33.0344 24.4386 31.5316 23.638 30.1543 23.721L30.1451 23.724Z"
- fill="#FFE165" />
- <path
- d="M33.0474 23.7441C32.3129 23.0473 31.208 22.6766 30.0847 22.7419C28.285 22.8516 27.0087 23.4891 25.0468 26.6024C24.9948 23.0413 25.1998 17.6953 26.4057 12.9927C26.8587 11.2256 26.4027 10.0722 25.9375 9.41688C25.3957 8.6519 24.554 8.14783 23.6236 8.03516C22.7758 7.93139 21.6678 7.92545 20.5874 8.78532C20.5874 8.77346 20.5905 8.75864 20.5905 8.75864C20.9394 6.2324 20.0395 4.78545 17.9185 4.4593L17.8022 4.44743C16.4953 4.3911 15.3751 4.80621 14.4722 5.67794C13.9886 6.14345 13.5692 6.74536 13.205 7.48959C12.798 6.9114 12.2746 6.61786 11.8614 6.46961C9.33633 5.57119 7.94066 7.49552 7.33464 8.72306C6.63068 10.1522 6.19301 11.7534 5.94815 13.3871C5.89612 13.3545 5.84715 13.3219 5.79512 13.2922C5.23807 12.9809 4.07808 12.6014 2.57222 13.5413C0.0196132 15.1365 0.344046 19.7205 0.852119 23.8953C0.879665 24.1177 0.907211 24.3371 0.934757 24.5595C1.15207 26.2703 1.35713 27.8863 1.07555 29.7869L1.06943 29.8343C0.558293 35.1092 1.58362 39.1683 4.11787 41.9051C6.55417 44.5381 10.3708 45.9079 15.4301 45.9821C15.8005 45.9969 16.1616 46.0028 16.5136 45.9998C25.157 45.9227 28.2575 40.3039 29.0196 38.5249C30.0051 36.224 30.5162 34.5073 30.9233 33.1255C31.2386 32.0581 31.4895 31.216 31.8446 30.5163C32.2486 29.7216 32.6036 29.2057 32.9158 28.7491C33.4484 27.9722 33.9075 27.3021 33.9626 26.0568C34.0024 25.1554 33.684 24.3549 33.0382 23.7441H33.0474ZM15.9076 7.07152C16.3943 6.60304 16.9544 6.39548 17.6644 6.41031C18.2796 6.50815 18.8367 6.65344 18.5826 8.49178C18.5643 8.60742 18.1664 11.3679 18.0593 13.6154C18.0593 13.6302 18.0593 13.6451 18.0593 13.6599C17.4992 15.854 17.0309 19.0148 16.7799 23.6344C15.6934 23.6996 14.6099 23.8123 13.557 23.9605C13.2173 14.588 14.0039 8.90393 15.9045 7.07152H15.9076ZM9.17105 9.57106C9.93316 8.02923 10.5728 8.10632 11.1666 8.31684C11.9899 8.61038 11.8614 10.2026 11.7665 10.8638C11.7512 10.9706 11.3839 13.4523 11.5125 16.6101C11.4176 18.825 11.4298 21.3779 11.5431 24.2985C10.5361 24.4913 9.58118 24.7136 8.70889 24.9538C8.2957 23.6077 6.46847 15.0564 9.17105 9.57403V9.57106ZM31.2324 27.6609C30.9019 28.1413 30.4918 28.7402 30.0296 29.6475C29.5919 30.5044 29.3226 31.4236 28.9767 32.5829C28.5819 33.9142 28.0891 35.5717 27.1495 37.7688C26.4823 39.3225 23.6787 44.3691 15.4914 44.0132C10.9279 43.948 7.70192 42.8272 5.62984 40.5886C3.49349 38.2818 2.63956 34.7296 3.08948 30.0359C3.40167 27.8892 3.17212 26.0716 2.94869 24.3163C2.92114 24.0969 2.89359 23.8805 2.86605 23.661C2.62119 21.6359 1.96621 16.2543 3.67101 15.1899C4.13011 14.9022 4.50657 14.837 4.78509 14.9912C5.2595 15.2551 5.73697 16.2158 5.66963 17.7042C5.66657 17.7843 5.67575 17.8614 5.69106 17.9385C5.77675 21.4076 6.41644 24.426 6.78066 25.5587C6.18383 25.7751 5.65739 26.0005 5.21665 26.2258C4.72082 26.4808 4.53412 27.0738 4.79734 27.5542C4.98098 27.8892 5.33602 28.079 5.7033 28.076C5.85939 28.076 6.01855 28.0375 6.16852 27.9604C8.64461 26.6884 14.5181 25.3956 19.6937 25.535C20.2568 25.5439 20.719 25.1228 20.7343 24.5802C20.7496 24.0376 20.3089 23.5869 19.7488 23.5721C19.4396 23.5632 19.1274 23.5632 18.8153 23.5632C19.3325 14.247 20.7557 11.2078 21.8637 10.3094C22.3228 9.93873 22.7605 9.90908 23.3665 9.98321C23.5348 10.004 23.9572 10.0988 24.2602 10.5258C24.5877 10.9913 24.6489 11.6792 24.4347 12.5154C22.5615 19.8124 22.9839 28.3933 23.1982 30.4748C23.1614 30.5459 23.1278 30.6171 23.088 30.6912C22.6503 31.4888 21.8361 32.319 20.8659 32.2627C20.3119 32.236 19.8253 32.6452 19.7916 33.1848C19.7579 33.7274 20.1834 34.193 20.7435 34.2256C22.384 34.3205 23.9297 33.3449 24.8785 31.6163C24.9795 31.4325 25.0652 31.2575 25.1417 31.0885C25.1478 31.0767 25.1539 31.0618 25.16 31.05C25.3376 30.6645 25.4661 30.3117 25.5794 29.9944C25.7569 29.5022 25.9099 29.0753 26.216 28.5475C28.3891 24.8174 29.2705 24.7641 30.2041 24.7077C30.7519 24.6751 31.2967 24.8441 31.6181 25.1525C31.8476 25.3689 31.9486 25.6387 31.9333 25.9768C31.9027 26.6736 31.7038 26.9641 31.2233 27.6639L31.2324 27.6609Z"
- fill="black" />
- <path
- d="M69.1207 29.176C68.8055 27.2813 68.9799 25.6624 69.1636 23.9485C69.188 23.7262 69.2125 23.5068 69.234 23.2844C69.6625 19.1036 69.9012 14.5107 67.3149 12.963C65.7907 12.0497 64.6368 12.45 64.0859 12.7703C64.0339 12.7999 63.9849 12.8355 63.9329 12.8681C63.6543 11.2403 63.1891 9.64804 62.4576 8.23074C61.8302 7.01506 60.4008 5.11446 57.8911 6.05735C57.4809 6.21153 56.9667 6.51397 56.5689 7.10105C56.1893 6.36275 55.7578 5.76974 55.265 5.31312C54.3468 4.45918 53.2174 4.06186 51.9136 4.14192L51.7973 4.15378C49.6823 4.51848 48.81 5.98026 49.2079 8.50649C49.2079 8.50649 49.2079 8.51835 49.211 8.52725C48.1152 7.68517 47.0073 7.71185 46.1625 7.83046C45.2352 7.96092 44.4026 8.47981 43.8762 9.25369C43.4263 9.91786 42.9886 11.0772 43.4753 12.8355C44.773 17.5173 45.0791 22.8604 45.0944 26.4214C43.0743 23.3437 41.7858 22.7299 39.9861 22.6528C38.8659 22.6054 37.761 22.9997 37.0417 23.7084C36.4081 24.331 36.1051 25.1375 36.1633 26.036C36.2429 27.2783 36.7142 27.9425 37.2621 28.7075C37.5834 29.1582 37.9477 29.6682 38.367 30.4539C38.7373 31.1477 39.0036 31.9839 39.3403 33.0454C39.7749 34.4182 40.3166 36.1261 41.3481 38.4092C42.1439 40.1734 45.3515 45.7388 53.9703 45.6587C54.3193 45.6558 54.6804 45.6439 55.0477 45.6202C60.1345 45.4571 63.9237 44.0161 66.311 41.3416C68.7902 38.5604 69.739 34.4834 69.1299 29.2175L69.1238 29.17L69.1207 29.176ZM58.0747 10.4575C57.9676 9.7874 57.8054 8.19813 58.6256 7.89272C59.2133 7.67034 59.856 7.58436 60.6457 9.11136C63.4523 14.5463 61.7904 23.1302 61.4017 24.4823C60.5233 24.2569 59.5653 24.0523 58.5552 23.8774C58.6103 20.9568 58.5736 18.4009 58.4389 16.189C58.5063 13.0312 58.0931 10.5554 58.0747 10.4575ZM52.0911 6.10182C52.8042 6.07217 53.3674 6.27083 53.8601 6.73338C55.7945 8.53318 56.6913 14.1994 56.5291 23.5779C55.4731 23.4474 54.3896 23.3555 53.3 23.3081C52.9634 18.6915 52.4339 15.5426 51.8309 13.3573C51.8309 13.3425 51.8309 13.3277 51.8309 13.3129C51.6809 11.0653 51.228 8.31376 51.2096 8.20702C50.9188 6.36572 51.4728 6.21153 52.088 6.10182H52.0911ZM67.116 29.4665C67.6546 34.1513 66.868 37.7183 64.7776 40.0637C62.7484 42.3379 59.5438 43.518 54.9528 43.6662C46.8114 44.1644 43.9038 39.1712 43.209 37.6294C42.2234 35.4471 41.7001 33.8015 41.2808 32.4761C40.9135 31.3197 40.6258 30.4094 40.1728 29.5584C39.6953 28.66 39.2729 28.07 38.9332 27.5956C38.4404 26.9047 38.2354 26.6171 38.1895 25.9203C38.168 25.5823 38.266 25.3095 38.4894 25.0901C38.8077 24.7758 39.3464 24.5949 39.8973 24.6216C40.8308 24.6631 41.7123 24.6987 43.9588 28.3902C44.2772 28.9121 44.4363 29.3361 44.623 29.8253C44.7454 30.1426 44.8801 30.4954 45.0668 30.8779C45.0729 30.8898 45.076 30.9016 45.0821 30.9105C45.1648 31.0795 45.2535 31.2515 45.3576 31.4353C46.3401 33.1462 47.9041 34.095 49.5415 33.9705C50.0986 33.929 50.5179 33.4545 50.475 32.9149C50.4322 32.3753 49.9455 31.975 49.3854 32.0106C48.4152 32.0817 47.5858 31.2663 47.1328 30.4776C47.0899 30.4035 47.0563 30.3353 47.0195 30.2641C47.194 28.1827 47.4541 19.5929 45.4402 12.3314C45.2076 11.4982 45.2566 10.8103 45.5749 10.3389C45.8718 9.906 46.2911 9.80222 46.4594 9.7785C47.0624 9.69252 47.5031 9.71624 47.9683 10.078C49.0947 10.9586 50.576 13.9711 51.2678 23.2755C50.9556 23.2784 50.6434 23.2873 50.3373 23.3022C49.7772 23.3259 49.3456 23.7855 49.3701 24.3281C49.3946 24.8707 49.8598 25.2799 50.4291 25.265C55.5986 25.0338 61.4996 26.2198 63.9971 27.4503C64.1471 27.5244 64.3063 27.557 64.4654 27.557C64.8327 27.5541 65.1847 27.3584 65.3622 27.0174C65.6162 26.5341 65.4173 25.9411 64.9153 25.695C64.4715 25.4756 63.939 25.2621 63.3391 25.0545C63.6819 23.9159 64.2665 20.8856 64.2848 17.4165C64.3001 17.3394 64.3063 17.2623 64.3001 17.1823C64.2022 15.6968 64.6644 14.7272 65.1326 14.4544C65.4081 14.2943 65.7846 14.3536 66.2498 14.6323C67.976 15.6671 67.4251 21.0576 67.217 23.0887C67.1955 23.3081 67.1711 23.5245 67.1466 23.744C66.9568 25.5052 66.7609 27.3228 67.116 29.4665Z"
- fill="black" />
- <path
- d="M38.7381 10.5084C38.5759 10.5084 38.4106 10.4788 38.2545 10.4076C37.6821 10.1526 37.4312 9.49736 37.6944 8.94289C38.5453 7.1431 39.791 5.48266 41.2938 4.14245C41.7559 3.73031 42.4782 3.75699 42.9037 4.20768C43.3291 4.65541 43.3016 5.35516 42.8363 5.76731C41.5539 6.91182 40.4919 8.32912 39.7634 9.86502C39.5737 10.2653 39.1666 10.5055 38.7381 10.5084Z"
- fill="black" />
- <path
- d="M34.898 9.87074C34.3073 9.87667 33.8023 9.43784 33.7533 8.85669C33.536 6.25633 33.5268 3.62039 33.7319 1.02003C33.7808 0.412188 34.3287 -0.0414663 34.9531 0.00300963C35.5805 0.0504507 36.0488 0.578232 36.0029 1.18607C35.807 3.67079 35.8162 6.1911 36.0243 8.67582C36.0763 9.28366 35.6081 9.81737 34.9806 9.86481C34.9531 9.86481 34.9255 9.86778 34.898 9.86778V9.87074Z"
- fill="black" />
- <path
- d="M30.976 10.5558C30.4649 10.5618 29.9935 10.2267 29.8619 9.7256C29.3783 7.88726 28.4632 6.14084 27.2175 4.67906C26.8165 4.20762 26.8869 3.51379 27.3705 3.12537C27.8572 2.73695 28.5734 2.80514 28.9743 3.27362C30.4312 4.98743 31.5024 7.03036 32.0656 9.18003C32.2217 9.77008 31.8514 10.372 31.2423 10.5232C31.1505 10.5469 31.0617 10.5558 30.9699 10.5588L30.976 10.5558Z"
- fill="black" />
- </g>
- </g>
- <defs>
- <clipPath id="clip0_8467_33285">
- <rect width="69" height="46" fill="white" transform="translate(0.5)" />
- </clipPath>
- <clipPath id="clip1_8467_33285">
- <rect width="69" height="46" fill="white" transform="translate(0.5)" />
- </clipPath>
- </defs>
-</svg>
diff --git a/frontend/src/assets/calendar.tsx b/frontend/src/assets/calendar.tsx
deleted file mode 100644
index 290691d87d..0000000000
--- a/frontend/src/assets/calendar.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-function Calendar() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-6 h-6"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5m-9-6h.008v.008H12v-.008ZM12 15h.008v.008H12V15Zm0 2.25h.008v.008H12v-.008ZM9.75 15h.008v.008H9.75V15Zm0 2.25h.008v.008H9.75v-.008ZM7.5 15h.008v.008H7.5V15Zm0 2.25h.008v.008H7.5v-.008Zm6.75-4.5h.008v.008h-.008v-.008Zm0 2.25h.008v.008h-.008V15Zm0 2.25h.008v.008h-.008v-.008Zm2.25-4.5h.008v.008H16.5v-.008Zm0 2.25h.008v.008H16.5V15Z"
- />
- </svg>
- );
-}
-
-export default Calendar;
diff --git a/frontend/src/assets/cog-tooth.tsx b/frontend/src/assets/cog-tooth.tsx
deleted file mode 100644
index 5131beb534..0000000000
--- a/frontend/src/assets/cog-tooth.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import React from "react";
-
-function CogTooth() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth="1.5"
- stroke="currentColor"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"
- />
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
- />
- </svg>
- );
-}
-
-export default CogTooth;
diff --git a/frontend/src/assets/confirm.tsx b/frontend/src/assets/confirm.tsx
deleted file mode 100644
index 2f0ecf003d..0000000000
--- a/frontend/src/assets/confirm.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from "react";
-
-function ConfirmIcon() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-5 h-5"
- >
- <path strokeLinecap="round" strokeLinejoin="round" d="M5 13l4 4L19 7" />
- </svg>
- );
-}
-
-export default ConfirmIcon;
diff --git a/frontend/src/assets/earth.tsx b/frontend/src/assets/earth.tsx
deleted file mode 100644
index 9bb022364e..0000000000
--- a/frontend/src/assets/earth.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-function Earth() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-6 h-6"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"
- />
- </svg>
- );
-}
-
-export default Earth;
diff --git a/frontend/src/assets/logo.png b/frontend/src/assets/logo.png
deleted file mode 100644
index 985f6d9814..0000000000
Binary files a/frontend/src/assets/logo.png and /dev/null differ
diff --git a/frontend/src/assets/notification.mp3 b/frontend/src/assets/notification.mp3
deleted file mode 100644
index 7937b7c566..0000000000
Binary files a/frontend/src/assets/notification.mp3 and /dev/null differ
diff --git a/frontend/src/assets/pause.tsx b/frontend/src/assets/pause.tsx
deleted file mode 100644
index 06b5034c15..0000000000
--- a/frontend/src/assets/pause.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-function PauseIcon() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-5 h-5"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M15.75 5.25v13.5m-7.5-13.5v13.5"
- />
- </svg>
- );
-}
-
-export default PauseIcon;
diff --git a/frontend/src/assets/pencil.tsx b/frontend/src/assets/pencil.tsx
deleted file mode 100644
index 0fab584440..0000000000
--- a/frontend/src/assets/pencil.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-function Pencil() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-6 h-6"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
- />
- </svg>
- );
-}
-
-export default Pencil;
diff --git a/frontend/src/assets/play.tsx b/frontend/src/assets/play.tsx
deleted file mode 100644
index 8e1e836822..0000000000
--- a/frontend/src/assets/play.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-function PlayIcon() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-5 h-5"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"
- />
- </svg>
- );
-}
-
-export default PlayIcon;
diff --git a/frontend/src/assets/reject.tsx b/frontend/src/assets/reject.tsx
deleted file mode 100644
index 5400aa079b..0000000000
--- a/frontend/src/assets/reject.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-function RejectIcon() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-5 h-5"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M6 18L18 6M6 6l12 12"
- />
- </svg>
- );
-}
-
-export default RejectIcon;
diff --git a/frontend/src/assets/stop.tsx b/frontend/src/assets/stop.tsx
deleted file mode 100644
index 425b984601..0000000000
--- a/frontend/src/assets/stop.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from "react";
-
-function StopIcon() {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- fill="none"
- viewBox="0 0 24 24"
- strokeWidth={1.5}
- stroke="currentColor"
- className="w-5 h-5"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M5.25 7.5A2.25 2.25 0 0 1 7.5 5.25h9a2.25 2.25 0 0 1 2.25 2.25v9a2.25 2.25 0 0 1-2.25 2.25h-9a2.25 2.25 0 0 1-2.25-2.25v-9Z"
- />
- </svg>
- );
-}
-
-export default StopIcon;
diff --git a/frontend/src/assets/vscode-alt.svg b/frontend/src/assets/vscode-alt.svg
deleted file mode 100644
index 66699157dd..0000000000
--- a/frontend/src/assets/vscode-alt.svg
+++ /dev/null
@@ -1,57 +0,0 @@
-<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
-<g clip-path="url(#clip0)">
-<g filter="url(#filter0_d)">
-<mask id="mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
-<path fill-rule="evenodd" clip-rule="evenodd" d="M70.9119 99.5723C72.4869 100.189 74.2828 100.15 75.8725 99.3807L96.4604 89.4231C98.624 88.3771 100 86.1762 100 83.7616V16.2392C100 13.8247 98.624 11.6238 96.4604 10.5774L75.8725 0.619067C73.7862 -0.389991 71.3446 -0.142885 69.5135 1.19527C69.252 1.38636 69.0028 1.59985 68.769 1.83502L29.3551 37.9795L12.1872 24.88C10.5891 23.6607 8.35365 23.7606 6.86938 25.1178L1.36302 30.1525C-0.452603 31.8127 -0.454583 34.6837 1.35854 36.3466L16.2471 50.0001L1.35854 63.6536C-0.454583 65.3164 -0.452603 68.1876 1.36302 69.8477L6.86938 74.8824C8.35365 76.2395 10.5891 76.34 12.1872 75.1201L29.3551 62.0207L68.769 98.1651C69.3925 98.7923 70.1246 99.2645 70.9119 99.5723ZM75.0152 27.1813L45.1092 50.0001L75.0152 72.8189V27.1813Z" fill="white"/>
-</mask>
-<g mask="url(#mask0)">
-<path d="M96.4614 10.593L75.8567 0.62085C73.4717 -0.533437 70.6215 -0.0465506 68.7498 1.83492L1.29834 63.6535C-0.515935 65.3164 -0.513852 68.1875 1.30281 69.8476L6.8125 74.8823C8.29771 76.2395 10.5345 76.339 12.1335 75.1201L93.3604 13.18C96.0854 11.102 100 13.0557 100 16.4939V16.2535C100 13.84 98.6239 11.64 96.4614 10.593Z" fill="#D9D9D9"/>
-<g filter="url(#filter1_d)">
-<path d="M96.4614 89.4074L75.8567 99.3797C73.4717 100.534 70.6215 100.047 68.7498 98.1651L1.29834 36.3464C-0.515935 34.6837 -0.513852 31.8125 1.30281 30.1524L6.8125 25.1177C8.29771 23.7605 10.5345 23.6606 12.1335 24.88L93.3604 86.8201C96.0854 88.8985 100 86.9447 100 83.5061V83.747C100 86.1604 98.6239 88.3603 96.4614 89.4074Z" fill="#E6E6E6"/>
-</g>
-<g filter="url(#filter2_d)">
-<path d="M75.8578 99.3807C73.4721 100.535 70.6219 100.047 68.75 98.1651C71.0564 100.483 75 98.8415 75 95.5631V4.43709C75 1.15852 71.0565 -0.483493 68.75 1.83492C70.6219 -0.0467614 73.4721 -0.534276 75.8578 0.618963L96.4583 10.5773C98.6229 11.6237 100 13.8246 100 16.2391V83.7616C100 86.1762 98.6229 88.3761 96.4583 89.4231L75.8578 99.3807Z" fill="white"/>
-</g>
-<g style="mix-blend-mode:overlay" opacity="0.25">
-<path style="mix-blend-mode:overlay" opacity="0.25" fill-rule="evenodd" clip-rule="evenodd" d="M70.8508 99.5723C72.4258 100.189 74.2218 100.15 75.8115 99.3807L96.4 89.4231C98.5635 88.3771 99.9386 86.1762 99.9386 83.7616V16.2391C99.9386 13.8247 98.5635 11.6239 96.4 10.5774L75.8115 0.618974C73.7252 -0.390085 71.2835 -0.142871 69.4525 1.19518C69.1909 1.38637 68.9418 1.59976 68.7079 1.83493L29.2941 37.9795L12.1261 24.88C10.528 23.6606 8.2926 23.7605 6.80833 25.1177L1.30198 30.1524C-0.51354 31.8126 -0.515625 34.6837 1.2975 36.3465L16.186 50L1.2975 63.6536C-0.515625 65.3164 -0.51354 68.1875 1.30198 69.8476L6.80833 74.8824C8.2926 76.2395 10.528 76.339 12.1261 75.1201L29.2941 62.0207L68.7079 98.1651C69.3315 98.7923 70.0635 99.2645 70.8508 99.5723ZM74.9542 27.1812L45.0481 50L74.9542 72.8188V27.1812Z" fill="url(#paint0_linear)"/>
-</g>
-</g>
-</g>
-</g>
-<defs>
-<filter id="filter0_d" x="-6.25" y="-4.16667" width="112.5" height="112.5" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
-<feFlood flood-opacity="0" result="BackgroundImageFix"/>
-<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
-<feOffset dy="2.08333"/>
-<feGaussianBlur stdDeviation="3.125"/>
-<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"/>
-<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
-<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
-</filter>
-<filter id="filter1_d" x="-8.39436" y="15.6951" width="116.728" height="92.6376" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
-<feFlood flood-opacity="0" result="BackgroundImageFix"/>
-<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
-<feOffset/>
-<feGaussianBlur stdDeviation="4.16667"/>
-<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
-<feBlend mode="overlay" in2="BackgroundImageFix" result="effect1_dropShadow"/>
-<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
-</filter>
-<filter id="filter2_d" x="60.4167" y="-8.33346" width="47.9167" height="116.667" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
-<feFlood flood-opacity="0" result="BackgroundImageFix"/>
-<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
-<feOffset/>
-<feGaussianBlur stdDeviation="4.16667"/>
-<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
-<feBlend mode="overlay" in2="BackgroundImageFix" result="effect1_dropShadow"/>
-<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
-</filter>
-<linearGradient id="paint0_linear" x1="49.939" y1="-5.19792e-05" x2="49.939" y2="100.001" gradientUnits="userSpaceOnUse">
-<stop stop-color="white"/>
-<stop offset="1" stop-color="white" stop-opacity="0"/>
-</linearGradient>
-<clipPath id="clip0">
-<rect width="100" height="100" fill="white"/>
-</clipPath>
-</defs>
-</svg>
diff --git a/frontend/src/components/extension-icon-map.constant.tsx b/frontend/src/components/extension-icon-map.constant.tsx
deleted file mode 100644
index 4c6a2149b2..0000000000
--- a/frontend/src/components/extension-icon-map.constant.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import { DiJavascript } from "react-icons/di";
-import {
- FaCss3,
- FaHtml5,
- FaList,
- FaMarkdown,
- FaNpm,
- FaPython,
-} from "react-icons/fa";
-
-export const EXTENSION_ICON_MAP: Record<string, React.ReactNode> = {
- js: <DiJavascript />,
- ts: <DiJavascript />,
- py: <FaPython />,
- css: <FaCss3 />,
- json: <FaList />,
- npmignore: <FaNpm />,
- html: <FaHtml5 />,
- md: <FaMarkdown />,
-};
diff --git a/frontend/src/components/features/chat/git-scroll-button.tsx b/frontend/src/components/features/chat/git-scroll-button.tsx
deleted file mode 100644
index 17f88eeea9..0000000000
--- a/frontend/src/components/features/chat/git-scroll-button.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import { ReactNode } from "react";
-import { cn } from "#/utils/utils";
-
-interface GitScrollButtonProps {
- direction: "left" | "right";
- onClick: () => void;
- ariaLabel: string;
- children: ReactNode;
-}
-
-export function GitScrollButton({
- direction,
- onClick,
- ariaLabel,
- children,
-}: GitScrollButtonProps) {
- const isLeft = direction === "left";
-
- const baseClasses =
- "flex items-center h-[28px] w-[30.6px] min-w-[30.6px] cursor-pointer relative z-10 bg-gradient-to-l from-transparent from-[7.76%] to-[#0D0F11] to-[80.02%]";
-
- const pseudoCommonElementClasses =
- "before:content-[''] before:absolute before:inset-y-0 before:w-[30px] before:pointer-events-none before:z-[5] before:backdrop-blur-[1px]";
-
- const pseudoCommonGradientClasses =
- "before:from-[rgba(13,15,17,0.98)] before:from-0% before:via-[rgba(13,15,17,0.85)] before:via-[25%] before:via-[rgba(13,15,17,0.6)] before:via-[50%] before:via-[rgba(13,15,17,0.2)] before:via-[80%] before:to-transparent before:to-[100%]";
-
- const pseudoElementClasses = isLeft
- ? "justify-start before:right-[-30px] before:bg-gradient-to-r"
- : "justify-end before:left-[-30px] before:bg-gradient-to-l";
-
- return (
- <button
- type="button"
- onClick={onClick}
- className={cn(
- baseClasses,
- pseudoCommonElementClasses,
- pseudoCommonGradientClasses,
- pseudoElementClasses,
- )}
- aria-label={ariaLabel}
- >
- {children}
- </button>
- );
-}
diff --git a/frontend/src/components/features/conversation-panel/state-indicators/archived.svg b/frontend/src/components/features/conversation-panel/state-indicators/archived.svg
deleted file mode 100644
index 9ae37de1fa..0000000000
--- a/frontend/src/components/features/conversation-panel/state-indicators/archived.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#A7A9AC"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5zm-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3 2 4.27z"/><path d="M0 24V0" fill="none"/></svg>
diff --git a/frontend/src/components/features/conversation-panel/state-indicators/error.svg b/frontend/src/components/features/conversation-panel/state-indicators/error.svg
deleted file mode 100644
index c956633ba4..0000000000
--- a/frontend/src/components/features/conversation-panel/state-indicators/error.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#e7000b"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>
diff --git a/frontend/src/components/features/conversation-panel/state-indicators/running.svg b/frontend/src/components/features/conversation-panel/state-indicators/running.svg
deleted file mode 100644
index 5537583da5..0000000000
--- a/frontend/src/components/features/conversation-panel/state-indicators/running.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M9.04004 3.10986C12.06 3.10986 14.57 5.34986 14.98 8.25986C15.05 8.74986 15.47 9.10986 15.96 9.10986C16.57 9.10986 17.04 8.56986 16.96 7.96986C16.41 4.08986 13.07 1.10986 9.04004 1.10986C4.62004 1.10986 1.04004 4.68986 1.04004 9.10986C1.04004 13.1399 4.02004 16.4799 7.90004 17.0299C8.50004 17.1199 9.04004 16.6399 9.04004 16.0299C9.04004 15.5399 8.68004 15.1199 8.19004 15.0499C5.28004 14.6399 3.04004 12.1299 3.04004 9.10986C3.04004 5.79986 5.73004 3.10986 9.04004 3.10986Z" fill="#60BB46"/>
-<path d="M12.3504 9.11L7.40039 6.25V11.96L12.3504 9.11Z" fill="#60BB46"/>
-</svg>
diff --git a/frontend/src/components/features/conversation-panel/state-indicators/starting.svg b/frontend/src/components/features/conversation-panel/state-indicators/starting.svg
deleted file mode 100644
index ef65bfa11c..0000000000
--- a/frontend/src/components/features/conversation-panel/state-indicators/starting.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M9.87012 2.02002C9.87012 1.46773 9.4224 1.02002 8.87012 1.02002C8.31783 1.02002 7.87012 1.46773 7.87012 2.02002V8.02002C7.87012 8.5723 8.31783 9.02002 8.87012 9.02002C9.4224 9.02002 9.87012 8.5723 9.87012 8.02002V2.02002Z" fill="#EFC818"/>
-<path d="M10.8698 2.44003V2.58003C10.8698 2.95003 11.0698 3.30003 11.4098 3.45003C13.6798 4.45003 15.2198 6.82003 14.9698 9.50003C14.6998 12.49 12.0998 14.89 9.08979 14.94C5.73979 14.99 2.98979 12.28 2.98979 8.94003C2.98979 6.59003 4.34979 4.56003 6.30979 3.58003C6.63979 3.42003 6.85979 3.10003 6.85979 2.74003V2.57003C6.85979 1.88003 6.13979 1.45003 5.50979 1.75003C2.43979 3.23003 0.449793 6.64003 1.13979 10.43C1.70979 13.59 4.23979 16.16 7.38979 16.78C12.5098 17.78 16.9998 13.88 16.9998 8.94003C16.9998 5.63003 14.9898 2.80003 12.1198 1.58003C11.5298 1.33003 10.8698 1.80003 10.8698 2.44003Z" fill="#EFC818"/>
-</svg>
diff --git a/frontend/src/components/features/conversation-panel/state-indicators/stopped.svg b/frontend/src/components/features/conversation-panel/state-indicators/stopped.svg
deleted file mode 100644
index 95b5138514..0000000000
--- a/frontend/src/components/features/conversation-panel/state-indicators/stopped.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M9.87012 2C9.87012 1.44772 9.4224 1 8.87012 1C8.31783 1 7.87012 1.44772 7.87012 2V8C7.87012 8.55228 8.31783 9 8.87012 9C9.4224 9 9.87012 8.55228 9.87012 8V2Z" fill="#A7A9AC"/>
-<path d="M10.8698 2.42001V2.56001C10.8698 2.93001 11.0698 3.28001 11.4098 3.43001C13.6798 4.43001 15.2198 6.80001 14.9698 9.48001C14.6998 12.47 12.0998 14.87 9.08979 14.92C5.73979 14.97 2.98979 12.26 2.98979 8.92001C2.98979 6.57001 4.34979 4.54001 6.30979 3.56001C6.63979 3.40001 6.85979 3.08001 6.85979 2.72001V2.55001C6.85979 1.86001 6.13979 1.43001 5.50979 1.73001C2.43979 3.20001 0.449793 6.62001 1.13979 10.41C1.70979 13.57 4.23979 16.14 7.38979 16.76C12.5098 17.76 16.9998 13.86 16.9998 8.92001C16.9998 5.61001 14.9898 2.78001 12.1198 1.56001C11.5298 1.31001 10.8698 1.78001 10.8698 2.42001Z" fill="#A7A9AC"/>
-</svg>
diff --git a/frontend/src/components/features/images/attach-image-label.tsx b/frontend/src/components/features/images/attach-image-label.tsx
deleted file mode 100644
index e43f14d9df..0000000000
--- a/frontend/src/components/features/images/attach-image-label.tsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-import Clip from "#/icons/clip.svg?react";
-
-export function AttachImageLabel() {
- const { t } = useTranslation();
- return (
- <div className="flex self-start items-center text-[#A3A3A3] text-xs leading-[18px] -tracking-[0.08px] cursor-pointer">
- <Clip width={16} height={16} />
- {t(I18nKey.LANDING$ATTACH_IMAGES)}
- </div>
- );
-}
diff --git a/frontend/src/components/features/images/upload-image-input.tsx b/frontend/src/components/features/images/upload-image-input.tsx
deleted file mode 100644
index 5cf825426b..0000000000
--- a/frontend/src/components/features/images/upload-image-input.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import Clip from "#/icons/clip.svg?react";
-
-interface UploadImageInputProps {
- onUpload: (files: File[]) => void;
- label?: React.ReactNode;
-}
-
-export function UploadImageInput({ onUpload, label }: UploadImageInputProps) {
- const handleUpload = (event: React.ChangeEvent<HTMLInputElement>) => {
- if (event.target.files) {
- onUpload(Array.from(event.target.files));
- }
- };
-
- return (
- <label className="cursor-pointer py-[10px]">
- {label || <Clip data-testid="default-label" width={24} height={24} />}
- <input
- data-testid="upload-image-input"
- type="file"
- multiple
- hidden
- onChange={handleUpload}
- />
- </label>
- );
-}
diff --git a/frontend/src/components/features/settings/mcp-settings/mcp-config-viewer.tsx b/frontend/src/components/features/settings/mcp-settings/mcp-config-viewer.tsx
deleted file mode 100644
index 7f84969209..0000000000
--- a/frontend/src/components/features/settings/mcp-settings/mcp-config-viewer.tsx
+++ /dev/null
@@ -1,141 +0,0 @@
-import React from "react";
-import { useTranslation } from "react-i18next";
-import { MCPConfig, MCPSSEServer, MCPStdioServer } from "#/types/settings";
-import { I18nKey } from "#/i18n/declaration";
-
-interface MCPConfigViewerProps {
- mcpConfig?: MCPConfig;
-}
-
-interface SSEServerDisplayProps {
- server: string | MCPSSEServer;
-}
-
-function SSEServerDisplay({ server }: SSEServerDisplayProps) {
- const { t } = useTranslation();
-
- if (typeof server === "string") {
- return (
- <div className="mb-2 p-2 bg-base-tertiary rounded-md">
- <div className="text-sm">
- <span className="font-medium">{t(I18nKey.SETTINGS$MCP_URL)}:</span>{" "}
- {server}
- </div>
- </div>
- );
- }
-
- return (
- <div className="mb-2 p-2 bg-base-tertiary rounded-md">
- <div className="text-sm">
- <span className="font-medium">{t(I18nKey.SETTINGS$MCP_URL)}:</span>{" "}
- {server.url}
- </div>
- {server.api_key && (
- <div className="text-sm text-gray-500">
- <span className="font-medium">
- {t(I18nKey.SETTINGS$MCP_API_KEY)}:
- </span>{" "}
- {server.api_key ? "Set" : t(I18nKey.SETTINGS$MCP_API_KEY_NOT_SET)}
- </div>
- )}
- </div>
- );
-}
-
-interface StdioServerDisplayProps {
- server: MCPStdioServer;
-}
-
-function StdioServerDisplay({ server }: StdioServerDisplayProps) {
- const { t } = useTranslation();
-
- return (
- <div className="mb-2 p-2 bg-base-tertiary rounded-md">
- <div className="text-sm">
- <span className="font-medium">{t(I18nKey.SETTINGS$MCP_NAME)}:</span>{" "}
- {server.name}
- </div>
- <div className="text-sm text-gray-500">
- <span className="font-medium">{t(I18nKey.SETTINGS$MCP_COMMAND)}:</span>{" "}
- {server.command}
- </div>
- {server.args && server.args.length > 0 && (
- <div className="text-sm text-gray-500">
- <span className="font-medium">{t(I18nKey.SETTINGS$MCP_ARGS)}:</span>{" "}
- {server.args.join(" ")}
- </div>
- )}
- {server.env && Object.keys(server.env).length > 0 && (
- <div className="text-sm text-gray-500">
- <span className="font-medium">{t(I18nKey.SETTINGS$MCP_ENV)}:</span>{" "}
- {Object.entries(server.env)
- .map(([key, value]) => `${key}=${value}`)
- .join(", ")}
- </div>
- )}
- </div>
- );
-}
-
-export function MCPConfigViewer({ mcpConfig }: MCPConfigViewerProps) {
- const { t } = useTranslation();
-
- if (
- !mcpConfig ||
- (mcpConfig.sse_servers.length === 0 && mcpConfig.stdio_servers.length === 0)
- ) {
- return null;
- }
-
- return (
- <div className="mt-4 border border-base-tertiary rounded-md p-3">
- <div className="flex justify-between items-center mb-3">
- <h3 className="text-sm font-medium">
- {t(I18nKey.SETTINGS$MCP_CONFIGURATION)}
- </h3>
- <a
- href="https://docs.all-hands.dev/usage/mcp"
- target="_blank"
- rel="noopener noreferrer"
- className="text-xs text-blue-400 hover:underline"
- onClick={(e) => e.stopPropagation()}
- >
- {t(I18nKey.SETTINGS$MCP_LEARN_MORE)}
- </a>
- </div>
-
- <div className="mt-2">
- <div className="flex flex-col gap-4">
- {mcpConfig.sse_servers.length > 0 && (
- <div className="mb-3">
- <h4 className="text-sm font-medium mb-1">
- {t(I18nKey.SETTINGS$MCP_SSE_SERVERS)}{" "}
- <span className="text-gray-500">
- ({mcpConfig.sse_servers.length})
- </span>
- </h4>
- {mcpConfig.sse_servers.map((server, index) => (
- <SSEServerDisplay key={`sse-${index}`} server={server} />
- ))}
- </div>
- )}
-
- {mcpConfig.stdio_servers.length > 0 && (
- <div>
- <h4 className="text-sm font-medium mb-1">
- {t(I18nKey.SETTINGS$MCP_STDIO_SERVERS)}{" "}
- <span className="text-gray-500">
- ({mcpConfig.stdio_servers.length})
- </span>
- </h4>
- {mcpConfig.stdio_servers.map((server, index) => (
- <StdioServerDisplay key={`stdio-${index}`} server={server} />
- ))}
- </div>
- )}
- </div>
- </div>
- </div>
- );
-}
diff --git a/frontend/src/components/features/settings/mcp-settings/mcp-sse-servers.tsx b/frontend/src/components/features/settings/mcp-settings/mcp-sse-servers.tsx
deleted file mode 100644
index 354013f71c..0000000000
--- a/frontend/src/components/features/settings/mcp-settings/mcp-sse-servers.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import React from "react";
-import { useTranslation } from "react-i18next";
-import { MCPSSEServer } from "#/types/settings";
-import { I18nKey } from "#/i18n/declaration";
-
-interface MCPSSEServersProps {
- servers: (string | MCPSSEServer)[];
-}
-
-export function MCPSSEServers({ servers }: MCPSSEServersProps) {
- const { t } = useTranslation();
-
- return (
- <div>
- <h4 className="text-sm font-medium mb-2">
- {t(I18nKey.SETTINGS$MCP_SSE_SERVERS)}{" "}
- <span className="text-gray-500">({servers.length})</span>
- </h4>
- {servers.map((server, index) => (
- <div
- key={`sse-${index}`}
- className="mb-2 p-2 bg-base-tertiary rounded-md"
- >
- <div className="text-sm">
- <span className="font-medium">{t(I18nKey.SETTINGS$MCP_URL)}:</span>{" "}
- {typeof server === "string" ? server : server.url}
- </div>
- {typeof server !== "string" && server.api_key && (
- <div className="mt-1 text-sm text-gray-500">
- <span className="font-medium">
- {t(I18nKey.SETTINGS$MCP_API_KEY)}:
- </span>{" "}
- {server.api_key
- ? "Configured"
- : t(I18nKey.SETTINGS$MCP_API_KEY_NOT_SET)}
- </div>
- )}
- </div>
- ))}
- </div>
- );
-}
diff --git a/frontend/src/components/features/settings/mcp-settings/mcp-stdio-servers.tsx b/frontend/src/components/features/settings/mcp-settings/mcp-stdio-servers.tsx
deleted file mode 100644
index 72e0bdec84..0000000000
--- a/frontend/src/components/features/settings/mcp-settings/mcp-stdio-servers.tsx
+++ /dev/null
@@ -1,58 +0,0 @@
-import React from "react";
-import { useTranslation } from "react-i18next";
-import { MCPStdioServer } from "#/types/settings";
-import { I18nKey } from "#/i18n/declaration";
-
-interface MCPStdioServersProps {
- servers: MCPStdioServer[];
-}
-
-export function MCPStdioServers({ servers }: MCPStdioServersProps) {
- const { t } = useTranslation();
-
- return (
- <div>
- <h4 className="text-sm font-medium mb-2">
- {t(I18nKey.SETTINGS$MCP_STDIO_SERVERS)}{" "}
- <span className="text-gray-500">({servers.length})</span>
- </h4>
- {servers.map((server, index) => (
- <div
- key={`stdio-${index}`}
- className="mb-2 p-2 bg-base-tertiary rounded-md"
- >
- <div className="text-sm">
- <span className="font-medium">{t(I18nKey.SETTINGS$MCP_NAME)}:</span>{" "}
- {server.name}
- </div>
- <div className="mt-1 text-sm text-gray-500">
- <span className="font-medium">
- {t(I18nKey.SETTINGS$MCP_COMMAND)}:
- </span>{" "}
- <code className="font-mono">{server.command}</code>
- </div>
- {server.args && server.args.length > 0 && (
- <div className="mt-1 text-sm text-gray-500">
- <span className="font-medium">
- {t(I18nKey.SETTINGS$MCP_ARGS)}:
- </span>{" "}
- <code className="font-mono">{server.args.join(" ")}</code>
- </div>
- )}
- {server.env && Object.keys(server.env).length > 0 && (
- <div className="mt-1 text-sm text-gray-500">
- <span className="font-medium">
- {t(I18nKey.SETTINGS$MCP_ENV)}:
- </span>{" "}
- <code className="font-mono">
- {Object.entries(server.env)
- .map(([key, value]) => `${key}=${value}`)
- .join(", ")}
- </code>
- </div>
- )}
- </div>
- ))}
- </div>
- );
-}
diff --git a/frontend/src/components/features/settings/project-management/integration-button.tsx b/frontend/src/components/features/settings/project-management/integration-button.tsx
deleted file mode 100644
index 881fdbdc38..0000000000
--- a/frontend/src/components/features/settings/project-management/integration-button.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import React from "react";
-import { useTranslation } from "react-i18next";
-import { BrandButton } from "#/components/features/settings/brand-button";
-import { I18nKey } from "#/i18n/declaration";
-
-interface IntegrationButtonProps {
- isLoading: boolean;
- isLinked: boolean;
- onClick: () => void;
- "data-testid"?: string;
-}
-
-export function IntegrationButton({
- isLoading,
- isLinked,
- onClick,
- "data-testid": dataTestId,
-}: IntegrationButtonProps) {
- const { t } = useTranslation();
-
- return (
- <BrandButton
- data-testid={dataTestId}
- variant={isLinked ? "secondary" : "primary"}
- onClick={onClick}
- isDisabled={isLoading}
- type="button"
- className="w-30 min-w-20"
- >
- {isLoading && t(I18nKey.SETTINGS$SAVING)}
- {!isLoading &&
- (isLinked
- ? t(I18nKey.PROJECT_MANAGEMENT$UNLINK_BUTTON_LABEL)
- : t(I18nKey.PROJECT_MANAGEMENT$LINK_BUTTON_LABEL))}
- </BrandButton>
- );
-}
diff --git a/frontend/src/components/features/suggestions/replay-suggestion-box.tsx b/frontend/src/components/features/suggestions/replay-suggestion-box.tsx
deleted file mode 100644
index 6675d7194a..0000000000
--- a/frontend/src/components/features/suggestions/replay-suggestion-box.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-import { SuggestionBox } from "./suggestion-box";
-
-interface ReplaySuggestionBoxProps {
- onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
-}
-
-export function ReplaySuggestionBox({ onChange }: ReplaySuggestionBoxProps) {
- const { t } = useTranslation();
- return (
- <SuggestionBox
- title={t(I18nKey.LANDING$REPLAY)}
- content={
- <label
- htmlFor="import-trajectory"
- className="w-full flex justify-center"
- >
- <span className="border-2 border-dashed border-neutral-600 rounded-sm px-2 py-1 cursor-pointer">
- {t(I18nKey.LANDING$UPLOAD_TRAJECTORY)}
- </span>
- <input
- hidden
- type="file"
- accept="application/json"
- id="import-trajectory"
- multiple={false}
- onChange={onChange}
- />
- </label>
- }
- />
- );
-}
diff --git a/frontend/src/components/features/suggestions/suggestion-box.tsx b/frontend/src/components/features/suggestions/suggestion-box.tsx
deleted file mode 100644
index 327e49fe8e..0000000000
--- a/frontend/src/components/features/suggestions/suggestion-box.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from "react";
-
-interface SuggestionBoxProps {
- title: string;
- content: React.ReactNode;
-}
-
-export function SuggestionBox({ title, content }: SuggestionBoxProps) {
- return (
- <div className="w-full h-[100px] px-4 border border-[#525252] rounded-xl flex flex-col items-center justify-center gap-1">
- <span className="text-[16px] leading-6 -tracking-[0.01em] font-[600]">
- {title}
- </span>
- {typeof content === "string" ? (
- <span className="text-sm">{content}</span>
- ) : (
- <div className="w-full">{content}</div>
- )}
- </div>
- );
-}
diff --git a/frontend/src/components/features/suggestions/suggestion-bubble.tsx b/frontend/src/components/features/suggestions/suggestion-bubble.tsx
deleted file mode 100644
index 3802642b71..0000000000
--- a/frontend/src/components/features/suggestions/suggestion-bubble.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { RefreshButton } from "#/components/shared/buttons/refresh-button";
-import Lightbulb from "#/icons/lightbulb.svg?react";
-import { I18nKey } from "#/i18n/declaration";
-
-interface SuggestionBubbleProps {
- suggestion: { key: string; value: string };
- onClick: () => void;
- onRefresh: () => void;
-}
-
-export function SuggestionBubble({
- suggestion,
- onClick,
- onRefresh,
-}: SuggestionBubbleProps) {
- const { t } = useTranslation();
- const handleRefresh = (e: React.MouseEvent<HTMLButtonElement>) => {
- e.stopPropagation();
- onRefresh();
- };
-
- return (
- <div
- onClick={onClick}
- className="border border-neutral-600 rounded-lg px-[10px] py-2 flex items-center justify-center gap-4 cursor-pointer"
- >
- <div className="flex items-center gap-2">
- <Lightbulb width={18} height={18} />
- <span className="text-sm">{t(suggestion.key as I18nKey)}</span>
- </div>
- <RefreshButton onClick={handleRefresh} />
- </div>
- );
-}
diff --git a/frontend/src/components/shared/buttons/action-button.tsx b/frontend/src/components/shared/buttons/action-button.tsx
deleted file mode 100644
index 76c2bd8293..0000000000
--- a/frontend/src/components/shared/buttons/action-button.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import { Tooltip } from "@heroui/react";
-import { AgentState } from "#/types/agent-state";
-
-interface ActionButtonProps {
- isDisabled?: boolean;
- content: string;
- action: AgentState;
- handleAction: (action: AgentState) => void;
-}
-
-export function ActionButton({
- isDisabled = false,
- content,
- action,
- handleAction,
- children,
-}: React.PropsWithChildren<ActionButtonProps>) {
- return (
- <Tooltip content={content} closeDelay={100}>
- <button
- onClick={() => handleAction(action)}
- disabled={isDisabled}
- className="relative overflow-visible cursor-default hover:cursor-pointer group disabled:cursor-not-allowed transition-colors duration-300 ease-in-out border border-transparent hover:border-red-400/40 rounded-full p-1"
- type="button"
- >
- <span className="relative group-hover:filter group-hover:drop-shadow-[0_0_5px_rgba(255,64,0,0.4)]">
- {children}
- </span>
- </button>
- </Tooltip>
- );
-}
diff --git a/frontend/src/components/shared/buttons/docs-button.tsx b/frontend/src/components/shared/buttons/docs-button.tsx
deleted file mode 100644
index d7ea367ee9..0000000000
--- a/frontend/src/components/shared/buttons/docs-button.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { useTranslation } from "react-i18next";
-import DocsIcon from "#/icons/academy.svg?react";
-import { I18nKey } from "#/i18n/declaration";
-import { TooltipButton } from "./tooltip-button";
-
-interface DocsButtonProps {
- disabled?: boolean;
-}
-
-export function DocsButton({ disabled = false }: DocsButtonProps) {
- const { t } = useTranslation();
- return (
- <TooltipButton
- tooltip={t(I18nKey.SIDEBAR$DOCS)}
- ariaLabel={t(I18nKey.SIDEBAR$DOCS)}
- href="https://docs.all-hands.dev"
- disabled={disabled}
- >
- <DocsIcon
- width={28}
- height={28}
- className={`text-[#9099AC] ${disabled ? "opacity-50" : ""}`}
- />
- </TooltipButton>
- );
-}
diff --git a/frontend/src/components/shared/buttons/editor-action-button.tsx b/frontend/src/components/shared/buttons/editor-action-button.tsx
deleted file mode 100644
index 8201be6ef2..0000000000
--- a/frontend/src/components/shared/buttons/editor-action-button.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { cn } from "#/utils/utils";
-
-interface EditorActionButtonProps {
- onClick: () => void;
- disabled: boolean;
- className: React.HTMLAttributes<HTMLButtonElement>["className"];
-}
-
-export function EditorActionButton({
- onClick,
- disabled,
- className,
- children,
-}: React.PropsWithChildren<EditorActionButtonProps>) {
- return (
- <button
- type="button"
- onClick={onClick}
- disabled={disabled}
- className={cn(
- "text-sm py-0.5 rounded-sm w-20",
- "hover:bg-tertiary disabled:opacity-50 disabled:cursor-not-allowed",
- className,
- )}
- >
- {children}
- </button>
- );
-}
diff --git a/frontend/src/components/shared/buttons/refresh-icon-button.tsx b/frontend/src/components/shared/buttons/refresh-icon-button.tsx
deleted file mode 100644
index 585186d204..0000000000
--- a/frontend/src/components/shared/buttons/refresh-icon-button.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { IoIosRefresh } from "react-icons/io";
-import { useTranslation } from "react-i18next";
-import { IconButton } from "./icon-button";
-import { I18nKey } from "#/i18n/declaration";
-
-interface RefreshIconButtonProps {
- onClick: () => void;
-}
-
-export function RefreshIconButton({ onClick }: RefreshIconButtonProps) {
- const { t } = useTranslation();
-
- return (
- <IconButton
- icon={
- <IoIosRefresh
- size={16}
- className="text-neutral-400 hover:text-neutral-100 transition"
- />
- }
- testId="refresh"
- ariaLabel={t("BUTTON$REFRESH" as I18nKey)}
- onClick={onClick}
- />
- );
-}
diff --git a/frontend/src/components/shared/buttons/settings-button.tsx b/frontend/src/components/shared/buttons/settings-button.tsx
deleted file mode 100644
index 9281c38790..0000000000
--- a/frontend/src/components/shared/buttons/settings-button.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-import { useTranslation } from "react-i18next";
-import SettingsIcon from "#/icons/settings.svg?react";
-import { TooltipButton } from "./tooltip-button";
-import { I18nKey } from "#/i18n/declaration";
-import { useConfig } from "#/hooks/query/use-config";
-
-interface SettingsButtonProps {
- onClick?: () => void;
- disabled?: boolean;
-}
-
-export function SettingsButton({
- onClick,
- disabled = false,
-}: SettingsButtonProps) {
- const { t } = useTranslation();
- const { data: config } = useConfig();
-
- // Determine the correct settings path based on app mode
- // In SaaS mode, navigate directly to user settings to avoid the LLM settings page
- const settingsPath =
- config?.APP_MODE === "saas" ? "/settings/user" : "/settings";
-
- return (
- <TooltipButton
- testId="settings-button"
- tooltip={t(I18nKey.SETTINGS$TITLE)}
- ariaLabel={t(I18nKey.SETTINGS$TITLE)}
- onClick={onClick}
- navLinkTo={settingsPath}
- disabled={disabled}
- >
- <SettingsIcon width={28} height={28} />
- </TooltipButton>
- );
-}
diff --git a/frontend/src/components/shared/buttons/stop-button.tsx b/frontend/src/components/shared/buttons/stop-button.tsx
deleted file mode 100644
index bd60fb24c0..0000000000
--- a/frontend/src/components/shared/buttons/stop-button.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-
-interface StopButtonProps {
- isDisabled?: boolean;
- onClick?: () => void;
-}
-
-export function StopButton({ isDisabled, onClick }: StopButtonProps) {
- const { t } = useTranslation();
- return (
- <button
- data-testid="stop-button"
- aria-label={t(I18nKey.BUTTON$STOP)}
- disabled={isDisabled}
- onClick={onClick}
- type="button"
- className="border border-white rounded-lg w-6 h-6 hover:bg-neutral-500 focus:bg-neutral-500 flex items-center justify-center cursor-pointer"
- >
- <div className="w-[10px] h-[10px] bg-white" />
- </button>
- );
-}
diff --git a/frontend/src/components/shared/buttons/submit-button.tsx b/frontend/src/components/shared/buttons/submit-button.tsx
deleted file mode 100644
index 998b62acd6..0000000000
--- a/frontend/src/components/shared/buttons/submit-button.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import { useTranslation } from "react-i18next";
-import ArrowSendIcon from "#/icons/arrow-send.svg?react";
-import { I18nKey } from "#/i18n/declaration";
-
-interface SubmitButtonProps {
- isDisabled?: boolean;
- onClick: () => void;
-}
-
-export function SubmitButton({ isDisabled, onClick }: SubmitButtonProps) {
- const { t } = useTranslation();
- return (
- <button
- aria-label={t(I18nKey.BUTTON$SEND)}
- disabled={isDisabled}
- onClick={onClick}
- type="submit"
- className="border border-white rounded-lg w-6 h-6 hover:bg-neutral-500 focus:bg-neutral-500 flex items-center justify-center cursor-pointer"
- >
- <ArrowSendIcon />
- </button>
- );
-}
diff --git a/frontend/src/components/shared/custom-input.tsx b/frontend/src/components/shared/custom-input.tsx
deleted file mode 100644
index 15e6fb8a74..0000000000
--- a/frontend/src/components/shared/custom-input.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-
-interface CustomInputProps {
- name: string;
- label: string;
- required?: boolean;
- defaultValue?: string;
- type?: "text" | "password";
-}
-
-export function CustomInput({
- name,
- label,
- required,
- defaultValue,
- type = "text",
-}: CustomInputProps) {
- const { t } = useTranslation();
-
- return (
- <label htmlFor={name} className="flex flex-col gap-2">
- <span className="text-[11px] leading-4 tracking-[0.5px] font-[500] text-[#A3A3A3]">
- {label}
- {required && <span className="text-[#FF4D4F]">*</span>}
- {!required && (
- <span className="text-[#A3A3A3]">
- {" "}
- {t(I18nKey.CUSTOM_INPUT$OPTIONAL_LABEL)}
- </span>
- )}
- </span>
- <input
- id={name}
- name={name}
- required={required}
- defaultValue={defaultValue}
- type={type}
- className="bg-[#27272A] text-xs py-[10px] px-3 rounded-sm"
- />
- </label>
- );
-}
diff --git a/frontend/src/components/shared/hero-heading.tsx b/frontend/src/components/shared/hero-heading.tsx
deleted file mode 100644
index ea8a15aa09..0000000000
--- a/frontend/src/components/shared/hero-heading.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { useTranslation } from "react-i18next";
-import BuildIt from "#/icons/build-it.svg?react";
-import { I18nKey } from "#/i18n/declaration";
-
-export function HeroHeading() {
- const { t } = useTranslation();
- return (
- <div className="w-[304px] text-center flex flex-col gap-4 items-center py-4">
- <BuildIt width={88} height={104} />
- <h1 className="text-[38px] leading-[32px] -tracking-[0.02em]">
- {t(I18nKey.LANDING$TITLE)}
- </h1>
- <p className="mx-4 text-sm flex flex-col gap-2">
- {t(I18nKey.LANDING$SUBTITLE)}{" "}
- <span className="">
- {t(I18nKey.LANDING$START_HELP)}{" "}
- <a
- rel="noopener noreferrer"
- target="_blank"
- href="https://docs.all-hands.dev/usage/getting-started"
- className="text-white underline underline-offset-[3px]"
- >
- {t(I18nKey.LANDING$START_HELP_LINK)}
- </a>
- </span>
- </p>
- </div>
- );
-}
diff --git a/frontend/src/components/shared/inputs/advanced-option-switch.tsx b/frontend/src/components/shared/inputs/advanced-option-switch.tsx
deleted file mode 100644
index c0425d1ef6..0000000000
--- a/frontend/src/components/shared/inputs/advanced-option-switch.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import { Switch } from "@heroui/react";
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-import { cn } from "#/utils/utils";
-
-interface AdvancedOptionSwitchProps {
- isDisabled: boolean;
- showAdvancedOptions: boolean;
- setShowAdvancedOptions: (value: boolean) => void;
-}
-
-export function AdvancedOptionSwitch({
- isDisabled,
- showAdvancedOptions,
- setShowAdvancedOptions,
-}: AdvancedOptionSwitchProps) {
- const { t } = useTranslation();
-
- return (
- <Switch
- data-testid="advanced-option-switch"
- isDisabled={isDisabled}
- name="use-advanced-options"
- defaultSelected={showAdvancedOptions}
- onValueChange={setShowAdvancedOptions}
- classNames={{
- thumb: cn(
- "bg-[#5D5D5D] w-3 h-3 z-0",
- "group-data-[selected=true]:bg-white",
- ),
- wrapper: cn(
- "border border-[#D4D4D4] bg-white px-[6px] w-12 h-6",
- "group-data-[selected=true]:border-transparent group-data-[selected=true]:bg-[#4465DB]",
- ),
- label: "text-[#A3A3A3] text-xs",
- }}
- >
- {t(I18nKey.SETTINGS_FORM$ADVANCED_OPTIONS_LABEL)}
- </Switch>
- );
-}
diff --git a/frontend/src/components/shared/inputs/api-key-input.tsx b/frontend/src/components/shared/inputs/api-key-input.tsx
deleted file mode 100644
index 7287bb0d62..0000000000
--- a/frontend/src/components/shared/inputs/api-key-input.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import { Input, Tooltip } from "@heroui/react";
-import { useTranslation } from "react-i18next";
-import { FaCheckCircle, FaExclamationCircle } from "react-icons/fa";
-import { I18nKey } from "#/i18n/declaration";
-
-interface APIKeyInputProps {
- isDisabled: boolean;
- isSet: boolean;
-}
-
-export function APIKeyInput({ isDisabled, isSet }: APIKeyInputProps) {
- const { t } = useTranslation();
-
- return (
- <fieldset data-testid="api-key-input" className="flex flex-col gap-2">
- <Tooltip content={isSet ? "API Key is set" : "API Key is not set"}>
- <label
- htmlFor="api-key"
- className="font-[500] text-[#A3A3A3] text-xs flex items-center gap-1 self-start"
- >
- {isSet && <FaCheckCircle className="text-[#00D1B2] inline-block" />}
- {!isSet && (
- <FaExclamationCircle className="text-[#FF3860] inline-block" />
- )}
- {t(I18nKey.API$KEY)}
- </label>
- </Tooltip>
- <Input
- isDisabled={isDisabled}
- id="api-key"
- name="api-key"
- aria-label={t(I18nKey.API$KEY)}
- type="password"
- defaultValue=""
- classNames={{
- inputWrapper: "bg-[#27272A] rounded-md text-sm px-3 py-[10px]",
- }}
- />
- <p className="text-sm text-[#A3A3A3]">
- {t(I18nKey.API$DONT_KNOW_KEY)}{" "}
- <a
- href="https://docs.all-hands.dev/usage/llms"
- rel="noreferrer noopener"
- target="_blank"
- className="underline underline-offset-2"
- >
- {t(I18nKey.COMMON$CLICK_FOR_INSTRUCTIONS)}
- </a>
- </p>
- </fieldset>
- );
-}
diff --git a/frontend/src/components/shared/inputs/base-url-input.tsx b/frontend/src/components/shared/inputs/base-url-input.tsx
deleted file mode 100644
index 8868f5be17..0000000000
--- a/frontend/src/components/shared/inputs/base-url-input.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import { Input } from "@heroui/react";
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-
-interface BaseUrlInputProps {
- isDisabled: boolean;
- defaultValue: string;
-}
-
-export function BaseUrlInput({ isDisabled, defaultValue }: BaseUrlInputProps) {
- const { t } = useTranslation();
-
- return (
- <fieldset className="flex flex-col gap-2">
- <label htmlFor="base-url" className="font-[500] text-[#A3A3A3] text-xs">
- {t(I18nKey.SETTINGS_FORM$BASE_URL_LABEL)}
- </label>
- <Input
- isDisabled={isDisabled}
- id="base-url"
- name="base-url"
- defaultValue={defaultValue}
- aria-label={t(I18nKey.SETTINGS_FORM$BASE_URL)}
- classNames={{
- inputWrapper: "bg-[#27272A] rounded-md text-sm px-3 py-[10px]",
- }}
- />
- </fieldset>
- );
-}
diff --git a/frontend/src/components/shared/inputs/confirmation-mode-switch.tsx b/frontend/src/components/shared/inputs/confirmation-mode-switch.tsx
deleted file mode 100644
index 55f71e00be..0000000000
--- a/frontend/src/components/shared/inputs/confirmation-mode-switch.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import { Switch } from "@heroui/react";
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-import { cn } from "#/utils/utils";
-
-interface ConfirmationModeSwitchProps {
- isDisabled: boolean;
- defaultSelected: boolean;
-}
-
-export function ConfirmationModeSwitch({
- isDisabled,
- defaultSelected,
-}: ConfirmationModeSwitchProps) {
- const { t } = useTranslation();
-
- return (
- <Switch
- isDisabled={isDisabled}
- name="confirmation-mode"
- defaultSelected={defaultSelected}
- classNames={{
- thumb: cn(
- "bg-[#5D5D5D] w-3 h-3",
- "group-data-[selected=true]:bg-white",
- ),
- wrapper: cn(
- "border border-[#D4D4D4] bg-white px-[6px] w-12 h-6",
- "group-data-[selected=true]:border-transparent group-data-[selected=true]:bg-[#4465DB]",
- ),
- label: "text-[#A3A3A3] text-xs",
- }}
- >
- {t(I18nKey.SETTINGS_FORM$ENABLE_CONFIRMATION_MODE_LABEL)}
- </Switch>
- );
-}
diff --git a/frontend/src/components/shared/inputs/custom-model-input.tsx b/frontend/src/components/shared/inputs/custom-model-input.tsx
deleted file mode 100644
index e727bfea71..0000000000
--- a/frontend/src/components/shared/inputs/custom-model-input.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-import { Input } from "@heroui/react";
-import { useTranslation } from "react-i18next";
-import { I18nKey } from "#/i18n/declaration";
-
-interface CustomModelInputProps {
- isDisabled: boolean;
- defaultValue: string;
-}
-
-export function CustomModelInput({
- isDisabled,
- defaultValue,
-}: CustomModelInputProps) {
- const { t } = useTranslation();
-
- return (
- <fieldset className="flex flex-col gap-2">
- <label
- htmlFor="custom-model"
- className="font-[500] text-[#A3A3A3] text-xs"
- >
- {t(I18nKey.SETTINGS_FORM$CUSTOM_MODEL_LABEL)}
- </label>
- <Input
- data-testid="custom-model-input"
- isDisabled={isDisabled}
- isRequired
- id="custom-model"
- name="custom-model"
- defaultValue={defaultValue}
- aria-label={t(I18nKey.MODEL$CUSTOM_MODEL)}
- classNames={{
- inputWrapper: "bg-[#27272A] rounded-md text-sm px-3 py-[10px]",
- }}
- />
- </fieldset>
- );
-}
diff --git a/frontend/src/components/shared/modals/security/invariant/assets/logo.tsx b/frontend/src/components/shared/modals/security/invariant/assets/logo.tsx
deleted file mode 100644
index 39b1230aa2..0000000000
--- a/frontend/src/components/shared/modals/security/invariant/assets/logo.tsx
+++ /dev/null
@@ -1,80 +0,0 @@
-import React from "react";
-
-interface InvariantLogoIconProps {
- className?: string;
-}
-
-function InvariantLogoIcon({ className }: InvariantLogoIconProps) {
- return (
- <svg
- width="39"
- height="39"
- viewBox="0 0 39 39"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- className={className}
- >
- <mask
- id="mask0_6001_732"
- style={{ maskType: "alpha" }}
- maskUnits="userSpaceOnUse"
- x="0"
- y="0"
- width="39"
- height="39"
- >
- <rect width="38.9711" height="39" rx="1.90143" fill="black" />
- </mask>
- <g mask="url(#mask0_6001_732)">
- <rect
- width="38.9711"
- height="39"
- rx="4.96091"
- fill="url(#paint0_linear_6001_732)"
- />
- </g>
- <g clipPath="url(#clip0_6001_732)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M30.6946 22.9468L24.6617 19.3906C23.0017 18.412 21.9826 16.6281 21.9826 14.7005V7.64124C21.9826 6.24917 20.8546 5.12061 19.4631 5.12061H19.2448C17.8533 5.12061 16.7253 6.24917 16.7253 7.64124V14.6683C16.7253 16.5959 15.7062 18.3799 14.0461 19.3584L7.95872 22.9468C6.70795 23.6841 6.29135 25.2963 7.02841 26.5476C7.76534 27.7989 9.37687 28.2157 10.6276 27.4783L16.5643 23.9788C18.269 22.9739 20.3843 22.9739 22.089 23.9788L28.0256 27.4783C29.2764 28.2155 30.8878 27.7989 31.6249 26.5476C32.3618 25.2963 31.9453 23.6842 30.6946 22.9468ZM10.6709 11.2274L13.5534 12.9268C14.8042 13.6641 15.2206 15.2762 14.4836 16.5275L14.4835 16.5276C13.7464 17.7789 12.135 18.1955 10.8843 17.4581L8.0018 15.7588C6.75106 15.0215 6.33462 13.4094 7.07166 12.1581L7.07173 12.158C7.80876 10.9067 9.42018 10.4901 10.6709 11.2274ZM30.6885 15.7597L27.806 17.459C26.5552 18.1963 24.9438 17.7797 24.2068 16.5284L24.2067 16.5283C23.4697 15.277 23.8861 13.6649 25.1368 12.9276L28.0193 11.2283C29.2701 10.4909 30.8815 10.9075 31.6185 12.1588L31.6186 12.1589C32.3556 13.4102 31.9392 15.0223 30.6885 15.7597ZM21.9766 27.6046V30.9518C21.9766 32.4042 20.7997 33.5815 19.3479 33.5815H19.3478C17.8961 33.5815 16.7192 32.4042 16.7192 30.9518V27.6046C16.7192 26.1522 17.8961 24.9749 19.3478 24.9749H19.3479C20.7997 24.9749 21.9766 26.1522 21.9766 27.6046Z"
- fill="url(#paint1_linear_6001_732)"
- />
- </g>
- <defs>
- <linearGradient
- id="paint0_linear_6001_732"
- x1="0"
- y1="0"
- x2="39.1786"
- y2="39.1496"
- gradientUnits="userSpaceOnUse"
- >
- <stop stopColor="#6360FD" />
- <stop offset="1" stopColor="#4541EC" />
- </linearGradient>
- <linearGradient
- id="paint1_linear_6001_732"
- x1="32.1372"
- y1="33.5815"
- x2="7.91553"
- y2="6.29303"
- gradientUnits="userSpaceOnUse"
- >
- <stop stopColor="#DDDDDD" />
- <stop offset="1" stopColor="white" />
- </linearGradient>
- <clipPath id="clip0_6001_732">
- <rect
- width="28.4724"
- height="28.4936"
- fill="white"
- transform="translate(5.08594 5.08813)"
- />
- </clipPath>
- </defs>
- </svg>
- );
-}
-
-export default InvariantLogoIcon;
diff --git a/frontend/src/components/shared/modals/security/invariant/invariant.tsx b/frontend/src/components/shared/modals/security/invariant/invariant.tsx
deleted file mode 100644
index 6cb92fab6c..0000000000
--- a/frontend/src/components/shared/modals/security/invariant/invariant.tsx
+++ /dev/null
@@ -1,298 +0,0 @@
-import React from "react";
-import { useSelector } from "react-redux";
-import { IoAlertCircle } from "react-icons/io5";
-import { useTranslation } from "react-i18next";
-import { Editor, Monaco } from "@monaco-editor/react";
-import { editor } from "monaco-editor";
-import { Button, Select, SelectItem } from "@heroui/react";
-import { useMutation } from "@tanstack/react-query";
-import { RootState } from "#/store";
-import {
- ActionSecurityRisk,
- SecurityAnalyzerLog,
-} from "#/state/security-analyzer-slice";
-import { useScrollToBottom } from "#/hooks/use-scroll-to-bottom";
-import { I18nKey } from "#/i18n/declaration";
-import toast from "#/utils/toast";
-import InvariantLogoIcon from "./assets/logo";
-import { getFormattedDateTime } from "#/utils/gget-formatted-datetime";
-import { downloadJSON } from "#/utils/download-json";
-import InvariantService from "#/api/invariant-service";
-import { useGetPolicy } from "#/hooks/query/use-get-policy";
-import { useGetRiskSeverity } from "#/hooks/query/use-get-risk-severity";
-import { useGetTraces } from "#/hooks/query/use-get-traces";
-
-type SectionType = "logs" | "policy" | "settings";
-
-function SecurityInvariant() {
- const { t } = useTranslation();
- const { logs } = useSelector((state: RootState) => state.securityAnalyzer);
-
- const [activeSection, setActiveSection] = React.useState("logs");
- const [policy, setPolicy] = React.useState("");
- const [selectedRisk, setSelectedRisk] = React.useState(
- ActionSecurityRisk.MEDIUM,
- );
-
- const logsRef = React.useRef<HTMLDivElement>(null);
-
- useGetPolicy({ onSuccess: setPolicy });
-
- useGetRiskSeverity({
- onSuccess: (riskSeverity) => {
- setSelectedRisk(
- riskSeverity === 0
- ? ActionSecurityRisk.LOW
- : riskSeverity || ActionSecurityRisk.MEDIUM,
- );
- },
- });
-
- const { refetch: exportTraces } = useGetTraces({
- onSuccess: (traces) => {
- toast.info(t(I18nKey.INVARIANT$TRACE_EXPORTED_MESSAGE));
-
- const filename = `openhands-trace-${getFormattedDateTime()}.json`;
- downloadJSON(traces, filename);
- },
- });
-
- const { mutate: updatePolicy } = useMutation({
- mutationFn: (variables: { policy: string }) =>
- InvariantService.updatePolicy(variables.policy),
- onSuccess: () => {
- toast.info(t(I18nKey.INVARIANT$POLICY_UPDATED_MESSAGE));
- },
- });
-
- const { mutate: updateRiskSeverity } = useMutation({
- mutationFn: (variables: { riskSeverity: number }) =>
- InvariantService.updateRiskSeverity(variables.riskSeverity),
- onSuccess: () => {
- toast.info(t(I18nKey.INVARIANT$SETTINGS_UPDATED_MESSAGE));
- },
- });
-
- useScrollToBottom(logsRef);
-
- const getRiskColor = React.useCallback((risk: ActionSecurityRisk) => {
- switch (risk) {
- case ActionSecurityRisk.LOW:
- return "text-green-500";
- case ActionSecurityRisk.MEDIUM:
- return "text-yellow-500";
- case ActionSecurityRisk.HIGH:
- return "text-red-500";
- case ActionSecurityRisk.UNKNOWN:
- default:
- return "text-gray-500";
- }
- }, []);
-
- const getRiskText = React.useCallback(
- (risk: ActionSecurityRisk) => {
- switch (risk) {
- case ActionSecurityRisk.LOW:
- return t(I18nKey.SECURITY$LOW_RISK);
- case ActionSecurityRisk.MEDIUM:
- return t(I18nKey.SECURITY$MEDIUM_RISK);
- case ActionSecurityRisk.HIGH:
- return t(I18nKey.SECURITY$HIGH_RISK);
- case ActionSecurityRisk.UNKNOWN:
- default:
- return t(I18nKey.SECURITY$UNKNOWN_RISK);
- }
- },
- [t],
- );
-
- const handleEditorDidMount = React.useCallback(
- (_: editor.IStandaloneCodeEditor, monaco: Monaco): void => {
- monaco.editor.defineTheme("my-theme", {
- base: "vs-dark",
- inherit: true,
- rules: [],
- colors: {
- "editor.background": "#171717",
- },
- });
-
- monaco.editor.setTheme("my-theme");
- },
- [],
- );
-
- const sections: Record<SectionType, React.ReactNode> = {
- logs: (
- <>
- <div className="flex justify-between items-center border-b border-neutral-600 mb-4 p-4">
- <h2 className="text-2xl">{t(I18nKey.INVARIANT$LOG_LABEL)}</h2>
- <Button onPress={() => exportTraces()} className="bg-tertiary">
- {t(I18nKey.INVARIANT$EXPORT_TRACE_LABEL)}
- </Button>
- </div>
- <div
- className="flex-1 p-4 max-h-screen overflow-y-auto fast-smooth-scroll"
- ref={logsRef}
- >
- {logs.map((log: SecurityAnalyzerLog, index: number) => (
- <div
- key={index}
- className={`mb-2 p-2 rounded-lg ${log.confirmed_changed && log.confirmation_state === "confirmed" ? "border-green-800" : "border-red-800"}`}
- style={{
- backgroundColor: "rgba(128, 128, 128, 0.2)",
- borderWidth: log.confirmed_changed ? "2px" : "0",
- }}
- >
- <p className="text-sm relative break-words">
- {log.content}
- {(log.confirmation_state === "awaiting_confirmation" ||
- log.confirmed_changed) && (
- <IoAlertCircle className="absolute top-0 right-0" />
- )}
- </p>
- <p className={`text-xs ${getRiskColor(log.security_risk)}`}>
- {getRiskText(log.security_risk)}
- </p>
- </div>
- ))}
- </div>
- </>
- ),
- policy: (
- <>
- <div className="flex justify-between items-center border-b border-neutral-600 mb-4 p-4">
- <h2 className="text-2xl">{t(I18nKey.INVARIANT$POLICY_LABEL)}</h2>
- <Button
- className="bg-tertiary"
- onPress={() => updatePolicy({ policy })}
- >
- {t(I18nKey.INVARIANT$UPDATE_POLICY_LABEL)}
- </Button>
- </div>
- <div className="flex grow items-center justify-center">
- <Editor
- path="policy.py"
- height="100%"
- onMount={handleEditorDidMount}
- value={policy}
- onChange={(value) => setPolicy(value || "")}
- />
- </div>
- </>
- ),
- settings: (
- <>
- <div className="flex justify-between items-center border-b border-neutral-600 mb-4 p-4">
- <h2 className="text-2xl">{t(I18nKey.INVARIANT$SETTINGS_LABEL)}</h2>
- <Button
- className="bg-tertiary"
- onPress={() => updateRiskSeverity({ riskSeverity: selectedRisk })}
- >
- {t(I18nKey.INVARIANT$UPDATE_SETTINGS_LABEL)}
- </Button>
- </div>
- <div className="flex grow p-4">
- <div className="flex flex-col w-full">
- <p className="mb-2">
- {t(I18nKey.INVARIANT$ASK_CONFIRMATION_RISK_SEVERITY_LABEL)}
- </p>
- <Select
- placeholder={t(I18nKey.SECURITY$SELECT_RISK_SEVERITY)}
- value={selectedRisk}
- onChange={(e) =>
- setSelectedRisk(Number(e.target.value) as ActionSecurityRisk)
- }
- className={getRiskColor(selectedRisk)}
- selectedKeys={new Set([selectedRisk.toString()])}
- aria-label={t(I18nKey.SECURITY$SELECT_RISK_SEVERITY)}
- >
- <SelectItem
- key={ActionSecurityRisk.UNKNOWN}
- aria-label={t(I18nKey.SECURITY$UNKNOWN_RISK)}
- className={getRiskColor(ActionSecurityRisk.UNKNOWN)}
- >
- {getRiskText(ActionSecurityRisk.UNKNOWN)}
- </SelectItem>
- <SelectItem
- key={ActionSecurityRisk.LOW}
- aria-label={t(I18nKey.SECURITY$LOW_RISK)}
- className={getRiskColor(ActionSecurityRisk.LOW)}
- >
- {getRiskText(ActionSecurityRisk.LOW)}
- </SelectItem>
- <SelectItem
- key={ActionSecurityRisk.MEDIUM}
- aria-label={t(I18nKey.SECURITY$MEDIUM_RISK)}
- className={getRiskColor(ActionSecurityRisk.MEDIUM)}
- >
- {getRiskText(ActionSecurityRisk.MEDIUM)}
- </SelectItem>
- <SelectItem
- key={ActionSecurityRisk.HIGH}
- aria-label={t(I18nKey.SECURITY$HIGH_RISK)}
- className={getRiskColor(ActionSecurityRisk.HIGH)}
- >
- {getRiskText(ActionSecurityRisk.HIGH)}
- </SelectItem>
- <SelectItem
- key={ActionSecurityRisk.HIGH + 1}
- aria-label={t(I18nKey.SECURITY$DONT_ASK_CONFIRMATION)}
- >
- {t(I18nKey.INVARIANT$DONT_ASK_FOR_CONFIRMATION_LABEL)}
- </SelectItem>
- </Select>
- </div>
- </div>
- </>
- ),
- };
-
- return (
- <div className="flex flex-1 w-full h-full">
- <div className="w-60 bg-base-secondary border-r border-r-neutral-600 p-4 flex-shrink-0">
- <div className="text-center mb-2">
- <InvariantLogoIcon className="mx-auto mb-1" />
- <b>{t(I18nKey.INVARIANT$INVARIANT_ANALYZER_LABEL)}</b>
- </div>
- <p className="text-[0.6rem]">
- {t(I18nKey.INVARIANT$INVARIANT_ANALYZER_MESSAGE)}{" "}
- <a
- className="underline"
- href="https://github.com/invariantlabs-ai/invariant"
- target="_blank"
- rel="noreferrer"
- >
- {t(I18nKey.INVARIANT$CLICK_TO_LEARN_MORE_LABEL)}
- </a>
- </p>
- <hr className="border-t border-neutral-600 my-2" />
- <ul className="space-y-2">
- <div
- className={`cursor-pointer p-2 rounded-sm ${activeSection === "logs" && "bg-neutral-600"}`}
- onClick={() => setActiveSection("logs")}
- >
- {t(I18nKey.INVARIANT$LOG_LABEL)}
- </div>
- <div
- className={`cursor-pointer p-2 rounded-sm ${activeSection === "policy" && "bg-neutral-600"}`}
- onClick={() => setActiveSection("policy")}
- >
- {t(I18nKey.INVARIANT$POLICY_LABEL)}
- </div>
- <div
- className={`cursor-pointer p-2 rounded-sm ${activeSection === "settings" && "bg-neutral-600"}`}
- onClick={() => setActiveSection("settings")}
- >
- {t(I18nKey.INVARIANT$SETTINGS_LABEL)}
- </div>
- </ul>
- </div>
- <div className="flex flex-col min-h-0 w-full overflow-y-auto bg-base">
- {sections[activeSection as SectionType]}
- </div>
- </div>
- );
-}
-
-export default SecurityInvariant;
diff --git a/frontend/src/components/shared/modals/security/security.tsx b/frontend/src/components/shared/modals/security/security.tsx
deleted file mode 100644
index ba30bc08c8..0000000000
--- a/frontend/src/components/shared/modals/security/security.tsx
+++ /dev/null
@@ -1,43 +0,0 @@
-import React from "react";
-import { useTranslation } from "react-i18next";
-import SecurityInvariant from "./invariant/invariant";
-import { I18nKey } from "#/i18n/declaration";
-import { BaseModal } from "../base-modal/base-modal";
-
-interface SecurityProps {
- isOpen: boolean;
- onOpenChange: (isOpen: boolean) => void;
- securityAnalyzer: string;
-}
-
-enum SecurityAnalyzerOption {
- INVARIANT = "invariant",
-}
-
-const SecurityAnalyzers: Record<SecurityAnalyzerOption, React.ElementType> = {
- [SecurityAnalyzerOption.INVARIANT]: SecurityInvariant,
-};
-
-function Security({ isOpen, onOpenChange, securityAnalyzer }: SecurityProps) {
- const { t } = useTranslation();
-
- const AnalyzerComponent =
- securityAnalyzer &&
- SecurityAnalyzers[securityAnalyzer as SecurityAnalyzerOption]
- ? SecurityAnalyzers[securityAnalyzer as SecurityAnalyzerOption]
- : () => <div>{t(I18nKey.SECURITY$UNKNOWN_ANALYZER_LABEL)}</div>;
-
- return (
- <BaseModal
- isOpen={isOpen && !!securityAnalyzer}
- contentClassName="max-w-[80%] h-[80%]"
- bodyClassName="px-0 py-0 max-h-[100%]"
- onOpenChange={onOpenChange}
- title=""
- >
- <AnalyzerComponent />
- </BaseModal>
- );
-}
-
-export default Security;
diff --git a/frontend/src/hooks/use-horizontal-scroll.ts b/frontend/src/hooks/use-horizontal-scroll.ts
deleted file mode 100644
index 36810246f7..0000000000
--- a/frontend/src/hooks/use-horizontal-scroll.ts
+++ /dev/null
@@ -1,174 +0,0 @@
-import { useRef, useState, useEffect } from "react";
-
-interface UseHorizontalScrollOptions {
- scrollAmount?: number;
- scrollBehavior?: ScrollBehavior;
-}
-
-interface UseHorizontalScrollReturn {
- scrollContainerRef: React.RefObject<HTMLDivElement | null>;
- canScrollLeft: boolean;
- canScrollRight: boolean;
- scroll: (direction: "left" | "right") => void;
- updateScrollArrows: () => void;
-}
-
-export function useHorizontalScroll({
- scrollAmount = 200,
- scrollBehavior = "smooth",
-}: UseHorizontalScrollOptions = {}): UseHorizontalScrollReturn {
- const scrollContainerRef = useRef<HTMLDivElement | null>(null);
- const [canScrollLeft, setCanScrollLeft] = useState(false);
- const [canScrollRight, setCanScrollRight] = useState(false);
-
- // Check scroll position and update arrow states
- const updateScrollArrows = () => {
- const container = scrollContainerRef.current;
- if (!container) {
- return;
- }
-
- // Check if content overflows the container
- const hasOverflow = container.scrollWidth > container.clientWidth;
-
- if (hasOverflow) {
- // Has overflow - show arrows based on scroll position
- const isAtStart = container.scrollLeft <= 0;
- const isAtEnd =
- container.scrollLeft >=
- container.scrollWidth - container.clientWidth - 1; // -1 for floating point precision
-
- setCanScrollLeft(!isAtStart);
- setCanScrollRight(!isAtEnd);
- return;
- }
-
- // No overflow - hide both arrows
- setCanScrollLeft(false);
- setCanScrollRight(false);
- };
-
- // Get the new scroll left position
- const getNewScrollLeft = (
- container: HTMLDivElement,
- direction: "left" | "right",
- ) => {
- // Incremental scrolling behavior for left direction
- if (direction === "left") {
- return Math.max(0, container.scrollLeft - scrollAmount);
- }
-
- // For right direction, scroll to the very end of the container
- // Add a small buffer to ensure we reach the true end position
- const maxScrollLeft = container.scrollWidth - container.clientWidth;
- return Math.min(maxScrollLeft, container.scrollLeft + scrollAmount);
- };
-
- // Calculate scroll amount based on wheel delta
- const calculateWheelScrollAmount = (deltaY: number): number =>
- // Use a smaller multiplier for more controlled scrolling
- Math.min(Math.abs(deltaY) * 0.5, scrollAmount);
-
- // Determine scroll direction from wheel delta
- const getWheelScrollDirection = (deltaY: number): "left" | "right" =>
- // Map wheel movement to horizontal scrolling:
- // - Scroll down (positive deltaY) → move container right
- // - Scroll up (negative deltaY) → move container left
- deltaY > 0 ? "right" : "left";
-
- // Calculate new scroll position for wheel scrolling
- const getWheelScrollPosition = (
- container: HTMLDivElement,
- direction: "left" | "right",
- wheelScrollAmount: number,
- ): number => {
- const currentScrollLeft = container.scrollLeft;
-
- if (direction === "left") {
- return Math.max(0, currentScrollLeft - wheelScrollAmount);
- }
-
- const maxScrollLeft = container.scrollWidth - container.clientWidth;
- return Math.min(maxScrollLeft, currentScrollLeft + wheelScrollAmount);
- };
-
- // Scroll left or right
- const scroll = (direction: "left" | "right") => {
- const container = scrollContainerRef.current;
- if (!container) {
- return;
- }
-
- const newScrollLeft = getNewScrollLeft(container, direction);
-
- container.scrollTo({
- left: newScrollLeft,
- behavior: scrollBehavior,
- });
-
- // Update arrow states after scrolling completes
- updateScrollArrows();
- };
-
- // Handle mouse wheel scrolling
- const handleWheel = (event: WheelEvent) => {
- event.preventDefault(); // Prevent default vertical scrolling
-
- const container = scrollContainerRef.current;
- if (!container) {
- return;
- }
-
- const { deltaY } = event;
- const direction = getWheelScrollDirection(deltaY);
- const wheelScrollAmount = calculateWheelScrollAmount(deltaY);
- const newScrollLeft = getWheelScrollPosition(
- container,
- direction,
- wheelScrollAmount,
- );
-
- container.scrollTo({
- left: newScrollLeft,
- behavior: scrollBehavior,
- });
-
- // Update arrow states after scrolling
- updateScrollArrows();
- };
-
- // Update scroll arrows on mount and when content changes
- useEffect(() => {
- updateScrollArrows();
-
- const container = scrollContainerRef.current;
- if (!container) {
- return undefined;
- }
-
- container.addEventListener("scroll", updateScrollArrows);
- container.addEventListener("wheel", handleWheel, { passive: false });
- window.addEventListener("resize", updateScrollArrows);
-
- // Use ResizeObserver to detect container size changes
- const resizeObserver = new ResizeObserver(() => {
- updateScrollArrows();
- });
- resizeObserver.observe(container);
-
- return () => {
- container.removeEventListener("scroll", updateScrollArrows);
- container.removeEventListener("wheel", handleWheel);
- window.removeEventListener("resize", updateScrollArrows);
- resizeObserver.disconnect();
- };
- }, []);
-
- return {
- scrollContainerRef,
- canScrollLeft,
- canScrollRight,
- scroll,
- updateScrollArrows,
- };
-}
diff --git a/frontend/src/hooks/use-track-element-width.ts b/frontend/src/hooks/use-track-element-width.ts
deleted file mode 100644
index 1a8b51030c..0000000000
--- a/frontend/src/hooks/use-track-element-width.ts
+++ /dev/null
@@ -1,51 +0,0 @@
-import { useEffect, useCallback, useRef } from "react";
-
-interface UseTrackElementWidthProps {
- elementRef: React.RefObject<HTMLElement | null>;
- callback: (width: number) => void;
- delay?: number; // Optional delay parameter with default
-}
-
-export const useTrackElementWidth = ({
- elementRef,
- callback,
- delay = 100, // Default 100ms delay
-}: UseTrackElementWidthProps) => {
- const timeoutRef = useRef<NodeJS.Timeout | null>(null);
-
- // Create debounced callback that only fires after delay
- const debouncedCallback = useCallback(
- (width: number) => {
- // Clear existing timeout
- if (timeoutRef.current) {
- clearTimeout(timeoutRef.current);
- }
-
- // Set new timeout
- timeoutRef.current = setTimeout(() => {
- callback(width);
- }, delay);
- },
- [callback, delay],
- );
-
- useEffect(() => {
- const resizeObserver = new ResizeObserver((entries) => {
- for (const entry of entries) {
- debouncedCallback(entry.contentRect.width);
- }
- });
-
- if (elementRef.current) {
- resizeObserver.observe(elementRef.current);
- }
-
- return () => {
- // Clean up timeout and observer
- if (timeoutRef.current) {
- clearTimeout(timeoutRef.current);
- }
- resizeObserver.disconnect();
- };
- }, [debouncedCallback]);
-};
diff --git a/frontend/src/hooks/useNotification.ts b/frontend/src/hooks/useNotification.ts
deleted file mode 100644
index cacf2dcbf1..0000000000
--- a/frontend/src/hooks/useNotification.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import { useCallback, useRef } from "react";
-import notificationSound from "../assets/notification.mp3";
-import { useSettings } from "./query/use-settings";
-
-export const useNotification = () => {
- const { data: settings } = useSettings();
- const audioRef = useRef<HTMLAudioElement | undefined>(undefined);
-
- // Initialize audio only in browser environment
- if (typeof window !== "undefined" && !audioRef.current) {
- audioRef.current = new Audio(notificationSound);
- audioRef.current.volume = 0.5;
- }
-
- const notify = useCallback(
- async (
- title: string,
- options?: NotificationOptions & { playSound?: boolean },
- ): Promise<Notification | undefined> => {
- if (typeof window === "undefined") return undefined;
-
- // Only play sound if:
- // 1. Explicitly requested via playSound option
- // 2. Sound notifications are enabled in settings
- // 3. Audio is available
- // 4. Not a settings-related notification
- if (
- options?.playSound === true && // Must be explicitly true
- settings?.ENABLE_SOUND_NOTIFICATIONS &&
- audioRef.current &&
- !title.includes("BUTTON$") // Don't play for button/settings actions
- ) {
- // Reset and play sound
- audioRef.current.currentTime = 0;
- audioRef.current.play().catch(() => {
- // Ignore autoplay errors
- });
- }
-
- if (Notification.permission === "default") {
- await Notification.requestPermission();
- }
-
- if (Notification.permission === "granted") {
- // Remove playSound from options before passing to Notification
- const { playSound, ...notificationOptions } = options || {};
- return new Notification(title, notificationOptions);
- }
-
- return undefined;
- },
- [settings?.ENABLE_SOUND_NOTIFICATIONS],
- );
-
- return { notify };
-};
diff --git a/frontend/src/icons/academy.svg b/frontend/src/icons/academy.svg
deleted file mode 100644
index 86320b3c6d..0000000000
--- a/frontend/src/icons/academy.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M24.5719 9.17199V14.8456M15.7404 3.4984C14.9543 3.12524 14.095 2.93164 13.2248 2.93164C12.3546 2.93164 11.4952 3.12524 10.7091 3.4984L3.11671 7.05801C1.46456 7.83189 1.46456 10.5121 3.11671 11.286L10.708 14.8456C11.4943 15.2189 12.3538 15.4126 13.2242 15.4126C14.0946 15.4126 14.9541 15.2189 15.7404 14.8456L23.3328 11.286C24.985 10.5121 24.985 7.83189 23.3328 7.05801L15.7404 3.4984Z" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
-<path d="M5.28183 12.5762V18.3916C5.28183 21.7027 10.6082 23.356 13.2249 23.356C15.8415 23.356 21.1679 21.7027 21.1679 18.3916V12.5762" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
-</svg>
diff --git a/frontend/src/icons/cloud-connection.svg b/frontend/src/icons/cloud-connection.svg
deleted file mode 100644
index 9830791ab2..0000000000
--- a/frontend/src/icons/cloud-connection.svg
+++ /dev/null
@@ -1,12 +0,0 @@
-<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
- <g clip-path="url(#clip0_8491_870)">
- <path
- d="M10.5 9.16941H7.41C7.33534 8.9649 7.21495 8.77916 7.05755 8.62566C6.90015 8.47215 6.7097 8.35474 6.5 8.28193V6.73128H8.085C8.61443 6.74825 9.13186 6.57533 9.53936 6.24526C9.94685 5.91519 10.2161 5.45088 10.2962 4.94022C10.3763 4.42955 10.2616 3.90797 9.97392 3.47421C9.68621 3.04045 9.24543 2.72461 8.735 2.58647C8.46761 2.00867 8.01503 1.5312 7.44537 1.2259C6.87571 0.920612 6.21979 0.804017 5.57632 0.893667C4.93285 0.983316 4.33664 1.27436 3.87741 1.723C3.41819 2.17164 3.1208 2.7536 3.03 3.3813C2.6231 3.49258 2.27123 3.7437 2.03938 4.08828C1.80754 4.43286 1.71138 4.84762 1.76867 5.25596C1.82596 5.6643 2.03282 6.03862 2.35106 6.3098C2.66929 6.58098 3.0774 6.73069 3.5 6.73128H5.5V8.28193C5.2903 8.35474 5.09985 8.47215 4.94245 8.62566C4.78505 8.77916 4.66466 8.9649 4.59 9.16941H1.5C1.36739 9.16941 1.24021 9.22078 1.14645 9.31223C1.05268 9.40368 1 9.52771 1 9.65703C1 9.78636 1.05268 9.91039 1.14645 10.0018C1.24021 10.0933 1.36739 10.1447 1.5 10.1447H4.59C4.6951 10.4271 4.88681 10.6711 5.13908 10.8435C5.39135 11.0159 5.69194 11.1084 6 11.1084C6.30806 11.1084 6.60865 11.0159 6.86092 10.8435C7.11319 10.6711 7.3049 10.4271 7.41 10.1447H10.5C10.6326 10.1447 10.7598 10.0933 10.8536 10.0018C10.9473 9.91039 11 9.78636 11 9.65703C11 9.52771 10.9473 9.40368 10.8536 9.31223C10.7598 9.22078 10.6326 9.16941 10.5 9.16941ZM3.5 5.75603C3.30109 5.75603 3.11032 5.67897 2.96967 5.5418C2.82902 5.40463 2.75 5.21858 2.75 5.02459C2.75 4.83061 2.82902 4.64456 2.96967 4.50739C3.11032 4.37022 3.30109 4.29316 3.5 4.29316C3.63261 4.29316 3.75979 4.24178 3.85355 4.15033C3.94732 4.05889 4 3.93486 4 3.80553C3.99869 3.34255 4.1663 2.8942 4.47284 2.54068C4.77939 2.18715 5.20489 1.9515 5.67325 1.87586C6.14161 1.80022 6.62228 1.88953 7.02932 2.12781C7.43635 2.3661 7.74321 2.73781 7.895 3.1765C7.92358 3.26029 7.97496 3.33494 8.04364 3.39248C8.11233 3.45002 8.19575 3.48829 8.285 3.5032C8.55564 3.54722 8.80137 3.68376 8.97819 3.88836C9.15501 4.09297 9.25136 4.35229 9.25 4.61987C9.24868 4.9208 9.12552 5.20904 8.90733 5.42184C8.68913 5.63463 8.39357 5.75475 8.085 5.75603H3.5ZM6 10.1447C5.90111 10.1447 5.80444 10.1161 5.72221 10.0625C5.63999 10.0089 5.5759 9.93274 5.53806 9.84364C5.50022 9.75454 5.49031 9.65649 5.50961 9.5619C5.5289 9.46731 5.57652 9.38042 5.64645 9.31223C5.71637 9.24403 5.80546 9.19759 5.90245 9.17878C5.99945 9.15996 6.09998 9.16962 6.19134 9.20652C6.2827 9.24343 6.36079 9.30593 6.41573 9.38612C6.47068 9.46631 6.5 9.56059 6.5 9.65703C6.5 9.78636 6.44732 9.91039 6.35355 10.0018C6.25979 10.0933 6.13261 10.1447 6 10.1447Z"
- fill="white" />
- </g>
- <defs>
- <clipPath id="clip0_8491_870">
- <rect width="12" height="11.703" fill="white" transform="translate(0 0.148438)" />
- </clipPath>
- </defs>
-</svg>
diff --git a/frontend/src/icons/hands.svg b/frontend/src/icons/hands.svg
deleted file mode 100644
index 48d8255089..0000000000
--- a/frontend/src/icons/hands.svg
+++ /dev/null
@@ -1,18 +0,0 @@
-<svg width="102" height="69" viewBox="0 0 102 69" fill="none" xmlns="http://www.w3.org/2000/svg">
-<g clip-path="url(#clip0_40000615_2266)">
-<g clip-path="url(#clip1_40000615_2266)">
-<path d="M97.9659 20.9744C94.7109 18.9968 92.5363 22.0276 92.8031 26.1428L92.7759 26.1739C92.785 21.8765 92.1973 17.1303 90.2443 13.2906C89.5526 11.9307 88.1511 9.69537 85.3798 10.7486C84.1637 11.2108 83.0606 12.6018 83.6302 16.1926C83.6302 16.1926 84.2631 19.9611 84.1456 24.6985V24.7651C83.3544 11.6996 80.3707 7.71333 76.103 7.97108C74.7376 8.21106 72.8705 8.79323 73.4989 12.8107C73.4989 12.8107 74.1816 17.0014 74.4031 20.3389L74.4167 20.5077H74.4031C72.3958 13.3039 69.6924 13.2062 67.7348 13.4861C65.9581 13.7395 64.0187 15.5615 64.9997 19.1523C68.0784 30.418 67.4771 43.9857 67.2466 45.9277C66.6182 44.5989 66.4238 43.5457 65.5512 42.088C62.043 36.2352 60.3748 35.8042 58.3269 35.7153C56.2925 35.6264 54.0953 36.8663 54.24 39.2261C54.3892 41.5859 55.6053 41.9769 57.3323 45.2655C58.6795 47.8253 59.0638 51.1806 61.7763 57.2778C64.0232 62.3262 69.8958 67.8635 80.5922 67.2058C89.2587 66.9214 102.202 63.9261 99.9506 44.2567C99.39 40.8393 99.8104 37.9773 100.104 35.0442C100.561 30.4935 101.23 22.952 97.9704 20.9699L97.9659 20.9744Z" fill="#E3D495"/>
-<path d="M43.8511 35.8532C41.8032 35.9821 40.1485 36.4398 36.7488 42.3548C35.9034 43.8258 35.7316 44.8835 35.1258 46.2212C34.8591 44.2835 34.0046 30.7292 36.8709 19.4102C37.7841 15.8061 35.813 14.0196 34.0318 13.7974C32.0697 13.553 29.3617 13.6996 27.4901 20.9745H27.4675L27.4946 20.7656C27.6528 17.4237 28.2586 13.2241 28.2586 13.2241C28.8056 9.19334 26.934 8.64672 25.5642 8.42896C21.3055 8.2512 18.4031 12.2553 17.8425 25.2052H17.8335C17.6391 20.5168 18.1951 16.7838 18.1951 16.7838C18.697 13.1797 17.5667 11.8109 16.3416 11.3709C13.5522 10.3666 12.1914 12.6286 11.5268 14.0018C9.64616 17.877 9.14434 22.6321 9.23476 26.9295L9.20763 26.8984C9.39299 22.7788 7.1642 19.788 3.94533 21.8233C0.726467 23.8631 1.5357 31.3914 2.07821 35.9332C2.43084 38.8618 2.90101 41.7149 2.40371 45.1413C0.523028 64.8462 13.5205 67.6059 22.1916 67.7348C32.897 68.2014 38.6657 62.553 40.8176 57.4646C43.4126 51.3229 43.7381 47.9588 45.0356 45.3768C46.6993 42.0571 47.9109 41.6438 48.0148 39.284C48.1188 36.9242 45.8991 35.7243 43.8647 35.8487L43.8511 35.8532Z" fill="#E3D495"/>
-<path d="M48.1374 35.8835C47.0524 34.8392 45.4204 34.2837 43.7612 34.3815C41.1029 34.5459 39.2177 35.5014 36.3198 40.1676C36.243 34.8303 36.5459 26.8177 38.3271 19.7694C38.9962 17.1208 38.3226 15.392 37.6354 14.4099C36.8352 13.2633 35.592 12.5078 34.2176 12.339C32.9653 12.1834 31.3288 12.1745 29.7329 13.4633C29.7329 13.4455 29.7374 13.4233 29.7374 13.4233C30.2528 9.63699 28.9237 7.4683 25.7907 6.97945L25.6189 6.96167C23.6885 6.87724 22.0339 7.4994 20.7002 8.80595C19.9859 9.50367 19.3665 10.4058 18.8286 11.5213C18.2273 10.6547 17.4542 10.2147 16.8439 9.99251C13.1142 8.64597 11.0527 11.5302 10.1575 13.37C9.11772 15.512 8.47123 17.9118 8.10956 20.3605C8.03271 20.3116 7.96037 20.2627 7.88352 20.2183C7.06072 19.7516 5.34731 19.1828 3.12304 20.5916C-0.647376 22.9825 -0.168163 29.853 0.582303 36.1102C0.622991 36.4435 0.663679 36.7724 0.704367 37.1057C1.02535 39.6699 1.32825 42.0919 0.912327 44.9405L0.903285 45.0116C0.148299 52.9176 1.66279 59.0015 5.40608 63.1033C9.0047 67.0497 14.6422 69.1028 22.1152 69.2139C22.6623 69.2361 23.1957 69.245 23.7156 69.2406C36.4826 69.125 41.0622 60.7036 42.1879 58.0371C43.6437 54.5885 44.3986 52.0154 44.9999 49.9445C45.4656 48.3447 45.8363 47.0825 46.3607 46.0337C46.9575 44.8427 47.4819 44.0695 47.943 43.3851C48.7296 42.2208 49.4078 41.2164 49.4892 39.3499C49.5479 37.9989 49.0777 36.799 48.1238 35.8835H48.1374ZM22.8205 10.8947C23.5393 10.1925 24.3666 9.88141 25.4155 9.90363C26.3242 10.0503 27.147 10.268 26.7717 13.0234C26.7446 13.1967 26.1569 17.3341 25.9987 20.7027C25.9987 20.7249 25.9987 20.7471 25.9987 20.7693C25.1714 24.0579 24.4797 28.7953 24.1089 35.7191C22.504 35.8169 20.9036 35.9858 19.3485 36.208C18.8466 22.1603 20.0085 13.6411 22.816 10.8947H22.8205ZM12.87 14.641C13.9957 12.3301 14.9406 12.4456 15.8177 12.7612C17.0338 13.2011 16.8439 15.5876 16.7038 16.5786C16.6811 16.7386 16.1386 20.4583 16.3285 25.1912C16.1884 28.5109 16.2065 32.3372 16.3737 36.7146C14.8864 37.0034 13.4758 37.3367 12.1874 37.6967C11.5771 35.6791 8.87811 22.8625 12.87 14.6454V14.641ZM45.4565 41.7541C44.9683 42.4741 44.3625 43.3718 43.6798 44.7316C43.0333 46.016 42.6355 47.3936 42.1246 49.1313C41.5414 51.1266 40.8136 53.6109 39.4257 56.9039C38.4401 59.2326 34.299 66.7963 22.2057 66.2631C15.465 66.1653 10.7 64.4854 7.63939 61.1302C4.48382 57.6727 3.2225 52.3487 3.88706 45.3138C4.34819 42.0963 4.00913 39.3721 3.6791 36.7412C3.63842 36.4124 3.59773 36.088 3.55704 35.7591C3.19537 32.7238 2.2279 24.6579 4.74603 23.0625C5.42416 22.6314 5.98023 22.5336 6.39163 22.7647C7.09237 23.1602 7.79762 24.6001 7.69816 26.831C7.69364 26.951 7.7072 27.0666 7.72981 27.1821C7.85639 32.3816 8.80126 36.9057 9.33924 38.6033C8.45767 38.9277 7.68008 39.2655 7.02907 39.6032C6.29669 39.9854 6.02092 40.8742 6.40971 41.5941C6.68097 42.0963 7.20539 42.3807 7.74789 42.3763C7.97846 42.3763 8.21354 42.3185 8.43507 42.203C12.0925 40.2965 20.768 38.3589 28.4128 38.5677C29.2447 38.5811 29.9273 37.95 29.9499 37.1368C29.9725 36.3235 29.3215 35.648 28.4942 35.6258C28.0376 35.6125 27.5765 35.6125 27.1153 35.6125C27.8794 21.6493 29.9816 17.0941 31.6181 15.7476C32.2963 15.1921 32.9427 15.1476 33.8379 15.2587C34.0865 15.2898 34.7104 15.432 35.158 16.072C35.6417 16.7697 35.7321 17.8007 35.4157 19.0539C32.6489 29.9907 33.2728 42.8518 33.5892 45.9715C33.535 46.0782 33.4852 46.1848 33.4265 46.2959C32.78 47.4914 31.5774 48.7357 30.1443 48.6513C29.326 48.6113 28.6072 49.2246 28.5575 50.0334C28.5078 50.8467 29.1362 51.5444 29.9635 51.5933C32.3867 51.7355 34.6697 50.2734 36.0712 47.6825C36.2204 47.407 36.347 47.1448 36.46 46.8914C36.469 46.8737 36.4781 46.8515 36.4871 46.8337C36.7493 46.256 36.9392 45.7271 37.1065 45.2516C37.3687 44.5139 37.5947 43.8739 38.0468 43.0829C41.2566 37.4923 42.5586 37.4123 43.9375 37.3279C44.7468 37.279 45.5515 37.5323 46.0262 37.9945C46.3652 38.3189 46.5144 38.7233 46.4918 39.2299C46.4466 40.2743 46.1527 40.7098 45.443 41.7586L45.4565 41.7541Z" fill="#0D0F11"/>
-<path d="M101.42 44.0245C100.954 41.1848 101.212 38.7583 101.483 36.1896C101.519 35.8563 101.556 35.5275 101.587 35.1942C102.22 28.9281 102.573 22.0442 98.7526 19.7244C96.5013 18.3557 94.7969 18.9556 93.9831 19.4356C93.9063 19.48 93.8339 19.5333 93.7571 19.5822C93.3457 17.1424 92.6585 14.756 91.578 12.6317C90.6512 10.8097 88.54 7.96104 84.8329 9.37425C84.2271 9.60534 83.4676 10.0586 82.8798 10.9386C82.3193 9.83198 81.6818 8.94317 80.954 8.25879C79.5977 6.9789 77.9295 6.3834 76.0036 6.50339L75.8318 6.52117C72.7079 7.06779 71.4194 9.2587 72.0071 13.045C72.0071 13.045 72.0071 13.0628 72.0117 13.0761C70.3932 11.814 68.7566 11.854 67.5089 12.0318C66.139 12.2273 64.9094 13.005 64.1318 14.1649C63.4672 15.1604 62.8207 16.898 63.5395 19.5333C65.4564 26.5505 65.9085 34.5587 65.9311 39.896C62.9473 35.2831 61.044 34.3631 58.3857 34.2476C56.7311 34.1765 55.0991 34.7675 54.0366 35.8297C53.1008 36.7629 52.6533 37.9717 52.7392 39.3182C52.8567 41.1803 53.5529 42.1758 54.3622 43.3223C54.8368 43.9978 55.3748 44.7622 55.9942 45.9399C56.5412 46.9798 56.9345 48.233 57.4318 49.824C58.0738 51.8816 58.874 54.4413 60.3975 57.8633C61.573 60.5075 66.3108 68.849 79.0416 68.729C79.557 68.7245 80.0905 68.7067 80.633 68.6712C88.1467 68.4268 93.7435 66.267 97.2698 62.2584C100.932 58.0899 102.333 51.9793 101.434 44.0867L101.424 44.0156L101.42 44.0245ZM85.1041 15.9692C84.9459 14.9649 84.7063 12.5829 85.9179 12.1251C86.7859 11.7918 87.7353 11.6629 88.9017 13.9516C93.0473 22.0976 90.5925 34.9631 90.0183 36.9896C88.7208 36.6518 87.3058 36.3452 85.8139 36.083C85.8953 31.7056 85.841 27.8748 85.6421 24.5596C85.7416 19.8266 85.1312 16.1159 85.1041 15.9692ZM76.2658 9.44091C77.3192 9.39647 78.151 9.69422 78.8789 10.3875C81.7361 13.085 83.0607 21.5776 82.8211 35.6341C81.2614 35.4386 79.661 35.3008 78.0515 35.2297C77.5543 28.3103 76.7721 23.5908 75.8815 20.3155C75.8815 20.2933 75.8815 20.2711 75.8815 20.2488C75.66 16.8802 74.9909 12.7562 74.9638 12.5962C74.5343 9.83643 75.3526 9.60534 76.2613 9.44091H76.2658ZM98.4588 44.46C99.2545 51.4816 98.0926 56.8278 95.0048 60.343C92.0075 63.7516 87.2741 65.5204 80.4928 65.7426C68.4673 66.4892 64.1725 59.0054 63.1462 56.6945C61.6905 53.4237 60.9174 50.9572 60.2981 48.9707C59.7556 47.2375 59.3306 45.8732 58.6615 44.5978C57.9562 43.2512 57.3324 42.3669 56.8306 41.6558C56.1027 40.6204 55.7998 40.1893 55.732 39.1449C55.7003 38.6383 55.845 38.2295 56.175 37.9006C56.6452 37.4295 57.4409 37.1584 58.2546 37.1984C59.6335 37.2607 60.9355 37.314 64.2538 42.8468C64.724 43.629 64.9591 44.2645 65.2349 44.9977C65.4157 45.4733 65.6146 46.0021 65.8904 46.5754C65.8994 46.5932 65.904 46.6109 65.913 46.6243C66.0351 46.8776 66.1662 47.1353 66.3199 47.4109C67.7711 49.9751 70.0812 51.3972 72.4999 51.2105C73.3227 51.1483 73.9421 50.4373 73.8788 49.6284C73.8155 48.8196 73.0967 48.2197 72.2693 48.273C70.8362 48.3797 69.6111 47.1576 68.942 45.9754C68.8787 45.8643 68.829 45.7621 68.7747 45.6555C69.0324 42.5357 69.4167 29.6613 66.4419 18.7779C66.0984 17.5291 66.1707 16.4981 66.6409 15.7915C67.0794 15.1426 67.6987 14.9871 67.9474 14.9515C68.838 14.8227 69.489 14.8582 70.1762 15.4004C71.8399 16.7203 74.028 21.2354 75.0497 35.1808C74.5886 35.1853 74.1274 35.1986 73.6753 35.2208C72.848 35.2564 72.2106 35.9452 72.2467 36.7585C72.2829 37.5717 72.9701 38.185 73.811 38.1628C81.4467 37.8162 90.163 39.5938 93.852 41.4381C94.0735 41.5492 94.3086 41.598 94.5437 41.598C95.0862 41.5936 95.6061 41.3003 95.8683 40.7892C96.2436 40.0649 95.9497 39.176 95.2083 38.8072C94.5528 38.4783 93.7661 38.1584 92.88 37.8473C93.3864 36.1408 94.2498 31.5989 94.277 26.3994C94.2996 26.2839 94.3086 26.1683 94.2996 26.0483C94.1549 23.8218 94.8376 22.3686 95.5293 21.9598C95.9361 21.7198 96.4922 21.8087 97.1794 22.2264C99.7292 23.7774 98.9154 31.8567 98.608 34.9009C98.5763 35.2297 98.5402 35.5541 98.504 35.883C98.2237 38.5228 97.9344 41.247 98.4588 44.46Z" fill="#0D0F11"/>
-</g>
-</g>
-<defs>
-<clipPath id="clip0_40000615_2266">
-<rect width="101.919" height="68.945" fill="white" transform="translate(0.0621948 0.29541)"/>
-</clipPath>
-<clipPath id="clip1_40000615_2266">
-<rect width="101.919" height="68.945" fill="white" transform="translate(0.0621948 0.29541)"/>
-</clipPath>
-</defs>
-</svg>
diff --git a/frontend/src/icons/union.svg b/frontend/src/icons/union.svg
deleted file mode 100644
index 6a7d70dfe4..0000000000
--- a/frontend/src/icons/union.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="21" viewBox="0 0 24 21" fill="none">
- <path d="M3 1.5C2.17157 1.5 1.5 2.17157 1.5 3V15C1.5 15.8284 2.17157 16.5 3 16.5H11.25C11.6642 16.5 12 16.8358 12 17.25C12 17.6642 11.6642 18 11.25 18H3C1.34315 18 0 16.6569 0 15V3C0 1.34315 1.34315 0 3 0H19.5C21.1569 0 22.5 1.34315 22.5 3V9C22.5 9.41421 22.1642 9.75 21.75 9.75C21.3358 9.75 21 9.41421 21 9V3C21 2.17157 20.3284 1.5 19.5 1.5H3Z" fill="currentColor"/>
- <path d="M4.71967 4.71967C5.01256 4.42678 5.48744 4.42678 5.78033 4.71967L7.76517 6.7045C8.2045 7.14384 8.2045 7.85616 7.76517 8.2955L5.78033 10.2803C5.48744 10.5732 5.01256 10.5732 4.71967 10.2803C4.42678 9.98744 4.42678 9.51256 4.71967 9.21967L6.43934 7.5L4.71967 5.78033C4.42678 5.48744 4.42678 5.01256 4.71967 4.71967Z" fill="currentColor"/>
- <path d="M8.25 10.5C8.25 10.0858 8.58579 9.75 9 9.75H12C12.4142 9.75 12.75 10.0858 12.75 10.5C12.75 10.9142 12.4142 11.25 12 11.25H9C8.58579 11.25 8.25 10.9142 8.25 10.5Z" fill="currentColor"/>
- <path d="M24 15.75C24 18.6495 21.6495 21 18.75 21C15.8505 21 13.5 18.6495 13.5 15.75C13.5 12.8505 15.8505 10.5 18.75 10.5C21.6495 10.5 24 12.8505 24 15.75ZM18.75 12.75C18.3358 12.75 18 13.0858 18 13.5V15H16.5C16.0858 15 15.75 15.3358 15.75 15.75C15.75 16.1642 16.0858 16.5 16.5 16.5H18V18C18 18.4142 18.3358 18.75 18.75 18.75C19.1642 18.75 19.5 18.4142 19.5 18V16.5H21C21.4142 16.5 21.75 16.1642 21.75 15.75C21.75 15.3358 21.4142 15 21 15H19.5V13.5C19.5 13.0858 19.1642 12.75 18.75 12.75Z" fill="currentColor"/>
-</svg>
diff --git a/frontend/src/icons/yellow-hand.svg b/frontend/src/icons/yellow-hand.svg
deleted file mode 100644
index e682924a26..0000000000
--- a/frontend/src/icons/yellow-hand.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg width="103" height="126" viewBox="0 0 103 126" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M91.2971 58.4712C87.0201 58.7319 83.5645 59.6575 76.4645 71.6195C74.699 74.5942 74.3402 76.7332 73.075 79.4383C72.518 75.5199 70.7335 48.109 76.7194 25.2187C78.6266 17.9301 74.5101 14.3172 70.7902 13.8679C66.6926 13.3736 61.0372 13.6702 57.1284 28.3822H57.0812L57.1378 27.9598C57.4683 21.2014 58.7334 12.7085 58.7334 12.7085C59.8759 4.55717 55.9671 3.45174 53.1063 3.01137C44.2125 2.65188 38.151 10.7493 36.9803 36.938H36.9614C36.5554 27.4565 37.7167 19.9073 37.7167 19.9073C38.7647 12.6187 36.4044 9.85061 33.8457 8.96088C28.0203 6.92978 25.1785 11.5043 23.7906 14.2813C19.8629 22.1181 18.8149 31.7344 19.0037 40.425L18.9471 40.3621C19.3342 32.031 14.6795 25.9826 7.95722 30.0987C1.2349 34.2238 2.92492 49.4481 4.0579 58.633C4.79433 64.5555 5.77624 70.3253 4.73768 77.2544C0.810031 117.104 27.9543 122.685 46.063 122.945C68.4204 123.889 80.4677 112.466 84.9618 102.176C90.3812 89.7556 91.061 82.9523 93.7707 77.7308C97.2452 71.0173 99.7755 70.1815 99.9927 65.4093C100.21 60.6371 95.574 58.2106 91.3254 58.4622L91.2971 58.4712Z" fill="#FFE165"/>
-<path d="M100.173 58.5206C97.9124 56.4081 94.5117 55.2843 91.0546 55.4821C85.5156 55.8147 81.5874 57.7475 75.5492 67.1868C75.389 56.3901 76.0202 40.1815 79.7317 25.9238C81.1259 20.5659 79.7223 17.0689 78.2904 15.0821C76.6231 12.7628 74.0326 11.2345 71.1689 10.8929C68.5595 10.5783 65.1495 10.5603 61.8242 13.1673C61.8242 13.1314 61.8336 13.0864 61.8336 13.0864C62.9075 5.42715 60.138 1.04015 53.6099 0.0512766L53.2519 0.0153176C49.2296 -0.155488 45.7818 1.10308 43.0029 3.74607C41.5146 5.15746 40.224 6.98238 39.103 9.23881C37.8502 7.4858 36.2393 6.59582 34.9676 6.14633C27.1961 3.42243 22.9006 9.25679 21.0354 12.9785C18.8688 17.3116 17.5217 22.1661 16.7681 27.1194C16.608 27.0205 16.4572 26.9217 16.2971 26.8318C14.5827 25.8878 11.0125 24.7371 6.3778 27.5869C-1.47852 32.4234 -0.47999 46.3215 1.08374 58.9791C1.16852 59.6533 1.2533 60.3186 1.33808 60.9928C2.0069 66.1799 2.63804 71.0793 1.7714 76.8418L1.75256 76.9856C0.179413 92.9784 3.33513 105.285 11.1349 113.583C18.6333 121.566 30.3801 125.719 45.9514 125.944C47.0912 125.989 48.2028 126.007 49.2861 125.998C75.8883 125.764 85.4308 108.728 87.7764 103.335C90.8097 96.3585 92.3828 91.1535 93.6357 86.9642C94.6059 83.7279 95.3784 81.1748 96.4711 79.0532C97.7146 76.644 98.8073 75.0798 99.7681 73.6953C101.407 71.34 102.82 69.3083 102.99 65.5326C103.112 62.7998 102.133 60.3725 100.145 58.5206H100.173ZM47.4209 7.97125C48.9187 6.55087 50.6426 5.92159 52.828 5.96654C54.7215 6.2632 56.4359 6.7037 55.6541 12.2773C55.5975 12.6279 54.3729 20.9974 54.0432 27.8116C54.0432 27.8566 54.0432 27.9015 54.0432 27.9465C52.3194 34.5989 50.8781 44.182 50.1056 58.188C46.7615 58.3858 43.4268 58.7274 40.1863 59.1769C39.1407 30.7603 41.5617 13.5269 47.4115 7.97125H47.4209ZM26.6874 15.5496C29.033 10.8749 31.0018 11.1087 32.8293 11.7469C35.3633 12.6369 34.9676 17.4644 34.6756 19.4691C34.6285 19.7928 33.4981 27.3172 33.8937 36.8913C33.6017 43.6066 33.6394 51.3468 33.988 60.2017C30.8888 60.7861 27.9497 61.4603 25.265 62.1885C23.9933 58.1071 18.3695 32.1807 26.6874 15.5586V15.5496ZM94.5871 70.3961C93.5697 71.8524 92.3074 73.6684 90.885 76.4192C89.538 79.0173 88.709 81.8041 87.6445 85.3191C86.4293 89.3555 84.9127 94.3808 82.0208 101.042C79.9672 105.753 71.3384 121.053 46.1398 119.975C32.0945 119.777 22.1658 116.379 15.7884 109.591C9.21323 102.597 6.58504 91.8277 7.96979 77.5969C8.93063 71.0883 8.22413 65.5776 7.53647 60.2557C7.45169 59.5904 7.36691 58.9342 7.28213 58.2689C6.52852 52.1289 4.51263 35.8125 9.7596 32.5852C11.1726 31.7132 12.3313 31.5154 13.1885 31.9829C14.6486 32.783 16.1181 35.6957 15.9109 40.2085C15.9015 40.4512 15.9297 40.685 15.9768 40.9187C16.2406 51.4367 18.2094 60.5883 19.3304 64.0224C17.4935 64.6786 15.8732 65.3618 14.5167 66.0451C12.9907 66.8182 12.4161 68.6161 13.2262 70.0725C13.7914 71.0883 14.8841 71.6637 16.0145 71.6547C16.4949 71.6547 16.9848 71.5378 17.4464 71.3041C25.0672 67.4475 43.1442 63.5279 59.0735 63.9505C60.8068 63.9774 62.2292 62.7009 62.2763 61.0558C62.3234 59.4106 60.967 58.0442 59.2431 57.9992C58.2917 57.9723 57.3308 57.9723 56.37 57.9723C57.962 29.7265 62.3423 20.512 65.7523 17.7881C67.1654 16.6643 68.5124 16.5744 70.3776 16.7992C70.8957 16.8621 72.1956 17.1498 73.1282 18.4443C74.1362 19.8557 74.3246 21.9413 73.6652 24.4764C67.9001 46.6002 69.2001 72.6166 69.8595 78.9274C69.7464 79.1431 69.6428 79.3589 69.5204 79.5836C68.1733 82.0019 65.6676 84.519 62.6814 84.3482C60.9764 84.2673 59.4786 85.5079 59.375 87.144C59.2714 88.7891 60.5807 90.2005 62.3046 90.2994C67.3538 90.5871 72.1109 87.6295 75.0311 82.3884C75.3419 81.8311 75.6057 81.3007 75.8412 80.7883C75.8601 80.7523 75.8789 80.7074 75.8977 80.6714C76.4441 79.5027 76.8397 78.433 77.1883 77.471C77.7346 75.9787 78.2056 74.6842 79.1476 73.084C85.8359 61.7749 88.5489 61.6131 91.422 61.4423C93.1082 61.3434 94.7849 61.8558 95.774 62.7908C96.4805 63.447 96.7914 64.2651 96.7443 65.2899C96.6501 67.4025 96.0378 68.2835 94.5588 70.4051L94.5871 70.3961Z" fill="#1A1C21"/>
-</svg>
diff --git a/frontend/src/ignore-task-state-map.constant.ts b/frontend/src/ignore-task-state-map.constant.ts
deleted file mode 100644
index e5fd295b49..0000000000
--- a/frontend/src/ignore-task-state-map.constant.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { AgentState } from "./types/agent-state";
-
-export const IGNORE_TASK_STATE_MAP: Record<string, AgentState[]> = {
- [AgentState.PAUSED]: [
- AgentState.INIT,
- AgentState.PAUSED,
- AgentState.STOPPED,
- AgentState.FINISHED,
- AgentState.REJECTED,
- AgentState.AWAITING_USER_INPUT,
- AgentState.AWAITING_USER_CONFIRMATION,
- ],
- [AgentState.RUNNING]: [
- AgentState.INIT,
- AgentState.RUNNING,
- AgentState.STOPPED,
- AgentState.FINISHED,
- AgentState.REJECTED,
- AgentState.AWAITING_USER_INPUT,
- AgentState.AWAITING_USER_CONFIRMATION,
- ],
- [AgentState.STOPPED]: [AgentState.INIT, AgentState.STOPPED],
- [AgentState.USER_CONFIRMED]: [AgentState.RUNNING],
- [AgentState.USER_REJECTED]: [AgentState.RUNNING],
- [AgentState.AWAITING_USER_CONFIRMATION]: [],
-};
diff --git a/frontend/src/utils/base64-to-blob.ts b/frontend/src/utils/base64-to-blob.ts
deleted file mode 100644
index 6d7fb283ad..0000000000
--- a/frontend/src/utils/base64-to-blob.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-export const base64ToBlob = (base64: string) => {
- // Remove the prefix (e.g. data:image/png;base64,)
- const base64WithoutPrefix = base64.split(",")[1] || base64;
-
- // Decode to bytes
- const bytes = atob(base64WithoutPrefix);
-
- // Process in chunks to avoid memory issues
- const chunkSize = 8192; // Process 8KB at a time
- const chunks = [];
-
- for (let i = 0; i < bytes.length; i += chunkSize) {
- const chunk = bytes.slice(i, i + chunkSize);
- const array = new Uint8Array(chunk.length);
-
- for (let j = 0; j < chunk.length; j += 1) {
- array[j] = chunk.charCodeAt(j);
- }
-
- chunks.push(array);
- }
-
- // Create a Blob from all chunks
- return new Blob(chunks, { type: "application/zip" });
-};
diff --git a/frontend/src/utils/beep.tsx b/frontend/src/utils/beep.tsx
deleted file mode 100644
index 3fc726ef14..0000000000
--- a/frontend/src/utils/beep.tsx
+++ /dev/null
@@ -1,6 +0,0 @@
-const beep = () => {
- const snd = new Audio("/beep.wav");
- snd.addEventListener("canplaythrough", () => snd.play());
-};
-
-export default beep;
diff --git a/frontend/src/utils/browser-tab.ts b/frontend/src/utils/browser-tab.ts
deleted file mode 100644
index bed71abc82..0000000000
--- a/frontend/src/utils/browser-tab.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-let originalTitle = "";
-let titleInterval: number | undefined;
-
-const isBrowser =
- typeof window !== "undefined" && typeof document !== "undefined";
-
-// Use a constant for the notification parameter to avoid hardcoded strings
-const NOTIFICATION_PARAM = "notification";
-
-export const browserTab = {
- startNotification(message: string) {
- if (!isBrowser) return;
-
- // Always capture the current title as the baseline to restore to
- originalTitle = document.title;
-
- // Clear any existing interval
- if (titleInterval) {
- this.stopNotification();
- }
-
- // Alternate between the latest baseline title and the notification message.
- // If the title changes externally (e.g., user renames conversation),
- // update the baseline so we restore to the new value when stopping.
- titleInterval = window.setInterval(() => {
- const current = document.title;
- if (current !== originalTitle && current !== message) {
- originalTitle = current;
- }
- document.title = current === message ? originalTitle : message;
- }, 1000);
-
- // Set favicon to indicate notification
- const favicon = document.querySelector(
- 'link[rel="icon"]',
- ) as HTMLLinkElement;
- if (favicon) {
- favicon.href = favicon.href.includes(`?${NOTIFICATION_PARAM}`)
- ? favicon.href
- : `${favicon.href}?${NOTIFICATION_PARAM}`;
- }
- },
-
- stopNotification() {
- if (!isBrowser) return;
-
- if (titleInterval) {
- window.clearInterval(titleInterval);
- titleInterval = undefined;
- }
- if (originalTitle) {
- document.title = originalTitle;
- }
-
- // Reset favicon
- const favicon = document.querySelector(
- 'link[rel="icon"]',
- ) as HTMLLinkElement;
- if (favicon) {
- favicon.href = favicon.href.replace(`?${NOTIFICATION_PARAM}`, "");
- }
- },
-};
diff --git a/frontend/src/utils/convert-file-to-text.ts b/frontend/src/utils/convert-file-to-text.ts
deleted file mode 100644
index a8cf56e19a..0000000000
--- a/frontend/src/utils/convert-file-to-text.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export const convertFileToText = async (file: File) => {
- const reader = new FileReader();
-
- return new Promise<string>((resolve) => {
- reader.onload = () => {
- resolve(reader.result as string);
- };
- reader.readAsText(file);
- });
-};
diff --git a/frontend/src/utils/format-ms.ts b/frontend/src/utils/format-ms.ts
deleted file mode 100644
index 2e7e1c7c4e..0000000000
--- a/frontend/src/utils/format-ms.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-/**
- * Formats a time in milliseconds to the format "mm:ss"
- * @param ms The time in milliseconds
- * @returns The formatted time in the format "mm:ss"
- *
- * @example
- * formatMs(1000) // "00:01"
- * formatMs(1000 * 60) // "01:00"
- * formatMs(1000 * 60 * 2.5) // "02:30"
- */
-export const formatMs = (ms: number) => {
- const minutes = Math.floor(ms / 1000 / 60);
- const seconds = Math.floor((ms / 1000) % 60);
-
- return `${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}`;
-};
diff --git a/frontend/src/utils/get-random-key.ts b/frontend/src/utils/get-random-key.ts
deleted file mode 100644
index 7667fb8b1e..0000000000
--- a/frontend/src/utils/get-random-key.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export const getRandomKey = (obj: Record<string, string>) => {
- const keys = Object.keys(obj);
- const randomKey = keys[Math.floor(Math.random() * keys.length)];
-
- return randomKey;
-};
diff --git a/frontend/src/utils/gget-formatted-datetime.ts b/frontend/src/utils/gget-formatted-datetime.ts
deleted file mode 100644
index 24dafa3257..0000000000
--- a/frontend/src/utils/gget-formatted-datetime.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export const getFormattedDateTime = () => {
- const now = new Date();
- const year = now.getFullYear();
- const month = String(now.getMonth() + 1).padStart(2, "0");
- const day = String(now.getDate()).padStart(2, "0");
- const hour = String(now.getHours()).padStart(2, "0");
- const minute = String(now.getMinutes()).padStart(2, "0");
- const second = String(now.getSeconds()).padStart(2, "0");
-
- return `${year}-${month}-${day}-${hour}-${minute}-${second}`;
-};
diff --git a/frontend/src/utils/parse-github-url.ts b/frontend/src/utils/parse-github-url.ts
deleted file mode 100644
index d48e46d681..0000000000
--- a/frontend/src/utils/parse-github-url.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- * Given a GitHub URL of a repository, obtain the owner and repository name
- * @param url The GitHub repository URL
- * @returns An array containing the owner and repository names
- *
- * @example
- * const parsed = parseGithubUrl("https://github.com/All-Hands-AI/OpenHands");
- * console.log(parsed) // ["All-Hands-AI", "OpenHands"]
- */
-export const parseGithubUrl = (url: string) => {
- const parts = url.replace("https://github.com/", "").split("/");
- return parts.length === 2 ? parts : [];
-};
diff --git a/frontend/src/utils/toast.tsx b/frontend/src/utils/toast.tsx
deleted file mode 100644
index a80c7f0e5d..0000000000
--- a/frontend/src/utils/toast.tsx
+++ /dev/null
@@ -1,62 +0,0 @@
-import toast from "react-hot-toast";
-import { calculateToastDuration } from "./toast-duration";
-
-const idMap = new Map<string, string>();
-
-export default {
- error: (id: string, msg: string) => {
- if (idMap.has(id)) return; // prevent duplicate toast
- const toastId = toast(msg, {
- duration: 4000,
- style: {
- background: "#ef4444",
- color: "#fff",
- },
- iconTheme: {
- primary: "#ef4444",
- secondary: "#fff",
- },
- });
- idMap.set(id, toastId);
- },
- success: (id: string, msg: string, duration: number = 4000) => {
- if (idMap.has(id)) return; // prevent duplicate toast
- const toastId = toast.success(msg, {
- duration,
- style: {
- background: "#333",
- color: "#fff",
- },
- iconTheme: {
- primary: "#333",
- secondary: "#fff",
- },
- });
- idMap.set(id, toastId);
- },
- settingsChanged: (msg: string) => {
- toast(msg, {
- position: "bottom-right",
- className: "bg-tertiary",
- duration: calculateToastDuration(msg, 5000),
- icon: "⚙️",
- style: {
- background: "#333",
- color: "#fff",
- },
- });
- },
-
- info: (msg: string) => {
- toast(msg, {
- position: "top-center",
- className: "bg-tertiary",
-
- style: {
- background: "#333",
- color: "#fff",
- lineBreak: "anywhere",
- },
- });
- },
-};