Repository navigation
Commit 81f1d5b
committed
Refactor commit message generation to support interactive action selection and chatbot autofill
- before showing a list of configurations (or using the default one) show a quick pick with 2 options: Make API request, Copy prompt
- rename 'make api request' to 'Generate with API call' (also translation key)
- rename 'make api request' to 'Call API for commit message' (also translation key)
- add missing translations [Fragment]
- rename [Fragment] to 'make api call for commit message' (with translation key and other languages)
- implement option "Enter commit message manually", place below "Make api call for commit message"
- remove standalone command 'copyCommitMessagePrompt'
- remove standalone command 'applyCommitMessageFromClipboard'
- implement 'commit message action': 'autofill in chatbot'
- 'generate commit message command' should have direct access to websockets, not via `apps/editor/src/views/prompt/backend/prompt-view-provider.ts`, should use native notifcations instead of auto closing modals
- 'initialize chat message' should have optional key 'is for commit message', if true, the browser extension should display the 'apply response' button
- in `apps/editor/src/commands/generate-commit-message-command/actions/run-generate-action.ts` should highlight last used web configuration
- move `apps/editor/src/features/commit-messages/utils` close to the command itself
- 'commit message action' quick pick should have close button
- rename 'make api call for commit message' to 'make api call' (with translation key and other translations)
- rename 'enter commit message manually' to 'enter manually' (with translation key and other translations)
- in 'commit message action', remeber last choice
- should close 'commit message action' on outside clicks
- should not show option 'autofill in chatbot' if not connected with browser
- in 'commit message action' should not highlight any option if none was last used
- add missing translations to [Fragment]
├── apps
│ ├── browser
│ │ └── src
│ │ ├── background
│ │ │ ├── clear-chat-init-data.ts
│ │ │ ├── config.ts
│ │ │ ├── keep-alive.ts
│ │ │ ├── main.ts
│ │ │ ├── message-handler.ts
│ │ │ └── websocket.ts
│ │ ├── content-scripts
│ │ │ └── send-prompt-content-script
│ │ │ ├── send-prompt-content-script.ts
│ │ │ └── types
│ │ │ └── chatbot.ts
│ │ ├── manifest.json
│ │ └── types
│ │ └── messages.ts
│ └── editor
│ ├── package.json
│ ├── package.nls.bg.json
│ ├── package.nls.cs.json
│ ├── package.nls.de.json
│ ├── package.nls.es.json
│ ├── package.nls.fr.json
│ ├── package.nls.hu.json
│ ├── package.nls.it.json
│ ├── package.nls.ja.json
│ ├── package.nls.json
│ ├── package.nls.ko.json
│ ├── package.nls.pl.json
│ ├── package.nls.pt-br.json
│ ├── package.nls.ru.json
│ ├── package.nls.tr.json
│ ├── package.nls.zh-cn.json
│ ├── package.nls.zh-tw.json
│ └── src
│ ├── commands
│ │ ├── code-at-cursor-command
│ │ │ └── utils
│ │ │ └── get-code-at-cursor-config.ts
│ │ └── generate-commit-message-command
│ │ ├── actions
│ │ │ ├── get-prompt-data.ts
│ │ │ └── run-generate-action.ts
│ │ ├── generate-commit-message-command.ts
│ │ ├── index.ts
│ │ └── utils
│ │ ├── build-commit-message-prompt.ts
│ │ ├── generate-commit-message-with-api.ts
│ │ ├── get-commit-message-config.ts
│ │ └── strip-wrapping-quotes.ts
│ ├── constants
│ │ ├── instructions.ts
│ │ └── state-keys.ts
│ ├── extension.ts
│ ├── features
│ │ ├── commit-messages
│ │ │ ├── index.ts
│ │ │ └── utils
│ │ │ ├── build-commit-message-prompt.ts
│ │ │ ├── generate-commit-message-with-api.ts
│ │ │ ├── get-commit-message-config.ts
│ │ │ └── strip-wrapping-quotes.ts
│ │ └── search-files
│ │ └── utils
│ │ └── prompt-for-config.ts
│ ├── i18n
│ │ └── translations
│ │ ├── commands
│ │ │ └── generate-commit-message.ts
│ │ └── features
│ │ ├── imported-files.ts
│ │ └── index.ts
│ ├── services
│ │ └── websocket-manager.ts
│ ├── utils
│ │ └── show-configuration-quick-pick.ts
│ └── views
│ └── prompt
│ └── backend
│ ├── message-handlers
│ │ ├── handle-autofill.ts
│ │ ├── handle-make-api-call.ts
│ │ ├── handle-update-last-used-web-configuration.ts
│ │ ├── handle-voice-input.ts
│ │ └── utils
│ │ └── intelligent-update-utils.ts
│ └── prompt-view-provider.ts
└── packages
└── shared
└── src
└── types
├── prompt-types.ts
└── websocket-message.ts1 parent e25ee81 commit 81f1d5b
34 files changed
Lines changed: 402 additions & 142 deletions
File tree
- apps
- browser/src
- background
- content-scripts/send-prompt-content-script
- editor
- src
- commands/generate-commit-message-command
- actions
- utils
- constants
- features/commit-messages
- i18n/translations/commands
- services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | | - | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | 325 | | |
338 | 326 | | |
339 | 327 | | |
| |||
565 | 553 | | |
566 | 554 | | |
567 | 555 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | 556 | | |
573 | 557 | | |
574 | 558 | | |
| |||
785 | 769 | | |
786 | 770 | | |
787 | 771 | | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | 772 | | |
799 | 773 | | |
800 | 774 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
| |||
0 commit comments