Commit 52a64d8
committed
fix(webapp): address PR feedback for Vercel atomic deployments toggle
- Always delete-then-create in upsertVercelEnvVar and upsertEnvVarForCustomEnvironment.
Vercel rejects in-place type changes (e.g. encrypted -> sensitive) on editProjectEnv,
so the regenerate-API-key and staging-key-remap flows would silently keep the prior
type. Drop editProjectEnv entirely; existing var (if any) is removed via
batchRemoveProjectEnv and then created fresh, matching the precedent already in
syncApiKeysToVercel.
- Distinguish a Vercel read failure from "no pin set" in the VercelSettingsPresenter.
Add currentTriggerVersionFetchFailed through the loader to the form; the disable-
atomic confirmation modal now triggers in both the known-pinned and unknown cases,
with copy adapted to ask the user to verify manually when the lookup failed.
- clearTriggerVersionFromVercelProduction returns Promise<boolean>. Route surfaces a
partial-success message when the delete fails so users know to clear the env var
manually instead of seeing a misleading success toast.
- Replace raw "true"/"false" string sentinels for clearTriggerVersion with named
constants used consistently across the zod transform, the hidden input default,
and the modal submit helper.1 parent 4685e31 commit 52a64d8
5 files changed
Lines changed: 122 additions & 66 deletions
File tree
- apps/webapp/app
- components/integrations
- models
- presenters/v3
- routes
- services
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
222 | 233 | | |
223 | 234 | | |
224 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | 1057 | | |
1062 | 1058 | | |
1063 | 1059 | | |
| |||
1119 | 1115 | | |
1120 | 1116 | | |
1121 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
1122 | 1120 | | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
| 1121 | + | |
1134 | 1122 | | |
1135 | 1123 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1124 | + | |
1142 | 1125 | | |
1143 | 1126 | | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
1144 | 1138 | | |
1145 | 1139 | | |
1146 | 1140 | | |
| |||
1713 | 1707 | | |
1714 | 1708 | | |
1715 | 1709 | | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
1716 | 1713 | | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
| 1714 | + | |
1729 | 1715 | | |
1730 | 1716 | | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
| 1717 | + | |
1737 | 1718 | | |
1738 | 1719 | | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
1739 | 1731 | | |
1740 | 1732 | | |
1741 | 1733 | | |
| |||
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
| 259 | + | |
255 | 260 | | |
256 | 261 | | |
257 | | - | |
| 262 | + | |
258 | 263 | | |
259 | 264 | | |
260 | 265 | | |
261 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
262 | 269 | | |
263 | 270 | | |
264 | 271 | | |
| |||
279 | 286 | | |
280 | 287 | | |
281 | 288 | | |
282 | | - | |
| 289 | + | |
283 | 290 | | |
284 | 291 | | |
285 | 292 | | |
| |||
303 | 310 | | |
304 | 311 | | |
305 | 312 | | |
| 313 | + | |
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
309 | 317 | | |
310 | 318 | | |
311 | 319 | | |
312 | | - | |
| 320 | + | |
| 321 | + | |
313 | 322 | | |
314 | 323 | | |
315 | 324 | | |
| |||
321 | 330 | | |
322 | 331 | | |
323 | 332 | | |
| 333 | + | |
324 | 334 | | |
325 | 335 | | |
326 | 336 | | |
327 | 337 | | |
328 | 338 | | |
329 | 339 | | |
330 | | - | |
| 340 | + | |
331 | 341 | | |
332 | 342 | | |
333 | 343 | | |
| |||
339 | 349 | | |
340 | 350 | | |
341 | 351 | | |
| 352 | + | |
342 | 353 | | |
343 | 354 | | |
344 | 355 | | |
| |||
Lines changed: 50 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
102 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
103 | 112 | | |
104 | 113 | | |
105 | 114 | | |
| |||
275 | 284 | | |
276 | 285 | | |
277 | 286 | | |
| 287 | + | |
| 288 | + | |
278 | 289 | | |
279 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
280 | 298 | | |
281 | 299 | | |
282 | 300 | | |
| |||
582 | 600 | | |
583 | 601 | | |
584 | 602 | | |
| 603 | + | |
585 | 604 | | |
586 | 605 | | |
587 | 606 | | |
| |||
592 | 611 | | |
593 | 612 | | |
594 | 613 | | |
| 614 | + | |
595 | 615 | | |
596 | 616 | | |
597 | 617 | | |
| |||
661 | 681 | | |
662 | 682 | | |
663 | 683 | | |
| 684 | + | |
| 685 | + | |
664 | 686 | | |
665 | 687 | | |
666 | 688 | | |
667 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
668 | 692 | | |
669 | 693 | | |
670 | 694 | | |
671 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
672 | 698 | | |
673 | 699 | | |
674 | 700 | | |
| |||
774 | 800 | | |
775 | 801 | | |
776 | 802 | | |
777 | | - | |
| 803 | + | |
778 | 804 | | |
779 | 805 | | |
780 | 806 | | |
781 | | - | |
| 807 | + | |
782 | 808 | | |
783 | 809 | | |
784 | 810 | | |
| |||
859 | 885 | | |
860 | 886 | | |
861 | 887 | | |
| 888 | + | |
862 | 889 | | |
863 | 890 | | |
864 | 891 | | |
| |||
927 | 954 | | |
928 | 955 | | |
929 | 956 | | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
936 | 973 | | |
937 | 974 | | |
938 | 975 | | |
| |||
1038 | 1075 | | |
1039 | 1076 | | |
1040 | 1077 | | |
| 1078 | + | |
1041 | 1079 | | |
1042 | 1080 | | |
1043 | 1081 | | |
| |||
0 commit comments