Repository navigation
Commit 387db50
committed
Add blue and orange active color variants to prompt type buttons and update header layout
- active prompt type button should have persistent blue background
- 'ask' should be orange when active
- `packages/ui/src/components/editor/prompt/PromptTypeButton/PromptTypeButton.tsx` should accept param 'active color': 'blue' | 'orange', use none when not set.
- set active color to blue on 'edit'
- remove unused css
├── apps
│ └── editor
│ └── src
│ └── views
│ └── prompt
│ └── frontend
│ ├── Home
│ │ ├── Home.module.scss
│ │ └── Home.tsx
│ └── Main
│ └── MainView
│ └── components
│ └── Header
│ ├── Header.module.scss
│ ├── Header.tsx
│ └── index.ts
└── packages
└── ui
└── src
├── components
│ └── editor
│ ├── common
│ │ ├── Button
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.stories.tsx
│ │ │ ├── Button.tsx
│ │ │ └── index.ts
│ │ ├── Checkbox
│ │ │ ├── Checkbox.module.scss
│ │ │ ├── Checkbox.stories.tsx
│ │ │ ├── Checkbox.tsx
│ │ │ └── index.ts
│ │ ├── Dropdown
│ │ │ ├── Dropdown.module.scss
│ │ │ ├── Dropdown.stories.tsx
│ │ │ ├── Dropdown.tsx
│ │ │ └── index.ts
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.stories.tsx
│ │ │ ├── DropdownMenu.tsx
│ │ │ └── index.ts
│ │ ├── Field
│ │ │ ├── Field.module.scss
│ │ │ ├── Field.stories.tsx
│ │ │ ├── Field.tsx
│ │ │ └── index.ts
│ │ ├── Icon
│ │ │ ├── Icon.tsx
│ │ │ └── index.ts
│ │ ├── IconButton
│ │ │ ├── IconButton.module.scss
│ │ │ ├── IconButton.stories.tsx
│ │ │ ├── IconButton.tsx
│ │ │ └── index.ts
│ │ ├── Input
│ │ │ ├── Input.module.scss
│ │ │ ├── Input.stories.tsx
│ │ │ ├── Input.tsx
│ │ │ └── index.ts
│ │ ├── QuickPickButton
│ │ │ ├── QuickPickButton.module.scss
│ │ │ ├── QuickPickButton.tsx
│ │ │ └── index.ts
│ │ ├── Radio
│ │ │ ├── Radio.module.scss
│ │ │ ├── Radio.stories.tsx
│ │ │ ├── Radio.tsx
│ │ │ └── index.ts
│ │ ├── Scrollable
│ │ │ ├── Scrollable.module.scss
│ │ │ ├── Scrollable.tsx
│ │ │ └── index.ts
│ │ ├── SimpleCheckbox
│ │ │ ├── SimpleCheckbox.module.scss
│ │ │ ├── SimpleCheckbox.stories.tsx
│ │ │ ├── SimpleCheckbox.tsx
│ │ │ └── index.ts
│ │ ├── TextButton
│ │ │ ├── TextButton.module.scss
│ │ │ ├── TextButton.stories.tsx
│ │ │ ├── TextButton.tsx
│ │ │ └── index.ts
│ │ ├── Textarea
│ │ │ ├── Textarea.module.scss
│ │ │ ├── Textarea.stories.tsx
│ │ │ ├── Textarea.tsx
│ │ │ └── index.ts
│ │ ├── Toggler
│ │ │ ├── Toggler.module.scss
│ │ │ ├── Toggler.tsx
│ │ │ └── index.ts
│ │ └── prompts
│ │ ├── PromptField
│ │ │ ├── PromptField.module.scss
│ │ │ ├── PromptField.stories.tsx
│ │ │ ├── PromptField.tsx
│ │ │ ├── components
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.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.ts
│ └── prompt
│ └── PromptTypeButton
│ ├── PromptTypeButton.module.scss
│ ├── PromptTypeButton.stories.tsx
│ ├── PromptTypeButton.tsx
│ └── index.ts
└── styles
└── foundation
└── _colors.scss1 parent 742219d commit 387db50
6 files changed
Lines changed: 73 additions & 19 deletions
File tree
- apps/editor/src/views/prompt/frontend
- Home
- Main/MainView/components/Header
- packages/ui/src/components/editor/prompt/PromptTypeButton
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 18 | + | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
| |||
85 | 80 | | |
86 | 81 | | |
87 | 82 | | |
| 83 | + | |
88 | 84 | | |
89 | 85 | | |
90 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | | - | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
39 | 70 | | |
40 | 71 | | |
41 | 72 | | |
| |||
63 | 94 | | |
64 | 95 | | |
65 | 96 | | |
| 97 | + | |
66 | 98 | | |
67 | 99 | | |
68 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
32 | 52 | | |
33 | 53 | | |
34 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments