Repository navigation
Commit a90c266
committed
Refactor missing configuration warnings and update prompt field logic to account for selected files
- in 'web' target, when connected, should not use 'copy' as primary action
- rename `packages/ui/src/components/editor/prompt/BrowserExtensionMessage/BrowserExtensionMessage.tsx` to BrowserExtensionNotice
- in `packages/ui/src/components/editor/prompt/BrowserExtensionNotice/BrowserExtensionNotice.tsx` use gradient between bg blue and bg green
- [Fragment] should be disabled when in 'edit' prompt type without context files
- when prompt is empty, the voice input should always be a default action, while keeping current shortcuts
- use common.no-configurations-found instead of [Fragment]
- add translations to [Fragment]
- whenever about to show 'no configurations found' notification - show warning modal with button 'Open settings' (directing appropriately to web/api configurations). Use shared util for this.
- rename 'no configurations found' to 'missing configuration'. use modal instead of notification
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ ├── code-at-cursor-command
│ │ │ └── utils
│ │ │ ├── get-code-at-cursor-config.ts
│ │ │ └── perform-code-at-cursor.ts
│ │ └── generate-commit-message-commands
│ │ ├── actions
│ │ │ └── run-generate-action.ts
│ │ └── utils
│ │ └── get-commit-message-config.ts
│ ├── features
│ │ └── search-files
│ │ └── search-modes
│ │ └── perform-intelligent-search-mode.ts
│ ├── i18n
│ │ └── translations
│ │ └── common.ts
│ ├── utils
│ │ ├── ascii-tree
│ │ │ ├── ascii-tree.ts
│ │ │ ├── index.ts
│ │ │ └── utils.ts
│ │ └── show-no-configurations-warning.ts
│ └── views
│ ├── prompt
│ │ ├── backend
│ │ │ └── message-handlers
│ │ │ ├── handle-autofill.ts
│ │ │ └── utils
│ │ │ └── intelligent-update-utils.ts
│ │ └── frontend
│ │ ├── Main
│ │ │ └── MainView
│ │ │ └── MainView.tsx
│ │ └── Prompt.tsx
│ └── settings
│ └── helpers
│ └── open-settings.ts
└── packages
└── ui
└── src
├── components
│ └── editor
│ ├── common
│ │ ├── TextButton
│ │ │ └── TextButton.tsx
│ │ └── prompts
│ │ ├── PromptField
│ │ │ ├── PromptField.module.scss
│ │ │ ├── PromptField.stories.tsx
│ │ │ ├── PromptField.tsx
│ │ │ ├── hooks
│ │ │ │ ├── use-drag-drop.ts
│ │ │ │ ├── use-dropdown.ts
│ │ │ │ ├── use-ghost-text.ts
│ │ │ │ ├── use-handlers
│ │ │ │ │ ├── handle-copy.ts
│ │ │ │ │ ├── handle-cut.ts
│ │ │ │ │ ├── handle-input-change.ts
│ │ │ │ │ ├── handle-input-click.ts
│ │ │ │ │ ├── handle-key-down.ts
│ │ │ │ │ ├── handle-paste.ts
│ │ │ │ │ ├── handle-submit.ts
│ │ │ │ │ ├── index.ts
│ │ │ │ │ ├── types.ts
│ │ │ │ │ ├── use-handlers.ts
│ │ │ │ │ └── utils.ts
│ │ │ │ └── use-keyboard-shortcuts.ts
│ │ │ └── index.ts
│ │ ├── Template
│ │ │ ├── Template.module.scss
│ │ │ ├── Template.tsx
│ │ │ └── index.ts
│ │ └── shared
│ │ └── symbols
│ │ ├── caret.ts
│ │ ├── get-highlighted-text.tsx
│ │ ├── index.ts
│ │ ├── position-mapping.ts
│ │ ├── prompt-symbols.module.scss
│ │ ├── reconstruct-raw-value.ts
│ │ └── use-symbol-deletion.ts
│ └── prompt
│ └── BrowserExtensionNotice
│ ├── BrowserExtensionNotice.module.scss
│ ├── BrowserExtensionNotice.stories.tsx
│ ├── BrowserExtensionNotice.tsx
│ └── index.ts
└── styles
└── foundation
└── _colors.scss1 parent f5a9603 commit a90c266
19 files changed
Lines changed: 178 additions & 135 deletions
File tree
- apps/editor/src
- commands
- code-at-cursor-command/utils
- generate-commit-message-commands
- actions
- utils
- features/search-files/search-modes
- i18n/translations
- utils
- views/prompt
- backend/message-handlers
- handle-at-sign-quick-pick
- utils
- frontend
- Main/MainView
- packages/ui/src/components/editor
- common/prompts/PromptField
- prompt
- BrowserExtensionMessage
- BrowserExtensionNotice
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
| 288 | + | |
290 | 289 | | |
291 | 290 | | |
292 | 291 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
| 283 | + | |
285 | 284 | | |
286 | 285 | | |
287 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
| 304 | + | |
306 | 305 | | |
307 | 306 | | |
308 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
507 | 524 | | |
508 | 525 | | |
509 | 526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
0 commit comments