Repository navigation
fix(sources): open the AWS disconnect dialog from any source tab - #1723
Conversation
An AWS source's Delete opens the AWS disconnect dialog, but only the AWS card rendered it, and the card only shows on the Connection tab. On Overview or Settings the dialog opened in the model with nothing on the page. The source header now mounts it, as it already does for Google Cloud, and the card mounts it only on the integrations page.
Maple review🟢 Confidence 10/10 · safe to merge Moves the AWS disconnect dialog out of the Connection-only card into the source header, so Delete opens it on any tab, with one mount per page. Contained and safe to merge.
What was checked
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Problem
On an AWS source (including one whose stack was never deployed), clicking Delete did nothing unless you were on the Connection tab.
Delete on an AWS source opens the AWS disconnect dialog (so the cleanup script is shown afterwards), but that dialog was only rendered inside the AWS card, which only appears on the Connection tab. On Overview or Settings the dialog was open in the model with nothing mounted.
Fix
view-aws.ts:awsDisconnectDialogreads the AWS status itself; the card renders it only without afocusId(the integrations page).embed.ts: the source header (actionsEmbed) renders it for a focused AWS source, the same way it already renders Google Cloud's removal dialogs. One mount per page.Test
New scene test in
sources/detail/detail.scene.test.ts: Delete on the Overview tab renders theDisconnect AWS account …alertdialog, and the Connection tab renders it exactly once. It fails without the fix. The previous test only asserteddisconnectDialog.isOpenon the model, which is why this slipped.vitest run src/page/sources/detail src/page/integrations(136 passed), web typecheck and oxlint clean.Need help on this PR? Tag
@codesmith-botwith what you need.