<commit_before>import React from "react";
import { Button, Popover } from "@patternfly/react-core";
import { OutlinedQuestionCircleIcon } from "@patternfly/react-icons";

import { componentTypes } from "@data-driven-forms/react-form-renderer";
import nextStepMapper from "./imageOutputStepMapper";

export default {
  id: "wizard-image-output",
  title: "Image output",
  name: "image-output",
  nextStep: ({ values }) => nextStepMapper(values),
  fields: [
    {
      component: "blueprint-name",
      name: "blueprint-name",
    },
    {
      component: "image-output-select",
      name: "image-output-type",
      label: "Type",
    },
    {
      name: "image-upload",
      component: componentTypes.CHECKBOX,
      label: (
        <>
          Upload to AWS
          <Popover<commit_msg>Wizard: add validation to image type selection<commit_after>import React from "react";
import { Button, Popover } from "@patternfly/react-core";
import { OutlinedQuestionCircleIcon } from "@patternfly/react-icons";

import { componentTypes, validatorTypes } from "@data-driven-forms/react-form-renderer";
import nextStepMapper from "./imageOutputStepMapper";

export default {
  id: "wizard-image-output",
  title: "Image output",
  name: "image-output",
  nextStep: ({ values }) => nextStepMapper(values),
  fields: [
    {
      component: "blueprint-name",
      name: "blueprint-name",
    },
    {
      component: "image-output-select",
      name: "image-output-type",
      label: "Type",
      validate: [
        {
          type: validatorTypes.REQUIRED,
        },
      ],
    },
    {
      name: "image-upload",
      component: componentTypes.CHECKBOX,
      label: (
        <>
          Upload to AWS
          <Popover
{'fraction_non_alphanumeric': 0.13709677419354838, 'fraction_numerical': 0.0, 'mean_word_length': 2.8259911894273126, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6525028', 'n_tokens_mistral': 518, 'n_tokens_neox': 516, 'n_words': 115}