-
Notifications
You must be signed in to change notification settings - Fork 1
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
[BI-1127] Ontology UI Form: ordinal & nominal #137
Conversation
c08bbf4
to
fb02b49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed notification vertical size is like half of normal, not sure when that happened. I can create a card for it.
@@ -186,7 +186,14 @@ export default class CategoryTraitForm extends Vue { | |||
} | |||
|
|||
removeRow() { | |||
this.data.splice(this.activeRemoveRowIndex!,1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be a notification if you try and delete a row and can't so that the user knows why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point, but I think a notification is a little aggressive Making the X icon look disabled once the minimum is reached should be enough to be clear in this case without confusing the user. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya, or other thought I had was some red status text like when you get a validation error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or even better, just remove the X button for the first one or two categories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made it so the delete buttons don't show for the minimum categories. Have a look and see what you think. I'm open to trying the validation text, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the helper text 'Nominal scales require at least one category' and 'Ordinal scales require at least two categories' to the respective minimum input fields.
…orfinal and nominal
4d8d9d1
to
e39c223
Compare
Placeholder text was changed to 'Value' and 'Category' for nominal and ordinal scale classes.
Minimum of 1 category for nominal scale and 2 categories for ordinal scale is enforced.