Skip to content

🙌 OpenHands: AI-Driven Development

Home: rework workspace UX for the agent-server backend (#169)

Robert Brennan465e7765220b
diff --git a/AGENTS.md b/AGENTS.md
index b13a177484..794531e4ea 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -135,6 +135,15 @@
- `EventGroup` should return `null` for an empty `events` array and wire the toggle button to the expanded body with `aria-controls` / `role="region"` / `aria-labelledby`.
- `src/components/v1/chat/messages.tsx` is the only consumer; the grouping is transparent to upstream code. Coverage lives in `__tests__/components/v1/chat/group-events.test.ts` (pure logic, including thought hoisting) and `__tests__/components/v1/chat/event-message-components/event-group.test.tsx` (rendering/interaction).
+- Home page workspace UX (agent-server backend):
+ - `RepoConnector` no longer renders tab UI, but it still must branch on the active backend: local/bundled backends render `WorkspaceSelectionForm`, while cloud backends render the repo path (`RepositorySelectionForm` when git providers exist, otherwise `ConnectToProviderMessage`). Keep `src/routes/home.tsx` passing through the selected repo state so `TaskSuggestions` can still filter on cloud repo picks.
+ - `FolderBrowserModal`'s "Use this folder" button adds **only the currently navigated directory** as a single workspace (named by its basename). It no longer iterates `subdirs` and adds each child as a separate workspace.
+ - The `WorkspaceDropdown` sticky footer now exposes both "+ Add Workspace" (opens the folder browser) and "Manage Workspaces" (opens `ManageWorkspacesModal`, which lets users remove individual workspaces via `useWorkspacesStore.removeWorkspace`). The Manage button is hidden when there are no workspaces yet.
+ - `useResolvedWorkspaces()` now returns `isLoading` / `isError` for parent-directory scans; `WorkspaceSelectionForm` should surface that state (status text and disabling the empty dropdown while parent results are still loading) instead of assuming the merged list is immediately ready.
+ - `ManageWorkspacesModal` should require a confirmation step before removing either a saved workspace or a workspace parent; parent removals should mention the child-workspace impact, and tests should assert both the confirmation flow and that removing the selected workspace clears the launch selection.
+ - In `useWorkspacesStore`, keep `clearWorkspaces()` scoped to literal workspaces only; use explicit helpers like `clearWorkspaceParents()` / `clearAll()` for broader resets so future callers do not accidentally wipe parent registrations.
+
+
- Library packaging notes:
- Public npm entrypoints now come from `src/index.ts` → `src/lib/index.ts`, with domain barrels under `src/components/{conversation,terminal,browser,files,settings,sidebar}/index.ts`.
- `npm run build` remains the standalone app build (`react-router build`), while `npm run build:lib` runs `vite build` in library mode plus `tsc -p tsconfig.lib.json` to emit `.d.ts` files into `dist/`.
diff --git a/__tests__/components/features/home/repo-connector.test.tsx b/__tests__/components/features/home/repo-connector.test.tsx
new file mode 100644
index 0000000000..f5133b05aa
--- /dev/null
+++ b/__tests__/components/features/home/repo-connector.test.tsx
@@ -0,0 +1,97 @@
+import { render, screen } from "@testing-library/react";
+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
+
+import {
+ __resetActiveStoreForTests,
+ setActiveSelection,
+ setRegisteredBackends,
+} from "#/api/backend-registry/active-store";
+import type { Backend } from "#/api/backend-registry/types";
+import { ActiveBackendProvider } from "#/contexts/active-backend-context";
+import { RepoConnector } from "#/components/features/home/repo-connector";
+
+const mockUseUserProviders = vi.fn();
+
+vi.mock("#/hooks/use-user-providers", () => ({
+ useUserProviders: () => mockUseUserProviders(),
+}));
+
+vi.mock("#/components/features/home/repo-selection-form", () => ({
+ RepositorySelectionForm: () => <div data-testid="stub-repo-form" />,
+}));
+
+vi.mock("#/components/features/home/workspace-selection-form", () => ({
+ WorkspaceSelectionForm: () => <div data-testid="stub-workspace-form" />,
+}));
+
+vi.mock("#/components/features/home/connect-to-provider-message", () => ({
+ ConnectToProviderMessage: () => <div data-testid="stub-connect-message" />,
+}));
+
+const cloudBackend: Backend = {
+ id: "prod",
+ name: "Production",
+ host: "https://app.all-hands.dev",
+ apiKey: "k",
+ kind: "cloud",
+};
+
+function renderRepoConnector() {
+ return render(
+ <ActiveBackendProvider>
+ <RepoConnector onRepoSelection={() => {}} />
+ </ActiveBackendProvider>,
+ );
+}
+
+beforeEach(() => {
+ window.localStorage.clear();
+ __resetActiveStoreForTests();
+ mockUseUserProviders.mockReturnValue({
+ isLoadingSettings: false,
+ providers: ["github"],
+ });
+});
+
+afterEach(() => {
+ window.localStorage.clear();
+ __resetActiveStoreForTests();
+});
+
+describe("RepoConnector", () => {
+ it("shows the workspace launcher for local backends", () => {
+ renderRepoConnector();
+
+ expect(screen.getByTestId("stub-workspace-form")).toBeInTheDocument();
+ expect(screen.queryByTestId("stub-repo-form")).not.toBeInTheDocument();
+ });
+
+ it("shows the repository launcher for cloud backends with providers", () => {
+ setRegisteredBackends([cloudBackend]);
+ setActiveSelection({ backendId: cloudBackend.id });
+
+ renderRepoConnector();
+
+ expect(screen.getByTestId("stub-repo-form")).toBeInTheDocument();
+ expect(
+ screen.queryByTestId("stub-workspace-form"),
+ ).not.toBeInTheDocument();
+ });
+
+ it("shows the connect-provider message for cloud backends without providers", () => {
+ setRegisteredBackends([cloudBackend]);
+ setActiveSelection({ backendId: cloudBackend.id });
+ mockUseUserProviders.mockReturnValue({
+ isLoadingSettings: false,
+ providers: [],
+ });
+
+ renderRepoConnector();
+
+ expect(screen.getByTestId("stub-connect-message")).toBeInTheDocument();
+ expect(screen.queryByTestId("stub-repo-form")).not.toBeInTheDocument();
+ expect(
+ screen.queryByTestId("stub-workspace-form"),
+ ).not.toBeInTheDocument();
+ });
+});
diff --git a/__tests__/components/features/home/repo-selection-form.test.tsx b/__tests__/components/features/home/repo-selection-form.test.tsx
index 5db7051d17..fa9a348efd 100644
--- a/__tests__/components/features/home/repo-selection-form.test.tsx
+++ b/__tests__/components/features/home/repo-selection-form.test.tsx
@@ -1,16 +1,10 @@
import { render, screen } from "@testing-library/react";
-import userEvent from "@testing-library/user-event";
import { describe, expect, vi, beforeEach, it } from "vitest";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { RepositorySelectionForm } from "../../../../src/components/features/home/repo-selection-form";
-import { LaunchTabs } from "../../../../src/components/features/home/launch-tabs";
import GitService from "#/api/git-service/git-service.api";
-import SettingsService from "#/api/settings-service/settings-service.api";
-import { DEFAULT_SETTINGS } from "#/services/settings";
import { GitRepository } from "#/types/git";
import { useHomeStore } from "#/stores/home-store";
-import { useWorkspacesStore } from "#/stores/workspaces-store";
-import { ActiveBackendProvider } from "#/contexts/active-backend-context";
// Create mock functions
const mockUseUserRepositories = vi.fn();
@@ -334,87 +328,4 @@ describe("RepositorySelectionForm", () => {
).not.toBeInTheDocument();
});
- it("LaunchTabs defaults to Repositories and switches to Workspaces", async () => {
- mockUseUserProviders.mockReturnValue({ providers: ["github"] });
- useWorkspacesStore.setState({ workspaces: [] });
-
- render(<LaunchTabs onRepoSelection={mockOnRepoSelection} />, {
- wrapper: ({ children }) => (
- <QueryClientProvider
- client={
- new QueryClient({
- defaultOptions: { queries: { retry: false } },
- })
- }
- >
- <ActiveBackendProvider>{children}</ActiveBackendProvider>
- </QueryClientProvider>
- ),
- });
-
- expect(await screen.findByTestId("git-repo-dropdown")).toBeInTheDocument();
- expect(
- screen.queryByTestId("workspace-launch-button"),
- ).not.toBeInTheDocument();
-
- await userEvent.click(screen.getByTestId("workspaces-tab"));
-
- expect(
- await screen.findByTestId("workspace-launch-button"),
- ).toBeInTheDocument();
- expect(screen.queryByTestId("git-repo-dropdown")).not.toBeInTheDocument();
- });
-
- it("keeps the Workspaces tab reachable when no provider is configured", async () => {
- mockUseUserProviders.mockReturnValue({ providers: [] });
- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(
- DEFAULT_SETTINGS,
- );
- useWorkspacesStore.setState({ workspaces: [] });
-
- render(<LaunchTabs onRepoSelection={mockOnRepoSelection} />, {
- wrapper: ({ children }) => (
- <QueryClientProvider
- client={
- new QueryClient({
- defaultOptions: { queries: { retry: false } },
- })
- }
- >
- {children}
- </QueryClientProvider>
- ),
- });
-
- await userEvent.click(screen.getByTestId("workspaces-tab"));
-
- expect(
- await screen.findByTestId("workspace-launch-button"),
- ).toBeInTheDocument();
- });
-
- it("shows the connect-provider empty state in the Repositories tab when no provider is configured", async () => {
- mockUseUserProviders.mockReturnValue({ providers: [] });
- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(
- DEFAULT_SETTINGS,
- );
-
- render(<LaunchTabs onRepoSelection={mockOnRepoSelection} />, {
- wrapper: ({ children }) => (
- <QueryClientProvider
- client={
- new QueryClient({
- defaultOptions: { queries: { retry: false } },
- })
- }
- >
- {children}
- </QueryClientProvider>
- ),
- });
-
- expect(
- await screen.findByTestId("navigate-to-settings-button"),
- ).toBeInTheDocument();
- });
});
diff --git a/__tests__/components/features/home/workspace-selection-form.test.tsx b/__tests__/components/features/home/workspace-selection-form.test.tsx
index 5f4017b8fc..09f74d67bf 100644
--- a/__tests__/components/features/home/workspace-selection-form.test.tsx
+++ b/__tests__/components/features/home/workspace-selection-form.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen, waitFor } from "@testing-library/react";
+import { render, screen, waitFor, within } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { describe, expect, vi, beforeEach, it } from "vitest";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
@@ -53,8 +53,14 @@ function makeStartTask(overrides: Record<string, unknown> = {}) {
} as never;
}
-function renderForm(initialWorkspaces: LocalWorkspace[] = []) {
- useWorkspacesStore.setState({ workspaces: initialWorkspaces });
+function renderForm(
+ initialWorkspaces: LocalWorkspace[] = [],
+ initialParents: { id: string; name: string; path: string }[] = [],
+) {
+ useWorkspacesStore.setState({
+ workspaces: initialWorkspaces,
+ workspaceParents: initialParents,
+ });
return render(<WorkspaceSelectionForm />, {
wrapper: ({ children }) => (
<QueryClientProvider
@@ -78,10 +84,10 @@ describe("WorkspaceSelectionForm", () => {
vi.clearAllMocks();
vi.restoreAllMocks();
mockUseIsCreatingConversation.mockReturnValue(false);
- useWorkspacesStore.setState({ workspaces: [] });
+ useWorkspacesStore.setState({ workspaces: [], workspaceParents: [] });
});
- it("Add Workspaces opens Finder-like modal, navigates, and imports subfolders deduped on repeat", async () => {
+ it("Add Workspace adds only the chosen folder (not its subfolders) and dedupes on repeat", async () => {
vi.spyOn(FilesService, "getHome").mockResolvedValue({ home: "/Users/me" });
const searchSpy = vi
.spyOn(FilesService, "searchSubdirs")
@@ -106,44 +112,112 @@ describe("WorkspaceSelectionForm", () => {
});
// Pre-seed one workspace to verify dedup
- renderForm([
- { id: "/Users/me/dev/repo1", name: "repo1", path: "/Users/me/dev/repo1" },
- ]);
+ renderForm([{ id: "/Users/me/dev", name: "dev", path: "/Users/me/dev" }]);
const user = userEvent.setup();
- for (let i = 0; i < 2; i += 1) {
- await user.click(screen.getByTestId("workspace-dropdown"));
- const addButton = await screen.findByTestId("add-workspaces-button");
- await user.click(addButton);
+ // First pass: navigate into "dev" then click "Use this folder"
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ await user.click(await screen.findByTestId("add-workspaces-button"));
+
+ await screen.findByTestId("folder-browser-modal");
+ expect(
+ screen.queryByTestId("add-workspaces-button"),
+ ).not.toBeInTheDocument();
- // Modal opens at home; dropdown menu is closed.
- await screen.findByTestId("folder-browser-modal");
+ await user.click(await screen.findByTestId("folder-browser-entry-dev"));
+ await screen.findByTestId("folder-browser-entry-repo2");
+ await user.click(screen.getByTestId("folder-browser-use"));
+
+ await waitFor(() =>
expect(
- screen.queryByTestId("add-workspaces-button"),
- ).not.toBeInTheDocument();
-
- // Navigate into "dev" then click "Use this folder"
- const devEntry = await screen.findByTestId("folder-browser-entry-dev");
- await user.click(devEntry);
- await screen.findByTestId("folder-browser-entry-repo2");
- await user.click(screen.getByTestId("folder-browser-use"));
-
- await waitFor(() =>
- expect(
- screen.queryByTestId("folder-browser-modal"),
- ).not.toBeInTheDocument(),
- );
- }
-
- const stored = useWorkspacesStore.getState().workspaces;
- expect(stored.map((w) => w.path).sort()).toEqual([
- "/Users/me/dev/repo1",
- "/Users/me/dev/repo2",
- "/Users/me/dev/repo3",
- ]);
+ screen.queryByTestId("folder-browser-modal"),
+ ).not.toBeInTheDocument(),
+ );
+
+ // The same /Users/me/dev folder should be deduped, not duplicated, and
+ // its children should NOT have been imported as workspaces.
+ expect(
+ useWorkspacesStore
+ .getState()
+ .workspaces.map((w) => w.path)
+ .sort(),
+ ).toEqual(["/Users/me/dev"]);
+
+ // Second pass: pick a child folder; it should be added as a single
+ // workspace (still no recursion into its subfolders).
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ await user.click(await screen.findByTestId("add-workspaces-button"));
+ await screen.findByTestId("folder-browser-modal");
+ await user.click(await screen.findByTestId("folder-browser-entry-dev"));
+ await user.click(await screen.findByTestId("folder-browser-entry-repo1"));
+ await user.click(screen.getByTestId("folder-browser-use"));
+
+ await waitFor(() =>
+ expect(
+ screen.queryByTestId("folder-browser-modal"),
+ ).not.toBeInTheDocument(),
+ );
+
+ expect(
+ useWorkspacesStore
+ .getState()
+ .workspaces.map((w) => w.path)
+ .sort(),
+ ).toEqual(["/Users/me/dev", "/Users/me/dev/repo1"]);
expect(searchSpy).toHaveBeenCalledWith("/Users/me/dev");
});
+ it("Manage Workspaces lets you remove individual workspaces and clears the current selection", async () => {
+ const workspaces: LocalWorkspace[] = [
+ { id: "/Users/me/dev/repo1", name: "repo1", path: "/Users/me/dev/repo1" },
+ { id: "/Users/me/dev/repo2", name: "repo2", path: "/Users/me/dev/repo2" },
+ ];
+ renderForm(workspaces);
+ const user = userEvent.setup();
+ const launchButton = screen.getByTestId("workspace-launch-button");
+
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ const dropdownMenu = await screen.findByTestId("workspace-dropdown-menu");
+ await user.click(within(dropdownMenu).getByText("repo1"));
+ expect(launchButton).toBeEnabled();
+
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ await user.click(await screen.findByTestId("manage-workspaces-button"));
+
+ await screen.findByTestId("manage-workspaces-modal");
+ await user.click(screen.getByTestId("manage-workspaces-remove-repo1"));
+
+ expect(useWorkspacesStore.getState().workspaces.map((w) => w.path)).toEqual(
+ ["/Users/me/dev/repo1", "/Users/me/dev/repo2"],
+ );
+
+ await screen.findByTestId("confirmation-modal");
+ await user.click(screen.getByTestId("confirm-button"));
+
+ expect(useWorkspacesStore.getState().workspaces.map((w) => w.path)).toEqual(
+ ["/Users/me/dev/repo2"],
+ );
+ expect(launchButton).toBeDisabled();
+
+ await user.click(screen.getByTestId("manage-workspaces-done"));
+ await waitFor(() =>
+ expect(
+ screen.queryByTestId("manage-workspaces-modal"),
+ ).not.toBeInTheDocument(),
+ );
+ });
+
+ it("Manage Workspaces button is hidden when there are no workspaces", async () => {
+ renderForm([]);
+ const user = userEvent.setup();
+
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ await screen.findByTestId("add-workspaces-button");
+ expect(
+ screen.queryByTestId("manage-workspaces-button"),
+ ).not.toBeInTheDocument();
+ });
+
it("Launch creates a v1 conversation with the selected workspace path as working_dir", async () => {
const workspaces: LocalWorkspace[] = [
{ id: "/Users/me/dev/repo1", name: "repo1", path: "/Users/me/dev/repo1" },
@@ -190,4 +264,141 @@ describe("WorkspaceSelectionForm", () => {
expect(launchButton).toBeEnabled();
});
+
+ it("disables the workspace dropdown while parent workspaces are loading", async () => {
+ vi.spyOn(FilesService, "searchSubdirs").mockReturnValue(
+ new Promise(() => {}) as never,
+ );
+
+ renderForm(
+ [],
+ [{ id: "/Users/me/dev", name: "dev", path: "/Users/me/dev" }],
+ );
+
+ await waitFor(() => {
+ expect(screen.getByTestId("workspace-dropdown")).toBeDisabled();
+ });
+ expect(screen.getByTestId("workspace-status-message")).toBeInTheDocument();
+ });
+
+ it("Add all subdirectories saves a workspace parent and lists its children dynamically", async () => {
+ vi.spyOn(FilesService, "getHome").mockResolvedValue({ home: "/Users/me" });
+ const searchSpy = vi
+ .spyOn(FilesService, "searchSubdirs")
+ .mockImplementation(async (path: string) => {
+ if (path === "/Users/me") {
+ return {
+ items: [{ name: "dev", path: "/Users/me/dev" }],
+ next_page_id: null,
+ };
+ }
+ if (path === "/Users/me/dev") {
+ return {
+ items: [
+ { name: "repo1", path: "/Users/me/dev/repo1" },
+ { name: "repo2", path: "/Users/me/dev/repo2" },
+ ],
+ next_page_id: null,
+ };
+ }
+ throw new Error(`unexpected path ${path}`);
+ });
+
+ renderForm();
+ const user = userEvent.setup();
+
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ await user.click(await screen.findByTestId("add-workspaces-button"));
+
+ await screen.findByTestId("folder-browser-modal");
+ await user.click(await screen.findByTestId("folder-browser-entry-dev"));
+ await screen.findByTestId("folder-browser-entry-repo1");
+
+ // Click the "Add all subdirectories" button.
+ await user.click(screen.getByTestId("folder-browser-add-all-subdirs"));
+
+ await waitFor(() =>
+ expect(
+ screen.queryByTestId("folder-browser-modal"),
+ ).not.toBeInTheDocument(),
+ );
+
+ // The directory itself becomes a workspace parent, not a workspace.
+ expect(useWorkspacesStore.getState().workspaces).toEqual([]);
+ expect(
+ useWorkspacesStore.getState().workspaceParents.map((p) => p.path),
+ ).toEqual(["/Users/me/dev"]);
+
+ // ...and its subdirectories surface as workspaces dynamically.
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ const dynamicDropdown = await screen.findByTestId(
+ "workspace-dropdown-menu",
+ );
+ await within(dynamicDropdown).findByText("repo1");
+ await within(dynamicDropdown).findByText("repo2");
+
+ expect(searchSpy).toHaveBeenCalledWith("/Users/me/dev");
+ });
+
+ it("Removing a workspace parent stops listing its children", async () => {
+ const searchSpy = vi
+ .spyOn(FilesService, "searchSubdirs")
+ .mockResolvedValue({
+ items: [
+ { name: "repoA", path: "/Users/me/dev/repoA" },
+ { name: "repoB", path: "/Users/me/dev/repoB" },
+ ],
+ next_page_id: null,
+ });
+
+ renderForm(
+ [],
+ [{ id: "/Users/me/dev", name: "dev", path: "/Users/me/dev" }],
+ );
+
+ const user = userEvent.setup();
+
+ // Children should appear in the dropdown.
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ const dropdownMenu = await screen.findByTestId("workspace-dropdown-menu");
+ await within(dropdownMenu).findByText("repoA");
+ await within(dropdownMenu).findByText("repoB");
+
+ // Manage modal should expose a remove button for the parent.
+ await user.click(screen.getByTestId("manage-workspaces-button"));
+ await screen.findByTestId("manage-workspaces-modal");
+ expect(
+ screen.getByTestId("manage-workspaces-parent-row-dev"),
+ ).toBeInTheDocument();
+
+ await user.click(screen.getByTestId("manage-workspaces-remove-parent-dev"));
+
+ expect(useWorkspacesStore.getState().workspaceParents).toEqual([
+ { id: "/Users/me/dev", name: "dev", path: "/Users/me/dev" },
+ ]);
+
+ await screen.findByTestId("confirmation-modal");
+ await user.click(screen.getByTestId("confirm-button"));
+
+ expect(useWorkspacesStore.getState().workspaceParents).toEqual([]);
+ expect(searchSpy).toHaveBeenCalledWith("/Users/me/dev");
+
+ await user.click(screen.getByTestId("manage-workspaces-done"));
+ await waitFor(() =>
+ expect(
+ screen.queryByTestId("manage-workspaces-modal"),
+ ).not.toBeInTheDocument(),
+ );
+
+ await user.click(screen.getByTestId("workspace-dropdown"));
+ const refreshedDropdown = await screen.findByTestId(
+ "workspace-dropdown-menu",
+ );
+ expect(
+ within(refreshedDropdown).queryByText("repoA"),
+ ).not.toBeInTheDocument();
+ expect(
+ within(refreshedDropdown).queryByText("repoB"),
+ ).not.toBeInTheDocument();
+ });
});
diff --git a/__tests__/components/home/launch-tabs.test.tsx b/__tests__/components/home/launch-tabs.test.tsx
deleted file mode 100644
index e27292442d..0000000000
--- a/__tests__/components/home/launch-tabs.test.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-import React from "react";
-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
-import { render, screen } from "@testing-library/react";
-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
-import {
- __resetActiveStoreForTests,
- setActiveSelection,
- setRegisteredBackends,
-} from "#/api/backend-registry/active-store";
-import type { Backend } from "#/api/backend-registry/types";
-import { ActiveBackendProvider } from "#/contexts/active-backend-context";
-import { LaunchTabs } from "#/components/features/home/launch-tabs";
-
-// LaunchTabs's children pull a lot of git/data — stub them so the test
-// stays focused on the tab visibility decision.
-vi.mock("#/components/features/home/repo-selection-form", () => ({
- RepositorySelectionForm: () => <div data-testid="stub-repo-form" />,
-}));
-vi.mock("#/components/features/home/workspace-selection-form", () => ({
- WorkspaceSelectionForm: () => <div data-testid="stub-workspace-form" />,
-}));
-
-const cloudBackend: Backend = {
- id: "prod",
- name: "Production",
- host: "https://app.all-hands.dev",
- apiKey: "k",
- kind: "cloud",
-};
-
-function renderTabs() {
- return render(
- <QueryClientProvider client={new QueryClient()}>
- <ActiveBackendProvider>
- <LaunchTabs onRepoSelection={() => {}} />
- </ActiveBackendProvider>
- </QueryClientProvider>,
- );
-}
-
-beforeEach(() => {
- window.localStorage.clear();
- __resetActiveStoreForTests();
-});
-
-afterEach(() => {
- window.localStorage.clear();
- __resetActiveStoreForTests();
-});
-
-describe("LaunchTabs", () => {
- it("shows the Workspaces tab when active backend is local", () => {
- renderTabs();
- expect(screen.getByTestId("repositories-tab")).toBeInTheDocument();
- expect(screen.getByTestId("workspaces-tab")).toBeInTheDocument();
- });
-
- it("hides the Workspaces tab when active backend is cloud", () => {
- setRegisteredBackends([cloudBackend]);
- setActiveSelection({ backendId: cloudBackend.id });
-
- renderTabs();
- expect(screen.getByTestId("repositories-tab")).toBeInTheDocument();
- expect(screen.queryByTestId("workspaces-tab")).not.toBeInTheDocument();
- });
-});
diff --git a/src/components/features/home/launch-tabs.tsx b/src/components/features/home/launch-tabs.tsx
deleted file mode 100644
index 844ad4f2ef..0000000000
--- a/src/components/features/home/launch-tabs.tsx
+++ /dev/null
@@ -1,107 +0,0 @@
-import React from "react";
-import { useTranslation } from "react-i18next";
-
-import { cn } from "#/utils/utils";
-import { I18nKey } from "#/i18n/declaration";
-import { GitRepository } from "#/types/git";
-import { useUserProviders } from "#/hooks/use-user-providers";
-import { useActiveBackend } from "#/contexts/active-backend-context";
-
-import { RepositorySelectionForm } from "./repo-selection-form";
-import { WorkspaceSelectionForm } from "./workspace-selection-form";
-import { ConnectToProviderMessage } from "./connect-to-provider-message";
-
-type LaunchTab = "repositories" | "workspaces";
-
-interface LaunchTabsProps {
- onRepoSelection: (repo: GitRepository | null) => void;
- isLoadingSettings?: boolean;
-}
-
-interface TabButtonProps {
- isActive: boolean;
- onClick: () => void;
- children: React.ReactNode;
- testId: string;
-}
-
-function TabButton({ isActive, onClick, children, testId }: TabButtonProps) {
- return (
- <button
- type="button"
- role="tab"
- aria-selected={isActive}
- data-testid={testId}
- onClick={onClick}
- className={cn(
- "px-4 py-2 text-sm font-medium border-b-2 transition-colors cursor-pointer",
- isActive
- ? "border-[#C9B974] text-white"
- : "border-transparent text-[#B7BDC2] hover:text-white",
- )}
- >
- {children}
- </button>
- );
-}
-
-export function LaunchTabs({
- onRepoSelection,
- isLoadingSettings = false,
-}: LaunchTabsProps) {
- const { t } = useTranslation("openhands");
- const { providers } = useUserProviders();
- const providersAreSet = providers.length > 0;
- const isCloud = useActiveBackend().backend.kind === "cloud";
- const [activeTab, setActiveTab] = React.useState<LaunchTab>("repositories");
-
- // If the active backend is cloud and the workspaces tab was previously
- // selected, snap back to repositories — workspaces don't apply to cloud.
- React.useEffect(() => {
- if (isCloud && activeTab === "workspaces") {
- setActiveTab("repositories");
- }
- }, [isCloud, activeTab]);
-
- return (
- <div className="flex flex-col gap-4">
- <div
- role="tablist"
- className="flex border-b border-[#727987]"
- data-testid="launch-tabs"
- >
- <TabButton
- testId="repositories-tab"
- isActive={activeTab === "repositories"}
- onClick={() => setActiveTab("repositories")}
- >
- {t(I18nKey.HOME$REPOSITORIES_TAB)}
- </TabButton>
- {!isCloud && (
- <TabButton
- testId="workspaces-tab"
- isActive={activeTab === "workspaces"}
- onClick={() => setActiveTab("workspaces")}
- >
- {t(I18nKey.HOME$WORKSPACES_TAB)}
- </TabButton>
- )}
- </div>
-
- <div className="min-h-[240px]">
- {activeTab === "repositories" && !providersAreSet && (
- <ConnectToProviderMessage />
- )}
- {activeTab === "repositories" && providersAreSet && (
- <RepositorySelectionForm
- onRepoSelection={onRepoSelection}
- isLoadingSettings={isLoadingSettings}
- />
- )}
- {activeTab === "workspaces" && !isCloud && (
- <WorkspaceSelectionForm isLoadingSettings={isLoadingSettings} />
- )}
- </div>
- </div>
- );
-}
diff --git a/src/components/features/home/repo-connector.tsx b/src/components/features/home/repo-connector.tsx
index 713445b637..702fa2c19e 100644
--- a/src/components/features/home/repo-connector.tsx
+++ b/src/components/features/home/repo-connector.tsx
@@ -1,23 +1,36 @@
-import { LaunchTabs } from "./launch-tabs";
+import { useActiveBackend } from "#/contexts/active-backend-context";
import { useUserProviders } from "#/hooks/use-user-providers";
import { GitRepository } from "#/types/git";
+import { ConnectToProviderMessage } from "./connect-to-provider-message";
+import { RepositorySelectionForm } from "./repo-selection-form";
+import { WorkspaceSelectionForm } from "./workspace-selection-form";
+
interface RepoConnectorProps {
onRepoSelection: (repo: GitRepository | null) => void;
}
export function RepoConnector({ onRepoSelection }: RepoConnectorProps) {
- const { isLoadingSettings } = useUserProviders();
+ const { isLoadingSettings, providers } = useUserProviders();
+ const isCloud = useActiveBackend().backend.kind === "cloud";
return (
<section
data-testid="repo-connector"
className="w-full flex flex-col gap-6 rounded-[12px] p-[20px] border border-[#727987] bg-[#26282D] min-h-[263.5px] relative"
>
- <LaunchTabs
- onRepoSelection={onRepoSelection}
- isLoadingSettings={isLoadingSettings}
- />
+ {isCloud ? (
+ providers.length > 0 ? (
+ <RepositorySelectionForm
+ onRepoSelection={onRepoSelection}
+ isLoadingSettings={isLoadingSettings}
+ />
+ ) : (
+ <ConnectToProviderMessage />
+ )
+ ) : (
+ <WorkspaceSelectionForm isLoadingSettings={isLoadingSettings} />
+ )}
</section>
);
}
diff --git a/src/components/features/home/workspace-dropdown/folder-browser-modal.tsx b/src/components/features/home/workspace-dropdown/folder-browser-modal.tsx
index 158d28032e..71824cea22 100644
--- a/src/components/features/home/workspace-dropdown/folder-browser-modal.tsx
+++ b/src/components/features/home/workspace-dropdown/folder-browser-modal.tsx
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";
import { BrandButton } from "#/components/features/settings/brand-button";
import { I18nKey } from "#/i18n/declaration";
-import { LocalWorkspace } from "#/types/workspace";
+import { LocalWorkspace, LocalWorkspaceParent } from "#/types/workspace";
import {
useHomeDirectory,
useSearchSubdirs,
@@ -17,6 +17,7 @@ interface FolderBrowserModalProps {
isOpen: boolean;
onClose: () => void;
onAdd: (items: LocalWorkspace[]) => void;
+ onAddParent?: (items: LocalWorkspaceParent[]) => void;
}
interface SidebarEntry {
@@ -101,6 +102,7 @@ export function FolderBrowserModal({
isOpen,
onClose,
onAdd,
+ onAddParent,
}: FolderBrowserModalProps) {
const { t } = useTranslation("openhands");
const [currentPath, setCurrentPath] = useState<string | null>(null);
@@ -134,14 +136,33 @@ export function FolderBrowserModal({
const subdirs = listing?.items ?? [];
const parent = currentPath ? getParentPath(currentPath) : null;
- const handleUseThisFolder = () => {
- if (subdirs.length === 0) return;
- const items: LocalWorkspace[] = subdirs.map((s) => ({
- id: s.path,
- name: s.name,
- path: s.path,
- }));
- onAdd(items);
+ const getBasename = (path: string): string => {
+ const trimmed = path.replace(/\/+$/, "");
+ if (!trimmed) return "/";
+ const idx = trimmed.lastIndexOf("/");
+ return idx >= 0 ? trimmed.slice(idx + 1) || "/" : trimmed;
+ };
+
+ const handleAddDirectory = () => {
+ if (!currentPath) return;
+ const item: LocalWorkspace = {
+ id: currentPath,
+ name: getBasename(currentPath),
+ path: currentPath,
+ };
+ onAdd([item]);
+ onClose();
+ };
+
+ const handleAddAllSubdirectories = () => {
+ if (!currentPath || !onAddParent) return;
+ onAddParent([
+ {
+ id: currentPath,
+ name: getBasename(currentPath),
+ path: currentPath,
+ },
+ ]);
onClose();
};
@@ -259,7 +280,7 @@ export function FolderBrowserModal({
</div>
{/* Footer */}
- <div className="flex justify-end gap-2 px-5 py-3 border-t border-[#727987]">
+ <div className="flex items-center justify-end gap-2 px-5 py-3 border-t border-[#727987]">
<BrandButton
type="button"
variant="secondary"
@@ -268,14 +289,25 @@ export function FolderBrowserModal({
>
{t(I18nKey.HOME$CANCEL)}
</BrandButton>
+ {onAddParent && (
+ <BrandButton
+ type="button"
+ variant="secondary"
+ onClick={handleAddAllSubdirectories}
+ isDisabled={!currentPath || isLoading}
+ testId="folder-browser-add-all-subdirs"
+ >
+ {t(I18nKey.HOME$ADD_ALL_SUBDIRECTORIES)}
+ </BrandButton>
+ )}
<BrandButton
type="button"
variant="primary"
- onClick={handleUseThisFolder}
- isDisabled={subdirs.length === 0}
+ onClick={handleAddDirectory}
+ isDisabled={!currentPath || isLoading}
testId="folder-browser-use"
>
- {t(I18nKey.HOME$USE_THIS_FOLDER)}
+ {t(I18nKey.HOME$ADD_THIS_DIRECTORY)}
</BrandButton>
</div>
</div>
diff --git a/src/components/features/home/workspace-dropdown/manage-workspaces-modal.tsx b/src/components/features/home/workspace-dropdown/manage-workspaces-modal.tsx
new file mode 100644
index 0000000000..df78d3d112
--- /dev/null
+++ b/src/components/features/home/workspace-dropdown/manage-workspaces-modal.tsx
@@ -0,0 +1,239 @@
+import React from "react";
+import { useTranslation } from "react-i18next";
+
+import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";
+import { ConfirmationModal } from "#/components/shared/modals/confirmation-modal";
+import { BrandButton } from "#/components/features/settings/brand-button";
+import { I18nKey } from "#/i18n/declaration";
+import { LocalWorkspace, LocalWorkspaceParent } from "#/types/workspace";
+import { cn } from "#/utils/utils";
+import FolderIcon from "#/icons/folder.svg?react";
+import CloseIcon from "#/icons/close.svg?react";
+
+interface ManageWorkspacesModalProps {
+ isOpen: boolean;
+ workspaces: LocalWorkspace[];
+ workspaceParents?: LocalWorkspaceParent[];
+ onClose: () => void;
+ onRemove: (path: string) => void;
+ onRemoveParent?: (path: string) => void;
+}
+
+type PendingRemoval =
+ | { type: "workspace"; path: string; text: string }
+ | { type: "parent"; path: string; text: string };
+
+export function ManageWorkspacesModal({
+ isOpen,
+ workspaces,
+ workspaceParents = [],
+ onClose,
+ onRemove,
+ onRemoveParent,
+}: ManageWorkspacesModalProps) {
+ const { t } = useTranslation("openhands");
+ const [pendingRemoval, setPendingRemoval] =
+ React.useState<PendingRemoval | null>(null);
+
+ if (!isOpen) return null;
+
+ // Workspaces from a parent are read-only here; users remove the parent.
+ const staticWorkspaces = workspaces.filter((w) => !w.parentPath);
+ const dynamicWorkspacesByParent = new Map<string, LocalWorkspace[]>();
+ workspaces.forEach((w) => {
+ if (!w.parentPath) return;
+ const list = dynamicWorkspacesByParent.get(w.parentPath) ?? [];
+ list.push(w);
+ dynamicWorkspacesByParent.set(w.parentPath, list);
+ });
+
+ const hasContent = staticWorkspaces.length > 0 || workspaceParents.length > 0;
+
+ const handleConfirmRemoval = () => {
+ if (!pendingRemoval) return;
+
+ if (pendingRemoval.type === "workspace") {
+ onRemove(pendingRemoval.path);
+ } else {
+ onRemoveParent?.(pendingRemoval.path);
+ }
+
+ setPendingRemoval(null);
+ };
+
+ return (
+ <>
+ <ModalBackdrop
+ onClose={onClose}
+ aria-label={t(I18nKey.HOME$MANAGE_WORKSPACES)}
+ >
+ <div
+ data-testid="manage-workspaces-modal"
+ className={cn(
+ "flex flex-col bg-[#26282D] border border-[#727987] rounded-xl",
+ "w-[560px] max-w-[90vw] max-h-[70vh]",
+ )}
+ >
+ <div className="flex items-center justify-between px-5 py-3 border-b border-[#727987]">
+ <span className="text-sm font-semibold text-white">
+ {t(I18nKey.HOME$MANAGE_WORKSPACES)}
+ </span>
+ </div>
+
+ <div
+ className="flex-1 overflow-auto custom-scrollbar-always"
+ data-testid="manage-workspaces-list"
+ >
+ {!hasContent && (
+ <p className="px-5 py-6 text-sm text-[#B7BDC2] text-center">
+ {t(I18nKey.HOME$MANAGE_WORKSPACES_EMPTY)}
+ </p>
+ )}
+
+ {staticWorkspaces.length > 0 && (
+ <ul>
+ {staticWorkspaces.map((workspace) => (
+ <li
+ key={workspace.id}
+ className="flex items-center gap-3 px-5 py-2 border-b border-[#363840] last:border-b-0"
+ data-testid={`manage-workspaces-row-${workspace.name}`}
+ >
+ <FolderIcon width={16} height={16} className="shrink-0" />
+ <div className="flex flex-col min-w-0 flex-1">
+ <span className="text-sm text-white truncate">
+ {workspace.name}
+ </span>
+ <span className="text-xs text-[#A3A3A3] truncate">
+ {workspace.path}
+ </span>
+ </div>
+ <button
+ type="button"
+ onClick={() =>
+ setPendingRemoval({
+ type: "workspace",
+ path: workspace.path,
+ text: t(I18nKey.HOME$REMOVE_WORKSPACE_CONFIRMATION, {
+ name: workspace.name,
+ }),
+ })
+ }
+ aria-label={t(I18nKey.HOME$REMOVE_WORKSPACE)}
+ data-testid={`manage-workspaces-remove-${workspace.name}`}
+ className="flex items-center gap-1 px-2 py-1 rounded text-xs text-[#D6D6D6] hover:bg-[#5C5D62] hover:text-white cursor-pointer"
+ >
+ <CloseIcon width={12} height={12} />
+ <span>{t(I18nKey.HOME$REMOVE_WORKSPACE)}</span>
+ </button>
+ </li>
+ ))}
+ </ul>
+ )}
+
+ {workspaceParents.length > 0 && (
+ <div data-testid="manage-workspaces-parents-section">
+ <div className="px-5 pt-3 pb-1 text-[11px] uppercase tracking-wide text-[#A3A3A3] font-semibold">
+ {t(I18nKey.HOME$WORKSPACE_PARENTS)}
+ </div>
+ <ul>
+ {workspaceParents.map((parent) => {
+ const children =
+ dynamicWorkspacesByParent.get(parent.path) ?? [];
+ return (
+ <li
+ key={parent.id}
+ className="border-b border-[#363840] last:border-b-0"
+ data-testid={`manage-workspaces-parent-row-${parent.name}`}
+ >
+ <div className="flex items-center gap-3 px-5 py-2">
+ <FolderIcon
+ width={16}
+ height={16}
+ className="shrink-0"
+ />
+ <div className="flex flex-col min-w-0 flex-1">
+ <span className="text-sm text-white truncate">
+ {parent.name}
+ </span>
+ <span className="text-xs text-[#A3A3A3] truncate">
+ {parent.path}
+ </span>
+ </div>
+ {onRemoveParent && (
+ <button
+ type="button"
+ onClick={() =>
+ setPendingRemoval({
+ type: "parent",
+ path: parent.path,
+ text: t(
+ I18nKey.HOME$REMOVE_WORKSPACE_PARENT_CONFIRMATION,
+ {
+ name: parent.name,
+ count: children.length,
+ },
+ ),
+ })
+ }
+ aria-label={t(
+ I18nKey.HOME$REMOVE_WORKSPACE_PARENT,
+ )}
+ data-testid={`manage-workspaces-remove-parent-${parent.name}`}
+ className="flex items-center gap-1 px-2 py-1 rounded text-xs text-[#D6D6D6] hover:bg-[#5C5D62] hover:text-white cursor-pointer"
+ >
+ <CloseIcon width={12} height={12} />
+ <span>
+ {t(I18nKey.HOME$REMOVE_WORKSPACE_PARENT)}
+ </span>
+ </button>
+ )}
+ </div>
+ {children.length > 0 && (
+ <ul className="pb-2">
+ {children.map((child) => (
+ <li
+ key={child.id}
+ className="flex items-center gap-3 px-5 pl-10 py-1 text-xs text-[#B7BDC2]"
+ data-testid={`manage-workspaces-child-${child.name}`}
+ >
+ <FolderIcon
+ width={12}
+ height={12}
+ className="shrink-0 opacity-70"
+ />
+ <span className="truncate">{child.name}</span>
+ </li>
+ ))}
+ </ul>
+ )}
+ </li>
+ );
+ })}
+ </ul>
+ </div>
+ )}
+ </div>
+
+ <div className="flex justify-end gap-2 px-5 py-3 border-t border-[#727987]">
+ <BrandButton
+ type="button"
+ variant="primary"
+ onClick={onClose}
+ testId="manage-workspaces-done"
+ >
+ {t(I18nKey.HOME$DONE)}
+ </BrandButton>
+ </div>
+ </div>
+ </ModalBackdrop>
+
+ {pendingRemoval && (
+ <ConfirmationModal
+ text={pendingRemoval.text}
+ onConfirm={handleConfirmRemoval}
+ onCancel={() => setPendingRemoval(null)}
+ />
+ )}
+ </>
+ );
+}
diff --git a/src/components/features/home/workspace-dropdown/workspace-dropdown.tsx b/src/components/features/home/workspace-dropdown/workspace-dropdown.tsx
index c6745af5b5..4771faf509 100644
--- a/src/components/features/home/workspace-dropdown/workspace-dropdown.tsx
+++ b/src/components/features/home/workspace-dropdown/workspace-dropdown.tsx
@@ -19,8 +19,16 @@ export interface WorkspaceDropdownProps {
placeholder?: string;
className?: string;
disabled?: boolean;
+ /**
+ * Whether to surface the "Manage Workspaces" entry in the sticky footer.
+ * Defaults to `workspaces.length > 0` when omitted; pass an explicit value
+ * if there are workspace parents (whose children may not have loaded yet)
+ * that should also count as "manageable".
+ */
+ showManage?: boolean;
onChange: (workspace: LocalWorkspace | null) => void;
onAddClick: () => void;
+ onManageClick: () => void;
}
export function WorkspaceDropdown({
@@ -29,8 +37,10 @@ export function WorkspaceDropdown({
placeholder,
className,
disabled = false,
+ showManage,
onChange,
onAddClick,
+ onManageClick,
}: WorkspaceDropdownProps) {
const { t } = useTranslation("openhands");
const [inputValue, setInputValue] = useState(value?.name ?? "");
@@ -114,25 +124,46 @@ export function WorkspaceDropdown({
const stickyFooterItem = useMemo(
() => (
- <button
- type="button"
- data-testid="add-workspaces-button"
- className="flex items-center w-full px-2 py-2 text-sm text-white hover:bg-[#5C5D62] rounded-md transition-colors duration-150 font-normal"
- onMouseDown={(e) => {
- e.preventDefault();
- e.stopPropagation();
- }}
- onClick={(e) => {
- e.preventDefault();
- e.stopPropagation();
- closeMenu();
- onAddClick();
- }}
- >
- {t(I18nKey.HOME$ADD_WORKSPACES)}
- </button>
+ <div className="flex flex-col">
+ <button
+ type="button"
+ data-testid="add-workspaces-button"
+ className="flex items-center w-full px-2 py-2 text-sm text-white hover:bg-[#5C5D62] rounded-md transition-colors duration-150 font-normal"
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ }}
+ onClick={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ closeMenu();
+ onAddClick();
+ }}
+ >
+ {t(I18nKey.HOME$ADD_WORKSPACES)}
+ </button>
+ {(showManage ?? workspaces.length > 0) && (
+ <button
+ type="button"
+ data-testid="manage-workspaces-button"
+ className="flex items-center w-full px-2 py-2 text-sm text-white hover:bg-[#5C5D62] rounded-md transition-colors duration-150 font-normal"
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ }}
+ onClick={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ closeMenu();
+ onManageClick();
+ }}
+ >
+ {t(I18nKey.HOME$MANAGE_WORKSPACES)}
+ </button>
+ )}
+ </div>
),
- [onAddClick, t, closeMenu],
+ [onAddClick, onManageClick, t, closeMenu, workspaces.length, showManage],
);
return (
diff --git a/src/components/features/home/workspace-selection-form.tsx b/src/components/features/home/workspace-selection-form.tsx
index 3907d5c61f..7533b2c5d5 100644
--- a/src/components/features/home/workspace-selection-form.tsx
+++ b/src/components/features/home/workspace-selection-form.tsx
@@ -5,6 +5,7 @@ import { useCreateConversation } from "#/hooks/mutation/use-create-conversation"
import { useNavigation } from "#/context/navigation-context";
import { useIsCreatingConversation } from "#/hooks/use-is-creating-conversation";
import { useWorkspacesStore } from "#/stores/workspaces-store";
+import { useResolvedWorkspaces } from "#/hooks/query/use-resolved-workspaces";
import { LocalWorkspace } from "#/types/workspace";
import { I18nKey } from "#/i18n/declaration";
import FolderIcon from "#/icons/folder.svg?react";
@@ -12,6 +13,7 @@ import FolderIcon from "#/icons/folder.svg?react";
import { BrandButton } from "../settings/brand-button";
import { WorkspaceDropdown } from "./workspace-dropdown/workspace-dropdown";
import { FolderBrowserModal } from "./workspace-dropdown/folder-browser-modal";
+import { ManageWorkspacesModal } from "./workspace-dropdown/manage-workspaces-modal";
interface WorkspaceSelectionFormProps {
isLoadingSettings?: boolean;
@@ -23,10 +25,22 @@ export function WorkspaceSelectionForm({
const { t } = useTranslation("openhands");
const { navigate } = useNavigation();
- const { workspaces, addWorkspaces } = useWorkspacesStore();
+ const {
+ workspaceParents,
+ addWorkspaces,
+ removeWorkspace,
+ addWorkspaceParents,
+ removeWorkspaceParent,
+ } = useWorkspacesStore();
+ const {
+ workspaces,
+ isLoading: isLoadingWorkspaces,
+ isError: hasWorkspaceError,
+ } = useResolvedWorkspaces();
const [selectedWorkspace, setSelectedWorkspace] =
React.useState<LocalWorkspace | null>(null);
const [isBrowserOpen, setIsBrowserOpen] = React.useState(false);
+ const [isManageOpen, setIsManageOpen] = React.useState(false);
const {
mutate: createConversation,
@@ -37,6 +51,16 @@ export function WorkspaceSelectionForm({
const isCreatingConversation =
isPending || isSuccess || isCreatingConversationElsewhere;
+ const showWorkspaceStatus = workspaceParents.length > 0;
+ let workspaceStatusText: string | null = null;
+ if (isLoadingWorkspaces) {
+ workspaceStatusText = t(I18nKey.HOME$LOADING);
+ } else if (hasWorkspaceError) {
+ workspaceStatusText = t(I18nKey.HOME$WORKSPACE_SCAN_ERROR);
+ }
+ const isDropdownDisabled =
+ isLoadingSettings || (isLoadingWorkspaces && workspaces.length === 0);
+
const handleLaunch = () => {
if (!selectedWorkspace) return;
createConversation(
@@ -60,11 +84,23 @@ export function WorkspaceSelectionForm({
<WorkspaceDropdown
workspaces={workspaces}
value={selectedWorkspace}
- disabled={isLoadingSettings}
+ placeholder={isDropdownDisabled ? t(I18nKey.HOME$LOADING) : undefined}
+ disabled={isDropdownDisabled}
+ showManage={workspaces.length > 0 || workspaceParents.length > 0}
onChange={setSelectedWorkspace}
onAddClick={() => setIsBrowserOpen(true)}
+ onManageClick={() => setIsManageOpen(true)}
className="max-w-auto"
/>
+
+ {showWorkspaceStatus && workspaceStatusText && (
+ <p
+ className="px-1 text-xs text-[#B7BDC2]"
+ data-testid="workspace-status-message"
+ >
+ {workspaceStatusText}
+ </p>
+ )}
</div>
<BrandButton
@@ -85,6 +121,26 @@ export function WorkspaceSelectionForm({
isOpen={isBrowserOpen}
onClose={() => setIsBrowserOpen(false)}
onAdd={(items) => addWorkspaces(items)}
+ onAddParent={(items) => addWorkspaceParents(items)}
+ />
+
+ <ManageWorkspacesModal
+ isOpen={isManageOpen}
+ workspaces={workspaces}
+ workspaceParents={workspaceParents}
+ onClose={() => setIsManageOpen(false)}
+ onRemove={(path) => {
+ if (selectedWorkspace?.path === path) {
+ setSelectedWorkspace(null);
+ }
+ removeWorkspace(path);
+ }}
+ onRemoveParent={(path) => {
+ if (selectedWorkspace?.parentPath === path) {
+ setSelectedWorkspace(null);
+ }
+ removeWorkspaceParent(path);
+ }}
/>
</div>
);
diff --git a/src/hooks/query/use-resolved-workspaces.ts b/src/hooks/query/use-resolved-workspaces.ts
new file mode 100644
index 0000000000..c0852f22b5
--- /dev/null
+++ b/src/hooks/query/use-resolved-workspaces.ts
@@ -0,0 +1,79 @@
+import { useMemo } from "react";
+import { useQueries } from "@tanstack/react-query";
+
+import FilesService from "#/api/files-service/files-service.api";
+import { useWorkspacesStore } from "#/stores/workspaces-store";
+import { LocalWorkspace } from "#/types/workspace";
+
+interface UseResolvedWorkspacesResult {
+ workspaces: LocalWorkspace[];
+ isLoading: boolean;
+ isError: boolean;
+}
+
+/**
+ * Returns the merged list of workspaces to display:
+ * - workspaces explicitly added by the user (from the persisted store), and
+ * - the immediate subdirectories of every saved "workspace parent",
+ * fetched dynamically.
+ *
+ * Static workspaces always take precedence over a dynamic child with the
+ * same path so that user-selected names/ids are preserved.
+ */
+export function useResolvedWorkspaces(): UseResolvedWorkspacesResult {
+ const workspaces = useWorkspacesStore((s) => s.workspaces);
+ const workspaceParents = useWorkspacesStore((s) => s.workspaceParents);
+
+ const parentQueries = useQueries({
+ queries: workspaceParents.map((parent) => ({
+ queryKey: ["file", "search_subdirs", parent.path],
+ queryFn: () => FilesService.searchSubdirs(parent.path),
+ retry: false,
+ meta: { disableToast: true },
+ })),
+ });
+
+ const isLoading = parentQueries.some((q) => q.isLoading);
+ const isError = parentQueries.some((q) => q.isError);
+
+ // Stable string fingerprint that changes whenever any parent's subdir
+ // results change. Avoids spreading timestamps into the `useMemo` deps,
+ // which would change the array length as parents are added/removed.
+ const queriesFingerprint = parentQueries
+ .map((q) => `${q.dataUpdatedAt ?? 0}:${q.status}`)
+ .join("|");
+
+ const merged = useMemo(() => {
+ const byPath = new Map<string, LocalWorkspace>();
+ const resultsByParent = new Map(
+ workspaceParents.map((parent, index) => [
+ parent.path,
+ parentQueries[index],
+ ]),
+ );
+
+ workspaceParents.forEach((parent) => {
+ const result = resultsByParent.get(parent.path);
+ const items = result?.data?.items ?? [];
+ items.forEach((entry) => {
+ if (byPath.has(entry.path)) return;
+ byPath.set(entry.path, {
+ id: entry.path,
+ name: entry.name,
+ path: entry.path,
+ parentPath: parent.path,
+ });
+ });
+ });
+
+ // Static workspaces win on duplicate paths.
+ workspaces.forEach((w) => {
+ byPath.set(w.path, w);
+ });
+
+ return Array.from(byPath.values());
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [workspaces, workspaceParents, queriesFingerprint]);
+
+ return { workspaces: merged, isLoading, isError };
+}
diff --git a/src/i18n/translation.json b/src/i18n/translation.json
index df114d4ffb..72fdfa0aee 100644
--- a/src/i18n/translation.json
+++ b/src/i18n/translation.json
@@ -9486,10 +9486,38 @@
"ca": "Esteu segur que voleu posar en pausa aquesta conversa?"
},
"CONVERSATION$CONFIRM_CLOSE_CONVERSATION": {
- "en": "Confirm Stop Conversation"
+ "en": "Confirm Stop Conversation",
+ "ja": "会話の停止を確認",
+ "zh-CN": "确认停止对话",
+ "zh-TW": "確認停止對話",
+ "ko-KR": "대화 중지 확인",
+ "no": "Bekreft stopp av samtale",
+ "it": "Conferma interruzione conversazione",
+ "pt": "Confirmar parada da conversa",
+ "es": "Confirmar detención de la conversación",
+ "ar": "تأكيد إيقاف المحادثة",
+ "fr": "Confirmer l'arrêt de la conversation",
+ "tr": "Konuşmayı durdurmayı onayla",
+ "de": "Konversation stoppen bestätigen",
+ "uk": "Підтвердити зупинку розмови",
+ "ca": "Confirma aturar la conversa"
},
"CONVERSATION$CLOSE_CONVERSATION_WARNING": {
- "en": "Are you sure you want to stop this conversation?"
+ "en": "Are you sure you want to stop this conversation?",
+ "ja": "この会話を停止してもよろしいですか?",
+ "zh-CN": "您确定要停止此对话吗?",
+ "zh-TW": "您確定要停止此對話嗎?",
+ "ko-KR": "이 대화를 중지하시겠습니까?",
+ "no": "Er du sikker på at du vil stoppe denne samtalen?",
+ "it": "Sei sicuro di voler interrompere questa conversazione?",
+ "pt": "Tem certeza de que deseja parar esta conversa?",
+ "es": "¿Está seguro de que desea detener esta conversación?",
+ "ar": "هل أنت متأكد من أنك تريد إيقاف هذه المحادثة؟",
+ "fr": "Êtes-vous sûr de vouloir arrêter cette conversation ?",
+ "tr": "Bu konuşmayı durdurmak istediğinizden emin misiniz?",
+ "de": "Möchten Sie diese Konversation wirklich stoppen?",
+ "uk": "Ви впевнені, що хочете зупинити цю розмову?",
+ "ca": "Esteu segur que voleu aturar aquesta conversa?"
},
"CONVERSATION$STOP_WARNING": {
"en": "Are you sure you want to pause this conversation?",
@@ -11074,215 +11102,904 @@
},
"AUTOMATIONS$TITLE": {
"en": "Automations",
- "ja": "オートメーション"
+ "ja": "オートメーション",
+ "zh-CN": "自动化",
+ "zh-TW": "自動化",
+ "ko-KR": "자동화",
+ "no": "Automatiseringer",
+ "it": "Automazioni",
+ "pt": "Automações",
+ "es": "Automatizaciones",
+ "ar": "الأتمتة",
+ "fr": "Automatisations",
+ "tr": "Otomasyonlar",
+ "de": "Automatisierungen",
+ "uk": "Автоматизації",
+ "ca": "Automatitzacions"
},
"AUTOMATIONS$SUBTITLE": {
"en": "View active and inactive automations, search by metadata, and inspect read-only details.",
- "ja": "アクティブおよび非アクティブなオートメーションを表示し、メタデータで検索し、読み取り専用の詳細を確認します。"
+ "ja": "アクティブおよび非アクティブなオートメーションを表示し、メタデータで検索し、読み取り専用の詳細を確認します。",
+ "zh-CN": "查看活动和非活动的自动化,按元数据搜索,并检查只读详情。",
+ "zh-TW": "檢視作用中與非作用中的自動化,依中繼資料搜尋,並檢查唯讀詳情。",
+ "ko-KR": "활성 및 비활성 자동화를 보고, 메타데이터로 검색하고, 읽기 전용 세부 정보를 확인하세요.",
+ "no": "Vis aktive og inaktive automatiseringer, søk etter metadata og inspiser skrivebeskyttede detaljer.",
+ "it": "Visualizza automazioni attive e inattive, cerca per metadati e ispeziona i dettagli in sola lettura.",
+ "pt": "Visualize automações ativas e inativas, pesquise por metadados e inspecione detalhes somente leitura.",
+ "es": "Vea las automatizaciones activas e inactivas, busque por metadatos e inspeccione los detalles de solo lectura.",
+ "ar": "اعرض الأتمتة النشطة وغير النشطة، وابحث حسب البيانات الوصفية، وافحص التفاصيل للقراءة فقط.",
+ "fr": "Affichez les automatisations actives et inactives, recherchez par métadonnées et inspectez les détails en lecture seule.",
+ "tr": "Aktif ve aktif olmayan otomasyonları görüntüleyin, meta verilere göre arama yapın ve salt okunur ayrıntıları inceleyin.",
+ "de": "Aktive und inaktive Automatisierungen anzeigen, nach Metadaten suchen und schreibgeschützte Details überprüfen.",
+ "uk": "Переглядайте активні та неактивні автоматизації, шукайте за метаданими та переглядайте деталі лише для читання.",
+ "ca": "Visualitzeu les automatitzacions actives i inactives, cerqueu per metadades i inspeccioneu els detalls de només lectura."
},
"AUTOMATIONS$EMPTY": {
"en": "No automations configured",
- "ja": "オートメーションが設定されていません"
+ "ja": "オートメーションが設定されていません",
+ "zh-CN": "未配置自动化",
+ "zh-TW": "未設定自動化",
+ "ko-KR": "구성된 자동화가 없습니다",
+ "no": "Ingen automatiseringer konfigurert",
+ "it": "Nessuna automazione configurata",
+ "pt": "Nenhuma automação configurada",
+ "es": "No hay automatizaciones configuradas",
+ "ar": "لم يتم تكوين أي أتمتة",
+ "fr": "Aucune automatisation configurée",
+ "tr": "Yapılandırılmış otomasyon yok",
+ "de": "Keine Automatisierungen konfiguriert",
+ "uk": "Автоматизації не налаштовано",
+ "ca": "No hi ha automatitzacions configurades"
},
"AUTOMATIONS$EMPTY_HOW_TO_CREATE_TITLE": {
"en": "How to create an automation",
- "ja": "オートメーションの作成方法"
+ "ja": "オートメーションの作成方法",
+ "zh-CN": "如何创建自动化",
+ "zh-TW": "如何建立自動化",
+ "ko-KR": "자동화를 만드는 방법",
+ "no": "Slik oppretter du en automatisering",
+ "it": "Come creare un'automazione",
+ "pt": "Como criar uma automação",
+ "es": "Cómo crear una automatización",
+ "ar": "كيفية إنشاء أتمتة",
+ "fr": "Comment créer une automatisation",
+ "tr": "Otomasyon nasıl oluşturulur",
+ "de": "So erstellen Sie eine Automatisierung",
+ "uk": "Як створити автоматизацію",
+ "ca": "Com crear una automatització"
},
"AUTOMATIONS$EMPTY_OPTION_PLUGIN_TITLE": {
"en": "Using Claude Code or Codex",
- "ja": "Claude CodeまたはCodexを使用"
+ "ja": "Claude CodeまたはCodexを使用",
+ "zh-CN": "使用 Claude Code 或 Codex",
+ "zh-TW": "使用 Claude Code 或 Codex",
+ "ko-KR": "Claude Code 또는 Codex 사용",
+ "no": "Bruke Claude Code eller Codex",
+ "it": "Utilizzo di Claude Code o Codex",
+ "pt": "Usando Claude Code ou Codex",
+ "es": "Uso de Claude Code o Codex",
+ "ar": "استخدام Claude Code أو Codex",
+ "fr": "Utilisation de Claude Code ou Codex",
+ "tr": "Claude Code veya Codex kullanma",
+ "de": "Claude Code oder Codex verwenden",
+ "uk": "Використання Claude Code або Codex",
+ "ca": "Ús de Claude Code o Codex"
},
"AUTOMATIONS$EMPTY_OPTION_PLUGIN_DESC": {
"en": "and run the command:",
- "ja": "以下のコマンドを実行:"
+ "ja": "以下のコマンドを実行:",
+ "zh-CN": "并运行以下命令:",
+ "zh-TW": "並執行下列命令:",
+ "ko-KR": "그리고 다음 명령을 실행하세요:",
+ "no": "og kjør kommandoen:",
+ "it": "ed esegui il comando:",
+ "pt": "e execute o comando:",
+ "es": "y ejecute el comando:",
+ "ar": "ثم قم بتشغيل الأمر:",
+ "fr": "et exécutez la commande :",
+ "tr": "ve komutu çalıştırın:",
+ "de": "und führen Sie den Befehl aus:",
+ "uk": "та виконайте команду:",
+ "ca": "i executeu l'ordre:"
},
"AUTOMATIONS$EMPTY_INSTALL_PLUGIN": {
"en": "Install the OpenHands plugin",
- "ja": "OpenHandsプラグインをインストール"
+ "ja": "OpenHandsプラグインをインストール",
+ "zh-CN": "安装 OpenHands 插件",
+ "zh-TW": "安裝 OpenHands 外掛",
+ "ko-KR": "OpenHands 플러그인 설치",
+ "no": "Installer OpenHands-plugin",
+ "it": "Installa il plugin OpenHands",
+ "pt": "Instalar o plugin OpenHands",
+ "es": "Instalar el complemento OpenHands",
+ "ar": "تثبيت إضافة OpenHands",
+ "fr": "Installer le plugin OpenHands",
+ "tr": "OpenHands eklentisini yükle",
+ "de": "OpenHands-Plugin installieren",
+ "uk": "Встановити плагін OpenHands",
+ "ca": "Instal·la el connector OpenHands"
},
"AUTOMATIONS$EMPTY_OPTION_CONVERSATION_TITLE": {
"en": "Using OpenHands Cloud",
- "ja": "OpenHands Cloudを使用"
+ "ja": "OpenHands Cloudを使用",
+ "zh-CN": "使用 OpenHands Cloud",
+ "zh-TW": "使用 OpenHands Cloud",
+ "ko-KR": "OpenHands Cloud 사용",
+ "no": "Bruke OpenHands Cloud",
+ "it": "Utilizzo di OpenHands Cloud",
+ "pt": "Usando OpenHands Cloud",
+ "es": "Uso de OpenHands Cloud",
+ "ar": "استخدام OpenHands Cloud",
+ "fr": "Utilisation d'OpenHands Cloud",
+ "tr": "OpenHands Cloud kullanma",
+ "de": "OpenHands Cloud verwenden",
+ "uk": "Використання OpenHands Cloud",
+ "ca": "Ús d'OpenHands Cloud"
},
"AUTOMATIONS$EMPTY_OPTION_CONVERSATION_DESC": {
"en": "Start a new conversation and ask OpenHands to create an automation for you.",
- "ja": "新しい会話を開始し、OpenHandsにオートメーションの作成を依頼してください。"
+ "ja": "新しい会話を開始し、OpenHandsにオートメーションの作成を依頼してください。",
+ "zh-CN": "开始新对话,请 OpenHands 为您创建自动化。",
+ "zh-TW": "開始新對話,並請 OpenHands 為您建立自動化。",
+ "ko-KR": "새 대화를 시작하고 OpenHands에 자동화 생성을 요청하세요.",
+ "no": "Start en ny samtale og be OpenHands om å opprette en automatisering for deg.",
+ "it": "Avvia una nuova conversazione e chiedi a OpenHands di creare un'automazione per te.",
+ "pt": "Inicie uma nova conversa e peça ao OpenHands para criar uma automação para você.",
+ "es": "Inicie una nueva conversación y pídale a OpenHands que cree una automatización para usted.",
+ "ar": "ابدأ محادثة جديدة واطلب من OpenHands إنشاء أتمتة لك.",
+ "fr": "Démarrez une nouvelle conversation et demandez à OpenHands de créer une automatisation pour vous.",
+ "tr": "Yeni bir konuşma başlatın ve OpenHands'ten sizin için bir otomasyon oluşturmasını isteyin.",
+ "de": "Starten Sie eine neue Konversation und bitten Sie OpenHands, eine Automatisierung für Sie zu erstellen.",
+ "uk": "Розпочніть нову розмову та попросіть OpenHands створити для вас автоматизацію.",
+ "ca": "Inicieu una nova conversa i demaneu a OpenHands que creï una automatització per a vós."
},
"AUTOMATIONS$EMPTY_START_CONVERSATION": {
"en": "Start a conversation",
- "ja": "会話を開始"
+ "ja": "会話を開始",
+ "zh-CN": "开始对话",
+ "zh-TW": "開始對話",
+ "ko-KR": "대화 시작",
+ "no": "Start en samtale",
+ "it": "Avvia una conversazione",
+ "pt": "Iniciar uma conversa",
+ "es": "Iniciar una conversación",
+ "ar": "بدء محادثة",
+ "fr": "Démarrer une conversation",
+ "tr": "Konuşma başlat",
+ "de": "Konversation starten",
+ "uk": "Розпочати розмову",
+ "ca": "Inicia una conversa"
},
"AUTOMATIONS$EMPTY_LEARN_MORE": {
"en": "Learn more in the documentation",
- "ja": "ドキュメントで詳細を確認"
+ "ja": "ドキュメントで詳細を確認",
+ "zh-CN": "在文档中了解更多",
+ "zh-TW": "在文件中了解更多",
+ "ko-KR": "설명서에서 자세히 알아보기",
+ "no": "Lær mer i dokumentasjonen",
+ "it": "Scopri di più nella documentazione",
+ "pt": "Saiba mais na documentação",
+ "es": "Más información en la documentación",
+ "ar": "اعرف المزيد في الوثائق",
+ "fr": "En savoir plus dans la documentation",
+ "tr": "Belgelerde daha fazla bilgi edinin",
+ "de": "Erfahren Sie mehr in der Dokumentation",
+ "uk": "Дізнайтеся більше в документації",
+ "ca": "Més informació a la documentació"
},
"AUTOMATIONS$SEARCH_PLACEHOLDER": {
"en": "Search automations...",
- "ja": "オートメーションを検索..."
+ "ja": "オートメーションを検索...",
+ "zh-CN": "搜索自动化...",
+ "zh-TW": "搜尋自動化...",
+ "ko-KR": "자동화 검색...",
+ "no": "Søk i automatiseringer...",
+ "it": "Cerca automazioni...",
+ "pt": "Pesquisar automações...",
+ "es": "Buscar automatizaciones...",
+ "ar": "البحث عن الأتمتة...",
+ "fr": "Rechercher des automatisations...",
+ "tr": "Otomasyonları ara...",
+ "de": "Automatisierungen suchen...",
+ "uk": "Пошук автоматизацій...",
+ "ca": "Cerca automatitzacions..."
},
"AUTOMATIONS$ACTIVE": {
"en": "Active",
- "ja": "アクティブ"
+ "ja": "アクティブ",
+ "zh-CN": "活动",
+ "zh-TW": "作用中",
+ "ko-KR": "활성",
+ "no": "Aktiv",
+ "it": "Attiva",
+ "pt": "Ativa",
+ "es": "Activa",
+ "ar": "نشط",
+ "fr": "Actif",
+ "tr": "Aktif",
+ "de": "Aktiv",
+ "uk": "Активний",
+ "ca": "Actiu"
},
"AUTOMATIONS$INACTIVE": {
"en": "Inactive",
- "ja": "非アクティブ"
+ "ja": "非アクティブ",
+ "zh-CN": "非活动",
+ "zh-TW": "非作用中",
+ "ko-KR": "비활성",
+ "no": "Inaktiv",
+ "it": "Inattiva",
+ "pt": "Inativa",
+ "es": "Inactiva",
+ "ar": "غير نشط",
+ "fr": "Inactif",
+ "tr": "Pasif",
+ "de": "Inaktiv",
+ "uk": "Неактивний",
+ "ca": "Inactiu"
},
"AUTOMATIONS$TURN_ON": {
"en": "Turn on",
- "ja": "オンにする"
+ "ja": "オンにする",
+ "zh-CN": "开启",
+ "zh-TW": "開啟",
+ "ko-KR": "켜기",
+ "no": "Slå på",
+ "it": "Attiva",
+ "pt": "Ativar",
+ "es": "Activar",
+ "ar": "تشغيل",
+ "fr": "Activer",
+ "tr": "Aç",
+ "de": "Einschalten",
+ "uk": "Увімкнути",
+ "ca": "Activa"
},
"AUTOMATIONS$TURN_OFF": {
"en": "Turn off",
- "ja": "オフにする"
+ "ja": "オフにする",
+ "zh-CN": "关闭",
+ "zh-TW": "關閉",
+ "ko-KR": "끄기",
+ "no": "Slå av",
+ "it": "Disattiva",
+ "pt": "Desativar",
+ "es": "Desactivar",
+ "ar": "إيقاف",
+ "fr": "Désactiver",
+ "tr": "Kapat",
+ "de": "Ausschalten",
+ "uk": "Вимкнути",
+ "ca": "Desactiva"
},
"AUTOMATIONS$DELETE": {
"en": "Delete",
- "ja": "削除"
+ "ja": "削除",
+ "zh-CN": "删除",
+ "zh-TW": "刪除",
+ "ko-KR": "삭제",
+ "no": "Slett",
+ "it": "Elimina",
+ "pt": "Excluir",
+ "es": "Eliminar",
+ "ar": "حذف",
+ "fr": "Supprimer",
+ "tr": "Sil",
+ "de": "Löschen",
+ "uk": "Видалити",
+ "ca": "Suprimeix"
},
"AUTOMATIONS$DELETE_CONFIRM_TITLE": {
"en": "Delete automation",
- "ja": "オートメーションを削除"
+ "ja": "オートメーションを削除",
+ "zh-CN": "删除自动化",
+ "zh-TW": "刪除自動化",
+ "ko-KR": "자동화 삭제",
+ "no": "Slett automatisering",
+ "it": "Elimina automazione",
+ "pt": "Excluir automação",
+ "es": "Eliminar automatización",
+ "ar": "حذف الأتمتة",
+ "fr": "Supprimer l'automatisation",
+ "tr": "Otomasyonu sil",
+ "de": "Automatisierung löschen",
+ "uk": "Видалити автоматизацію",
+ "ca": "Suprimeix l'automatització"
},
"AUTOMATIONS$DELETE_CONFIRM_MESSAGE": {
"en": "Delete \"{{name}}\"? This cannot be undone.",
- "ja": "「{{name}}」を削除しますか?この操作は取り消せません。"
+ "ja": "「{{name}}」を削除しますか?この操作は取り消せません。",
+ "zh-CN": "删除“{{name}}”吗?此操作无法撤销。",
+ "zh-TW": "刪除「{{name}}」嗎?此操作無法復原。",
+ "ko-KR": "\"{{name}}\"을(를) 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",
+ "no": "Slette \"{{name}}\"? Dette kan ikke angres.",
+ "it": "Eliminare \"{{name}}\"? Questa operazione non può essere annullata.",
+ "pt": "Excluir \"{{name}}\"? Isto não pode ser desfeito.",
+ "es": "¿Eliminar \"{{name}}\"? Esta acción no se puede deshacer.",
+ "ar": "حذف \"{{name}}\"؟ لا يمكن التراجع عن هذا الإجراء.",
+ "fr": "Supprimer « {{name}} » ? Cette action est irréversible.",
+ "tr": "\"{{name}}\" silinsin mi? Bu işlem geri alınamaz.",
+ "de": "„{{name}}\" löschen? Dies kann nicht rückgängig gemacht werden.",
+ "uk": "Видалити \"{{name}}\"? Цю дію неможливо скасувати.",
+ "ca": "Voleu suprimir \"{{name}}\"? Aquesta acció no es pot desfer."
},
"AUTOMATIONS$CANCEL": {
"en": "Cancel",
- "ja": "キャンセル"
+ "ja": "キャンセル",
+ "zh-CN": "取消",
+ "zh-TW": "取消",
+ "ko-KR": "취소",
+ "no": "Avbryt",
+ "it": "Annulla",
+ "pt": "Cancelar",
+ "es": "Cancelar",
+ "ar": "إلغاء",
+ "fr": "Annuler",
+ "tr": "İptal",
+ "de": "Abbrechen",
+ "uk": "Скасувати",
+ "ca": "Cancel·la"
},
"AUTOMATIONS$LOAD_MORE": {
"en": "Load more",
- "ja": "さらに読み込む"
+ "ja": "さらに読み込む",
+ "zh-CN": "加载更多",
+ "zh-TW": "載入更多",
+ "ko-KR": "더 보기",
+ "no": "Last inn flere",
+ "it": "Carica altro",
+ "pt": "Carregar mais",
+ "es": "Cargar más",
+ "ar": "تحميل المزيد",
+ "fr": "Charger plus",
+ "tr": "Daha fazla yükle",
+ "de": "Mehr laden",
+ "uk": "Завантажити більше",
+ "ca": "Carrega'n més"
},
"AUTOMATIONS$ERROR_TITLE": {
"en": "Failed to load automations",
- "ja": "オートメーションの読み込みに失敗しました"
+ "ja": "オートメーションの読み込みに失敗しました",
+ "zh-CN": "加载自动化失败",
+ "zh-TW": "載入自動化失敗",
+ "ko-KR": "자동화를 불러오지 못했습니다",
+ "no": "Kunne ikke laste automatiseringer",
+ "it": "Impossibile caricare le automazioni",
+ "pt": "Falha ao carregar automações",
+ "es": "Error al cargar las automatizaciones",
+ "ar": "فشل تحميل الأتمتة",
+ "fr": "Impossible de charger les automatisations",
+ "tr": "Otomasyonlar yüklenemedi",
+ "de": "Automatisierungen konnten nicht geladen werden",
+ "uk": "Не вдалося завантажити автоматизації",
+ "ca": "No s'han pogut carregar les automatitzacions"
},
"AUTOMATIONS$ERROR_RETRY": {
"en": "Retry",
- "ja": "再試行"
+ "ja": "再試行",
+ "zh-CN": "重试",
+ "zh-TW": "重試",
+ "ko-KR": "다시 시도",
+ "no": "Prøv igjen",
+ "it": "Riprova",
+ "pt": "Tentar novamente",
+ "es": "Reintentar",
+ "ar": "إعادة المحاولة",
+ "fr": "Réessayer",
+ "tr": "Yeniden dene",
+ "de": "Wiederholen",
+ "uk": "Повторити",
+ "ca": "Torna-ho a provar"
},
"AUTOMATIONS$DETAIL$ACTIVE": {
"en": "Active",
- "ja": "アクティブ"
+ "ja": "アクティブ",
+ "zh-CN": "活动",
+ "zh-TW": "作用中",
+ "ko-KR": "활성",
+ "no": "Aktiv",
+ "it": "Attiva",
+ "pt": "Ativa",
+ "es": "Activa",
+ "ar": "نشط",
+ "fr": "Actif",
+ "tr": "Aktif",
+ "de": "Aktiv",
+ "uk": "Активний",
+ "ca": "Actiu"
},
"AUTOMATIONS$DETAIL$ACTIVITY": {
"en": "Activity",
- "ja": "アクティビティ"
+ "ja": "アクティビティ",
+ "zh-CN": "活动",
+ "zh-TW": "活動",
+ "ko-KR": "활동",
+ "no": "Aktivitet",
+ "it": "Attività",
+ "pt": "Atividade",
+ "es": "Actividad",
+ "ar": "النشاط",
+ "fr": "Activité",
+ "tr": "Etkinlik",
+ "de": "Aktivität",
+ "uk": "Активність",
+ "ca": "Activitat"
},
"AUTOMATIONS$DETAIL$ACTIVITY_LOG": {
"en": "Activity Log",
- "ja": "アクティビティログ"
+ "ja": "アクティビティログ",
+ "zh-CN": "活动日志",
+ "zh-TW": "活動記錄",
+ "ko-KR": "활동 로그",
+ "no": "Aktivitetslogg",
+ "it": "Registro attività",
+ "pt": "Registo de atividades",
+ "es": "Registro de actividad",
+ "ar": "سجل النشاط",
+ "fr": "Journal d'activité",
+ "tr": "Etkinlik günlüğü",
+ "de": "Aktivitätsprotokoll",
+ "uk": "Журнал активності",
+ "ca": "Registre d'activitat"
},
"AUTOMATIONS$DETAIL$BACK_TO_LIST": {
"en": "Back to Automations",
- "ja": "オートメーション一覧に戻る"
+ "ja": "オートメーション一覧に戻る",
+ "zh-CN": "返回自动化",
+ "zh-TW": "返回自動化",
+ "ko-KR": "자동화로 돌아가기",
+ "no": "Tilbake til automatiseringer",
+ "it": "Torna alle automazioni",
+ "pt": "Voltar para automações",
+ "es": "Volver a las automatizaciones",
+ "ar": "العودة إلى الأتمتة",
+ "fr": "Retour aux automatisations",
+ "tr": "Otomasyonlara dön",
+ "de": "Zurück zu Automatisierungen",
+ "uk": "Назад до автоматизацій",
+ "ca": "Torna a les automatitzacions"
},
"AUTOMATIONS$DETAIL$CONFIGURATION": {
"en": "Configuration",
- "ja": "設定"
+ "ja": "設定",
+ "zh-CN": "配置",
+ "zh-TW": "設定",
+ "ko-KR": "구성",
+ "no": "Konfigurasjon",
+ "it": "Configurazione",
+ "pt": "Configuração",
+ "es": "Configuración",
+ "ar": "التكوين",
+ "fr": "Configuration",
+ "tr": "Yapılandırma",
+ "de": "Konfiguration",
+ "uk": "Конфігурація",
+ "ca": "Configuració"
},
"AUTOMATIONS$DETAIL$CREATED": {
"en": "Created",
- "ja": "作成日"
+ "ja": "作成日",
+ "zh-CN": "已创建",
+ "zh-TW": "已建立",
+ "ko-KR": "생성됨",
+ "no": "Opprettet",
+ "it": "Creato",
+ "pt": "Criado",
+ "es": "Creado",
+ "ar": "تم الإنشاء",
+ "fr": "Créé",
+ "tr": "Oluşturuldu",
+ "de": "Erstellt",
+ "uk": "Створено",
+ "ca": "Creat"
},
"AUTOMATIONS$DETAIL$FAILED": {
"en": "Failed",
- "ja": "失敗"
+ "ja": "失敗",
+ "zh-CN": "失败",
+ "zh-TW": "失敗",
+ "ko-KR": "실패",
+ "no": "Mislyktes",
+ "it": "Fallito",
+ "pt": "Falhou",
+ "es": "Fallido",
+ "ar": "فشل",
+ "fr": "Échoué",
+ "tr": "Başarısız",
+ "de": "Fehlgeschlagen",
+ "uk": "Не вдалося",
+ "ca": "Ha fallat"
},
"AUTOMATIONS$DETAIL$PENDING": {
"en": "Pending",
- "ja": "保留中"
+ "ja": "保留中",
+ "zh-CN": "待处理",
+ "zh-TW": "待處理",
+ "ko-KR": "대기 중",
+ "no": "Venter",
+ "it": "In attesa",
+ "pt": "Pendente",
+ "es": "Pendiente",
+ "ar": "قيد الانتظار",
+ "fr": "En attente",
+ "tr": "Bekliyor",
+ "de": "Ausstehend",
+ "uk": "Очікує",
+ "ca": "Pendent"
},
"AUTOMATIONS$DETAIL$RUNNING": {
"en": "Running",
- "ja": "実行中"
+ "ja": "実行中",
+ "zh-CN": "运行中",
+ "zh-TW": "執行中",
+ "ko-KR": "실행 중",
+ "no": "Kjører",
+ "it": "In esecuzione",
+ "pt": "Em execução",
+ "es": "En ejecución",
+ "ar": "قيد التشغيل",
+ "fr": "En cours d'exécution",
+ "tr": "Çalışıyor",
+ "de": "Wird ausgeführt",
+ "uk": "Виконується",
+ "ca": "En execució"
},
"AUTOMATIONS$DETAIL$INACTIVE": {
"en": "Inactive",
- "ja": "非アクティブ"
+ "ja": "非アクティブ",
+ "zh-CN": "非活动",
+ "zh-TW": "非作用中",
+ "ko-KR": "비활성",
+ "no": "Inaktiv",
+ "it": "Inattiva",
+ "pt": "Inativa",
+ "es": "Inactiva",
+ "ar": "غير نشط",
+ "fr": "Inactif",
+ "tr": "Pasif",
+ "de": "Inaktiv",
+ "uk": "Неактивний",
+ "ca": "Inactiu"
},
"AUTOMATIONS$DETAIL$LAST_RUN": {
"en": "Last run",
- "ja": "最終実行"
+ "ja": "最終実行",
+ "zh-CN": "上次运行",
+ "zh-TW": "上次執行",
+ "ko-KR": "마지막 실행",
+ "no": "Siste kjøring",
+ "it": "Ultima esecuzione",
+ "pt": "Última execução",
+ "es": "Última ejecución",
+ "ar": "آخر تشغيل",
+ "fr": "Dernière exécution",
+ "tr": "Son çalıştırma",
+ "de": "Letzte Ausführung",
+ "uk": "Останнє виконання",
+ "ca": "Última execució"
},
"AUTOMATIONS$DETAIL$LOAD_MORE_RUNS": {
"en": "Load more",
- "ja": "さらに読み込む"
+ "ja": "さらに読み込む",
+ "zh-CN": "加载更多",
+ "zh-TW": "載入更多",
+ "ko-KR": "더 보기",
+ "no": "Last inn flere",
+ "it": "Carica altro",
+ "pt": "Carregar mais",
+ "es": "Cargar más",
+ "ar": "تحميل المزيد",
+ "fr": "Charger plus",
+ "tr": "Daha fazla yükle",
+ "de": "Mehr laden",
+ "uk": "Завантажити більше",
+ "ca": "Carrega'n més"
},
"AUTOMATIONS$DETAIL$MODEL": {
"en": "Model",
- "ja": "モデル"
+ "ja": "モデル",
+ "zh-CN": "模型",
+ "zh-TW": "模型",
+ "ko-KR": "모델",
+ "no": "Modell",
+ "it": "Modello",
+ "pt": "Modelo",
+ "es": "Modelo",
+ "ar": "النموذج",
+ "fr": "Modèle",
+ "tr": "Model",
+ "de": "Modell",
+ "uk": "Модель",
+ "ca": "Model"
},
"AUTOMATIONS$DETAIL$NO_RUNS": {
"en": "No activity yet",
- "ja": "まだアクティビティはありません"
+ "ja": "まだアクティビティはありません",
+ "zh-CN": "暂无活动",
+ "zh-TW": "尚無活動",
+ "ko-KR": "아직 활동이 없습니다",
+ "no": "Ingen aktivitet ennå",
+ "it": "Nessuna attività ancora",
+ "pt": "Sem atividade ainda",
+ "es": "Aún no hay actividad",
+ "ar": "لا يوجد نشاط بعد",
+ "fr": "Aucune activité pour le moment",
+ "tr": "Henüz etkinlik yok",
+ "de": "Noch keine Aktivität",
+ "uk": "Активності ще немає",
+ "ca": "Encara no hi ha activitat"
},
"AUTOMATIONS$DETAIL$NO_CONVERSATION": {
"en": "Conversation not created",
- "ja": "会話が作成されていません"
+ "ja": "会話が作成されていません",
+ "zh-CN": "对话未创建",
+ "zh-TW": "對話未建立",
+ "ko-KR": "대화가 생성되지 않음",
+ "no": "Samtale ikke opprettet",
+ "it": "Conversazione non creata",
+ "pt": "Conversa não criada",
+ "es": "Conversación no creada",
+ "ar": "لم يتم إنشاء المحادثة",
+ "fr": "Conversation non créée",
+ "tr": "Konuşma oluşturulmadı",
+ "de": "Konversation nicht erstellt",
+ "uk": "Розмову не створено",
+ "ca": "Conversa no creada"
},
"AUTOMATIONS$DETAIL$TIME_JUST_NOW": {
"en": "Just now",
- "ja": "たった今"
+ "ja": "たった今",
+ "zh-CN": "刚刚",
+ "zh-TW": "剛剛",
+ "ko-KR": "방금",
+ "no": "Akkurat nå",
+ "it": "Proprio ora",
+ "pt": "Agora mesmo",
+ "es": "Ahora mismo",
+ "ar": "الآن",
+ "fr": "À l'instant",
+ "tr": "Az önce",
+ "de": "Gerade eben",
+ "uk": "Щойно",
+ "ca": "Ara mateix"
},
"AUTOMATIONS$DETAIL$TIME_MINUTES_AGO": {
"en": "{{count}}m ago",
- "ja": "{{count}}分前"
+ "ja": "{{count}}分前",
+ "zh-CN": "{{count}}分钟前",
+ "zh-TW": "{{count}}分鐘前",
+ "ko-KR": "{{count}}분 전",
+ "no": "{{count}}m siden",
+ "it": "{{count}}m fa",
+ "pt": "há {{count}}min",
+ "es": "hace {{count}}m",
+ "ar": "منذ {{count}}د",
+ "fr": "il y a {{count}}min",
+ "tr": "{{count}}dk önce",
+ "de": "vor {{count}}min",
+ "uk": "{{count}}хв тому",
+ "ca": "fa {{count}}min"
},
"AUTOMATIONS$DETAIL$TIME_HOURS_AGO": {
"en": "{{count}}h ago",
- "ja": "{{count}}時間前"
+ "ja": "{{count}}時間前",
+ "zh-CN": "{{count}}小时前",
+ "zh-TW": "{{count}}小時前",
+ "ko-KR": "{{count}}시간 전",
+ "no": "{{count}}t siden",
+ "it": "{{count}}h fa",
+ "pt": "há {{count}}h",
+ "es": "hace {{count}}h",
+ "ar": "منذ {{count}}س",
+ "fr": "il y a {{count}}h",
+ "tr": "{{count}}sa önce",
+ "de": "vor {{count}}Std.",
+ "uk": "{{count}}год тому",
+ "ca": "fa {{count}}h"
},
"AUTOMATIONS$DETAIL$TIME_YESTERDAY": {
"en": "Yesterday",
- "ja": "昨日"
+ "ja": "昨日",
+ "zh-CN": "昨天",
+ "zh-TW": "昨天",
+ "ko-KR": "어제",
+ "no": "I går",
+ "it": "Ieri",
+ "pt": "Ontem",
+ "es": "Ayer",
+ "ar": "أمس",
+ "fr": "Hier",
+ "tr": "Dün",
+ "de": "Gestern",
+ "uk": "Вчора",
+ "ca": "Ahir"
},
"AUTOMATIONS$DETAIL$TIME_DAYS_AGO": {
"en": "{{count}}d ago",
- "ja": "{{count}}日前"
+ "ja": "{{count}}日前",
+ "zh-CN": "{{count}}天前",
+ "zh-TW": "{{count}}天前",
+ "ko-KR": "{{count}}일 전",
+ "no": "{{count}}d siden",
+ "it": "{{count}}g fa",
+ "pt": "há {{count}}d",
+ "es": "hace {{count}}d",
+ "ar": "منذ {{count}}ي",
+ "fr": "il y a {{count}}j",
+ "tr": "{{count}}g önce",
+ "de": "vor {{count}}T",
+ "uk": "{{count}}д тому",
+ "ca": "fa {{count}}d"
},
"AUTOMATIONS$DETAIL$TIME_NEVER": {
"en": "Never",
- "ja": "未実行"
+ "ja": "未実行",
+ "zh-CN": "从未",
+ "zh-TW": "從未",
+ "ko-KR": "없음",
+ "no": "Aldri",
+ "it": "Mai",
+ "pt": "Nunca",
+ "es": "Nunca",
+ "ar": "أبدًا",
+ "fr": "Jamais",
+ "tr": "Hiçbir zaman",
+ "de": "Nie",
+ "uk": "Ніколи",
+ "ca": "Mai"
},
"AUTOMATIONS$DETAIL$NOT_FOUND_MESSAGE": {
"en": "The automation you're looking for doesn't exist or has been deleted.",
- "ja": "お探しのオートメーションは存在しないか、削除されています。"
+ "ja": "お探しのオートメーションは存在しないか、削除されています。",
+ "zh-CN": "您要查找的自动化不存在或已被删除。",
+ "zh-TW": "您要尋找的自動化不存在或已被刪除。",
+ "ko-KR": "찾으시는 자동화가 존재하지 않거나 삭제되었습니다.",
+ "no": "Automatiseringen du leter etter eksisterer ikke eller er slettet.",
+ "it": "L'automazione che stai cercando non esiste o è stata eliminata.",
+ "pt": "A automação que você procura não existe ou foi excluída.",
+ "es": "La automatización que busca no existe o ha sido eliminada.",
+ "ar": "الأتمتة التي تبحث عنها غير موجودة أو تم حذفها.",
+ "fr": "L'automatisation que vous recherchez n'existe pas ou a été supprimée.",
+ "tr": "Aradığınız otomasyon mevcut değil veya silinmiş.",
+ "de": "Die gesuchte Automatisierung existiert nicht oder wurde gelöscht.",
+ "uk": "Автоматизація, яку ви шукаєте, не існує або була видалена.",
+ "ca": "L'automatització que cerqueu no existeix o ha estat suprimida."
},
"AUTOMATIONS$DETAIL$NOT_FOUND_TITLE": {
"en": "Automation not found",
- "ja": "オートメーションが見つかりません"
+ "ja": "オートメーションが見つかりません",
+ "zh-CN": "未找到自动化",
+ "zh-TW": "找不到自動化",
+ "ko-KR": "자동화를 찾을 수 없습니다",
+ "no": "Automatisering ikke funnet",
+ "it": "Automazione non trovata",
+ "pt": "Automação não encontrada",
+ "es": "Automatización no encontrada",
+ "ar": "لم يتم العثور على الأتمتة",
+ "fr": "Automatisation introuvable",
+ "tr": "Otomasyon bulunamadı",
+ "de": "Automatisierung nicht gefunden",
+ "uk": "Автоматизацію не знайдено",
+ "ca": "No s'ha trobat l'automatització"
},
"AUTOMATIONS$DETAIL$NOTIFICATION": {
"en": "Notification",
- "ja": "通知"
+ "ja": "通知",
+ "zh-CN": "通知",
+ "zh-TW": "通知",
+ "ko-KR": "알림",
+ "no": "Varsling",
+ "it": "Notifica",
+ "pt": "Notificação",
+ "es": "Notificación",
+ "ar": "الإشعار",
+ "fr": "Notification",
+ "tr": "Bildirim",
+ "de": "Benachrichtigung",
+ "uk": "Сповіщення",
+ "ca": "Notificació"
},
"AUTOMATIONS$DETAIL$PLUGINS": {
"en": "Plugins",
- "ja": "プラグイン"
+ "ja": "プラグイン",
+ "zh-CN": "插件",
+ "zh-TW": "外掛",
+ "ko-KR": "플러그인",
+ "no": "Plugins",
+ "it": "Plugin",
+ "pt": "Plugins",
+ "es": "Complementos",
+ "ar": "الإضافات",
+ "fr": "Plugins",
+ "tr": "Eklentiler",
+ "de": "Plugins",
+ "uk": "Плагіни",
+ "ca": "Connectors"
},
"AUTOMATIONS$DETAIL$PROMPT": {
"en": "Prompt",
- "ja": "プロンプト"
+ "ja": "プロンプト",
+ "zh-CN": "提示",
+ "zh-TW": "提示",
+ "ko-KR": "프롬프트",
+ "no": "Ledetekst",
+ "it": "Prompt",
+ "pt": "Prompt",
+ "es": "Indicación",
+ "ar": "موجه",
+ "fr": "Invite",
+ "tr": "İstem",
+ "de": "Prompt",
+ "uk": "Запит",
+ "ca": "Indicació"
},
"AUTOMATIONS$DETAIL$REPOSITORIES": {
"en": "Repositories",
- "ja": "リポジトリ"
+ "ja": "リポジトリ",
+ "zh-CN": "仓库",
+ "zh-TW": "存放庫",
+ "ko-KR": "저장소",
+ "no": "Repositorier",
+ "it": "Repository",
+ "pt": "Repositórios",
+ "es": "Repositorios",
+ "ar": "المستودعات",
+ "fr": "Dépôts",
+ "tr": "Depolar",
+ "de": "Repositorys",
+ "uk": "Репозиторії",
+ "ca": "Repositoris"
},
"AUTOMATIONS$DETAIL$SCHEDULE": {
"en": "Schedule",
- "ja": "スケジュール"
+ "ja": "スケジュール",
+ "zh-CN": "计划",
+ "zh-TW": "排程",
+ "ko-KR": "일정",
+ "no": "Tidsplan",
+ "it": "Pianificazione",
+ "pt": "Agendamento",
+ "es": "Programación",
+ "ar": "الجدولة",
+ "fr": "Planification",
+ "tr": "Zamanlama",
+ "de": "Zeitplan",
+ "uk": "Розклад",
+ "ca": "Planificació"
},
"AUTOMATIONS$DETAIL$SUCCESSFUL": {
"en": "Successful",
- "ja": "成功"
+ "ja": "成功",
+ "zh-CN": "成功",
+ "zh-TW": "成功",
+ "ko-KR": "성공",
+ "no": "Vellykket",
+ "it": "Riuscito",
+ "pt": "Bem-sucedido",
+ "es": "Exitoso",
+ "ar": "ناجح",
+ "fr": "Réussi",
+ "tr": "Başarılı",
+ "de": "Erfolgreich",
+ "uk": "Успішно",
+ "ca": "Correcte"
},
"AUTOMATIONS$DETAIL$TRIGGER": {
"en": "Trigger",
- "ja": "トリガー"
+ "ja": "トリガー",
+ "zh-CN": "触发器",
+ "zh-TW": "觸發器",
+ "ko-KR": "트리거",
+ "no": "Utløser",
+ "it": "Trigger",
+ "pt": "Acionador",
+ "es": "Activador",
+ "ar": "المُشغِّل",
+ "fr": "Déclencheur",
+ "tr": "Tetikleyici",
+ "de": "Auslöser",
+ "uk": "Тригер",
+ "ca": "Activador"
},
"SIDEBAR$CONVERSATIONS": {
"en": "Conversations",
@@ -15671,21 +16388,89 @@
"ca": "Espais de treball"
},
"HOME$ADD_WORKSPACES": {
- "en": "+ Add Workspaces",
+ "en": "+ Add Workspace",
"ja": "+ ワークスペースを追加",
"zh-CN": "+ 添加工作区",
"zh-TW": "+ 新增工作區",
"ko-KR": "+ 작업 공간 추가",
- "no": "+ Legg til arbeidsområder",
- "it": "+ Aggiungi aree di lavoro",
- "pt": "+ Adicionar espaços de trabalho",
- "es": "+ Agregar espacios de trabajo",
- "ar": "+ إضافة مساحات عمل",
- "fr": "+ Ajouter des espaces de travail",
+ "no": "+ Legg til arbeidsområde",
+ "it": "+ Aggiungi area di lavoro",
+ "pt": "+ Adicionar espaço de trabalho",
+ "es": "+ Agregar espacio de trabajo",
+ "ar": "+ إضافة مساحة عمل",
+ "fr": "+ Ajouter un espace de travail",
"tr": "+ Çalışma alanı ekle",
- "de": "+ Arbeitsbereiche hinzufügen",
- "uk": "+ Додати робочі області",
- "ca": "+ Afegeix espais de treball"
+ "de": "+ Arbeitsbereich hinzufügen",
+ "uk": "+ Додати робочу область",
+ "ca": "+ Afegeix un espai de treball"
+ },
+ "HOME$MANAGE_WORKSPACES": {
+ "en": "Manage Workspaces",
+ "ja": "ワークスペースを管理",
+ "zh-CN": "管理工作区",
+ "zh-TW": "管理工作區",
+ "ko-KR": "작업 공간 관리",
+ "no": "Administrer arbeidsområder",
+ "it": "Gestisci aree di lavoro",
+ "pt": "Gerenciar espaços de trabalho",
+ "es": "Administrar espacios de trabajo",
+ "ar": "إدارة مساحات العمل",
+ "fr": "Gérer les espaces de travail",
+ "tr": "Çalışma alanlarını yönet",
+ "de": "Arbeitsbereiche verwalten",
+ "uk": "Керування робочими областями",
+ "ca": "Gestiona els espais de treball"
+ },
+ "HOME$MANAGE_WORKSPACES_EMPTY": {
+ "en": "You don't have any workspaces yet.",
+ "ja": "まだワークスペースがありません。",
+ "zh-CN": "您还没有任何工作区。",
+ "zh-TW": "您尚無任何工作區。",
+ "ko-KR": "아직 작업 공간이 없습니다.",
+ "no": "Du har ingen arbeidsområder ennå.",
+ "it": "Non hai ancora aree di lavoro.",
+ "pt": "Você ainda não tem nenhum espaço de trabalho.",
+ "es": "Aún no tienes espacios de trabajo.",
+ "ar": "ليس لديك أي مساحات عمل بعد.",
+ "fr": "Vous n'avez pas encore d'espace de travail.",
+ "tr": "Henüz hiç çalışma alanınız yok.",
+ "de": "Sie haben noch keine Arbeitsbereiche.",
+ "uk": "У вас ще немає робочих областей.",
+ "ca": "Encara no teniu cap espai de treball."
+ },
+ "HOME$REMOVE_WORKSPACE": {
+ "en": "Remove",
+ "ja": "削除",
+ "zh-CN": "移除",
+ "zh-TW": "移除",
+ "ko-KR": "제거",
+ "no": "Fjern",
+ "it": "Rimuovi",
+ "pt": "Remover",
+ "es": "Eliminar",
+ "ar": "إزالة",
+ "fr": "Supprimer",
+ "tr": "Kaldır",
+ "de": "Entfernen",
+ "uk": "Видалити",
+ "ca": "Elimina"
+ },
+ "HOME$DONE": {
+ "en": "Done",
+ "ja": "完了",
+ "zh-CN": "完成",
+ "zh-TW": "完成",
+ "ko-KR": "완료",
+ "no": "Ferdig",
+ "it": "Fatto",
+ "pt": "Concluído",
+ "es": "Hecho",
+ "ar": "تم",
+ "fr": "Terminé",
+ "tr": "Bitti",
+ "de": "Fertig",
+ "uk": "Готово",
+ "ca": "Fet"
},
"HOME$NO_WORKSPACES": {
"en": "No workspaces yet",
@@ -15738,6 +16523,74 @@
"uk": "Додати робочі області",
"ca": "Afegeix espais de treball"
},
+ "HOME$ADD_THIS_DIRECTORY": {
+ "en": "Add this directory",
+ "ja": "このディレクトリを追加",
+ "zh-CN": "添加此目录",
+ "zh-TW": "新增此目錄",
+ "ko-KR": "이 디렉터리 추가",
+ "no": "Legg til denne mappen",
+ "it": "Aggiungi questa cartella",
+ "pt": "Adicionar este diretório",
+ "es": "Agregar este directorio",
+ "ar": "إضافة هذا الدليل",
+ "fr": "Ajouter ce répertoire",
+ "tr": "Bu dizini ekle",
+ "de": "Dieses Verzeichnis hinzufügen",
+ "uk": "Додати цей каталог",
+ "ca": "Afegeix aquest directori"
+ },
+ "HOME$ADD_ALL_SUBDIRECTORIES": {
+ "en": "Add all subdirectories",
+ "ja": "すべてのサブディレクトリを追加",
+ "zh-CN": "添加所有子目录",
+ "zh-TW": "新增所有子目錄",
+ "ko-KR": "모든 하위 디렉터리 추가",
+ "no": "Legg til alle undermapper",
+ "it": "Aggiungi tutte le sottocartelle",
+ "pt": "Adicionar todos os subdiretórios",
+ "es": "Agregar todos los subdirectorios",
+ "ar": "إضافة جميع الأدلة الفرعية",
+ "fr": "Ajouter tous les sous-répertoires",
+ "tr": "Tüm alt dizinleri ekle",
+ "de": "Alle Unterverzeichnisse hinzufügen",
+ "uk": "Додати всі підкаталоги",
+ "ca": "Afegeix tots els subdirectoris"
+ },
+ "HOME$WORKSPACE_PARENTS": {
+ "en": "Workspace parents",
+ "ja": "ワークスペースの親",
+ "zh-CN": "工作区父目录",
+ "zh-TW": "工作區父目錄",
+ "ko-KR": "워크스페이스 상위",
+ "no": "Foreldermapper for arbeidsområder",
+ "it": "Cartelle padre dell'area di lavoro",
+ "pt": "Pastas pai de espaços de trabalho",
+ "es": "Carpetas padre de espacios de trabajo",
+ "ar": "المجلدات الأصلية لمساحة العمل",
+ "fr": "Dossiers parents des espaces de travail",
+ "tr": "Çalışma alanı üst klasörleri",
+ "de": "Übergeordnete Arbeitsbereiche",
+ "uk": "Батьківські робочі області",
+ "ca": "Pares d'espais de treball"
+ },
+ "HOME$REMOVE_WORKSPACE_PARENT": {
+ "en": "Remove parent",
+ "ja": "親を削除",
+ "zh-CN": "移除父目录",
+ "zh-TW": "移除父目錄",
+ "ko-KR": "상위 제거",
+ "no": "Fjern forelder",
+ "it": "Rimuovi cartella padre",
+ "pt": "Remover pai",
+ "es": "Eliminar padre",
+ "ar": "إزالة المجلد الأصلي",
+ "fr": "Supprimer le parent",
+ "tr": "Üst klasörü kaldır",
+ "de": "Übergeordnetes entfernen",
+ "uk": "Видалити батьківський",
+ "ca": "Elimina el pare"
+ },
"HOME$CANCEL": {
"en": "Cancel",
"ja": "キャンセル",
@@ -21672,7 +22525,21 @@
"ca": "No s'ha pogut iniciar una nova conversa: {{error}}"
},
"CONVERSATION$CLEAR_SUCCESS": {
- "en": "Starting a new conversation."
+ "en": "Starting a new conversation.",
+ "ja": "新しい会話を開始します。",
+ "zh-CN": "正在开始新对话。",
+ "zh-TW": "正在開始新對話。",
+ "ko-KR": "새 대화를 시작합니다.",
+ "no": "Starter en ny samtale.",
+ "it": "Avvio di una nuova conversazione.",
+ "pt": "Iniciando uma nova conversa.",
+ "es": "Iniciando una nueva conversación.",
+ "ar": "بدء محادثة جديدة.",
+ "fr": "Démarrage d'une nouvelle conversation.",
+ "tr": "Yeni bir konuşma başlatılıyor.",
+ "de": "Neue Konversation wird gestartet.",
+ "uk": "Розпочинається нова розмова.",
+ "ca": "S'està iniciant una nova conversa."
},
"CONVERSATION$CLEARING": {
"en": "Creating new conversation...",
@@ -22609,16 +23476,123 @@
"tr": "Tercihleri onayla",
"uk": "Підтвердити налаштування"
},
+ "HOME$REMOVE_WORKSPACE_CONFIRMATION": {
+ "en": "Remove \"{{name}}\" from your saved workspaces?",
+ "ja": "保存されたワークスペースから \"{{name}}\" を削除しますか?",
+ "zh-CN": "从您保存的工作区中删除“{{name}}”吗?",
+ "zh-TW": "從您儲存的工作區中移除「{{name}}」嗎?",
+ "ko-KR": "저장된 작업 공간에서 \"{{name}}\"을(를) 제거하시겠습니까?",
+ "no": "Fjerne \"{{name}}\" fra de lagrede arbeidsområdene dine?",
+ "it": "Rimuovere \"{{name}}\" dagli spazi di lavoro salvati?",
+ "pt": "Remover \"{{name}}\" dos seus espaços de trabalho salvos?",
+ "es": "¿Eliminar \"{{name}}\" de sus espacios de trabajo guardados?",
+ "ar": "إزالة \"{{name}}\" من مساحات العمل المحفوظة؟",
+ "fr": "Supprimer « {{name}} » de vos espaces de travail enregistrés ?",
+ "tr": "\"{{name}}\" kayıtlı çalışma alanlarınızdan kaldırılsın mı?",
+ "de": "„{{name}}\" aus Ihren gespeicherten Arbeitsbereichen entfernen?",
+ "uk": "Видалити \"{{name}}\" із збережених робочих просторів?",
+ "ca": "Voleu eliminar \"{{name}}\" dels espais de treball desats?"
+ },
+ "HOME$REMOVE_WORKSPACE_PARENT_CONFIRMATION": {
+ "en": "Remove \"{{name}}\" and its {{count}} child workspaces?",
+ "ja": "\"{{name}}\" とその {{count}} 件の子ワークスペースを削除しますか?",
+ "zh-CN": "删除“{{name}}”及其 {{count}} 个子工作区吗?",
+ "zh-TW": "移除「{{name}}」及其 {{count}} 個子工作區嗎?",
+ "ko-KR": "\"{{name}}\" 및 그 {{count}}개의 하위 작업 공간을 제거하시겠습니까?",
+ "no": "Fjerne \"{{name}}\" og dens {{count}} underordnede arbeidsområder?",
+ "it": "Rimuovere \"{{name}}\" e i suoi {{count}} spazi di lavoro figli?",
+ "pt": "Remover \"{{name}}\" e seus {{count}} espaços de trabalho filhos?",
+ "es": "¿Eliminar \"{{name}}\" y sus {{count}} espacios de trabajo secundarios?",
+ "ar": "إزالة \"{{name}}\" و{{count}} من مساحات العمل الفرعية الخاصة بها؟",
+ "fr": "Supprimer « {{name}} » et ses {{count}} espaces de travail enfants ?",
+ "tr": "\"{{name}}\" ve {{count}} alt çalışma alanı kaldırılsın mı?",
+ "de": "„{{name}}\" und seine {{count}} untergeordneten Arbeitsbereiche entfernen?",
+ "uk": "Видалити \"{{name}}\" та його {{count}} дочірніх робочих просторів?",
+ "ca": "Voleu eliminar \"{{name}}\" i els seus {{count}} espais de treball secundaris?"
+ },
+ "HOME$WORKSPACE_SCAN_ERROR": {
+ "en": "Some workspace folders could not be loaded.",
+ "ja": "一部のワークスペースフォルダを読み込めませんでした。",
+ "zh-CN": "部分工作区文件夹无法加载。",
+ "zh-TW": "部分工作區資料夾無法載入。",
+ "ko-KR": "일부 작업 공간 폴더를 불러올 수 없습니다.",
+ "no": "Noen arbeidsområdemapper kunne ikke lastes inn.",
+ "it": "Impossibile caricare alcune cartelle dello spazio di lavoro.",
+ "pt": "Algumas pastas de espaço de trabalho não puderam ser carregadas.",
+ "es": "No se pudieron cargar algunas carpetas del espacio de trabajo.",
+ "ar": "تعذر تحميل بعض مجلدات مساحة العمل.",
+ "fr": "Certains dossiers d'espace de travail n'ont pas pu être chargés.",
+ "tr": "Bazı çalışma alanı klasörleri yüklenemedi.",
+ "de": "Einige Arbeitsbereichsordner konnten nicht geladen werden.",
+ "uk": "Не вдалося завантажити деякі папки робочого простору.",
+ "ca": "No s'han pogut carregar algunes carpetes de l'espai de treball."
+ },
"EVENT_GROUP$ACTIONS_COMPLETED": {
- "en": "{{count}} actions completed"
+ "en": "{{count}} actions completed",
+ "ja": "{{count}} 件のアクションが完了しました",
+ "zh-CN": "已完成 {{count}} 个操作",
+ "zh-TW": "已完成 {{count}} 個動作",
+ "ko-KR": "{{count}}개의 작업이 완료되었습니다",
+ "no": "{{count}} handlinger fullført",
+ "it": "{{count}} azioni completate",
+ "pt": "{{count}} ações concluídas",
+ "es": "{{count}} acciones completadas",
+ "ar": "اكتمل {{count}} من الإجراءات",
+ "fr": "{{count}} actions terminées",
+ "tr": "{{count}} eylem tamamlandı",
+ "de": "{{count}} Aktionen abgeschlossen",
+ "uk": "Виконано дій: {{count}}",
+ "ca": "{{count}} accions completades"
},
"EVENT_GROUP$ACTIONS_PROGRESS": {
- "en": "{{completed}} of {{total}} actions"
+ "en": "{{completed}} of {{total}} actions",
+ "ja": "{{total}} 件中 {{completed}} 件のアクション",
+ "zh-CN": "{{total}} 个操作中的 {{completed}} 个",
+ "zh-TW": "{{total}} 個動作中的 {{completed}} 個",
+ "ko-KR": "{{total}}개 중 {{completed}}개 작업",
+ "no": "{{completed}} av {{total}} handlinger",
+ "it": "{{completed}} di {{total}} azioni",
+ "pt": "{{completed}} de {{total}} ações",
+ "es": "{{completed}} de {{total}} acciones",
+ "ar": "{{completed}} من أصل {{total}} إجراء",
+ "fr": "{{completed}} sur {{total}} actions",
+ "tr": "{{total}} eylemden {{completed}} tanesi",
+ "de": "{{completed}} von {{total}} Aktionen",
+ "uk": "{{completed}} з {{total}} дій",
+ "ca": "{{completed}} de {{total}} accions"
},
"EVENT_GROUP$EXPAND": {
- "en": "Expand actions"
+ "en": "Expand actions",
+ "ja": "アクションを展開",
+ "zh-CN": "展开操作",
+ "zh-TW": "展開動作",
+ "ko-KR": "작업 펼치기",
+ "no": "Utvid handlinger",
+ "it": "Espandi azioni",
+ "pt": "Expandir ações",
+ "es": "Expandir acciones",
+ "ar": "توسيع الإجراءات",
+ "fr": "Développer les actions",
+ "tr": "Eylemleri genişlet",
+ "de": "Aktionen erweitern",
+ "uk": "Розгорнути дії",
+ "ca": "Desplega les accions"
},
"EVENT_GROUP$COLLAPSE": {
- "en": "Collapse actions"
+ "en": "Collapse actions",
+ "ja": "アクションを折りたたむ",
+ "zh-CN": "折叠操作",
+ "zh-TW": "摺疊動作",
+ "ko-KR": "작업 접기",
+ "no": "Skjul handlinger",
+ "it": "Comprimi azioni",
+ "pt": "Recolher ações",
+ "es": "Contraer acciones",
+ "ar": "طي الإجراءات",
+ "fr": "Réduire les actions",
+ "tr": "Eylemleri daralt",
+ "de": "Aktionen einklappen",
+ "uk": "Згорнути дії",
+ "ca": "Replega les accions"
}
}
diff --git a/src/routes/home.tsx b/src/routes/home.tsx
index 5c3679414c..31a8f18ebd 100644
--- a/src/routes/home.tsx
+++ b/src/routes/home.tsx
@@ -26,7 +26,7 @@ function HomeScreen() {
className="flex flex-col gap-5 px-6 sm:max-w-full sm:min-w-full md:flex-row lg:px-0 lg:max-w-[703px] lg:min-w-[703px]"
data-testid="home-screen-new-conversation-section"
>
- <RepoConnector onRepoSelection={(repo) => setSelectedRepo(repo)} />
+ <RepoConnector onRepoSelection={setSelectedRepo} />
<NewConversation />
</div>
</div>
diff --git a/src/stores/workspaces-store.ts b/src/stores/workspaces-store.ts
index 669cf5496c..4cbd0d140e 100644
--- a/src/stores/workspaces-store.ts
+++ b/src/stores/workspaces-store.ts
@@ -1,21 +1,27 @@
import { create } from "zustand";
import { persist, createJSONStorage } from "zustand/middleware";
-import { LocalWorkspace } from "#/types/workspace";
+import { LocalWorkspace, LocalWorkspaceParent } from "#/types/workspace";
interface WorkspacesState {
workspaces: LocalWorkspace[];
+ workspaceParents: LocalWorkspaceParent[];
}
interface WorkspacesActions {
addWorkspaces: (items: LocalWorkspace[]) => void;
removeWorkspace: (path: string) => void;
clearWorkspaces: () => void;
+ addWorkspaceParents: (items: LocalWorkspaceParent[]) => void;
+ removeWorkspaceParent: (path: string) => void;
+ clearWorkspaceParents: () => void;
+ clearAll: () => void;
}
type WorkspacesStore = WorkspacesState & WorkspacesActions;
const initialState: WorkspacesState = {
workspaces: [],
+ workspaceParents: [],
};
export const useWorkspacesStore = create<WorkspacesStore>()(
@@ -37,6 +43,29 @@ export const useWorkspacesStore = create<WorkspacesStore>()(
})),
clearWorkspaces: () => set(() => ({ workspaces: [] })),
+
+ addWorkspaceParents: (items: LocalWorkspaceParent[]) =>
+ set((state) => {
+ const existingPaths = new Set(
+ state.workspaceParents.map((p) => p.path),
+ );
+ const newOnes = items.filter((item) => !existingPaths.has(item.path));
+ if (newOnes.length === 0) return state;
+ return {
+ workspaceParents: [...state.workspaceParents, ...newOnes],
+ };
+ }),
+
+ removeWorkspaceParent: (path: string) =>
+ set((state) => ({
+ workspaceParents: state.workspaceParents.filter(
+ (p) => p.path !== path,
+ ),
+ })),
+
+ clearWorkspaceParents: () => set(() => ({ workspaceParents: [] })),
+
+ clearAll: () => set(() => ({ workspaces: [], workspaceParents: [] })),
}),
{
name: "workspaces-store",
diff --git a/src/types/workspace.ts b/src/types/workspace.ts
index a106df5786..f3a7ca5cb9 100644
--- a/src/types/workspace.ts
+++ b/src/types/workspace.ts
@@ -2,4 +2,21 @@ export interface LocalWorkspace {
id: string;
name: string;
path: string;
+ /**
+ * If this workspace was dynamically derived from a workspace parent,
+ * the path of the parent that produced it. Static workspaces leave this
+ * unset.
+ */
+ parentPath?: string;
+}
+
+/**
+ * A directory whose immediate subdirectories should be listed dynamically
+ * as workspaces. Saved alongside `LocalWorkspace`s but not surfaced as a
+ * selectable workspace itself.
+ */
+export interface LocalWorkspaceParent {
+ id: string;
+ name: string;
+ path: string;
}