Repository navigation
Commit 8442d70
committed
Lift completed tasks expansion state to PromptField and collapse it on input
- typing anything should collapse 'completed tasks'
└── 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
└── 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 edeb31b commit 8442d70
2 files changed
Lines changed: 12 additions & 5 deletions
File tree
- packages/ui/src/components/editor/common/prompts/PromptField
- components/CompletedTasks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
405 | 407 | | |
406 | 408 | | |
407 | 409 | | |
| 410 | + | |
408 | 411 | | |
409 | 412 | | |
410 | 413 | | |
| |||
463 | 466 | | |
464 | 467 | | |
465 | 468 | | |
| 469 | + | |
| 470 | + | |
466 | 471 | | |
467 | 472 | | |
468 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | | - | |
61 | | - | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
0 commit comments