Repository navigation
Commit bd5556c
committed
Standardize color variables and add themed styling to the prompt field and status bar
- when no instructions, instead of 'response preview', show em dash
- prompt field should accept color of active border in props, either blue or purple (depending on the active prompt type)
- 'prompt attachments' should follow the prompt-type driven blue/purple coloring (when showing Attaching...)
- we need additional dimmed colors for description that follow the theme choice
├── apps
│ └── editor
│ └── src
│ ├── commands
│ │ └── generate-commit-message-commands
│ │ ├── actions
│ │ │ ├── get-prompt-data.ts
│ │ │ └── run-generate-action.ts
│ │ ├── generate-commit-message-commands.ts
│ │ ├── index.ts
│ │ └── utils
│ │ ├── build-commit-message-prompt.ts
│ │ ├── generate-commit-message-with-api.ts
│ │ ├── get-commit-message-config.ts
│ │ └── strip-wrapping-quotes.ts
│ └── views
│ └── prompt
│ └── frontend
│ └── Main
│ └── MainView
│ ├── MainView.tsx
│ └── components
│ ├── Header
│ │ └── Header.tsx
│ └── PromptAttachments
│ └── PromptAttachments.tsx
└── packages
└── ui
└── src
├── components
│ └── editor
│ ├── common
│ │ └── prompts
│ │ ├── PromptField
│ │ │ ├── PromptField.module.scss
│ │ │ ├── PromptField.stories.tsx
│ │ │ ├── PromptField.tsx
│ │ │ ├── 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.ts
│ └── prompt
│ ├── IconAccentButton
│ │ ├── IconAccentButton.module.scss
│ │ ├── IconAccentButton.stories.tsx
│ │ ├── IconAccentButton.tsx
│ │ └── index.ts
│ ├── Responses
│ │ └── Responses.module.scss
│ └── StatusBar
│ ├── StatusBar.module.scss
│ ├── StatusBar.tsx
│ └── index.ts
└── styles
└── foundation
└── _colors.scss1 parent 8d1c2fc commit bd5556c
21 files changed
Lines changed: 183 additions & 100 deletions
File tree
- apps/editor/src/views/prompt/frontend
- Home
- Main/MainView
- components
- Header
- PromptAttachments
- packages/ui
- .storybook
- src
- components/editor
- common/prompts/PromptField
- prompt
- AsciiArtEffect
- IconAccentButton
- ResponsePreview
- components/FileItem
- Responses
- StatusBar
- Tabs
- TargetButton
- settings
- Notice
- Templates
- styles/foundation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
339 | 348 | | |
340 | 349 | | |
341 | 350 | | |
| |||
388 | 397 | | |
389 | 398 | | |
390 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
391 | 409 | | |
392 | 410 | | |
393 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
| |||
269 | 281 | | |
270 | 282 | | |
271 | 283 | | |
272 | | - | |
| 284 | + | |
273 | 285 | | |
274 | 286 | | |
275 | | - | |
| 287 | + | |
276 | 288 | | |
277 | 289 | | |
278 | 290 | | |
279 | | - | |
| 291 | + | |
280 | 292 | | |
281 | 293 | | |
282 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
864 | 865 | | |
865 | 866 | | |
866 | 867 | | |
867 | | - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
868 | 871 | | |
869 | 872 | | |
870 | 873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments