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

refactor(titus/serverGroup): Reactify Titus Resize Server Group Modal #7175

Conversation

christopherthielen
Copy link
Contributor

And also reactify the server group capacity details section.
Also give this the Changes treatment we did in Amazon provider
use formik and hooks

Screen Shot 2019-07-01 at 6 05 21 PM
Screen Shot 2019-07-01 at 6 04 53 PM

</div>
</div>

{!!errorMessage && (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uses formik, but only shows one error message and always shows that error message in the same spot.

}

function SimpleMode({ formik, serverGroup, toggleMode }: IAdvancedModeProps) {
useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I love how simple and clean useEffect can be.

);

@Overridable('titus.serverGroup.CapacityDetailsSection')
export class TitusCapacityDetailsSection extends React.Component<ICapacityDetailsSectionProps> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is still a class component because @Overridable needs a class component

@spinnakerbot
Copy link
Contributor

The following commits need their title changed:

Please format your commit title into the form:

<type>(<scope>): <subject>, e.g. fix(kubernetes): address NPE in status check

This allows us to easily generate changelogs & determine semantic version numbers when cutting releases. You can read more about commit conventions here.

@christopherthielen christopherthielen merged commit 20df06e into spinnaker:master Jul 3, 2019
@christopherthielen christopherthielen deleted the reactify-titus-resize-server-group branch July 3, 2019 17:14
christopherthielen added a commit to christopherthielen/deck that referenced this pull request Jul 3, 2019
6630f9b refactor(core/serverGroup): Extract capacity details components to reuse across providers (spinnaker#7182)
20df06e refactor(titus/serverGroup): Reactify Titus Resize Server Group Modal (spinnaker#7175)
christopherthielen added a commit that referenced this pull request Jul 3, 2019
6630f9b refactor(core/serverGroup): Extract capacity details components to reuse across providers (#7182)
20df06e refactor(titus/serverGroup): Reactify Titus Resize Server Group Modal (#7175)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants