Repository navigation
Commit 8ab2f15
committed
Improve response preview focus handling by auto-focusing Accept and refocusing chat input on finish, with updated button focus outlines
- once response preview opens, 'accept' button should be focused
- should set [Fragment] after 3 seconds from the response preview start
- set opacity to the outline 50%
- outline color should follow button's backgorund color (with exception to secondary: there follow 'color')
- once response preview gets closed, prompt field should be focused
├── apps
│ └── editor
│ └── src
│ └── views
│ └── prompt
│ ├── backend
│ │ └── prompt-view-provider.ts
│ ├── frontend
│ │ ├── Main
│ │ │ ├── Main.tsx
│ │ │ └── MainView
│ │ │ └── MainView.tsx
│ │ ├── Prompt.tsx
│ │ └── hooks
│ │ ├── use-preview-manager.ts
│ │ └── use-prompt
│ │ └── use-prompt.ts
│ └── types
│ └── messages.ts
└── packages
└── ui
└── src
└── components
└── editor
├── common
│ ├── Button
│ │ ├── Button.module.scss
│ │ ├── Button.tsx
│ │ └── index.ts
│ └── prompts
│ └── PromptField
│ ├── PromptField.tsx
│ └── hooks
│ └── use-handlers
│ └── use-handlers.ts
└── prompt-view
├── Page
│ ├── Page.tsx
│ └── index.ts
└── ResponsePreviewFooter
├── ResponsePreviewFooter.tsx
└── index.ts1 parent fe15edf commit 8ab2f15
3 files changed
Lines changed: 27 additions & 2 deletions
File tree
- apps/editor/src/views/prompt/frontend/hooks/use-prompt
- packages/ui/src/components/editor
- common/Button
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
54 | 67 | | |
55 | 68 | | |
56 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
15 | 24 | | |
16 | 25 | | |
| |||
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
| |||
0 commit comments