Repository navigation
Commit 21285f3
committed
Rename configuration sections to chatbots and models and add direct settings links to warning banners
- 'missing model' should not be in 'common' as it's not reused
- in api target, when there are no models, show (above the prompt field) a status bar (warning) 'Missing model', '+ add new'
- rename 'add new' to 'Settings'
- handle [Fragment] by running `apps/editor/src/views/settings/helpers/open-settings.ts` through backed
- rename 'manage api configurations' to 'manage models'
- when connected and there are no chatbots, show warning 'Missing chatbot'
- handle manage chatbots/handle manage models should not be separate files, just use `apps/editor/src/views/settings/helpers/open-settings.ts` in `apps/editor/src/views/prompt/backend/prompt-view-provider.ts`
- implement approach 2 [Pasted text]
- in `apps/editor/src/views/settings/frontend/Home/Home.tsx`, move the scrolling related logic to a hook in `apps/editor/src/views/settings/frontend/Home/hooks`
- Type 'string | undefined' is not assignable to type 'NavItem | undefined'. Type 'string' is not assignable to type 'NavItem | undefined'
- `apps/editor/src/views/settings/frontend/Home/hooks/use-settings-navigation.ts` should be named use-scroll-to
└── apps
└── editor
└── src
└── views
├── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ └── index.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ ├── MainView.tsx
│ │ │ └── components
│ │ │ └── BrowserConnectionStatus
│ │ │ └── BrowserConnectionStatus.tsx
│ │ ├── Prompt.tsx
│ │ ├── hooks
│ │ │ └── use-prompt
│ │ │ ├── hooks
│ │ │ │ └── use-instructions.ts
│ │ │ ├── index.ts
│ │ │ └── use-prompt.ts
│ │ └── i18n
│ │ ├── translations
│ │ │ ├── actions.ts
│ │ │ ├── common.ts
│ │ │ ├── configurations.ts
│ │ │ ├── footer.ts
│ │ │ ├── header.ts
│ │ │ ├── home.ts
│ │ │ ├── index.ts
│ │ │ ├── main.ts
│ │ │ ├── modals.ts
│ │ │ ├── prompt-field.ts
│ │ │ ├── recent-donations.ts
│ │ │ └── selected-files.ts
│ │ └── use-translation.tsx
│ └── types
│ └── messages.ts
└── settings
├── frontend
│ ├── Home
│ │ ├── Home.tsx
│ │ ├── hooks
│ │ │ └── use-scroll-to.ts
│ │ └── sections
│ │ └── ApiSection.tsx
│ ├── Settings.tsx
│ ├── hooks
│ │ ├── use-api-configuration-editing.ts
│ │ ├── use-provider-editing.ts
│ │ ├── use-settings.ts
│ │ └── use-web-configuration-editing.ts
│ └── i18n
│ └── translations
│ ├── actions.ts
│ ├── api.ts
│ ├── common.ts
│ ├── edit-provider-form.ts
│ ├── edit-template-form.ts
│ ├── general.ts
│ ├── index.ts
│ ├── sections.ts
│ └── web.ts
└── helpers
└── open-settings.ts1 parent 08d9dd1 commit 21285f3
18 files changed
Lines changed: 405 additions & 271 deletions
File tree
- apps/editor
- src
- utils
- views
- prompt
- backend
- message-handlers
- frontend
- Main
- MainView
- i18n/translations
- types
- settings
- frontend
- Home
- hooks
- sections
- i18n/translations
- helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
771 | | - | |
772 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
773 | 775 | | |
774 | 776 | | |
775 | 777 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
314 | 326 | | |
315 | 327 | | |
316 | 328 | | |
| |||
484 | 496 | | |
485 | 497 | | |
486 | 498 | | |
| 499 | + | |
| 500 | + | |
487 | 501 | | |
488 | 502 | | |
489 | 503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
280 | 282 | | |
281 | 283 | | |
282 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
283 | 327 | | |
284 | 328 | | |
285 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
2 | 20 | | |
3 | 21 | | |
4 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
2 | 20 | | |
3 | 21 | | |
4 | 22 | | |
| |||
17 | 35 | | |
18 | 36 | | |
19 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
20 | 56 | | |
21 | 57 | | |
22 | 58 | | |
| |||
0 commit comments