[CORL-159, CORL-160] Stream Config Tab (#2219)

* feat: Implement stream configuration tab

* feat: split profile & configure into separate bundles

* chore: better role logic

* fix+chore: add test cases, implement expectAndFail, refactor tests

* chore: add some comments

* chore: Update src/core/client/framework/lib/form/helpers.tsx

Co-Authored-By: cvle <vinh@wikiwi.io>

* feat: support new graphql mutations/schema

* fix: ci fixes

* fix: improvement to revision loading

* fix: updated some tests

* fix: adapt client to changes

* fix: remove obsolote isClosed in UpdateStory

* ci: increase no_output_timeout for build
This commit is contained in:
Kiwi
2019-03-18 22:07:52 +01:00
committed by GitHub
parent c738d9a355
commit 9eb5afbb2b
128 changed files with 2249 additions and 1081 deletions
@@ -39,9 +39,11 @@ function shapeFinalData(data: FormData): InstallInput {
return {
tenant: {
organizationName,
organizationContactEmail,
organizationURL,
organization: {
name: organizationName,
contactEmail: organizationContactEmail,
url: organizationURL,
},
domains,
},
user: {
@@ -11,11 +11,7 @@ export async function commit(
input: InstallInput,
{ rest }: TalkContext
) {
try {
await install(rest, input);
} catch (err) {
throw err;
}
await install(rest, input);
}
export const withInstallMutation = createMutationContainer("install", commit);
@@ -1,4 +1,3 @@
import { FORM_ERROR } from "final-form";
import React, { Component } from "react";
import { PropTypesOf } from "talk-ui/types";
@@ -18,12 +17,8 @@ class AddOrganizationContainer extends Component<
AddOrganizationContainerProps
> {
private onSubmit: AddOrganizationForm["onSubmit"] = async (input, form) => {
try {
this.props.onSaveData(input);
return this.props.onGoToNextStep();
} catch (error) {
return { [FORM_ERROR]: error.message };
}
this.props.onSaveData(input);
return this.props.onGoToNextStep();
};
public render() {
return (
@@ -1,4 +1,3 @@
import { FORM_ERROR } from "final-form";
import React, { Component } from "react";
import { PropTypesOf } from "talk-ui/types";
@@ -18,12 +17,8 @@ class CreateYourAccountContainer extends Component<
CreateYourAccountContainerProps
> {
private onSubmit: CreateYourAccountForm["onSubmit"] = async (input, form) => {
try {
this.props.onSaveData(input);
return this.props.onGoToNextStep();
} catch (error) {
return { [FORM_ERROR]: error.message };
}
this.props.onSaveData(input);
return this.props.onGoToNextStep();
};
public render() {
return (