rca-judgment-validation / label_config.xml
mborcin's picture
Compact root cause choices and hide keyboard hints
a8ae212 verified
Raw
History Blame Contribute Delete
4.64 kB
<View>
<Style>
.rca-shell {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: #1f2933;
}
.rca-meta {
border: 1px solid #d8dee8;
border-radius: 8px;
padding: 14px 16px;
margin-bottom: 12px;
background: #f8fafc;
}
.rca-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
margin: 14px 0;
}
.rca-panel {
border: 1px solid #d8dee8;
border-radius: 8px;
padding: 12px;
background: #ffffff;
min-width: 0;
}
.rca-context {
margin-bottom: 14px;
}
.rca-outcome {
font-size: 18px;
font-weight: 700;
color: #0f172a;
}
.rca-panel h3 {
margin: 0 0 8px;
font-size: 14px;
line-height: 1.2;
color: #334155;
}
.rca-judgment {
max-height: 620px;
overflow: auto;
white-space: pre-wrap;
}
.rca-question {
border: 1px solid #cbd5e1;
border-radius: 8px;
padding: 14px;
margin-top: 16px;
background: #f8fafc;
}
.rca-question h3 { margin-top: 0; }
.rca-question .lsf-key,
.rca-question [class*="shortcut"],
.rca-question [class*="Shortcut"] {
display: none !important;
}
.rca-root-cause kbd,
.rca-root-cause .ant-tag,
.rca-root-cause [class*="hotkey"],
.rca-root-cause [class*="Hotkey"],
.rca-root-cause [class*="keymap"],
.rca-root-cause [class*="Keymap"],
.rca-root-cause [data-testid*="shortcut"],
.rca-root-cause [data-testid*="hotkey"] {
display: none !important;
}
.rca-root-cause {
columns: 2;
column-gap: 28px;
}
.rca-root-cause ul,
.rca-root-cause li {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.rca-root-cause .ant-radio-wrapper,
.rca-root-cause .ant-checkbox-wrapper {
margin: 0 !important;
min-height: 0 !important;
line-height: 1.2 !important;
}
.rca-root-cause label {
margin: 2px 0 !important;
padding: 2px 0 !important;
line-height: 1.2 !important;
}
.rca-root-cause div {
break-inside: avoid;
}
.root-option {
display: grid;
grid-template-columns: 150px minmax(0, 1fr);
gap: 8px;
align-items: start;
padding: 1px 0;
}
.root-option-new-group {
margin-top: 6px;
padding-top: 5px;
border-top: 1px solid #d8dee8;
}
.root-group {
color: #475569;
font-size: 11px;
font-weight: 700;
letter-spacing: 0;
text-transform: uppercase;
}
.root-leaf {
color: #111827;
font-size: 14px;
line-height: 1.25;
}
</Style>
<View className="rca-shell">
<View className="rca-meta">
<Header value="Case" />
<Text name="case_details" value="$case_details" />
</View>
<View className="rca-panel rca-context">
<Header value="Case record facts given to the generation model" />
<Text name="case_anchor" value="$case_record" />
</View>
<View className="rca-row">
<View className="rca-panel">
<Header value="Generated outcome" />
<Text name="generated_outcome" value="$generated_outcome" className="rca-outcome" />
</View>
<View className="rca-panel">
<Header value="Reference outcome" />
<Text name="reference_outcome" value="$reference_outcome" className="rca-outcome" />
</View>
</View>
<View className="rca-row">
<View className="rca-panel rca-judgment">
<Header value="Generated judgment" />
<Text name="generated_judgment" value="$generated_judgment" />
</View>
<View className="rca-panel rca-judgment">
<Header value="Reference judgment" />
<Text name="reference_judgment" value="$reference_judgment" />
</View>
</View>
<View className="rca-question">
<Header value="Error stage" />
<Choices name="error_stage" toName="case_anchor" choice="single-radio" required="true" showInline="true">
<Choice value="facts" />
<Choice value="issues" />
<Choice value="rules" />
<Choice value="analysis" />
<Choice value="conclusion" />
</Choices>
</View>
<View className="rca-question">
<Header value="Root cause category" />
<Choices name="minor_error_category" toName="case_anchor" choice="single-radio" required="true" layout="vertical" value="$root_cause_options" className="rca-root-cause" />
</View>
</View>
</View>