Commit bf56c3c
TUI: add inline /api-keys menu (#14472)
## Description
Replaces the TUI-only `/add-api-key` and `/clear-provider-api-key`
commands with a single inline `/api-keys` menu.
The menu supports filtering providers, setting and clearing provider
keys, connecting or disconnecting X Premium/SuperGrok, and toggling
Warp-credit fallback. It reuses the shared TUI editor through the
ownership model reviewed separately in downstack PR #14488.
This is a pretty large change, but the large majority of it is UI
changes. Reading the specs should be enough for this one (I'll also
attach an in depth demo of the change below).
## Testing
- [x] I have manually tested my changes locally with `./script/run`
## Screenshots/Video
https://www.loom.com/share/853ce5b6278840c89ced6bfde7b53820
## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
Co-Authored-By: Oz <oz-agent@warp.dev>
Co-authored-by: Oz <oz-agent@warp.dev>1 parent a3a06f2 commit bf56c3c
26 files changed
Lines changed: 1758 additions & 861 deletions
File tree
- app/src
- settings
- terminal/input/slash_commands
- crates/warp_tui/src
- grok_oauth
- input
- terminal_session_view
- specs/CODE-1930
Lines changed: 7 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
138 | 125 | | |
139 | 126 | | |
140 | 127 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 128 | + | |
146 | 129 | | |
147 | 130 | | |
148 | 131 | | |
| |||
940 | 923 | | |
941 | 924 | | |
942 | 925 | | |
943 | | - | |
944 | | - | |
945 | 926 | | |
946 | 927 | | |
947 | 928 | | |
| |||
950 | 931 | | |
951 | 932 | | |
952 | 933 | | |
| 934 | + | |
953 | 935 | | |
954 | 936 | | |
955 | 937 | | |
| |||
Lines changed: 9 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
| 108 | + | |
| 109 | + | |
123 | 110 | | |
124 | 111 | | |
125 | 112 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 113 | + | |
148 | 114 | | |
149 | 115 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 116 | + | |
156 | 117 | | |
157 | | - | |
| 118 | + | |
158 | 119 | | |
159 | 120 | | |
160 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1788 | 1788 | | |
1789 | 1789 | | |
1790 | 1790 | | |
1791 | | - | |
| 1791 | + | |
1792 | 1792 | | |
1793 | 1793 | | |
1794 | 1794 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | | - | |
1293 | | - | |
| 1292 | + | |
1294 | 1293 | | |
1295 | 1294 | | |
1296 | 1295 | | |
| |||
0 commit comments