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

[BI-1127] Ontology UI Form: ordinal & nominal #137

Merged
merged 5 commits into from
Oct 28, 2021
Merged

Conversation

dmeidlin
Copy link
Contributor

@dmeidlin dmeidlin commented Oct 21, 2021

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.

Copy link
Member

@nickpalladino nickpalladino left a 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);
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

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.

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 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.

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 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.

@dmeidlin dmeidlin merged commit 7c74c0f into develop Oct 28, 2021
@dmeidlin dmeidlin deleted the feature/BI-1127 branch October 28, 2021 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants