Skip to content

Commit

Permalink
Shorten the tab name, move settings button
Browse files Browse the repository at this point in the history
Lint
  • Loading branch information
krassowski committed Apr 10, 2024
1 parent 2c196ef commit 578f63c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/jupyter-ai/src/completions/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export const completionPlugin: JupyterFrontEndPlugin<void> = {
});
const widget = new MainAreaWidget({ content });
widget.id = 'jupyterlab-inline-completions-model';
widget.title.label = 'AI Completions Model Settings';
widget.title.label = 'Completer Model Settings';
widget.title.closable = true;
widget.title.icon = jupyternautIcon;
return widget;
Expand Down
11 changes: 4 additions & 7 deletions packages/jupyter-ai/src/completions/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,6 @@ export function CompleterSettings(props: CompleterSettingsProps): JSX.Element {
<Alert severity="warning">
The jupyter-ai inline completion provider is not enabled in the Inline
Completer settings.
<Button
variant="contained"
onClick={props.openInlineCompleterSettings}
>
Open Inline Completer Settings
</Button>
</Alert>
)}

Expand All @@ -161,7 +155,10 @@ export function CompleterSettings(props: CompleterSettingsProps): JSX.Element {
modelKind="completions"
/>

<Box sx={{ display: 'flex', justifyContent: 'flex-end' }}>
<Box sx={{ display: 'flex', justifyContent: 'flex-end', gap: '8px' }}>
<Button variant="outlined" onClick={props.openInlineCompleterSettings}>
Inline Completer Settings
</Button>
<Button variant="contained" onClick={handleSave} disabled={saving}>
{saving ? 'Saving...' : 'Save changes'}
</Button>
Expand Down

0 comments on commit 578f63c

Please sign in to comment.