Repository navigation
Commit 384b8f1
committed
Add undo functionality to deletion actions for templates, model providers, API configurations, and web configurations
- when a template gets deleted, show notification allowing 'undo' action
- before a template gets deleted, show confirmation dialog
- implement 'undo' notification when deleting provider or configuration
└── apps
└── editor
└── src
├── commands
│ └── history-command
│ └── actions
│ └── delete-checkpoint-with-undo.ts
├── i18n
│ └── translations
│ └── views
│ ├── prompt
│ │ └── handlers
│ │ └── handle-undo.ts
│ ├── settings
│ │ ├── handlers
│ │ │ ├── handle-create-template.ts
│ │ │ ├── handle-delete-model-provider.ts
│ │ │ ├── handle-delete-template.ts
│ │ │ ├── handle-pick-api-reasoning-effort.ts
│ │ │ ├── index.ts
│ │ │ ├── open-allow-patterns-settings.ts
│ │ │ ├── open-ignore-patterns-settings.ts
│ │ │ └── select-default-api-configuration.ts
│ │ └── index.ts
│ └── shared
│ ├── actions
│ │ ├── api
│ │ │ ├── common.ts
│ │ │ ├── create
│ │ │ │ ├── create.ts
│ │ │ │ ├── index.ts
│ │ │ │ └── interactions
│ │ │ │ ├── index.ts
│ │ │ │ ├── initial-select-model.ts
│ │ │ │ ├── initial-select-provider.ts
│ │ │ │ └── verify-model.ts
│ │ │ ├── delete.ts
│ │ │ ├── index.ts
│ │ │ ├── pick-reasoning-effort.ts
│ │ │ ├── update
│ │ │ │ ├── index.ts
│ │ │ │ └── interactions
│ │ │ │ ├── edit-model-for-api-config.ts
│ │ │ │ ├── edit-reasoning-effort-for-api-config.ts
│ │ │ │ └── index.ts
│ │ │ └── upsert-provider.ts
│ │ ├── index.ts
│ │ └── web
│ │ ├── create.ts
│ │ ├── delete.ts
│ │ ├── index.ts
│ │ ├── pick-chatbot.ts
│ │ ├── pick-model.ts
│ │ └── update.ts
│ └── index.ts
└── views
├── settings
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-add-model-provider.ts
│ │ │ ├── handle-create-api-configuration.ts
│ │ │ ├── handle-create-template.ts
│ │ │ ├── handle-create-web-configuration.ts
│ │ │ ├── handle-delete-api-configuration.ts
│ │ │ ├── handle-delete-model-provider.ts
│ │ │ ├── handle-delete-template.ts
│ │ │ ├── handle-delete-web-configuration.ts
│ │ │ ├── handle-get-ai-studio-user-id.ts
│ │ │ ├── handle-get-api-configurations.ts
│ │ │ ├── handle-get-are-automatic-checkpoints-disabled.ts
│ │ │ ├── handle-get-attach-ascii-tree-of-context.ts
│ │ │ ├── handle-get-auto-run-intelligent-update.ts
│ │ │ ├── handle-get-check-new-files.ts
│ │ │ ├── handle-get-checkpoint-lifespan.ts
│ │ │ ├── handle-get-clear-checks-in-workspace-behavior.ts
│ │ │ ├── handle-get-commit-message-instructions.ts
│ │ │ ├── handle-get-context-size-warning-threshold.ts
│ │ │ ├── handle-get-edit-files-system-instructions.ts
│ │ │ ├── handle-get-gemini-user-id.ts
│ │ │ ├── handle-get-include-prompts-in-commit-messages.ts
│ │ │ ├── handle-get-intelligent-file-search-instructions.ts
│ │ │ ├── handle-get-limit-semantic-search-results.ts
│ │ │ ├── handle-get-model-providers.ts
│ │ │ ├── handle-get-reuse-last-tab.ts
│ │ │ ├── handle-get-send-with-shift-enter.ts
│ │ │ ├── handle-get-synchronize-edit-format-between-modes.ts
│ │ │ ├── handle-get-templates.ts
│ │ │ ├── handle-open-allow-patterns-settings.ts
│ │ │ ├── handle-open-external-url.ts
│ │ │ ├── handle-open-ignore-patterns-settings.ts
│ │ │ ├── handle-open-keybindings.ts
│ │ │ ├── handle-pick-api-model.ts
│ │ │ ├── handle-pick-api-reasoning-effort.ts
│ │ │ ├── handle-pick-chatbot.ts
│ │ │ ├── handle-pick-model-provider.ts
│ │ │ ├── handle-pick-model.ts
│ │ │ ├── handle-pick-reasoning-effort.ts
│ │ │ ├── handle-reorder-api-configurations.ts
│ │ │ ├── handle-reorder-model-providers.ts
│ │ │ ├── handle-reorder-web-configurations.ts
│ │ │ ├── handle-select-default-api-configuration.ts
│ │ │ ├── handle-set-default-api-configuration.ts
│ │ │ ├── handle-update-ai-studio-user-id.ts
│ │ │ ├── handle-update-api-configuration.ts
│ │ │ ├── handle-update-are-automatic-checkpoints-disabled.ts
│ │ │ ├── handle-update-attach-ascii-tree-of-context.ts
│ │ │ ├── handle-update-auto-run-intelligent-update.ts
│ │ │ ├── handle-update-check-new-files.ts
│ │ │ ├── handle-update-checkpoint-lifespan.ts
│ │ │ ├── handle-update-clear-checks-in-workspace-behavior.ts
│ │ │ ├── handle-update-commit-message-instructions.ts
│ │ │ ├── handle-update-context-size-warning-threshold.ts
│ │ │ ├── handle-update-edit-files-system-instructions.ts
│ │ │ ├── handle-update-gemini-user-id.ts
│ │ │ ├── handle-update-include-prompts-in-commit-messages.ts
│ │ │ ├── handle-update-intelligent-file-search-instructions.ts
│ │ │ ├── handle-update-limit-semantic-search-results.ts
│ │ │ ├── handle-update-model-provider.ts
│ │ │ ├── handle-update-reuse-last-tab.ts
│ │ │ ├── handle-update-send-with-shift-enter.ts
│ │ │ ├── handle-update-synchronize-edit-format-between-modes.ts
│ │ │ ├── handle-update-templates.ts
│ │ │ ├── handle-update-web-configuration.ts
│ │ │ └── index.ts
│ │ └── settings-view-provider.ts
│ ├── frontend
│ │ ├── App.tsx
│ │ ├── Home
│ │ │ ├── Home.tsx
│ │ │ ├── index.ts
│ │ │ └── sections
│ │ │ ├── ApiConfigurationsSection.tsx
│ │ │ ├── GeneralSection.tsx
│ │ │ ├── ModelProvidersSection.tsx
│ │ │ └── WebConfigurationsSection.tsx
│ │ ├── Settings.tsx
│ │ ├── forms
│ │ │ ├── EditModelProviderForm
│ │ │ │ ├── EditModelProviderForm.module.scss
│ │ │ │ ├── EditModelProviderForm.tsx
│ │ │ │ └── index.ts
│ │ │ └── EditTemplateForm
│ │ │ ├── EditTemplateForm.module.scss
│ │ │ ├── EditTemplateForm.tsx
│ │ │ └── index.ts
│ │ ├── hooks
│ │ │ ├── use-api-configuration-editing.ts
│ │ │ ├── use-model-provider-editing.ts
│ │ │ ├── use-settings.ts
│ │ │ └── use-web-configuration-editing.ts
│ │ ├── i18n
│ │ │ ├── translations
│ │ │ │ ├── actions.ts
│ │ │ │ ├── api-calls.ts
│ │ │ │ ├── chatbots.ts
│ │ │ │ ├── common.ts
│ │ │ │ ├── edit-model-provider-form.ts
│ │ │ │ ├── edit-template-form.ts
│ │ │ │ ├── general.ts
│ │ │ │ ├── index.ts
│ │ │ │ └── sections.ts
│ │ │ └── use-translation.tsx
│ │ └── utils
│ │ └── post-message.ts
│ └── types
│ └── messages.ts
└── shared
├── actions
│ ├── api
│ │ ├── create
│ │ │ ├── create.ts
│ │ │ └── interactions
│ │ │ ├── index.ts
│ │ │ ├── initial-select-model.ts
│ │ │ ├── initial-select-provider.ts
│ │ │ ├── verify-model.ts
│ │ │ └── verify-reasoning-effort.ts
│ │ ├── delete.ts
│ │ ├── pick-reasoning-effort.ts
│ │ ├── reorder.ts
│ │ ├── update
│ │ │ ├── interactions
│ │ │ │ ├── edit-model-for-api-config.ts
│ │ │ │ ├── edit-provider-for-api-config.ts
│ │ │ │ ├── edit-reasoning-effort-for-api-config.ts
│ │ │ │ └── index.ts
│ │ │ └── update.ts
│ │ └── upsert-provider.ts
│ └── web
│ ├── create.ts
│ ├── delete.ts
│ ├── pick-chatbot.ts
│ ├── pick-model.ts
│ ├── reorder.ts
│ ├── toggle-pinned.ts
│ └── update.ts
├── forms
│ ├── EditApiConfigurationForm
│ │ ├── EditApiConfigurationForm.module.scss
│ │ ├── EditApiConfigurationForm.tsx
│ │ └── index.ts
│ └── EditWebConfigurationForm
│ ├── EditWebConfigurationForm.module.scss
│ ├── EditWebConfigurationForm.tsx
│ └── index.ts
├── hooks
│ └── use-translation.tsx
├── i18n
│ ├── translations
│ │ ├── common.ts
│ │ ├── edit-api-configuration-form.ts
│ │ ├── edit-web-configuration-form.ts
│ │ └── index.ts
│ └── use-translation.tsx
├── types
│ ├── api-features.ts
│ └── messages.ts
└── utils
├── generate-unique-name.ts
└── webview-html.ts1 parent 15563e4 commit 384b8f1
17 files changed
Lines changed: 364 additions & 11 deletions
File tree
- apps/editor/src
- i18n/translations/views
- settings/handlers
- views
- settings
- backend
- message-handlers
- frontend
- Home
- sections
- hooks
- types
| 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 | |
|---|---|---|---|
| |||
| 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 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
| 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 | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 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 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
19 | 55 | | |
20 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
37 | 62 | | |
| 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 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| 173 | + | |
| 174 | + | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
| |||
0 commit comments