Repository navigation
Commit 07e91ae
authored
fix(integrations): wrap aws add account form in dialog and scroll into view (#3526)
## Problem
Clicking the + Add button on the AWS Integrations page appears unresponsive. No modal opens, no feedback is given, and the page does not navigate or scroll. Users cannot see the form to add a new AWS account.
## Root cause
When a user clicks + Add on an AWS integration card, the form to add a new account is rendered but placed outside the page's main Stack container it mounts thousands of pixels below the fold after the evidence tasks section, cloud tests link, and the 46-card AWS services grid. Without a Dialog wrapper or scrollIntoView call, the viewport never changes and the form remains invisible to the user. The React #418 hydration error in the console is a secondary red herring; the click handler binds correctly (focus ring confirms the click reached the button), so the real blocker is the off-screen form rendering.
## Fix
Wrapped the AWS add account form in a Dialog component and call scrollIntoView on mount. This ensures the form appears on top of the page content in a modal, is immediately visible to the user, and provides the expected UX feedback when the button is clicked.
## Explicitly NOT touched
- OAuth integrations or multi-step auth flows
- AWS manifest configuration or connection logic
- Other integration providers
- Hydration or SSR behavior
## Verification
- Added regression test asserting that clicking + Add renders the form inside a Dialog and the form is visible in the viewport
- Existing AWS integration unit tests pass ✅1 parent 7345e3c commit 07e91ae
2 files changed
Lines changed: 109 additions & 12 deletions
File tree
- apps/app/src/app/(app)/[orgId]/integrations/[slug]/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 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 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
282 | 295 | | |
283 | 296 | | |
284 | 297 | | |
| |||
345 | 358 | | |
346 | 359 | | |
347 | 360 | | |
348 | | - | |
349 | | - | |
| 361 | + | |
350 | 362 | | |
351 | 363 | | |
352 | 364 | | |
| |||
449 | 461 | | |
450 | 462 | | |
451 | 463 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
| |||
0 commit comments