Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[legacy-framework] Add support for custom messages and icons in recipes #2510

Merged
merged 1 commit into from
Jun 19, 2021

Conversation

ntgussoni
Copy link

This is a feature nobody asked for (maybe?) but it's something that I think was missing in the recipes; writing a custom message step while installing a recipe.

Closes: ?

What are the changes and their implications?

Adds new step type printMessage

  builder.printMessage({
    successIcon: "😭",
    stepId: "oops",
    stepName: "Im so sorry :(",
    message:
      "This recipe can't edit your blitz.config.ts (yet), you can add the Blitz Guard middleware following these two steps: https://ntgussoni.github.io/blitz-guard/docs/middleware",
  })

This prints the message in the following way
image
image

The updated documentation can be found here: blitz-js/blitzjs.com#508

Bug Checklist

  • [ x ] Integration test added (see test docs if needed)

Feature Checklist

Adds ability to customize the success message icon in recipes
@ntgussoni ntgussoni requested a review from flybayer as a code owner June 19, 2021 17:37
@flybayer flybayer changed the title [Feature] Adds custom messages in recipe + custom icons Add support for custom messages and icons in recipes Jun 19, 2021
@flybayer flybayer merged commit b09c188 into blitz-js:canary Jun 19, 2021
@itsdillon itsdillon changed the title Add support for custom messages and icons in recipes [legacy-framework] Add support for custom messages and icons in recipes Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants