Skip to content

Commit 013577d

Browse files
authored
Sidebar tweaks (#2433)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > UI and styling updates for sidebar components, including text changes, dependency updates, and minor CSS adjustments. > > - **UI Changes**: > - `preview-toolbar.tsx`: Changed "Run Test" button text to "Run". > - `index.tsx`: Added `Settings` and `SidebarCloseIcon` imports; commented out button for closing sidebar. > - `sidebar.tsx`: Updated sidebar keyboard shortcut to "b"; adjusted sidebar width constants. > - **Dependency Updates**: > - Removed `vscode-webview` from `playground-common/package.json`. > - Updated `@tailwindcss/postcss` and `tailwindcss` to `4.1.13` in `ui/package.json`. > - **Styling**: > - `globals.css`: Minor formatting change in CSS variable declaration. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 2355dc5. You can [customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this summary. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent 49f3b73 commit 013577d

File tree

8 files changed

+550
-330
lines changed

8 files changed

+550
-330
lines changed

pnpm-lock.yaml

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

typescript/packages/playground-common/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
"swr": "2.3.3",
7878
"tailwind-merge": "3.3.1",
7979
"unist-util-visit": "5.0.0",
80-
"vscode-webview": "1.0.1-beta.1",
8180
"zod": "3.25.66"
8281
},
8382
"devDependencies": {

typescript/packages/playground-common/src/shared/baml-project-panel/playground-panel/preview-toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const RunButton: React.FC<{ className?: string }> = ({ className }) => {
6161
}}
6262
>
6363
<Play className="size-4 flex-shrink-0" />
64-
<span className="text-sm whitespace-nowrap">Run Test</span>
64+
<span className="text-sm whitespace-nowrap">Run</span>
6565
</Button>
6666
);
6767
};

typescript/packages/playground-common/src/shared/baml-project-panel/playground-panel/prompt-preview/prompt-render-wrapper.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const PromptRenderWrapper = () => {
112112
};
113113

114114
return (
115+
// this used to be flex flex-col h-full min-h-0
115116
<Tabs defaultValue="preview" className="flex flex-col min-h-0">
116117
<div className="flex items-center justify-between">
117118
<div className="flex items-center gap-2">

typescript/packages/playground-common/src/shared/baml-project-panel/playground-panel/side-bar/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import {
2525
ChevronUp,
2626
FlaskConical,
2727
Play,
28+
Settings,
29+
SidebarCloseIcon,
2830
} from 'lucide-react';
2931
import * as React from 'react';
3032
import { selectedItemAtom } from '../atoms';
@@ -34,6 +36,7 @@ import { FunctionItem } from './function-item';
3436
import { SearchForm } from './search-form';
3537
import { TestItem } from './test-item';
3638
import type { FunctionData } from './types';
39+
import { Button } from '@baml/ui/button';
3740

3841
export { isSidebarOpenAtom };
3942

@@ -108,6 +111,11 @@ export function TestingSidebar() {
108111
</SidebarMenuItem>
109112
</SidebarMenu>
110113
<SearchForm searchTerm={searchTerm} onSearchChange={setSearchTerm} />
114+
{/* <Button variant="ghost" size="sm" className='absolute right-0 top-0 xl:hidden' onClick={() => {
115+
116+
}}>
117+
<SidebarCloseIcon className="size-4 scale-x-[-1]" />
118+
</Button> */}
111119
</SidebarHeader>
112120
<SidebarContent>
113121
<div className="flex-1 min-h-0 overflow-y-auto">

typescript/packages/ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
},
7373
"devDependencies": {
7474
"@baml/tsconfig": "workspace:*",
75-
"@tailwindcss/postcss": "4.1.11",
75+
"@tailwindcss/postcss": "4.1.13",
7676
"@types/react": "19.1.8",
7777
"@types/react-dom": "19.1.6",
78-
"tailwindcss": "4.1.11",
78+
"tailwindcss": "4.1.13",
7979
"typescript": "5.8.3",
8080
"zod": "3.25.66"
8181
},

0 commit comments

Comments
 (0)