Skip to content

Commit 32ae45d

Browse files
committed
fix: prepare DeepAgent Code beta build
1 parent b05dcf5 commit 32ae45d

60 files changed

Lines changed: 1519 additions & 371 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bun.lock

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deepagent-code/app",
3-
"version": "1.16.2",
3+
"version": "1.0.0-beta",
44
"description": "",
55
"type": "module",
66
"exports": {

packages/app/src/components/deepagent-settings-ux.test.ts

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ describe("DeepAgent settings UX", () => {
1212
expect(v2).toContain('data-action="settings-deepagent-mode"')
1313
expect(v2).toContain('data-action="settings-deepagent-prompt-mode"')
1414
expect(v2).toContain('data-action="settings-deepagent-wish-model"')
15-
expect(v2).toContain('settings.general.deepagent.prompt.direct')
16-
expect(v2).toContain('settings.general.deepagent.prompt.wish')
15+
expect(v2).toContain("settings.general.deepagent.prompt.direct")
16+
expect(v2).toContain("settings.general.deepagent.prompt.wish")
1717
expect(v2.indexOf('data-action="settings-language"')).toBeLessThan(
1818
v2.indexOf('data-action="settings-deepagent-mode"'),
1919
)
@@ -34,6 +34,30 @@ describe("DeepAgent settings UX", () => {
3434
expect(source).toContain('export { DialogSettings } from "./settings-v2/dialog-settings-v2"')
3535
})
3636

37+
test("keeps the legacy desktop layout as the default with an opt-in switch for the new layout", async () => {
38+
const settings = await readFile(path.join(here, "../context/settings.tsx"), "utf8")
39+
const v2 = await readFile(path.join(here, "settings-v2/general.tsx"), "utf8")
40+
41+
expect(settings).toContain("export const newLayoutDesignsDefault = false")
42+
expect(v2).toContain('data-action="settings-new-layout-designs"')
43+
expect(v2).toContain("settings.general.setNewLayoutDesigns(checked)")
44+
})
45+
46+
test("keeps DeepAgent review, packs, and provider connect dialogs scroll-safe", async () => {
47+
const review = await readFile(path.join(here, "review/dialog-review.tsx"), "utf8")
48+
const packs = await readFile(path.join(here, "packs/dialog-packs.tsx"), "utf8")
49+
const connectProvider = await readFile(path.join(here, "dialog-connect-provider.tsx"), "utf8")
50+
const css = await readFile(path.join(here, "settings-v2/settings-v2.css"), "utf8")
51+
52+
expect(review).toContain("settings-v2-tab-body deepagent-dialog-body")
53+
expect(review).toContain("deepagent-dialog-scroll")
54+
expect(packs).toContain("settings-v2-tab-body deepagent-dialog-body")
55+
expect(packs).toContain("deepagent-dialog-scroll")
56+
expect(connectProvider).toContain("overflow-y-auto")
57+
expect(css).toContain(".settings-v2-tab-body.deepagent-dialog-body")
58+
expect(css).toContain(".deepagent-dialog-scroll")
59+
})
60+
3761
test("does not keep a separate DeepAgent provider dialog", async () => {
3862
await expect(readFile(path.join(here, "dialog-deepagent-provider.tsx"), "utf8")).rejects.toThrow()
3963
})

packages/app/src/components/dialog-connect-provider.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export function DialogConnectProvider(props: { provider: string }) {
417417
baseURL:
418418
typeof serverSync.data.config.provider?.[props.provider]?.options?.baseURL === "string"
419419
? serverSync.data.config.provider[props.provider]!.options!.baseURL
420-
: providerBaseURL[props.provider] ?? "",
420+
: (providerBaseURL[props.provider] ?? ""),
421421
error: undefined as string | undefined,
422422
baseURLError: undefined as string | undefined,
423423
discovered: [] as DiscoveredProviderModel[],
@@ -698,6 +698,7 @@ export function DialogConnectProvider(props: { provider: string }) {
698698

699699
return (
700700
<Dialog
701+
class="[&_[data-slot=dialog-body]]:min-h-0"
701702
title={
702703
<IconButton
703704
tabIndex={-1}
@@ -708,7 +709,7 @@ export function DialogConnectProvider(props: { provider: string }) {
708709
/>
709710
}
710711
>
711-
<div class="flex flex-col gap-6 px-2.5 pb-3">
712+
<div class="flex h-full min-h-0 flex-col gap-6 overflow-y-auto px-2.5 pb-3">
712713
<div class="px-2.5 flex gap-4 items-center">
713714
<ProviderIcon id={props.provider} class="size-5 shrink-0 icon-strong-base" />
714715
<div class="text-16-medium text-text-strong">
@@ -720,7 +721,7 @@ export function DialogConnectProvider(props: { provider: string }) {
720721
</Switch>
721722
</div>
722723
</div>
723-
<div class="px-2.5 pb-10 flex flex-col gap-6">
724+
<div class="min-h-0 px-2.5 pb-10 flex flex-col gap-6">
724725
<div onKeyDown={handleKey} tabIndex={0} autofocus={store.methodIndex === undefined ? true : undefined}>
725726
<Switch>
726727
<Match when={loading()}>

0 commit comments

Comments
 (0)