Skip to content

fix(project-creation): Preserve detected selection on back-to-recommended#118506

Open
jaydgoss wants to merge 1 commit into
jaygoss/scm-styled-notification-optionsfrom
jaygoss/scm-back-to-recommended-fixes
Open

fix(project-creation): Preserve detected selection on back-to-recommended#118506
jaydgoss wants to merge 1 commit into
jaygoss/scm-styled-notification-optionsfrom
jaygoss/scm-back-to-recommended-fixes

Conversation

@jaydgoss

Copy link
Copy Markdown
Member

TLDR

Fix handleBackToRecommended so returning to the recommended view no longer clears a valid platform selection or wipes the derived features and project-details form.

Details

"Back to recommended platforms" leaves the manual picker and returns to the auto-detected cards view. It reset the selected features and project-details form whenever a detected platform existed, even when the platform did not change. Two problems followed:

  • Opening the manual picker and returning without choosing a different platform wiped customized features and the project name.
  • Returning while a non-top detected platform was selected (for example the user picked the second detection) switched the selection to the top detection, clearing a valid choice.

handleBackToRecommended now returns early when the active platform is already one of the detected ones, mirroring handleSelectDetectedPlatform. Only a manual (non-detected) pick falls back to the top detection, since the cards view cannot display it otherwise. Specs cover the non-top detected selection and the unchanged-return path.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 25, 2026
@jaydgoss jaydgoss marked this pull request as ready for review June 25, 2026 21:01
@jaydgoss jaydgoss requested a review from a team as a code owner June 25, 2026 21:01
@jaydgoss jaydgoss force-pushed the jaygoss/scm-back-to-recommended-fixes branch from 2d65871 to b250e42 Compare June 25, 2026 21:09
@jaydgoss jaydgoss force-pushed the jaygoss/scm-back-to-recommended-fixes branch from b250e42 to 837c7ab Compare June 25, 2026 21:18
@jaydgoss jaydgoss force-pushed the jaygoss/scm-back-to-recommended-fixes branch from 837c7ab to 41e7c12 Compare June 25, 2026 21:23
@jaydgoss jaydgoss force-pushed the jaygoss/scm-back-to-recommended-fixes branch from 41e7c12 to fd29eea Compare June 26, 2026 19:17
@jaydgoss jaydgoss changed the base branch from master to jaygoss/scm-styled-notification-options June 26, 2026 19:17
@jaydgoss jaydgoss force-pushed the jaygoss/scm-styled-notification-options branch from 415d0ac to f217b66 Compare June 26, 2026 19:39
@jaydgoss jaydgoss force-pushed the jaygoss/scm-back-to-recommended-fixes branch from fd29eea to a873e3e Compare June 26, 2026 19:39
…nded

handleBackToRecommended reset the selected features and project-details form whenever a detected platform existed, even when the platform did not change. Two problems followed: opening the manual picker and returning without a different choice wiped customized features and the project name, and returning while a non-top detected platform was selected switched it to the top detection, clearing a valid choice.

Return early when the active platform is already one of the detected ones, mirroring handleSelectDetectedPlatform. Only a manual (non-detected) pick now falls back to the top detection, since the cards view cannot display it otherwise.
@jaydgoss jaydgoss force-pushed the jaygoss/scm-styled-notification-options branch from f217b66 to e55c060 Compare June 26, 2026 19:46
@jaydgoss jaydgoss force-pushed the jaygoss/scm-back-to-recommended-fixes branch from a873e3e to 364a695 Compare June 26, 2026 19:46
@jaydgoss jaydgoss requested a review from a team June 26, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants