Commit f2fa768
authored
feat(quick-entry): glassmorphism redesign of the quick entry widget
Rebuilds the overlay chrome to the glass design spec while reusing the
existing editor machinery (useTiptapEditor: chips, @-mentions, /skills,
history, attachments) and task-creation flow.
- Window: 920px wide (clamped to work area), panel top at ~26% of the
screen, taller transparent window so autogrow + popovers don't clip;
backdrop click dismisses.
- Glass panel: smoke tint + 28px backdrop blur (code constants), hairline
border, layered shadows, and an accent glow while the input is focused.
- Accent follows mode: Plan is amber, agentic modes orange; drives caret,
focus glow, mode label, selected menu items, and the send button. Vars
live on <html> so portaled popovers inherit them.
- Layout per spec: header row with mono repo/branch glass chips and a
shortcut keycap (live binding); borderless 16px editor; attachment chip
row; toolbar with paperclip, mode/model/effort glass pickers (adapter
switch kept in the model menu), hint text, and a 30x30 accent send
button.
- Branch chip only selects a base branch (worktree mode); it never checks
branches out from the overlay. Local mode shows the checked-out branch.
- Submit shows an in-panel confirmation for 1.2s (new completeSubmit
procedure dismisses and reveals the app afterwards; requestCreateTask no
longer hides the overlay itself).
- prefers-reduced-transparency falls back to an opaque gray-2 panel;
prefers-reduced-motion drops the transitions.
- ui: re-export EditorContent (editorSurface.ts) so host renderers build
custom chrome on the same @tiptap/react instance.
- dev: CDP port overridable via POSTHOG_CODE_CDP_PORT (Chrome squats 9222).
Generated-By: PostHog Code
Task-Id: 9f9e8d97-4bed-4d34-9681-685014ed68cc1 parent d88866e commit f2fa768
8 files changed
Lines changed: 910 additions & 129 deletions
File tree
- apps/code/src
- main
- services/quick-entry
- trpc/routers
- renderer/features/quick-entry
- packages/ui/src/features/message-editor/tiptap
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
124 | 134 | | |
125 | 135 | | |
126 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
166 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | | - | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
0 commit comments