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

feat(stark-demo): add the ngx form error to the showcase #1361

Closed

Conversation

nicanac
Copy link
Contributor

@nicanac nicanac commented Jul 17, 2019

ISSUES CLOSED: #1195

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

Add the ngx form error to the showcase

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number:#1195

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[X] No

Other information

Copy link
Collaborator

@christophercr christophercr left a comment

Choose a reason for hiding this comment

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

Some remarks :p

@SuperITMan SuperITMan modified the milestones: 10.0.0-rc.0, 10.0.0-rc.1 Aug 6, 2019
Copy link
Collaborator

@christophercr christophercr left a comment

Choose a reason for hiding this comment

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

Some remarks, and also, the example now contains only half of the implementation, we need to also show the configuration needed for the NgxFormErrorsModule and the entryComponents. I suggest to add another section in the page explaining that, something like we did in https://stark.nbb.be/showcase/latest/demo-rbac/authorization-service

Don't forget to rebase your branch and squash your commits 😉

Sorry for the delay... I almost forget about this PR :p

@christophercr
Copy link
Collaborator

christophercr commented Aug 19, 2019

@nicanac thinking a bit more on this, in fact it is not necessary to add the other section to show the configuration needed for the NgxFormErrorsModule and the entryComponents that I mentioned before... normally that is already explained in the docs of the ngx-form-errors package... so just adding the Reference link in the demo page should be enough... what do you think?

That way it is safer as we don't need to duplicate documentation...

@nicanac
Copy link
Contributor Author

nicanac commented Aug 20, 2019

@nicanac thinking a bit more on this, in fact it is not necessary to add the other section to show the configuration needed for the NgxFormErrorsModule and the entryComponents that I mentioned before... normally that is already explained in the docs of the ngx-form-errors package... so just adding the Reference link in the demo page should be enough... what do you think?

That way it is safer as we don't need to duplicate documentation...

@christophercr , I do agree, it's the reason why I didn't include it at first.
I'll add the reference link to the demo page, and we should be fine.

@nicanac nicanac force-pushed the feature/ngx-forms branch 8 times, most recently from cff4490 to 881ffb0 Compare August 22, 2019 07:47
@coveralls
Copy link

coveralls commented Aug 22, 2019

Coverage Status

Coverage remained the same at 94.209% when pulling fab34a2 on nicanac:feature/ngx-forms into 2878029 on NationalBankBelgium:master.

Copy link
Collaborator

@christophercr christophercr left a comment

Choose a reason for hiding this comment

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

Still some translations to be replaced in the example files. And also, the name of the example files is wrong, it should be reactive-form-errors.xxx (currently it has an extra s in forms) so the exmple files cannot be found:

GET http://localhost:3000/assets/examples/reactive-form-errors/reactive-form-errors.html 404 (Not Found)
GET http://localhost:3000/assets/examples/reactive-form-errors/reactive-form-errors.scss 404 (Not Found)
GET http://localhost:3000/assets/examples/reactive-form-errors/reactive-form-errors.ts 404 (Not Found)

Nice thank you, Haven't seen it. It's solved.

@nicanac nicanac force-pushed the feature/ngx-forms branch 2 times, most recently from 033df4e to 7a64264 Compare August 23, 2019 13:28
Copy link
Collaborator

@christophercr christophercr left a comment

Choose a reason for hiding this comment

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

Some comments

Copy link
Collaborator

@christophercr christophercr left a comment

Choose a reason for hiding this comment

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

Just one small remark.... almost there! 😉

showcase/src/assets/translations/fr.json Show resolved Hide resolved
Copy link
Collaborator

@carlo-nomes carlo-nomes left a comment

Choose a reason for hiding this comment

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

I get this warning in chrome devtools when on the page.
Screenshot 2019-08-27 at 12 47 57

Also, a couple of notes

showcase/src/app/demo-ui/demo-ui.module.ts Show resolved Hide resolved
button {
margin: 8px;
}
.grid {
Copy link
Collaborator

Choose a reason for hiding this comment

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

grid won't work in IE, maybe you could use flexbox instead

public ngOnInit(): void {
this.formGroup = this.formBuilder.group({
username: [undefined, Validators.required],
matchingPasswords: new FormGroup(
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you use the formbuilder for the group and form controls?

showcase/src/app/welcome/welcome.module.ts Show resolved Hide resolved
Copy link
Collaborator

@carlo-nomes carlo-nomes left a comment

Choose a reason for hiding this comment

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

Also, don't forget to update the example when you make changes. 😄

@SuperITMan SuperITMan modified the milestones: 10.0.0-rc.2, 10.0.0-rc.3 Oct 29, 2019
@SuperITMan SuperITMan modified the milestones: 10.0.0-rc.3, 10.0.0-rc.4 Jan 7, 2020
@SuperITMan SuperITMan modified the milestones: 10.0.0-rc.4, 10.0.0 Feb 4, 2020
@SuperITMan SuperITMan modified the milestones: 10.0.0, 10.0.1 Mar 10, 2020
@christophercr christophercr modified the milestones: 10.0.1, 10.1.0 Mar 19, 2020
@SuperITMan
Copy link
Member

Superseded by #1721.

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.

showcase: ngx-form-errors - we should integrate the module and present it
5 participants