GeezerVison is showing github.com — refactor(ui): isolate session components (#33670) · Archipel/opencode@04c1730
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/storybook.yml +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 9 | 9 | - "bun.lock" | 10 | 10 | - "packages/storybook/**" | 11 | 11 | - "packages/ui/**" | | 12 | + - "packages/session-ui/**" | 12 | 13 | pull_request: | 13 | 14 | branches: [dev] | 14 | 15 | paths: | | 17 | 18 | - "bun.lock" | 18 | 19 | - "packages/storybook/**" | 19 | 20 | - "packages/ui/**" | | 21 | + - "packages/session-ui/**" | 20 | 22 | workflow_dispatch: | 21 | 23 |
| 22 | 24 | concurrency: | |
Collapse file Copy file name to clipboardExpand all lines: bun.lock +51-2Lines changed: 51 additions & 2 deletions Collapse file Copy file name to clipboardExpand all lines: packages/app/package.json +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 47 | 47 | "@kobalte/core": "catalog:", | 48 | 48 | "@opencode-ai/core": "workspace:*", | 49 | 49 | "@opencode-ai/sdk": "workspace:*", | | 50 | + "@opencode-ai/session-ui": "workspace:*", | 50 | 51 | "@opencode-ai/ui": "workspace:*", | 51 | 52 | "@pierre/trees": "1.0.0-beta.4", | 52 | 53 | "@sentry/solid": "catalog:", | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/app.tsx +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,7 +4,7 @@ import { I18nProvider } from "@opencode-ai/ui/context" | 4 | 4 | import { DialogProvider } from "@opencode-ai/ui/context/dialog" | 5 | 5 | import { FileComponentProvider } from "@opencode-ai/ui/context/file" | 6 | 6 | import { MarkedProvider } from "@opencode-ai/ui/context/marked" | 7 | | -import { File } from "@opencode-ai/ui/file" | | 7 | +import { File } from "@opencode-ai/session-ui/file" | 8 | 8 | import { Font } from "@opencode-ai/ui/font" | 9 | 9 | import { Splash } from "@opencode-ai/ui/logo" | 10 | 10 | import { ThemeProvider } from "@opencode-ai/ui/theme/context" | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/components/session/session-context-tab.tsx +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,8 +7,8 @@ import { same } from "@/utils/same" | 7 | 7 | import { Icon } from "@opencode-ai/ui/icon" | 8 | 8 | import { Accordion } from "@opencode-ai/ui/accordion" | 9 | 9 | import { StickyAccordionHeader } from "@opencode-ai/ui/sticky-accordion-header" | 10 | | -import { File } from "@opencode-ai/ui/file" | 11 | | -import { Markdown } from "@opencode-ai/ui/markdown" | | 10 | +import { File } from "@opencode-ai/session-ui/file" | | 11 | +import { Markdown } from "@opencode-ai/session-ui/markdown" | 12 | 12 | import { ScrollView } from "@opencode-ai/ui/scroll-view" | 13 | 13 | import type { Message, Part, UserMessage } from "@opencode-ai/sdk/v2/client" | 14 | 14 | import { useLanguage } from "@/context/language" | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/context/global-sync/bootstrap.test.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import { describe, expect, test } from "bun:test" | 2 | 2 | import { createStore } from "solid-js/store" | 3 | 3 | import { QueryClient } from "@tanstack/solid-query" | 4 | 4 | import type { Config, OpencodeClient, Project } from "@opencode-ai/sdk/v2/client" | 5 | | -import type { NormalizedProviderListResponse } from "@opencode-ai/ui/context" | | 5 | +import type { NormalizedProviderListResponse } from "@opencode-ai/session-ui/context" | 6 | 6 | import { bootstrapDirectory, loadPathQuery, loadProvidersQuery } from "./bootstrap" | 7 | 7 | import type { State, VcsCache } from "./types" | 8 | 8 | import { ServerScope } from "@/utils/server-scope" | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/context/global-sync/bootstrap.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,7 @@ import { cmp, normalizeAgentList, normalizeProviderList } from "./utils" | 19 | 19 | import { formatServerError } from "@/utils/server-errors" | 20 | 20 | import { QueryClient, queryOptions } from "@tanstack/solid-query" | 21 | 21 | import { loadMcpQuery } from "../server-sync" | 22 | | -import { NormalizedProviderListResponse } from "@opencode-ai/ui/context" | | 22 | +import { NormalizedProviderListResponse } from "@opencode-ai/session-ui/context" | 23 | 23 | import { ScopedKey, type ServerScope } from "@/utils/server-scope" | 24 | 24 |
| 25 | 25 | type GlobalStore = { | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/context/global-sync/child-store.test.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | import { beforeAll, describe, expect, mock, test } from "bun:test" | 2 | 2 | import { createRoot, getOwner, type Owner } from "solid-js" | 3 | 3 | import { createStore } from "solid-js/store" | 4 | | -import type { NormalizedProviderListResponse } from "@opencode-ai/ui/context" | | 4 | +import type { NormalizedProviderListResponse } from "@opencode-ai/session-ui/context" | 5 | 5 | import type { State } from "./types" | 6 | 6 | import type { QueryOptionsApi } from "../server-sync" | 7 | 7 | import { ServerScope } from "@/utils/server-scope" | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/context/global-sync/child-store.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ import { canDisposeDirectory, pickDirectoriesToEvict } from "./eviction" | 17 | 17 | import { useQuery } from "@tanstack/solid-query" | 18 | 18 | import { QueryOptionsApi } from "../server-sync" | 19 | 19 | import { directoryKey, type DirectoryKey } from "./utils" | 20 | | -import { NormalizedProviderListResponse } from "@opencode-ai/ui/context" | | 20 | +import { NormalizedProviderListResponse } from "@opencode-ai/session-ui/context" | 21 | 21 | import type { ServerScope } from "@/utils/server-scope" | 22 | 22 |
| 23 | 23 | export function createChildStoreManager(input: { | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/src/context/global-sync/types.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ import type { | 15 | 15 | Todo, | 16 | 16 | VcsInfo, | 17 | 17 | } from "@opencode-ai/sdk/v2/client" | 18 | | -import { NormalizedProviderListResponse } from "@opencode-ai/ui/context" | | 18 | +import { NormalizedProviderListResponse } from "@opencode-ai/session-ui/context" | 19 | 19 | import type { Accessor } from "solid-js" | 20 | 20 | import type { SetStoreFunction, Store } from "solid-js/store" | 21 | 21 |
| |
|