Repository navigation
Commit dd2789e
committed
Replace browser extension banner with connection status component and update color variables to yellow
- add missing translations [Fragment]
- create component similar to `packages/ui/src/components/editor/prompt/PromptAttachments/PromptAttachments.tsx` but name it 'Browser connection status'. Place below [Fragment]. Should be green with text 'Connected!', or yellow with text 'Install in web browser'
- in `packages/ui/src/components/editor/prompt/BrowserConnectionStatus/BrowserConnectionStatus.tsx` add 'install' action shown when not connected, and 'hide' action, shown when connected. style these actions similarly to actions of `packages/ui/src/components/editor/prompt/ResponsePreview/components/FileItem/FileItem.tsx`
- handle closing internally, not by prop, reset closed state on disconnect
- hanld 'on install' through a quick pick showing 2 appropriate options
- on file list, should search in descriptions as well
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ ├── apply-response-command
│ │ │ └── utils
│ │ │ └── preview
│ │ │ ├── index.ts
│ │ │ └── vscode-ui.ts
│ │ ├── generate-commit-message-commands
│ │ │ ├── generate-commit-message-commands.ts
│ │ │ ├── index.ts
│ │ │ └── utils
│ │ │ ├── generate-commit-message-with-api.ts
│ │ │ ├── get-commit-message-config.ts
│ │ │ └── strip-wrapping-quotes.ts
│ │ └── rate-extension-command.ts
│ ├── constants
│ │ ├── instructions.ts
│ │ ├── state-keys.ts
│ │ └── values.ts
│ ├── features
│ │ └── checkpoints
│ │ └── actions
│ │ ├── create-checkpoint.ts
│ │ └── index.ts
│ ├── i18n
│ │ ├── index.ts
│ │ └── translations
│ │ ├── commands
│ │ │ ├── index.ts
│ │ │ ├── install-browser-extension.ts
│ │ │ └── rate-extension.ts
│ │ └── views
│ │ └── shared
│ │ └── actions
│ │ └── web
│ │ └── create.ts
│ ├── services
│ │ ├── model-providers-manager.ts
│ │ └── websocket-manager.ts
│ ├── utils
│ │ ├── apply-reasoning-effort.ts
│ │ ├── ascii-tree
│ │ │ ├── ascii-tree.ts
│ │ │ └── index.ts
│ │ ├── commit-message-details.ts
│ │ ├── files-collector.ts
│ │ ├── git-repository-utils.ts
│ │ ├── normalize-path.ts
│ │ ├── prompt-builder.ts
│ │ ├── send-llm-message.ts
│ │ ├── show-configuration-quick-pick.ts
│ │ └── show-no-configurations-warning.ts
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-at-sign-quick-pick
│ │ │ │ └── handle-at-sign-quick-pick.ts
│ │ │ ├── handle-hash-sign-quick-pick
│ │ │ │ └── handle-hash-sign-quick-pick.ts
│ │ │ ├── handle-install-browser-extension.ts
│ │ │ ├── handle-pick-tasks-workspace.ts
│ │ │ ├── handle-select-edit-format-instructions.ts
│ │ │ ├── handle-template-quick-pick.ts
│ │ │ └── index.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ └── MainView.tsx
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ └── use-prompt
│ │ └── use-prompt.ts
│ └── types
│ └── messages.ts
└── packages
├── shared
│ └── src
│ ├── constants
│ │ ├── chatbots.ts
│ │ └── dictionary.ts
│ └── utils
│ ├── display-token-count.ts
│ └── logger.ts
└── ui
└── src
├── components
│ └── editor
│ └── prompt
│ ├── BrowserConnectionStatus
│ │ ├── BrowserConnectionStatus.module.scss
│ │ ├── BrowserConnectionStatus.stories.tsx
│ │ ├── BrowserConnectionStatus.tsx
│ │ └── index.ts
│ ├── BrowserExtensionMessage
│ │ ├── BrowserExtensionMessage.module.scss
│ │ ├── BrowserExtensionMessage.stories.tsx
│ │ ├── BrowserExtensionMessage.tsx
│ │ └── index.ts
│ ├── PromptAttachments
│ │ ├── PromptAttachments.module.scss
│ │ ├── PromptAttachments.stories.tsx
│ │ ├── PromptAttachments.tsx
│ │ └── index.ts
│ └── ResponsePreview
│ └── components
│ └── FileItem
│ ├── FileItem.module.scss
│ └── FileItem.tsx
└── styles
└── foundation
└── _colors.scss1 parent 9987a68 commit dd2789e
28 files changed
Lines changed: 364 additions & 62 deletions
File tree
- apps/editor/src
- i18n/translations
- commands
- utils
- views/prompt
- backend
- message-handlers
- frontend/Main
- MainView
- types
- packages/ui
- .storybook
- src
- components/editor
- prompt
- BrowserConnectionStatus
- BrowserExtensionMessage
- IconAccentButton
- PromptAttachments
- ResponsePreview
- components/FileItem
- Responses
- settings
- Notice
- Templates
- styles/foundation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| 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 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| |||
| 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 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
863 | 864 | | |
864 | 865 | | |
865 | 866 | | |
| 867 | + | |
| 868 | + | |
866 | 869 | | |
867 | 870 | | |
868 | 871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
394 | 400 | | |
395 | 401 | | |
396 | 402 | | |
| |||
539 | 545 | | |
540 | 546 | | |
541 | 547 | | |
| 548 | + | |
542 | 549 | | |
543 | 550 | | |
544 | 551 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
249 | 263 | | |
250 | 264 | | |
251 | 265 | | |
| |||
379 | 393 | | |
380 | 394 | | |
381 | 395 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | 396 | | |
390 | 397 | | |
391 | 398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
519 | 523 | | |
520 | 524 | | |
521 | 525 | | |
| |||
606 | 610 | | |
607 | 611 | | |
608 | 612 | | |
| 613 | + | |
609 | 614 | | |
610 | 615 | | |
611 | 616 | | |
| |||
0 commit comments