Commit 3b33951
feat(web): surface connect/disconnect backup path in wizard and Connect modal
First slice of specs/078-connect-trust-preview (backup visibility, spec
US2 / FR-005+FR-006): the backend has always written a timestamped backup
before modifying a client config and returned it as ConnectResult.backup_path
(internal/connect/backup.go, connect.go), and the CLI prints it — but the
Web UI dropped it. Now:
- ConnectModal.vue: after a successful connect OR disconnect, the result
area shows "A backup of your previous config was saved to <path>" with a
one-click "Copy path" button (same navigator.clipboard pattern as the
existing copy-tccutil affordance). A success with no backup_path renders
the explicit "No prior config file existed, so no backup was needed."
message instead of a blank path (FR-006 no-prior-file case, e.g. bridge
clients whose config is created by connect).
- OnboardingWizard.vue: ClientRow now renders the same backup line (path +
Copy path, or the no-prior-file message) inside the client's row after a
connect performed in the wizard session.
TDD: added 3 failing ConnectModal cases (backup path + copy, no-prior-file,
disconnect backup) to tests/unit/connect-modal.spec.ts and a new
tests/unit/onboarding-wizard-backup-path.spec.ts (2 cases) before
implementing; full frontend suite passes (32 files, 235 tests). Built via
make build so the Go binary embeds the updated web/frontend/dist.
Assumptions (zero-interruption policy):
- The TS contract already carries backup_path?: string on ConnectResult
(frontend/src/types/api.ts) — no contract change needed.
- An empty-string backup_path on success is treated the same as absent
(backend omits it when no prior file existed; never render a blank path).
- Preview/undo/TCC copy (spec US1/US3/US4) intentionally NOT built here.
- No tasks.md exists under specs/078-connect-trust-preview/ — nothing to
check off; spec.md left untouched.
- npm-ci metadata churn in frontend/package-lock.json was reverted, not
committed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent eff06ce commit 3b33951
4 files changed
Lines changed: 432 additions & 8 deletions
File tree
- frontend
- src/components
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
132 | 160 | | |
133 | 161 | | |
134 | 162 | | |
| |||
170 | 198 | | |
171 | 199 | | |
172 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
173 | 206 | | |
174 | 207 | | |
175 | 208 | | |
| |||
259 | 292 | | |
260 | 293 | | |
261 | 294 | | |
| 295 | + | |
| 296 | + | |
262 | 297 | | |
263 | 298 | | |
264 | 299 | | |
265 | 300 | | |
266 | 301 | | |
267 | 302 | | |
| 303 | + | |
| 304 | + | |
268 | 305 | | |
269 | 306 | | |
270 | 307 | | |
| |||
290 | 327 | | |
291 | 328 | | |
292 | 329 | | |
| 330 | + | |
| 331 | + | |
293 | 332 | | |
294 | 333 | | |
295 | 334 | | |
296 | 335 | | |
297 | 336 | | |
298 | 337 | | |
299 | 338 | | |
| 339 | + | |
300 | 340 | | |
301 | 341 | | |
302 | 342 | | |
| |||
373 | 413 | | |
374 | 414 | | |
375 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
376 | 432 | | |
377 | 433 | | |
378 | 434 | | |
| |||
381 | 437 | | |
382 | 438 | | |
383 | 439 | | |
| 440 | + | |
| 441 | + | |
384 | 442 | | |
385 | 443 | | |
386 | 444 | | |
| |||
392 | 450 | | |
393 | 451 | | |
394 | 452 | | |
| 453 | + | |
| 454 | + | |
395 | 455 | | |
396 | 456 | | |
397 | 457 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
99 | 108 | | |
100 | 109 | | |
101 | 110 | | |
| |||
518 | 527 | | |
519 | 528 | | |
520 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
521 | 535 | | |
522 | 536 | | |
523 | 537 | | |
| |||
1028 | 1042 | | |
1029 | 1043 | | |
1030 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1031 | 1048 | | |
1032 | 1049 | | |
1033 | 1050 | | |
| |||
1053 | 1070 | | |
1054 | 1071 | | |
1055 | 1072 | | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1056 | 1089 | | |
1057 | 1090 | | |
1058 | 1091 | | |
| |||
1111 | 1144 | | |
1112 | 1145 | | |
1113 | 1146 | | |
1114 | | - | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
1115 | 1151 | | |
1116 | | - | |
| 1152 | + | |
1117 | 1153 | | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
| 1154 | + | |
1122 | 1155 | | |
1123 | 1156 | | |
1124 | 1157 | | |
| |||
1146 | 1179 | | |
1147 | 1180 | | |
1148 | 1181 | | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1149 | 1227 | | |
1150 | | - | |
1151 | | - | |
| 1228 | + | |
1152 | 1229 | | |
0 commit comments