This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new f3be6263477 [NO-ISSUE] Small cosmetic changes to DMN Editor highlights 
and rename modal (#2993)
f3be6263477 is described below

commit f3be62634773538b69e0c0e0f35d2e6e128bea30
Author: Tiago Bento <[email protected]>
AuthorDate: Wed Mar 12 19:51:40 2025 -0400

    [NO-ISSUE] Small cosmetic changes to DMN Editor highlights and rename modal 
(#2993)
---
 .../EvaluationHighlightsBadge.tsx                  |  2 +-
 .../src/refactor/RefactorConfirmationDialog.tsx    | 35 +++++++++++++++++-----
 packages/form-dmn/src/FormDmnOutputs.tsx           |  2 +-
 3 files changed, 30 insertions(+), 9 deletions(-)

diff --git 
a/packages/dmn-editor/src/evaluationHighlights/EvaluationHighlightsBadge.tsx 
b/packages/dmn-editor/src/evaluationHighlights/EvaluationHighlightsBadge.tsx
index 1479a96010f..765ebfa6086 100644
--- a/packages/dmn-editor/src/evaluationHighlights/EvaluationHighlightsBadge.tsx
+++ b/packages/dmn-editor/src/evaluationHighlights/EvaluationHighlightsBadge.tsx
@@ -30,7 +30,7 @@ export function EvaluationHighlightsBadge() {
     <aside className={"kie-dmn-editor--evaluation-highlights-panel-toggle"}>
       <Label
         icon={isEvaluationHighlightsEnabled ? <OnIcon /> : <OffIcon />}
-        color={isEvaluationHighlightsEnabled ? "green" : "grey"}
+        color={isEvaluationHighlightsEnabled ? "purple" : "grey"}
         onClick={() => {
           dmnEditorStoreApi.setState((state) => {
             state.diagram.overlays.enableEvaluationHighlights = 
!state.diagram.overlays.enableEvaluationHighlights;
diff --git a/packages/dmn-editor/src/refactor/RefactorConfirmationDialog.tsx 
b/packages/dmn-editor/src/refactor/RefactorConfirmationDialog.tsx
index bb9aff1916e..56d4783e412 100644
--- a/packages/dmn-editor/src/refactor/RefactorConfirmationDialog.tsx
+++ b/packages/dmn-editor/src/refactor/RefactorConfirmationDialog.tsx
@@ -51,6 +51,7 @@ export function RefactorConfirmationDialog({
       isOpen={isRefactorModalOpen}
       showClose={true}
       onClose={onCancel}
+      title={"Renaming identifier"}
       actions={[
         <Button key="confirm" variant={ButtonVariant.primary} 
onClick={onConfirmExpressionRefactor}>
           Yes, rename and replace
@@ -58,19 +59,39 @@ export function RefactorConfirmationDialog({
         <Button key="rename" variant={ButtonVariant.secondary} 
onClick={onConfirmRenameOnly}>
           No, just rename
         </Button>,
-        <Button key="cancel" variant={ButtonVariant.danger} onClick={onCancel}>
+        <Button key="cancel" variant={ButtonVariant.link} onClick={onCancel}>
           Cancel
         </Button>,
       ]}
     >
-      The identifier `{fromName ?? "<undefined>"}` was renamed to `{toName ?? 
"<undefined>"}`.
+      The identifier{" "}
+      <pre style={{ display: "inline" }}>
+        {'"'}
+        {fromName ?? "<undefined>"}
+        {'"'}
+      </pre>{" "}
+      was renamed to{" "}
+      <pre style={{ display: "inline" }}>
+        {'"'}
+        {toName ?? "<undefined>"}
+        {'"'}
+      </pre>
+      , and it is used by one or more expressions.
       <br />
       <br />
-      This identifier is used in one or more expressions.
-      <br />
-      <br />
-      Would you like to automatically replace all instances of `{fromName ?? 
"<undefined>"}` with `
-      {toName ?? "<undefined>"}`?
+      Would you like to automatically replace all occurrences of{" "}
+      <pre style={{ display: "inline" }}>
+        {'"'}
+        {fromName ?? "<undefined>"}
+        {'"'}
+      </pre>{" "}
+      with{" "}
+      <pre style={{ display: "inline" }}>
+        {'"'}
+        {toName ?? "<undefined>"}
+        {'"'}
+      </pre>
+      ?
     </Modal>
   );
 }
diff --git a/packages/form-dmn/src/FormDmnOutputs.tsx 
b/packages/form-dmn/src/FormDmnOutputs.tsx
index 7ee00287251..f9be937feae 100644
--- a/packages/form-dmn/src/FormDmnOutputs.tsx
+++ b/packages/form-dmn/src/FormDmnOutputs.tsx
@@ -272,7 +272,7 @@ export function FormDmnOutputs({ openEvaluationTab, 
openBoxedExpressionEditor, .
             onAnimationEnd={(e) => onAnimationEnd(e, index)}
           >
             <CardTitle>
-              <Flex justifyContent={{ default: "justifyContentSpaceBetween" }}>
+              <Flex justifyContent={{ default: "justifyContentSpaceBetween" }} 
flexWrap={{ default: "nowrap" }}>
                 <Title headingLevel={"h2"}>{dmnFormResult.decisionName}</Title>
                 {onOpenBoxedExpressionEditor !== undefined && (
                   <Button


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to