-
Notifications
You must be signed in to change notification settings - Fork 185
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
kie-issues#1527: DMN Editor: Create new overlay option 'Highlight evaluation results' #2657
base: main
Are you sure you want to change the base?
Conversation
…luation results' Closes: apache/incubator-kie-issues#1527
|
||
export function EvaluationHighlightsBadge() { | ||
const dmnEditorStoreApi = useDmnEditorStoreApi(); | ||
const isEvaluationHighlights = useDmnEditorStore((s) => s.diagram.overlays.enableEvaluationHighlights); |
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.
const isEvaluationHighlights = useDmnEditorStore((s) => s.diagram.overlays.enableEvaluationHighlights); | |
const isEvaluationHighlightsEnabled = useDmnEditorStore((s) => s.diagram.overlays.enableEvaluationHighlights); |
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.
thank you @tiagobento, I agree, it is a better name, changes pushed
Other than that ^ looks good to go! :) |
Border looks a little off, and the tooltip says (beta), but it isn't. Also, I think the idea of having this as a https://www.patternfly.org/components/label/ instead of a "Button" is important to give it a different look compared to the other buttons, since this this is not really a button, but more like an indicator that the Evaluation highlights are turned on. Same is true for the toggle on BEE. We also need to be mindful of the case we choose when writing text on-screen. I always prefer to capitalize only the first word, not all words, so the label would read "Evaluation highlights: on/off", instead of "Evaluation Highlights: On/Off". Another thing that caught my eye was the little displacement that happened when the I toggled between on and off on BEE, because of difference in text size. Being mindful of layout shifts is also very important for a good experience when using a web app. Please consider my feedback, and let me know if you have questions! |
@tiagobento good feedback, I will try to incorporate it.
I will remove the "(beta)". Oh, you are correct, I haven't noticed the border off placement. It is an example that author eyes are focused on other things than reviewer eyes. Thank you for spotting.
Ok, probably this I didn't understand from mockup. There it seemed to me as UI element with same semantic as other elements in that area, that is why I used the button. I will incorporate your proposal.
Sure.
I do not have preference about this. I don't mind follow your suggestion.
WIll try to fix the size of the new toggle/label. However, that will probably won't work with potential i18n in future. |
Closes: apache/incubator-kie-issues#1527