diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 0f0cfc537..f02b77ad5 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -19,3 +19,4 @@ jobs: uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2 with: token: ${{ secrets.GITHUB_TOKEN }} + version_spec: minor diff --git a/packages/jupyter-ai/src/components/chat-input.tsx b/packages/jupyter-ai/src/components/chat-input.tsx index 7541b372b..4bdb98240 100644 --- a/packages/jupyter-ai/src/components/chat-input.tsx +++ b/packages/jupyter-ai/src/components/chat-input.tsx @@ -22,10 +22,12 @@ type ChatInputProps = { toggleIncludeSelection: () => unknown; replaceSelection: boolean; toggleReplaceSelection: () => unknown; + helperText: JSX.Element sx?: SxProps; }; export function ChatInput(props: ChatInputProps): JSX.Element { + function handleKeyDown(event: React.KeyboardEvent) { if (event.key === 'Enter' && event.shiftKey) { props.onSend(); @@ -35,7 +37,7 @@ export function ChatInput(props: ChatInputProps): JSX.Element { } return ( - + props.onChange(e.target.value)} @@ -50,8 +52,12 @@ export function ChatInput(props: ChatInputProps): JSX.Element { - ), + ) }} + FormHelperTextProps={{ + sx: {marginLeft: 'auto', marginRight: 0} + }} + helperText={props.value.length > 2 ? props.helperText : ' '} /> {props.hasSelection && ( diff --git a/packages/jupyter-ai/src/components/chat.tsx b/packages/jupyter-ai/src/components/chat.tsx index 52892da61..0e68dad13 100644 --- a/packages/jupyter-ai/src/components/chat.tsx +++ b/packages/jupyter-ai/src/components/chat.tsx @@ -124,10 +124,11 @@ function ChatBody({ chatHandler }: ChatBodyProps): JSX.Element { sx={{ paddingLeft: 4, paddingRight: 4, - paddingTop: 2, - paddingBottom: 2, + paddingTop: 3.5, + paddingBottom: 0, borderTop: '1px solid var(--jp-border-color1)' }} + helperText={Press Shift + Enter to submit message} /> );