Repository navigation
Commit 6dd4b62
committed
Make template prompt symbols non-interactive and clean up preview changes error handling
- user should not be able to click on symbols in Templates (settings) but do in prompt field (panel)
├── apps
│ └── editor
│ └── src
│ └── views
│ ├── prompt
│ │ └── frontend
│ │ └── Main
│ │ └── MainView
│ │ └── MainView.tsx
│ └── settings
│ ├── backend
│ │ ├── message-handlers
│ │ │ └── handle-hash-sign-quick-pick.ts
│ │ └── settings-view-provider.ts
│ ├── frontend
│ │ ├── Home
│ │ │ └── sections
│ │ │ └── GeneralSection.tsx
│ │ ├── Settings.tsx
│ │ └── forms
│ │ └── EditTemplateForm
│ │ ├── EditTemplateForm.module.scss
│ │ ├── EditTemplateForm.tsx
│ │ └── index.ts
│ └── types
│ └── messages.ts
└── packages
└── ui
└── src
└── components
└── editor
├── common
│ └── prompts
│ ├── PromptField
│ │ ├── PromptField.tsx
│ │ ├── components
│ │ │ └── Footer
│ │ │ └── Footer.tsx
│ │ └── hooks
│ │ └── use-handlers
│ │ └── handle-input-click.ts
│ ├── Template
│ │ ├── Template.module.scss
│ │ └── Template.tsx
│ └── shared
│ └── symbols
│ ├── caret.ts
│ ├── get-highlighted-text.tsx
│ ├── index.ts
│ ├── position-mapping.ts
│ ├── prompt-symbols.module.scss
│ ├── reconstruct-raw-value.ts
│ └── use-symbol-deletion.ts
└── settings-view
└── Templates
└── Templates.tsx1 parent c10463c commit 6dd4b62
4 files changed
Lines changed: 31 additions & 32 deletions
File tree
- apps/editor/src/views/prompt/backend/message-handlers
- packages/ui/src/components/editor/common/prompts
- Template
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 19 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 20 | + | |
28 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| 55 | + | |
57 | 56 | | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 98 | + | |
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
| |||
110 | 106 | | |
111 | 107 | | |
112 | 108 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 109 | + | |
117 | 110 | | |
118 | 111 | | |
119 | 112 | | |
| |||
133 | 126 | | |
134 | 127 | | |
135 | 128 | | |
136 | | - | |
| 129 | + | |
| 130 | + | |
137 | 131 | | |
138 | 132 | | |
139 | 133 | | |
| |||
155 | 149 | | |
156 | 150 | | |
157 | 151 | | |
158 | | - | |
| 152 | + | |
| 153 | + | |
159 | 154 | | |
160 | 155 | | |
161 | 156 | | |
| |||
175 | 170 | | |
176 | 171 | | |
177 | 172 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 173 | + | |
182 | 174 | | |
183 | 175 | | |
184 | 176 | | |
| |||
194 | 186 | | |
195 | 187 | | |
196 | 188 | | |
197 | | - | |
| 189 | + | |
| 190 | + | |
198 | 191 | | |
199 | 192 | | |
200 | 193 | | |
| |||
217 | 210 | | |
218 | 211 | | |
219 | 212 | | |
220 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
221 | 216 | | |
222 | 217 | | |
223 | 218 | | |
| |||
230 | 225 | | |
231 | 226 | | |
232 | 227 | | |
233 | | - | |
| 228 | + | |
| 229 | + | |
234 | 230 | | |
235 | 231 | | |
236 | 232 | | |
| |||
240 | 236 | | |
241 | 237 | | |
242 | 238 | | |
243 | | - | |
| 239 | + | |
| 240 | + | |
244 | 241 | | |
245 | 242 | | |
246 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
214 | 222 | | |
215 | 223 | | |
216 | 224 | | |
| |||
0 commit comments