fix: auto-switch to My Agents tab after creation and fix intent dialog reopen#3216
fix: auto-switch to My Agents tab after creation and fix intent dialog reopen#3216rrbanda wants to merge 1 commit into
Conversation
…g reopen After creating an agent, the user was left on the Explore tab where drafts are invisible. Now the Marketplace automatically switches to the My Agents tab so the user sees their new draft immediately. Also fixes the intent dialog reopening after image-deploy: the wizard's onClose (handleWizardBack) was triggering setIntentDialogOpen(true) even after onCreated had already closed the wizard. A ref now suppresses the reopen when an agent was just created. Part of Epic redhat-developer#3208
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3216 +/- ##
==========================================
- Coverage 53.41% 53.41% -0.01%
==========================================
Files 2373 2373
Lines 84895 84905 +10
Branches 23568 23570 +2
==========================================
Hits 45349 45349
- Misses 39200 39210 +10
Partials 346 346
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Closing: superseded by Phase 2 (#3223) which consolidates post-create redirect, dialog fix, and role-aware buttons. |



Summary
onClose(handleWizardBack) was triggeringsetIntentDialogOpen(true)even afteronCreatedhad already closed the wizard. A ref now suppresses the reopen.switchToMyAgentsKeyprop toMarketplacePageto allow external tab controlPart of Epic #3208
Test plan