Changesets · Branches · Tags · Compare
| Changeset | f679de86c340f2ddc3cd210c2f1fe312c062361c664d803050ff99b22d222010 |
|---|---|
| Author | Aditya Mitra <61635505+uinstinct@users.noreply.github.com> · 2025-09-06 04:20 +05:30 |
| Committer | GitHub <noreply@github.com> · 2025-09-05 15:50 -07:00 |
| Parents | 5716809d136b |
2 files changed
modified gui/src/components/gui/Switch.tsx +12 −1
| @@ -1,5 +1,7 @@ | ||
| 1 | +import { InformationCircleIcon } from "@heroicons/react/24/outline"; | |
| 1 | 2 | import React, { ReactNode } from "react"; |
| 2 | 3 | import { vscButtonBackground } from ".."; |
| 4 | +import { ToolTip } from "./Tooltip"; | |
| 3 | 5 | |
| 4 | 6 | type ToggleSwitchProps = { |
| 5 | 7 | isToggled: boolean; |
| @@ -8,6 +10,7 @@ | ||
| 8 | 10 | size?: number; |
| 9 | 11 | showIfToggled?: ReactNode; |
| 10 | 12 | disabled?: boolean; |
| 13 | + tooltip?: string; | |
| 11 | 14 | }; |
| 12 | 15 | |
| 13 | 16 | const ToggleSwitch: React.FC<ToggleSwitchProps> = ({ |
| @@ -17,12 +20,20 @@ | ||
| 17 | 20 | size = 16, |
| 18 | 21 | showIfToggled, |
| 19 | 22 | disabled = false, |
| 23 | + tooltip, | |
| 20 | 24 | }) => { |
| 21 | 25 | return ( |
| 22 | 26 | <div |
| 23 | 27 | className={`flex select-none items-center justify-between gap-3 ${disabled ? "cursor-not-allowed" : "cursor-pointer"}`} |
| 24 | 28 | > |
| 25 | - <span className="truncate-right">{text}</span> | |
| 29 | + <span className="truncate-right flex items-center gap-x-1"> | |
| 30 | + {text}{" "} | |
| 31 | + {tooltip && ( | |
| 32 | + <ToolTip content={tooltip}> | |
| 33 | + <InformationCircleIcon className="h-3 w-3" /> | |
| 34 | + </ToolTip> | |
| 35 | + )} | |
| 36 | + </span> | |
| 26 | 37 | <div className="flex flex-row items-center gap-1"> |
| 27 | 38 | {isToggled && !!showIfToggled && showIfToggled} |
| 28 | 39 | <div |
modified gui/src/pages/config/UserSettingsForm.tsx +41 −5
| @@ -2,6 +2,7 @@ | ||
| 2 | 2 | CheckIcon, |
| 3 | 3 | ChevronRightIcon, |
| 4 | 4 | ExclamationTriangleIcon, |
| 5 | + InformationCircleIcon, | |
| 5 | 6 | XMarkIcon, |
| 6 | 7 | } from "@heroicons/react/24/outline"; |
| 7 | 8 | import { |
| @@ -177,6 +178,7 @@ | ||
| 177 | 178 | }) |
| 178 | 179 | } |
| 179 | 180 | text="Show Session Tabs" |
| 181 | + tooltip="If on, displays tabs above the chat as an alternative way to organize and access your sessions." | |
| 180 | 182 | /> |
| 181 | 183 | <ToggleSwitch |
| 182 | 184 | isToggled={codeWrap} |
| @@ -186,6 +188,7 @@ | ||
| 186 | 188 | }) |
| 187 | 189 | } |
| 188 | 190 | text="Wrap Codeblocks" |
| 191 | + tooltip="If on, displays tabs above the chat as an alternative way to organize and access your sessions." | |
| 189 | 192 | /> |
| 190 | 193 | |
| 191 | 194 | <ToggleSwitch |
| @@ -196,6 +199,7 @@ | ||
| 196 | 199 | }) |
| 197 | 200 | } |
| 198 | 201 | text="Show Chat Scrollbar" |
| 202 | + tooltip="If on, enables a scrollbar in the chat window." | |
| 199 | 203 | /> |
| 200 | 204 | <ToggleSwitch |
| 201 | 205 | isToggled={readResponseTTS} |
| @@ -205,6 +209,7 @@ | ||
| 205 | 209 | }) |
| 206 | 210 | } |
| 207 | 211 | text="Text-to-Speech Output" |
| 212 | + tooltip="If on, reads LLM responses aloud with TTS." | |
| 208 | 213 | /> |
| 209 | 214 | {/* <ToggleSwitch |
| 210 | 215 | isToggled={useChromiumForDocsCrawling} |
| @@ -223,6 +228,7 @@ | ||
| 223 | 228 | }) |
| 224 | 229 | } |
| 225 | 230 | text="Enable Session Titles" |
| 231 | + tooltip="If on, generates summary titles for each chat session after the first message, using the current Chat model." | |
| 226 | 232 | /> |
| 227 | 233 | <ToggleSwitch |
| 228 | 234 | isToggled={!displayRawMarkdown} |
| @@ -232,6 +238,7 @@ | ||
| 232 | 238 | }) |
| 233 | 239 | } |
| 234 | 240 | text="Format Markdown" |
| 241 | + tooltip="If off, shows responses as raw text." | |
| 235 | 242 | /> |
| 236 | 243 | |
| 237 | 244 | <ToggleSwitch |
| @@ -243,6 +250,7 @@ | ||
| 243 | 250 | }) |
| 244 | 251 | } |
| 245 | 252 | text="Allow Anonymous Telemetry" |
| 253 | + tooltip="If on, allows Continue to send anonymous telemetry." | |
| 246 | 254 | /> |
| 247 | 255 | |
| 248 | 256 | <ToggleSwitch |
| @@ -267,7 +275,12 @@ | ||
| 267 | 275 | /> */} |
| 268 | 276 | |
| 269 | 277 | <label className="flex items-center justify-between gap-3"> |
| 270 | - <span className="text-left">Font Size</span> | |
| 278 | + <span className="flex items-center gap-x-1 text-left"> | |
| 279 | + Font Size{" "} | |
| 280 | + <ToolTip content="Specifies base font size for UI elements"> | |
| 281 | + <InformationCircleIcon className="h-3 w-3" /> | |
| 282 | + </ToolTip> | |
| 283 | + </span> | |
| 271 | 284 | <NumberInput |
| 272 | 285 | value={fontSize} |
| 273 | 286 | onChange={(val) => { |
| @@ -281,8 +294,11 @@ | ||
| 281 | 294 | /> |
| 282 | 295 | </label> |
| 283 | 296 | <label className="flex items-center justify-between gap-3"> |
| 284 | - <span className="lines lines-1 text-left"> | |
| 297 | + <span className="lines lines-1 flex items-center gap-x-1 text-left"> | |
| 285 | 298 | Multiline Autocompletions |
| 299 | + <ToolTip content="Controls multiline completions for autocomplete."> | |
| 300 | + <InformationCircleIcon className="h-3 w-3" /> | |
| 301 | + </ToolTip> | |
| 286 | 302 | </span> |
| 287 | 303 | <Select |
| 288 | 304 | value={useAutocompleteMultilineCompletions} |
| @@ -301,7 +317,12 @@ | ||
| 301 | 317 | </Select> |
| 302 | 318 | </label> |
| 303 | 319 | <label className="flex items-center justify-between gap-3"> |
| 304 | - <span className="text-left">Autocomplete Timeout (ms)</span> | |
| 320 | + <span className="flex items-center gap-x-1 text-left"> | |
| 321 | + Autocomplete Timeout (ms) | |
| 322 | + <ToolTip content="Maximum time in milliseconds for autocomplete request/retrieval."> | |
| 323 | + <InformationCircleIcon className="h-3 w-3" /> | |
| 324 | + </ToolTip> | |
| 325 | + </span> | |
| 305 | 326 | <NumberInput |
| 306 | 327 | value={modelTimeout} |
| 307 | 328 | onChange={(val) => |
| @@ -314,7 +335,12 @@ | ||
| 314 | 335 | /> |
| 315 | 336 | </label> |
| 316 | 337 | <label className="flex items-center justify-between gap-3"> |
| 317 | - <span className="text-left">Autocomplete Debounce (ms)</span> | |
| 338 | + <span className="flex items-center gap-x-1 text-left"> | |
| 339 | + Autocomplete Debounce (ms) | |
| 340 | + <ToolTip content="Minimum time in milliseconds to trigger an autocomplete request after a change."> | |
| 341 | + <InformationCircleIcon className="h-3 w-3" /> | |
| 342 | + </ToolTip> | |
| 343 | + </span> | |
| 318 | 344 | <NumberInput |
| 319 | 345 | value={debounceDelay} |
| 320 | 346 | onChange={(val) => |
| @@ -334,7 +360,12 @@ | ||
| 334 | 360 | }} |
| 335 | 361 | > |
| 336 | 362 | <div className="flex items-center justify-between"> |
| 337 | - <span>Disable autocomplete in files</span> | |
| 363 | + <span className="flex items-center gap-x-1"> | |
| 364 | + Disable autocomplete in files | |
| 365 | + <ToolTip content="List of comma-separated glob pattern to disable autocomplete in matching files. E.g., **/*.{txt,md}"> | |
| 366 | + <InformationCircleIcon className="h-3 w-3" /> | |
| 367 | + </ToolTip> | |
| 368 | + </span> | |
| 338 | 369 | <div className="flex items-center gap-2"> |
| 339 | 370 | <Input |
| 340 | 371 | value={formDisableAutocomplete} |
| @@ -401,6 +432,8 @@ | ||
| 401 | 432 | }) |
| 402 | 433 | } |
| 403 | 434 | text="Auto-Accept Agent Edits" |
| 435 | + tooltip="If on, diffs generated by the edit tool are | |
| 436 | + automatically accepted and Agent proceeds with the next conversational turn." | |
| 404 | 437 | showIfToggled={ |
| 405 | 438 | <> |
| 406 | 439 | <ToolTip |
| @@ -420,6 +453,7 @@ | ||
| 420 | 453 | }) |
| 421 | 454 | } |
| 422 | 455 | text="Add Current File by Default" |
| 456 | + tooltip="If on, the currently open file is added as context in every new conversation." | |
| 423 | 457 | /> |
| 424 | 458 | |
| 425 | 459 | <ToggleSwitch |
| @@ -439,6 +473,7 @@ | ||
| 439 | 473 | onlyUseSystemMessageTools: !onlyUseSystemMessageTools, |
| 440 | 474 | }) |
| 441 | 475 | } |
| 476 | + tooltip="If on, Continue will not attempt to use native tool calling and will only use system message tools." | |
| 442 | 477 | text="Only use system message tools" |
| 443 | 478 | /> |
| 444 | 479 | |
| @@ -460,6 +495,7 @@ | ||
| 460 | 495 | }) |
| 461 | 496 | } |
| 462 | 497 | text="Stream after tool rejection" |
| 498 | + tooltip="If on, streaming will continue after the tool call is rejected." | |
| 463 | 499 | /> |
| 464 | 500 | |
| 465 | 501 | {hasContinueEmail && ( |