@kontourai/survey 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -191,6 +191,9 @@ export function mountExtractionInspector(container, model, options = {}) {
|
|
|
191
191
|
list.innerHTML = visible.map(c => `<li><button type="button" class="inspector-candidate" id="candidate-${safeId(c.id)}" data-candidate-id="${escapeHtml(c.id)}" aria-controls="highlight-${safeId(c.id)}"><strong>${escapeHtml(c.field)}</strong><span>${escapeHtml(c.provider)}${c.model ? ` / ${escapeHtml(c.model)}` : ""}</span><span>${escapeHtml(c.inferenceType)} ${escapeHtml(c.valueType)} · ${escapeHtml(c.alignment)}</span>${formatContext(c)}</button></li>`).join("") || "<li>No candidates match these filters.</li>";
|
|
192
192
|
resultCount.textContent = matching.length === 0 ? "No matching candidates" : `${start + 1}–${Math.min(start + pageSize, matching.length)} of ${matching.length}`;
|
|
193
193
|
pageLabel.textContent = `Page ${page + 1} of ${pageCount}`;
|
|
194
|
+
pageLabel.hidden = pageCount === 1;
|
|
195
|
+
previous.hidden = pageCount === 1;
|
|
196
|
+
next.hidden = pageCount === 1;
|
|
194
197
|
previous.disabled = page === 0;
|
|
195
198
|
next.disabled = page >= pageCount - 1;
|
|
196
199
|
postures.innerHTML = model.sources.map(s => `<div class="inspector-posture ${s.alignment}" role="status"><strong>${escapeHtml(s.importName)}: ${escapeHtml(s.alignment)}</strong><span>${escapeHtml(s.message)}</span></div>`).join("");
|
|
@@ -572,11 +572,11 @@ function renderReviewQueueSessionHtml(session, presentationAdapter, queueView) {
|
|
|
572
572
|
<span class="queue-result-count" aria-live="polite">
|
|
573
573
|
${window.totalMatching === 0 ? "No matching fields" : `${window.start + 1}–${window.end} of ${window.totalMatching}`}
|
|
574
574
|
</span>
|
|
575
|
-
|
|
575
|
+
${window.pageCount > 1 ? `<div class="queue-pager">
|
|
576
576
|
<button type="button" data-testid="queue-previous"${window.page === 0 ? " disabled" : ""}>Previous</button>
|
|
577
577
|
<span>Page ${window.page + 1} of ${window.pageCount}</span>
|
|
578
578
|
<button type="button" data-testid="queue-next"${window.page >= window.pageCount - 1 ? " disabled" : ""}>Next</button>
|
|
579
|
-
</div
|
|
579
|
+
</div>` : ""}
|
|
580
580
|
</nav>
|
|
581
581
|
<div class="fields" data-testid="review-fields">
|
|
582
582
|
${window.items.map((item) => renderFieldCard(item, session, presentationAdapter)).join("")
|
package/package.json
CHANGED