Color palette
diff --git a/src/modals/SearchResultsModal.svelte b/src/modals/SearchResultsModal.svelte
deleted file mode 100644
index 4fb7eb3bd..000000000
--- a/src/modals/SearchResultsModal.svelte
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
-
- {#if results.length > 0}
-
- {#each results as result}
- -
-
-
- {result.project.name}
-
- {formatRepositoryId(result.project.id)}
-
-
-
-
- {/each}
-
- {/if}
-
-
diff --git a/src/views/home/router.ts b/src/views/home/router.ts
index 5b2a62eeb..3b1962cc4 100644
--- a/src/views/home/router.ts
+++ b/src/views/home/router.ts
@@ -1,12 +1,12 @@
import type { LoadErrorRoute } from "@app/lib/router/definitions";
-import type { ProjectBaseUrl } from "@app/lib/search";
+import type { ProjectBaseUrl } from "@app/lib/projects";
import type { WeeklyActivity } from "@app/lib/commit";
import { get } from "svelte/store";
import { api, httpdStore } from "@app/lib/httpd";
import { config } from "@app/lib/config";
-import { getProjectsFromNodes } from "@app/lib/search";
+import { getProjectsFromNodes } from "@app/lib/projects";
import { loadProjectActivity } from "@app/lib/commit";
export interface ProjectBaseUrlActivity extends ProjectBaseUrl {
diff --git a/tests/e2e/hotkeys.spec.ts b/tests/e2e/hotkeys.spec.ts
deleted file mode 100644
index ad07dbd5b..000000000
--- a/tests/e2e/hotkeys.spec.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { searchPlaceholder } from "@app/lib/shared";
-import { test, expect } from "@tests/support/fixtures.js";
-
-test("global hotkeys", async ({ page }) => {
- await page.goto("/");
- await page.locator("body").press(`/`);
- await expect(page.locator(".search.expanded")).toBeVisible();
- // Delaying the input speed a bit to imitate a real user.
- await page.keyboard.type("searchquery", { delay: 100 });
-
- // Keyboard hint shows up in the search bar.
- {
- await expect(page.getByText("⏎")).toBeVisible();
- await expect(page.getByPlaceholder(searchPlaceholder)).toHaveValue(
- "searchquery",
- );
- }
-
- // Other hotkeys don't trigger while input is focussed.
- {
- await page.keyboard.type("?");
- await expect(page.getByPlaceholder(searchPlaceholder)).toHaveValue(
- "searchquery?",
- );
- await expect(
- page.locator(".modal").getByText("Keyboard shortcuts"),
- ).not.toBeVisible();
- }
-
- // Hitting `Esc` defocuses the input.
- {
- await page.locator("body").press("Escape");
- await expect(page.getByPlaceholder(searchPlaceholder)).toHaveValue(
- "searchquery?",
- );
- await expect(page.getByText("⏎")).toBeHidden();
- await expect(page.getByPlaceholder(searchPlaceholder)).not.toBeFocused();
- }
-});
diff --git a/tests/e2e/search.spec.ts b/tests/e2e/search.spec.ts
deleted file mode 100644
index be08fb6d5..000000000
--- a/tests/e2e/search.spec.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { searchPlaceholder } from "@app/lib/shared";
-import {
- test,
- expect,
- sourceBrowsingRid,
- sourceBrowsingUrl,
-} from "@tests/support/fixtures.js";
-
-test("navigate to existing project", async ({ page }) => {
- await page.goto("/");
- const searchInput = page.getByPlaceholder(searchPlaceholder);
- await searchInput.click();
- await searchInput.fill(sourceBrowsingRid);
- await searchInput.press("Enter");
-
- await expect(page).toHaveURL(sourceBrowsingUrl);
- await expect(searchInput).not.toHaveValue(sourceBrowsingRid);
-});
-
-test("navigate to a project that does not exist", async ({ page }) => {
- await page.goto("/");
- const searchInput = page.getByPlaceholder(searchPlaceholder);
- await searchInput.click();
-
- const nonExistantId = "rad:zAAAAAAAAAAAAAAAAAAAAAAAAAAA";
- await searchInput.fill(nonExistantId);
- await searchInput.press("Enter");
-
- await page.waitForSelector(".search-bar.shaking");
-
- await expect(page).toHaveURL("/");
- await expect(searchInput).toHaveValue(nonExistantId);
-});