Repository navigation
Commit b09abe1
committed
Refactor SortableList component to remove header extra support and restore top insertion index handling
- adding template by using the 'add' icon in upper header, creates it at the bottom but should at the top.
- make 'on add' on `packages/ui/src/components/editor/settings/SortableList/SortableList.tsx` a required prop
- remove 'header extra'
- these items should not touch each other [Image]
├── apps
│ └── editor
│ └── src
│ └── views
│ ├── prompt
│ │ └── frontend
│ │ └── Home
│ │ └── Home.tsx
│ └── settings
│ ├── backend
│ │ └── message-handlers
│ │ ├── handle-create-template.ts
│ │ ├── handle-delete-template.ts
│ │ ├── handle-get-templates.ts
│ │ └── handle-update-templates.ts
│ └── frontend
│ ├── Home
│ │ ├── Home.tsx
│ │ └── sections
│ │ ├── ApiConfigurationsSection.tsx
│ │ ├── GeneralSection.tsx
│ │ ├── ModelProvidersSection.tsx
│ │ └── WebConfigurationsSection.tsx
│ ├── Settings.tsx
│ ├── forms
│ │ └── EditTemplateForm
│ │ ├── EditTemplateForm.module.scss
│ │ ├── EditTemplateForm.tsx
│ │ └── index.ts
│ └── i18n
│ └── translations
│ └── edit-template-form.ts
└── packages
└── ui
└── src
└── components
└── editor
├── prompt
│ └── Tasks
│ ├── Tasks.stories.tsx
│ ├── Tasks.tsx
│ └── components
│ └── TaskGroup.tsx
└── settings
├── Notice
│ ├── Notice.module.scss
│ └── Notice.tsx
├── SortableList
│ ├── SortableList.module.scss
│ ├── SortableList.stories.tsx
│ ├── SortableList.tsx
│ └── index.ts
└── Templates
├── Templates.module.scss
├── Templates.tsx
└── index.ts1 parent b6252d2 commit b09abe1
4 files changed
Lines changed: 14 additions & 26 deletions
File tree
- apps/editor/src/views/settings/frontend/Home/sections
- packages/ui/src/components/editor/settings
- Notice
- SortableList
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
46 | | - | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 52 | | |
59 | 53 | | |
60 | 54 | | |
| |||
74 | 68 | | |
75 | 69 | | |
76 | 70 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 71 | | |
86 | 72 | | |
87 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | | - | |
71 | 69 | | |
72 | | - | |
| 70 | + | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
76 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments