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

Replace service form #4985

Merged
merged 4 commits into from Nov 30, 2018
Merged

Conversation

Hyperkid123
Copy link
Contributor

Replaced angular form with react using data-driven-forms.

form is at: Services -> My Services -> Pick some service -> Configuration -> Edit

Changes

  • using data-driven-forms
  • added missing validation text

Before

screenshot from 2018-11-26 16-15-23

After

screenshot from 2018-11-26 16-13-53

@Hyperkid123
Copy link
Contributor Author

@miq add_label react
@miq-bot assign @martinpovolny

@Hyperkid123
Copy link
Contributor Author

@miq-bot add_label react

@miq-bot miq-bot added the react label Nov 26, 2018
@hstastna
Copy link
Contributor

hstastna commented Nov 28, 2018

It works for me, in the latest master, I haven't found any issue. 👍 from me.

@miq-bot
Copy link
Member

miq-bot commented Nov 29, 2018

This pull request is not mergeable. Please rebase and repush.

@Hyperkid123
Copy link
Contributor Author

@miq-bot remove_label unmergeable

@miq-bot
Copy link
Member

miq-bot commented Nov 30, 2018

Checked commits Hyperkid123/manageiq-ui-classic@9df0675~...a049c5f with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🍪

@martinpovolny
Copy link

Tested, all works good!

@martinpovolny martinpovolny added this to the Sprint 100 Ending Dec 3, 2018 milestone Nov 30, 2018
@martinpovolny martinpovolny merged commit 2b5e0f1 into ManageIQ:master Nov 30, 2018
import FormRender from '@data-driven-forms/react-form-renderer';
import ServiceForm from '../../components/service-form';

describe('Cloud tenant form component', () => {
Copy link
Contributor

@himdel himdel Nov 30, 2018

Choose a reason for hiding this comment

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

Cloud tenant != Service

EDIT: fixed in #5018


beforeEach(() => {
initialProps = {
maxNameLen: 1,
Copy link
Contributor

@himdel himdel Nov 30, 2018

Choose a reason for hiding this comment

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

Submit can't ever be undisabled when validation fails, right?

This needs to be at least "foo".length

EDIT: fixed in #5018

// change form state to enable reset button
wrapper.find(FormRender).childAt(0).instance().form.change('name', 'foo');
wrapper.find(FormRender).childAt(0).instance().form.change('description', 'bar');
wrapper.find('button').at(0).simulate('click');
Copy link
Contributor

@himdel himdel Nov 30, 2018

Choose a reason for hiding this comment

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

It's still disabled, MiqFormRenderer is using disableSubmit

(probably fixed in #5018)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants