Skip to content

Commit f7fcc43

Browse files
committed
Merge branch 'dev'
2 parents 5d73650 + 76be676 commit f7fcc43

23 files changed

Lines changed: 544 additions & 441 deletions

File tree

‎packages/browser/src/content-scripts/send-prompt-content-script/chatbots/perplexity.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import {
1111
export const perplexity: Chatbot = {
1212
wait_until_ready: async () => {
1313
await new Promise((resolve) => setTimeout(resolve, 500))
14-
;(document.querySelector('[contenteditable="true"]') as any)?.click()
14+
if (window.innerWidth <= 768) {
15+
;(document.querySelector('[contenteditable="true"]') as any)?.click()
16+
}
1517
},
1618
set_options: async (options?: string[]) => {
1719
if (!options) return

‎packages/shared/src/constants/dictionary.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export const dictionary = {
6262
CONTEXTS_FILE_NOT_VALID_ARRAY:
6363
'Contexts file is not a valid array. Starting with empty contexts list.',
6464
NO_FILES_OR_WEBSITES_SELECTED: 'No files or websites selected or open.',
65+
NOTHING_SELECTED_IN_CONTEXT: 'Nothing is selected in context.',
6566
NO_OPEN_EDITORS_SELECTED: 'No open editors selected.',
6667
NO_EDITOR_OPEN: 'No editor is open.',
6768
CANNOT_COPY_PROMPT_IN_CODE_COMPLETION_WITH_SELECTION:
@@ -108,6 +109,8 @@ export const dictionary = {
108109
`Are you sure you want to delete the model provider "${provider_name}"?`,
109110
NO_MODELS_FOUND_MANUAL_ENTRY: (provider_name: string) =>
110111
`No models found for ${provider_name}. You can enter model name manually.`,
112+
NO_RESULTS_FOR_SEARCH_SHOWING_ALL: (search_value: string) =>
113+
`No results for "${search_value}" in the selected context. Showing all items.`,
111114
NO_MODEL_PROVIDERS_CONFIGURED:
112115
'No model providers configured. Please add a model provider first on the "Model Providers" page.'
113116
},

‎packages/ui/src/components/editor/panel/ChatInput/ChatInput.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
&__inner {
66
display: flex;
77
flex-direction: column;
8-
border-radius: var(--border-radius-5px);
8+
border-radius: var(--border-radius-10px);
99
background-color: var(--vscode-input-background);
1010
cursor: text;
1111
border: 1px solid var(--vscode-commandCenter-inactiveBorder);

‎packages/ui/src/components/editor/panel/Dropdown/Dropdown.tsx‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,29 @@ export const Dropdown = <T extends string>(props: Dropdown.Props<T>) => {
4343
set_just_opened(false)
4444
}
4545

46+
const handle_wheel = (event: React.WheelEvent<HTMLDivElement>) => {
47+
event.preventDefault()
48+
event.stopPropagation()
49+
50+
const current_index = props.options.findIndex(
51+
(option) => option.value === props.selected_value
52+
)
53+
if (current_index == -1) {
54+
return
55+
}
56+
57+
const options_count = props.options.length
58+
if (options_count <= 1) return
59+
60+
let next_index
61+
if (event.deltaY < 0) {
62+
next_index = (current_index - 1 + options_count) % options_count
63+
} else {
64+
next_index = (current_index + 1) % options_count
65+
}
66+
props.on_change(props.options[next_index].value)
67+
}
68+
4669
useEffect(() => {
4770
const handle_click_outside = (event: MouseEvent) => {
4871
if (
@@ -64,6 +87,7 @@ export const Dropdown = <T extends string>(props: Dropdown.Props<T>) => {
6487
<div
6588
className={cn(styles.container, { [styles['button--open']]: is_open })}
6689
ref={container_ref}
90+
onWheel={handle_wheel}
6791
>
6892
<button
6993
className={cn(styles.button, { [styles['button--open']]: is_open })}

‎packages/ui/src/components/editor/panel/Enter/Enter.module.scss‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
align-items: center;
44
justify-content: space-between;
55
gap: var(--padding-4px);
6-
padding: var(--padding-7px) var(--padding-12px) var(--padding-7px)
6+
padding: var(--padding-6px) var(--padding-12px) var(--padding-6px)
77
var(--padding-8px);
88
background-color: var(--vscode-button-background);
99
color: var(--vscode-button-foreground);
10-
border-radius: var(--border-radius-6px);
10+
border-radius: var(--border-radius-10px);
1111

1212
&:hover {
1313
background-color: var(--vscode-button-hoverBackground);
@@ -17,7 +17,6 @@
1717
display: flex;
1818
align-items: flex-start;
1919
flex-direction: column;
20-
gap: var(--padding-2px);
2120
text-align: left;
2221
}
2322

‎packages/ui/src/components/editor/panel/HomeLinkButton/HomeLinkButton.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
gap: var(--padding-8px);
66
padding: 0 var(--padding-12px) 0 var(--padding-8px);
77
height: 34px;
8-
border-radius: var(--padding-6px);
8+
border-radius: var(--padding-10px);
99

1010
&:hover {
1111
text-decoration: none;

‎packages/ui/src/components/editor/panel/modals/ChatInitializedModal/ChatInitializedModal.stories.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const Default = () => {
1414

1515
return visible ? (
1616
<ChatInitializedModal
17-
title="Chat has been initialized in the connected browser."
17+
title="Chat has been initialized in the connected browser"
1818
duration={3000}
1919
on_close={handle_close}
2020
/>

‎packages/ui/src/components/editor/panel/modals/Modal/Modal.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
.container {
6060
position: relative;
6161
z-index: 1;
62-
border-radius: var(--border-radius-8px);
62+
border-radius: var(--border-radius-12px);
6363
border: 1px solid var(--vscode-sideBarSectionHeader-border);
6464
width: 100%;
6565
max-width: 320px;

‎packages/ui/src/styles/foundation/_variables.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
--border-radius-6px: 6px;
3434
--border-radius-8px: 8px;
3535
--border-radius-10px: 10px;
36+
--border-radius-12px: 12px;
3637
--border-radius-999px: 999px;
3738

3839
--font-weight-500: 500;

‎packages/vscode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "Unlimited AI coding in free chatbots (CWC)",
5-
"version": "1.479.0",
5+
"version": "1.480.0",
66
"scripts": {
77
"build": "npx vsce package --no-dependencies",
88
"vscode:prepublish": "rimraf out && npm run compile",

0 commit comments

Comments
 (0)