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

Overview steps UI #7273

Merged
merged 6 commits into from
Oct 3, 2019
Merged

Conversation

kavishkafernando
Copy link
Contributor

@kavishkafernando kavishkafernando commented Oct 1, 2019

This PR includes the step for API creation in the Overview page.

Screen Shot 2019-10-03 at 6 42 49 PM

Screen Shot 2019-10-03 at 6 43 14 PM

Screen Shot 2019-10-03 at 6 42 13 PM

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

<StepLabel style={{ position: 'relative' }}>
<Box className={classes.box}>
<Typography variant='h6'>
Created
Copy link
Contributor

Choose a reason for hiding this comment

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

Add internationalization

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

{lifecycleState === 'Created' && (
<Box className={classes.box}>
<Typography variant='h6'>
Published
Copy link
Contributor

Choose a reason for hiding this comment

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

Here as well... i18n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

<StepLabel style={{ position: 'relative' }} >
<Box p={2} bgcolor='white' width='377px' borderColor='grey.500' borderLeft='0' borderRight='0' >
<Typography variant='h10'>
Requirements
Copy link
Contributor

Choose a reason for hiding this comment

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

Add i18n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

<CloseIcon className={classes.iconFalse} />
)}

<Typography variant='caption'>Endpoint</Typography>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be Endpoints. Add i18n as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be Endpoint. In order to satisfy the basic requirement you only need to provide one endpoint.
Added i18n.

) : (
<CloseIcon className={classes.iconFalse} />
)}
<Typography variant='caption'>Business plans</Typography>
Copy link
Contributor

Choose a reason for hiding this comment

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

Add i18n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

{lifecycleState === 'Published' && (
<Box bgcolor='primary.main' p={2} m={2} border={1}>
<Typography variant='h6'>
Published
Copy link
Contributor

Choose a reason for hiding this comment

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

Add i18n

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

*/
function updateLCStateOfAPI() {
setUpdating(true);
const promisedUpdate = restApi.updateLcState(api.id, 'Publish');
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we use api.publish() the method instead of calling REST api directly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

console.log(errorResponse);
Alert.error(JSON.stringify(errorResponse.message));
})
.finally(() => setUpdating(false));
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we move this final call to updateAPI() promise

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@kavishkafernando kavishkafernando merged commit 6bb1b62 into wso2:master Oct 3, 2019
wso2-jenkins-bot added a commit that referenced this pull request Oct 7, 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.

4 participants