wip(confidence-engine): checkpoint open-question presentation work
This commit is contained in:
@@ -274,8 +274,14 @@ export function buildFacilitatorViewModel(_ref) {
|
||||
// Scaffold items are entirely suppressed from user-facing sections.
|
||||
if (semanticRole === "scaffolding") continue;
|
||||
|
||||
// An unknown's openQuestion is a model-authored presentation projection.
|
||||
// Its label and description remain the canonical uncertainty representation.
|
||||
var displayText =
|
||||
node.kind === "unknown" && !resolved && node.openQuestion
|
||||
? node.openQuestion.trim()
|
||||
: displayResult.displayText;
|
||||
var entry = {
|
||||
text: displayResult.displayText,
|
||||
text: displayText,
|
||||
normalised: normaliseText(displayResult.displayText),
|
||||
kind: node.kind,
|
||||
semanticRole: semanticRole,
|
||||
@@ -410,8 +416,10 @@ export function buildFacilitatorViewModel(_ref) {
|
||||
if (!a.isActiveUnknown && b.isActiveUnknown) return 1;
|
||||
|
||||
// Selected-question target: match by normalised text
|
||||
if (sqText && a.normalised === sqText && b.normalised !== sqText) return -1;
|
||||
if (sqText && a.normalised !== sqText && b.normalised === sqText) return 1;
|
||||
var aMatchesSelectedQuestion = sqText && normaliseText(a.text) === sqText;
|
||||
var bMatchesSelectedQuestion = sqText && normaliseText(b.text) === sqText;
|
||||
if (aMatchesSelectedQuestion && !bMatchesSelectedQuestion) return -1;
|
||||
if (!aMatchesSelectedQuestion && bMatchesSelectedQuestion) return 1;
|
||||
|
||||
// Explicit priority fields where available in the graph
|
||||
var pa = a.priority != null ? a.priority : null;
|
||||
|
||||
Reference in New Issue
Block a user