Skip to content

Conversation

@0618
Copy link
Contributor

@0618 0618 commented Jul 10, 2024

Description of changes

This PR is to add some prompts before a user init a new Gen1 project.

  • If user decide to not continue with Gen1, exit the process.
    Screenshot 2024-07-10 at 16 21 28

  • If user decide to continue with Gen1, ask for the reason

Screenshot 2024-07-10 at 16 22 32

  • Add the reason to project-config.json
Screenshot 2024-07-09 at 17 53 18
  • Add to stack metadata

Screenshot 2024-07-10 at 16 31 26

  • Only show the prompts in a new project.
  • The change doesn't affect headless mode.

Issue #, if available

Description of how you validated changes

  • tested all the scenarios above on my local machine.

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@0618 0618 requested a review from a team as a code owner July 10, 2024 01:03
Copy link
Contributor

@Amplifiyer Amplifiyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be unit tests for this change?

@awsluja awsluja merged commit 7ab8fae into aws-amplify:dev Sep 20, 2024
@0618 0618 deleted the add-init-promps branch September 20, 2024 18:41
sobolk pushed a commit that referenced this pull request Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants