Repository navigation
Commit d70149b
committed
Send task content with SAVE_COMPLETED_TASKS and simplify completed task list interactions
- don't auto-close completed tasks when typing instructions
- consider latest edits: [Changes], task_text is not necessary, can continue reading instructions
- uconsider latest edits: [Changes], 'undo' should restore last task into instructions
- completed tasks should not serve as toggler to close them - allow text selection etc. Close only by clicking on the header 'X completed tasks'
├── apps
│ └── editor
│ └── src
│ ├── constants
│ │ └── state-keys.ts
│ └── views
│ └── prompt
│ ├── backend
│ │ ├── message-handlers
│ │ │ ├── handle-clear-completed-tasks.ts
│ │ │ ├── handle-get-completed-tasks.ts
│ │ │ ├── handle-get-instructions.ts
│ │ │ ├── handle-save-completed-tasks.ts
│ │ │ ├── handle-save-instructions.ts
│ │ │ └── index.ts
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ ├── MainView.tsx
│ │ │ └── index.ts
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ └── use-prompt
│ │ ├── hooks
│ │ │ └── use-instructions.ts
│ │ └── use-prompt.ts
│ └── types
│ └── messages.ts
└── packages
└── ui
└── src
└── components
└── editor
└── common
└── prompts
├── PromptField
│ ├── PromptField.module.scss
│ ├── PromptField.stories.tsx
│ ├── PromptField.tsx
│ ├── components
│ │ ├── CompletedTasks
│ │ │ ├── CompletedTasks.module.scss
│ │ │ ├── CompletedTasks.tsx
│ │ │ └── index.ts
│ │ ├── Footer
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.tsx
│ │ │ └── index.ts
│ │ └── Tabs
│ │ ├── Tabs.module.scss
│ │ ├── Tabs.tsx
│ │ └── index.ts
│ ├── hooks
│ │ ├── use-drag-drop.ts
│ │ ├── use-dropdown.ts
│ │ ├── use-ghost-text.ts
│ │ ├── use-handlers
│ │ │ ├── handle-copy.ts
│ │ │ ├── handle-cut.ts
│ │ │ ├── handle-input-change.ts
│ │ │ ├── handle-input-click.ts
│ │ │ ├── handle-key-down.ts
│ │ │ ├── handle-paste.ts
│ │ │ ├── handle-submit.ts
│ │ │ ├── index.ts
│ │ │ ├── types.ts
│ │ │ ├── use-handlers.ts
│ │ │ └── utils.ts
│ │ └── use-keyboard-shortcuts.ts
│ └── index.ts
├── Template
│ ├── Template.module.scss
│ ├── Template.tsx
│ └── index.ts
└── shared
├── hooks
│ └── use-undo-redo.ts
└── symbols
├── caret.ts
├── get-highlighted-text.tsx
├── index.ts
├── position-mapping.ts
├── prompt-symbols.module.scss
├── reconstruct-raw-value.ts
└── use-symbol-deletion.ts1 parent 383ef64 commit d70149b
7 files changed
Lines changed: 37 additions & 52 deletions
File tree
- apps/editor/src/views/prompt
- backend
- message-handlers
- frontend/Main
- types
- packages/ui/src/components/editor/common/prompts/PromptField
- components/CompletedTasks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 31 | | |
53 | 32 | | |
54 | 33 | | |
| |||
66 | 45 | | |
67 | 46 | | |
68 | 47 | | |
69 | | - | |
70 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
71 | 55 | | |
72 | 56 | | |
73 | 57 | | |
| |||
78 | 62 | | |
79 | 63 | | |
80 | 64 | | |
81 | | - | |
| 65 | + | |
82 | 66 | | |
83 | | - | |
| 67 | + | |
84 | 68 | | |
85 | 69 | | |
86 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
| 839 | + | |
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | 570 | | |
583 | 571 | | |
584 | 572 | | |
| |||
597 | 585 | | |
598 | 586 | | |
599 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
600 | 609 | | |
601 | 610 | | |
602 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| 644 | + | |
644 | 645 | | |
645 | 646 | | |
646 | 647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
| |||
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
70 | | - | |
71 | 66 | | |
72 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 105 | + | |
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
| |||
0 commit comments