Repository navigation
Commit dc149f6
committed
Refactor task creation and editing focus flow
- when typing a task, it should not be saved to tasks.json until we hit enter/escape. make sure there are no race conditions
- in case of duplicated workspaces: when creating task in one, the input field also appears in the other. should not.
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ ├── duplicate-workspace-command.ts
│ │ └── set-ranges-command.ts
│ ├── constants
│ │ └── state-keys.ts
│ ├── context
│ │ ├── context-initialization.ts
│ │ └── providers
│ │ └── workspace
│ │ └── workspace-provider.ts
│ ├── extension.ts
│ ├── migrations
│ │ └── migrate-ranges-to-global-storage.ts
│ ├── utils
│ │ └── global-workspace-storage.ts
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-clear-completed-tasks.ts
│ │ │ ├── handle-delete-task.ts
│ │ │ ├── handle-get-completed-tasks.ts
│ │ │ ├── handle-get-tasks.ts
│ │ │ ├── handle-save-completed-tasks.ts
│ │ │ ├── handle-save-tasks.ts
│ │ │ └── index.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ └── Home
│ │ ├── Home.tsx
│ │ └── hooks
│ │ └── use-tasks.ts
│ └── types
│ └── messages.ts
└── packages
├── shared
│ └── src
│ └── types
│ └── task.ts
└── ui
└── src
└── components
└── editor
└── prompt-view
└── Tasks
├── Tasks.tsx
├── components
│ └── TaskGroup.tsx
└── hooks
└── use-auto-focus-new-task.ts1 parent 9c36b8c commit dc149f6
4 files changed
Lines changed: 58 additions & 75 deletions
File tree
- apps/editor/src/views/prompt/frontend/Home
- hooks
- packages/ui/src/components/editor/prompt-view/Tasks
- hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
| 290 | + | |
| 291 | + | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
| 298 | + | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | | - | |
| 21 | + | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
66 | 80 | | |
67 | 81 | | |
68 | 82 | | |
| |||
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 88 | | |
78 | 89 | | |
79 | 90 | | |
| |||
85 | 96 | | |
86 | 97 | | |
87 | 98 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
97 | 109 | | |
98 | 110 | | |
99 | 111 | | |
| |||
163 | 175 | | |
164 | 176 | | |
165 | 177 | | |
166 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
167 | 181 | | |
168 | 182 | | |
169 | 183 | | |
| |||
194 | 208 | | |
195 | 209 | | |
196 | 210 | | |
197 | | - | |
| 211 | + | |
198 | 212 | | |
199 | 213 | | |
200 | 214 | | |
| |||
207 | 221 | | |
208 | 222 | | |
209 | 223 | | |
210 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
211 | 227 | | |
212 | 228 | | |
213 | 229 | | |
| |||
234 | 250 | | |
235 | 251 | | |
236 | 252 | | |
237 | | - | |
| 253 | + | |
238 | 254 | | |
239 | | - | |
240 | | - | |
| 255 | + | |
241 | 256 | | |
242 | 257 | | |
243 | 258 | | |
| |||
249 | 264 | | |
250 | 265 | | |
251 | 266 | | |
| 267 | + | |
252 | 268 | | |
253 | 269 | | |
254 | 270 | | |
| |||
289 | 305 | | |
290 | 306 | | |
291 | 307 | | |
292 | | - | |
293 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
294 | 318 | | |
295 | 319 | | |
296 | 320 | | |
| |||
This file was deleted.
0 commit comments