-
Notifications
You must be signed in to change notification settings - Fork 377
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: Unify record-level actions for all tasks (Validate, Clear, and Discard) #2280
feat: Unify record-level actions for all tasks (Validate, Clear, and Discard) #2280
Conversation
!annotationEnabled | ||
? 'content--exploration-mode' | ||
: 'content--annotation-mode', | ||
]" |
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.
separate the binded classes and the other classes =>
class="content content--separator" :class="[ !annotationEnabled ? 'content--exploration-mode' : 'content--annotation-mode', ]"
let newS = { | ||
score: 1, | ||
text: sentence, | ||
text: this.record.sentenceForAnnotation, |
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.
is sentenceForAnnotation always a properties of record ? if not, manage the undefined case
}); | ||
it("expect to show discard button active", async () => { | ||
testIfButtonIsDisabled("discard", undefined); | ||
}); |
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.
why undefined and not null ?
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.
The response if is not disabled is "undefined" because disabled is undefined in the wrapper attributes
Description
This PR aligns record-level actions for all tasks (Validate, Clear, and Discard) and include the new design
Closes #2266
See #2264
Type of change
(Please delete options that are not relevant. Remember to title the PR according to the type of change)
How Has This Been Tested
(Please describe the tests that you ran to verify your changes. And ideally, reference
tests
)Checklist