-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from DennisPeriquet/clean_dev1
Add a CreateJira button and enhance the README for local development
- Loading branch information
Showing
5 changed files
with
121 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ npm-debug.log* | |
yarn-debug.log* | ||
yarn-error.log* | ||
.idea/ | ||
.next/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,24 +82,56 @@ function reducer(state: NewContentState, action: Action): NewContentState { | |
export const NewContentContext = createContext<NewContentContext | undefined>(undefined); | ||
|
||
export function NewContentStateProvider({ children }: { children: ReactNode }) { | ||
const initialValues: Inputs = { | ||
componentType: "image", | ||
imageType: "other", | ||
// imageName: "openshift/ose-foo-bar", | ||
// deliveryRepo: "openshift4/ose-foo-bar-rhel9", | ||
// dockerfilePath: "/Dockerfile", | ||
arches: new Set(["all"]), | ||
hasOperatorLabel: false, | ||
deliveryRepoApplicationCategories: new Set(), | ||
deliveryRepoContentStructure: "singlestream", | ||
// distgit: "foo", | ||
// productManager: "someone", | ||
// sourceRepo: "https://github.com/openshift/foo.git", | ||
// bugComponent: "fake-component", | ||
// owners: "[email protected], [email protected]", | ||
// rpmPackageName: "openshift-foo", | ||
// specfilePath: "/openshift-foo.spec", | ||
}; | ||
|
||
// Set this to true when you want to run through the workflows without entering values manually. | ||
const debugMode = false | ||
|
||
let initialValues: Inputs | ||
|
||
if (debugMode) { | ||
|
||
// Setting some reasonable defaults to help get through the workflows faster for debugging. | ||
initialValues = { | ||
componentType: "image", | ||
imageType: "other", | ||
imageName: "openshift/ose-foo-bar", | ||
deliveryRepo: "openshift4/ose-foo-bar-rhel9", | ||
dockerfilePath: "/Dockerfile", | ||
arches: new Set(["all"]), | ||
hasOperatorLabel: false, | ||
deliveryRepoApplicationCategories: new Set(["Accounting"]), | ||
deliveryRepoContentStructure: "singlestream", | ||
distgit: "foo", | ||
productManager: "someone", | ||
sourceRepo: "https://github.com/openshift/foo.git", | ||
bugComponent: "fake-component", | ||
owners: "[email protected], [email protected]", | ||
rpmPackageName: "openshift-foo", | ||
specfilePath: "/openshift-foo.spec", | ||
deliveryRepoDisplayName: "sampleDisplayName", | ||
deliveryRepoSummary: "sampleSummary", | ||
deliveryRepoDescription: "sampleDescription", | ||
deliveryRepoReleaseCategory: "sampleReleaseCategory", | ||
deliveryRepoHostLevelAccess: "Privileged", | ||
deliveryRepoImageUsageType: "Component image", | ||
deliveryRepoImageOwner: "[email protected]", | ||
deliveryRepoProductManager: "Fake Product Manager", | ||
deliveryRepoProgramManager: "Fake Program Manager", | ||
deliveryRepoQeOwner: "[email protected]", | ||
deliveryRepoDocOwner: "[email protected]", | ||
deliveryRepoErrataWriter: "[email protected]", | ||
prodSecReviewJira: "PRODSEC-9991" | ||
} | ||
} else { | ||
initialValues = { | ||
componentType: "image", | ||
imageType: "other", | ||
arches: new Set(["all"]), | ||
hasOperatorLabel: false, | ||
deliveryRepoApplicationCategories: new Set(), | ||
deliveryRepoContentStructure: "singlestream", | ||
} | ||
} | ||
const [{ activeStep, inputs }, dispatch] = useReducer(reducer, { | ||
activeStep: 0, | ||
inputs: initialValues, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters