Repository navigation
Commit 0563c70
committed
Add support for exact insertion positioning when creating items
- above/below quick pick is shown in inappropriate scenarios: - there is no configuration/model provider, - user clicked 'add' from the top header
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ └── apply-response-command
│ │ └── utils
│ │ └── response-parser
│ │ └── parsers
│ │ └── multiple-files-parser
│ │ └── test
│ │ ├── cases
│ │ │ └── delete-file-header
│ │ │ └── delete-file-header.txt
│ │ └── multiple-files-parser.spec.ts
│ └── views
│ ├── prompt
│ │ ├── backend
│ │ │ └── message-handlers
│ │ │ ├── handle-create-api-configuration.ts
│ │ │ ├── handle-create-web-configuration.ts
│ │ │ ├── handle-update-api-configuration.ts
│ │ │ └── handle-update-web-configuration.ts
│ │ ├── frontend
│ │ │ ├── Main
│ │ │ │ ├── Main.tsx
│ │ │ │ └── MainView
│ │ │ │ └── MainView.tsx
│ │ │ ├── Prompt.tsx
│ │ │ └── hooks
│ │ │ ├── use-api-configuration-editing.ts
│ │ │ └── use-web-configuration-editing.ts
│ │ └── types
│ │ └── messages.ts
│ ├── 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-web-configuration.ts
│ │ │ │ ├── handle-get-api-configurations.ts
│ │ │ │ ├── handle-get-model-providers.ts
│ │ │ │ ├── handle-reorder-api-configurations.ts
│ │ │ │ ├── handle-reorder-model-providers.ts
│ │ │ │ ├── handle-reorder-web-configurations.ts
│ │ │ │ ├── handle-update-api-configuration.ts
│ │ │ │ ├── handle-update-model-provider.ts
│ │ │ │ └── handle-update-web-configuration.ts
│ │ │ └── settings-view-provider.ts
│ │ ├── frontend
│ │ │ ├── Home
│ │ │ │ ├── Home.tsx
│ │ │ │ └── sections
│ │ │ │ ├── ApiConfigurationsSection.tsx
│ │ │ │ ├── GeneralSection.tsx
│ │ │ │ ├── ModelProvidersSection.tsx
│ │ │ │ └── WebConfigurationsSection.tsx
│ │ │ ├── Settings.tsx
│ │ │ └── hooks
│ │ │ ├── use-api-configuration-editing.ts
│ │ │ ├── use-model-provider-editing.ts
│ │ │ ├── use-settings.ts
│ │ │ └── use-web-configuration-editing.ts
│ │ └── types
│ │ └── messages.ts
│ └── shared
│ ├── actions
│ │ ├── api
│ │ │ ├── create
│ │ │ │ └── create.ts
│ │ │ ├── delete.ts
│ │ │ ├── reorder.ts
│ │ │ ├── update
│ │ │ │ └── update.ts
│ │ │ └── upsert-provider.ts
│ │ └── web
│ │ ├── create.ts
│ │ ├── delete.ts
│ │ ├── reorder.ts
│ │ └── update.ts
│ └── forms
│ ├── EditApiConfigurationForm
│ │ └── EditApiConfigurationForm.tsx
│ └── EditWebConfigurationForm
│ └── EditWebConfigurationForm.tsx
└── packages
└── ui
└── src
└── components
└── editor
├── prompt
│ └── Configurations
│ └── Configurations.tsx
└── settings
├── SortableList
│ └── SortableList.tsx
└── Templates
└── Templates.tsx1 parent 8bb1c17 commit 0563c70
23 files changed
Lines changed: 2033 additions & 547 deletions
File tree
- apps/editor
- src/views
- prompt
- backend/message-handlers
- frontend/Main
- MainView
- types
- settings
- backend/message-handlers
- frontend
- Home
- sections
- hooks
- types
- packages/ui/src/components/editor
- prompt/Configurations
- settings
- SortableList
- Templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | | - | |
| 1235 | + | |
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
| |||
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
1265 | | - | |
| 1265 | + | |
1266 | 1266 | | |
1267 | 1267 | | |
1268 | 1268 | | |
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | 1283 | | |
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | | - | |
| 1292 | + | |
1293 | 1293 | | |
1294 | 1294 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
299 | | - | |
| 300 | + | |
| 301 | + | |
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
| |||
342 | 344 | | |
343 | 345 | | |
344 | 346 | | |
345 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
346 | 351 | | |
347 | 352 | | |
348 | | - | |
| 353 | + | |
| 354 | + | |
349 | 355 | | |
350 | 356 | | |
351 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
410 | 416 | | |
411 | 417 | | |
412 | 418 | | |
413 | | - | |
| 419 | + | |
414 | 420 | | |
415 | 421 | | |
416 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
| 443 | + | |
442 | 444 | | |
443 | 445 | | |
444 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments