@floless/app 0.172.0 → 0.172.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.
- package/dist/floless-server.cjs +16893 -12178
- package/dist/schemas/drawing-check.profile.v1.schema.json +7 -1
- package/dist/skills/floless-app-steel-model/SKILL.md +2 -2
- package/dist/skills/floless-app-steel-model/references/elements.md +45 -5
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +6 -2
- package/dist/web/app.css +62 -0
- package/dist/web/aware.js +34 -3
- package/dist/web/chat.js +19 -1
- package/dist/web/commands-drawing-check.js +2 -0
- package/dist/web/commands-shell.js +34 -0
- package/dist/web/commands-steel.js +50 -0
- package/dist/web/drawing-check-editor.html +9 -0
- package/dist/web/drawing-check-editor.js +127 -14
- package/dist/web/element-plan.js +98 -0
- package/dist/web/index.html +24 -0
- package/dist/web/instructor.js +1 -0
- package/dist/web/model-elements.js +256 -15
- package/dist/web/pdf-active-content.js +38 -0
- package/dist/web/steel-3d-view.js +5 -1
- package/dist/web/steel-ai-marks.js +19 -3
- package/dist/web/steel-catalog-picker.js +7 -2
- package/dist/web/steel-editor.html +164 -14
- package/dist/web/steel-profile-card-state.js +378 -0
- package/dist/web/steel-profile-card.js +778 -0
- package/dist/web/steel-shape-sketch-core.js +380 -0
- package/dist/web/steel-shape-sketcher.js +595 -0
- package/dist/web/workspaces.js +340 -26
- package/package.json +2 -1
package/dist/web/workspaces.js
CHANGED
|
@@ -356,6 +356,7 @@
|
|
|
356
356
|
}
|
|
357
357
|
window.__modelEditorDisposeReceipt = () => lastModelDisposeReceipt;
|
|
358
358
|
const $revisionCard = document.getElementById('ws-revision-card');
|
|
359
|
+
const $revisionActive = document.getElementById('ws-revision-active');
|
|
359
360
|
const $revisionFile = document.getElementById('ws-revision-file');
|
|
360
361
|
const $sourcePlaceholder = document.getElementById('ws-source-placeholder'); // shown for a filter-less Source step
|
|
361
362
|
// While a Revit or Tekla read is in flight the Source pane shows Flo working, hat on, as over a running workflow
|
|
@@ -9979,10 +9980,21 @@
|
|
|
9979
9980
|
? `<button type="button" class="kb-x" data-kb-ds-fx="${f.index}" data-kb-ds-issue="${escapeAttr(issue.issueId)}" data-kb-ds-rev="${escapeAttr(kbDsRev(st))}"${row ? ` data-kb-ds-row="${escapeAttr(row.sourceId)}"` : ''}${f.withdrawn ? ' data-kb-ds-fwd' : ''} data-command-id="shell.kb-design-file-remove#${escapeAttr(fileKey)}"${fileLabel} aria-label="${f.withdrawn ? 'Remove the reference' : 'Withdraw or remove'} “${escapeAttr(name)}”" data-tip="${f.withdrawn ? 'Remove this file from your references; the design set keeps its copy' : 'Withdraw this file from the issue'}">✕</button>`
|
|
9980
9981
|
: '';
|
|
9981
9982
|
const act = restore + x;
|
|
9983
|
+
// #3646: what this PDF carries besides its drawings, or that it could not be checked, as the design set says
|
|
9984
|
+
// (`activeContent`). Its sentence shows on the line below: it is a safety instruction, so it never depends on a hover.
|
|
9985
|
+
const ac = globalThis.flolessActiveContent;
|
|
9986
|
+
const acBody = f.activeContent;
|
|
9987
|
+
const acShown = !!(ac && ac.shows(acBody));
|
|
9988
|
+
const acFinding = acShown && ac.isFinding(acBody);
|
|
9989
|
+
const acChip = acShown
|
|
9990
|
+
? `<span class="kb-chip ${acFinding ? 'caution' : 'unchecked'}" data-tip="${escapeAttr(acBody.tip || acBody.note)}">${escapeHtml(acBody.label)}</span>`
|
|
9991
|
+
: '';
|
|
9992
|
+
const allChips = chips + acChip;
|
|
9982
9993
|
return `<li class="kb-ds-file${f.withdrawn ? ' wd' : ''}"${isOpen ? ' aria-current="true"' : ''}>` +
|
|
9983
9994
|
`<span class="kb-fico ${ico.cls}" aria-hidden="true">${ico.glyph}</span>` +
|
|
9984
9995
|
`<div class="kb-fbody"><button type="button" class="kb-fname" data-kb-open="${escapeAttr(openId)}" data-command-id="shell.kb-design-file-preview#${escapeAttr(fileKey)}"${fileLabel} data-tip="Preview “${escapeAttr(name)}”">${escapeHtml(name)}</button>` +
|
|
9985
|
-
(
|
|
9996
|
+
(allChips ? `<div class="kb-fmeta">${allChips}${p ? `<span class="sr-only">${escapeHtml(p[1])}</span>` : ''}</div>` : '') +
|
|
9997
|
+
(acShown ? `<div class="kb-ds-active${acFinding ? '' : ' unchecked'}">${escapeHtml(acBody.note)}</div>` : '') + '</div>' +
|
|
9986
9998
|
(row ? `<button type="button" class="kb-toggle" role="switch" aria-checked="${row.useAsKb ? 'true' : 'false'}" data-kb-toggle data-kb-toggle-id="${escapeAttr(row.sourceId)}" data-command-id="shell.kb-design-file-knowledge#${escapeAttr(fileKey)}"${fileLabel} ` +
|
|
9987
9999
|
`aria-label="Use “${escapeAttr(name)}” as knowledge" data-tip="${row.useAsKb ? 'Included in the knowledge base — click to exclude' : 'Not in the knowledge base — click to include it when you organize'}"></button>` : '') +
|
|
9988
10000
|
act + '</li>';
|
|
@@ -15779,10 +15791,13 @@
|
|
|
15779
15791
|
if (String(kind).startsWith('send:') && Number.isFinite(Number(c.native))) parts.push(`${Number(c.native)} native`);
|
|
15780
15792
|
if (Number(c.unsupported)) parts.push(`${Number(c.unsupported)} unsupported`);
|
|
15781
15793
|
if (Number(c.warnings)) parts.push(`${Number(c.warnings)} warning${Number(c.warnings) === 1 ? '' : 's'}`);
|
|
15794
|
+
// #3296 E1b: walls, slabs and footings the file or send left out make it a result with gaps, named in the details.
|
|
15795
|
+
const elements = typeof receipt.elementsLeftOut === 'string' && receipt.elementsLeftOut ? receipt.elementsLeftOut : '';
|
|
15782
15796
|
return {
|
|
15783
15797
|
text: parts.join(' · '),
|
|
15784
|
-
partial: Number(c.unsupported) > 0 || Number(c.warnings) > 0,
|
|
15798
|
+
partial: Number(c.unsupported) > 0 || Number(c.warnings) > 0 || !!elements,
|
|
15785
15799
|
details: [
|
|
15800
|
+
...(elements ? [`Not in this ${String(kind).startsWith('send:') ? 'send' : 'file'}: ${elements}`] : []),
|
|
15786
15801
|
...(Array.isArray(receipt.unsupported) ? receipt.unsupported.map((row) => receiptItemText('Unsupported', row)) : []),
|
|
15787
15802
|
...(Array.isArray(receipt.warnings) ? receipt.warnings.map((warning) => receiptItemText('Warning', warning)) : []),
|
|
15788
15803
|
...(receipt.profileMapping && Array.isArray(receipt.profileMapping.mapped)
|
|
@@ -15889,6 +15904,60 @@
|
|
|
15889
15904
|
`or that ${one ? 'its weight is' : 'their weights are'} approximate.`;
|
|
15890
15905
|
}
|
|
15891
15906
|
|
|
15907
|
+
/** #3296 E1b: the reply's sentence naming the walls, slabs and footings an export or send left out, or null. */
|
|
15908
|
+
function elementsLeftOutText(res) {
|
|
15909
|
+
const e = res && res.elementsLeftOut;
|
|
15910
|
+
return e && typeof e.sentence === 'string' && e.sentence.trim() ? e.sentence.trim() : null;
|
|
15911
|
+
}
|
|
15912
|
+
|
|
15913
|
+
/**
|
|
15914
|
+
* The toast a finished file export (IFC, drawing, render) raises: "Exported — <file>", or "Exported with gaps — …"
|
|
15915
|
+
* naming every gap. #1156a: an export that LEFT MEMBERS OUT must not announce itself as clean. The two sources are
|
|
15916
|
+
* different questions - the receipt says what the producer could not emit from what it was given, `skippedDetail`
|
|
15917
|
+
* says what was never given to it - so BOTH are gathered before a single toast is raised. `showToast` appends rather
|
|
15918
|
+
* than replaces, so emitting a clean "Exported" and then a warning would leave the user reading two contradictory
|
|
15919
|
+
* messages at once.
|
|
15920
|
+
*/
|
|
15921
|
+
function exportResultToast(res, summary, kind) {
|
|
15922
|
+
const omittedNow = Array.isArray(res.skippedDetail) ? res.skippedDetail.length : 0;
|
|
15923
|
+
const boxedNow = Array.isArray(res.customSections) ? res.customSections.filter((row) => row && row.sent === 'bounding-box').length : 0;
|
|
15924
|
+
const holdNow = res.holdUnmarked && Number.isSafeInteger(res.holdUnmarked.count) ? res.holdUnmarked.count : 0;
|
|
15925
|
+
const gaps = [
|
|
15926
|
+
summary && summary.partial ? summary.text : null,
|
|
15927
|
+
omittedNow ? `${omittedNow} member${omittedNow === 1 ? '' : 's'} left out — see the card for why` : null,
|
|
15928
|
+
// #3296 E1b: the walls, slabs and footings the file (or picture) does not carry, named with why, beside the members.
|
|
15929
|
+
elementsLeftOutText(res),
|
|
15930
|
+
// Add-ons S1a: a custom section sent as its bounding box is in the file, but not as itself.
|
|
15931
|
+
boxedNow ? `${boxedNow} sent as a bounding box, named in the file as an assumption` : null,
|
|
15932
|
+
// #3469: a held member is in the file with its real section, but the file does not say it is on HOLD.
|
|
15933
|
+
holdNow ? `${holdNow} HOLD member${holdNow === 1 ? '' : 's'} left unmarked in the file (see the card)` : null,
|
|
15934
|
+
].filter(Boolean);
|
|
15935
|
+
// #2521 row 5b: a file made from a Quick (or possibly Quick) model says so here too; the file carries it as well.
|
|
15936
|
+
const quickBit = res.quick && res.quick.label ? ` — ${res.quick.label}, named in the file` : '';
|
|
15937
|
+
return {
|
|
15938
|
+
text: gaps.length ? `Exported with gaps — ${gaps.join(' · ')}${quickBit}` : `Exported — ${res.filename || kind}${quickBit}`,
|
|
15939
|
+
tone: gaps.length || (res.quick && res.quick.state === 'unknown') ? 'warn' : 'ok',
|
|
15940
|
+
};
|
|
15941
|
+
}
|
|
15942
|
+
|
|
15943
|
+
/**
|
|
15944
|
+
* #3296 E1b: the walls, slabs and footings this card's file (or pictures) does not carry, read from its receipt so the
|
|
15945
|
+
* card still names them, with why, after the export toast is gone. They are not members, so `omittedHtml` never
|
|
15946
|
+
* holds them. Silent when the receipt records none.
|
|
15947
|
+
*/
|
|
15948
|
+
function elementsLeftOutHtml(kind, approved) {
|
|
15949
|
+
if (!approved || !exportState) return '';
|
|
15950
|
+
for (const k of omittedKindsFor(kind)) {
|
|
15951
|
+
const entry = exportState[k];
|
|
15952
|
+
if (!entry) continue;
|
|
15953
|
+
const sources = Array.isArray(entry.variants) && entry.variants.length ? entry.variants : [entry];
|
|
15954
|
+
const record = (sources.find((source) => source && source.elementsLeftOut) || {}).elementsLeftOut;
|
|
15955
|
+
const sentence = record && typeof record.sentence === 'string' ? record.sentence.trim() : '';
|
|
15956
|
+
if (sentence) return `<div class="e-receipt partial"><span role="status" aria-live="polite">${escapeHtml(sentence)}</span></div>`;
|
|
15957
|
+
}
|
|
15958
|
+
return '';
|
|
15959
|
+
}
|
|
15960
|
+
|
|
15892
15961
|
function omittedHtml(kind, approved) {
|
|
15893
15962
|
if (!approved || !exportState) return '';
|
|
15894
15963
|
const byMember = new Map();
|
|
@@ -16475,6 +16544,192 @@
|
|
|
16475
16544
|
});
|
|
16476
16545
|
}
|
|
16477
16546
|
|
|
16547
|
+
|
|
16548
|
+
// ── Epic #3382 P1h: what a Tekla send does with the model's custom and parametric sections ─────────────────────────
|
|
16549
|
+
// The server asked the open Tekla (AWARE A0p and A0m) and returns one row per section with the branch, the choices that
|
|
16550
|
+
// branch allows and the values an answer is bound to. The answers go back verbatim (sectionId, choice, binding); the
|
|
16551
|
+
// server derives every name itself and checks all three bound values again when the send runs.
|
|
16552
|
+
const CS_STATE = {
|
|
16553
|
+
same: ['Same shape in Tekla', 'is-sure', '✓'],
|
|
16554
|
+
mismatch: ['Name matches, shape differs', 'is-check', '!'],
|
|
16555
|
+
missing: ['Tekla lacks this shape', 'is-check', '!'],
|
|
16556
|
+
unverified: ['Tekla didn’t answer', '', '?'],
|
|
16557
|
+
};
|
|
16558
|
+
const CS_ORDER = ['mismatch', 'missing', 'unverified', 'same'];
|
|
16559
|
+
const $csModal = document.getElementById('customsections-modal');
|
|
16560
|
+
|
|
16561
|
+
/** The custom-section check, or null when FloLess could not ask (the send then goes on with them left out). */
|
|
16562
|
+
async function checkTeklaCustomSections(projectId, app, sourceHandle) {
|
|
16563
|
+
try {
|
|
16564
|
+
return await api(`/api/contract/${encodeURIComponent(app)}/host-custom-sections?project=${encodeURIComponent(projectId)}${sourceHandle ? `&sourceHandle=${encodeURIComponent(sourceHandle)}` : ''}`, {
|
|
16565
|
+
method: 'POST', body: JSON.stringify({ host: 'tekla' }), timeoutMs: 330000,
|
|
16566
|
+
});
|
|
16567
|
+
} catch (error) {
|
|
16568
|
+
// What went wrong, in the server's own words when it has them; the person still sends, with these left out.
|
|
16569
|
+
checkTeklaCustomSections.lastWhy = personText(error && error.body) || '';
|
|
16570
|
+
return null;
|
|
16571
|
+
}
|
|
16572
|
+
}
|
|
16573
|
+
|
|
16574
|
+
/** The window. Resolves { answers } or null (cancelled). `again` says why the person is being asked a second time. */
|
|
16575
|
+
function openCustomSectionsWindow({ check, again, returnFocus }) {
|
|
16576
|
+
return new Promise((resolve) => {
|
|
16577
|
+
if (!$csModal) { resolve({ answers: [] }); return; }
|
|
16578
|
+
const $sub = document.getElementById('customsections-sub');
|
|
16579
|
+
const $source = document.getElementById('customsections-source');
|
|
16580
|
+
const $body = document.getElementById('customsections-body');
|
|
16581
|
+
const $note = document.getElementById('customsections-note');
|
|
16582
|
+
const $apply = document.getElementById('customsections-apply');
|
|
16583
|
+
const dialog = $csModal.querySelector('.customsections');
|
|
16584
|
+
const rows = [...check.rows].sort((a, b) => CS_ORDER.indexOf(a.branch) - CS_ORDER.indexOf(b.branch));
|
|
16585
|
+
const picked = new Map(rows.map((row) => [row.sectionId, row.suggested]));
|
|
16586
|
+
const initial = new Map(picked);
|
|
16587
|
+
let done = false;
|
|
16588
|
+
const plural = (n, one, many) => `${n} ${n === 1 ? one : many}`;
|
|
16589
|
+
const SENDS = ['send-name', 'send-anyway', 'send-unverified'];
|
|
16590
|
+
const counts = () => {
|
|
16591
|
+
let sent = 0, placeholders = 0, left = 0;
|
|
16592
|
+
rows.forEach((row) => { const c = picked.get(row.sectionId); if (SENDS.includes(c)) sent += 1; else if (c === 'placeholder') placeholders += 1; else left += 1; });
|
|
16593
|
+
return { sent, placeholders, left };
|
|
16594
|
+
};
|
|
16595
|
+
const diffHtml = (row) => (row.differences && row.differences.length
|
|
16596
|
+
? `<ul>${row.differences.map((d) => `<li>${escapeHtml(d)}</li>`).join('')}</ul>` : '');
|
|
16597
|
+
const cardHtml = (row, i) => {
|
|
16598
|
+
const [chipText, chipClass, glyph] = CS_STATE[row.branch] || CS_STATE.unverified;
|
|
16599
|
+
const chosen = picked.get(row.sectionId);
|
|
16600
|
+
const options = row.choices.filter((c) => c.available);
|
|
16601
|
+
const later = row.choices.filter((c) => !c.available);
|
|
16602
|
+
const said = row.branch === 'same' ? 'Tekla has this shape under this name, and its own section matches yours.'
|
|
16603
|
+
: row.branch === 'mismatch' ? 'Tekla has a shape under this name, but it is not the one in your model.'
|
|
16604
|
+
: row.branch === 'missing' ? (row.reason || 'Tekla has no shape this section can be sent as.')
|
|
16605
|
+
: `${row.reason || 'FloLess could not ask Tekla about this section, so it does not know if Tekla has it.'} Leaving it out is the safe choice until Tekla can be reached.`;
|
|
16606
|
+
const members = plural(row.memberIds.length, 'member uses it', 'members use it');
|
|
16607
|
+
return `<div class="cs-card${chosen !== initial.get(row.sectionId) ? ' changed' : ''}" data-cs-card="${escapeAttr(row.sectionId)}">
|
|
16608
|
+
<div class="cs-top"><span class="cs-name" id="cs-n-${i}">${escapeHtml(row.designation)}</span><span class="cs-count">${escapeHtml(members)}</span>
|
|
16609
|
+
<span class="pm-chip cs-chip ${chipClass}"><span aria-hidden="true">${glyph} </span>${escapeHtml(chipText)}</span></div>
|
|
16610
|
+
<p class="cs-why" id="cs-d-${i}">${escapeHtml(said)}${diffHtml(row)}</p>
|
|
16611
|
+
<div class="cs-choices" role="radiogroup" aria-labelledby="cs-n-${i}" aria-describedby="cs-d-${i}">${options.map((c, k) => {
|
|
16612
|
+
const on = chosen === c.id;
|
|
16613
|
+
const tab = on ? '0' : '-1';
|
|
16614
|
+
return `<button type="button" class="cs-choice" role="radio" aria-checked="${on ? 'true' : 'false'}" tabindex="${tab}" data-cs-row="${escapeAttr(row.sectionId)}" data-cs-choice="${escapeAttr(c.id)}" data-command-id="shell.custom-sections-choice" data-command-instance="${escapeAttr(row.designation)}" data-command-instance-label="${escapeAttr(row.designation)}"><span class="cs-dot" aria-hidden="true"></span><span class="cs-choice-text"><span class="cs-choice-label">${escapeHtml(c.label)}</span><span class="cs-choice-detail">${escapeHtml(c.detail)}</span></span></button>`;
|
|
16615
|
+
}).join('')}</div>
|
|
16616
|
+
${later.map((c) => `<p class="cs-later">${escapeHtml(c.label)}: not available yet.</p>`).join('')}
|
|
16617
|
+
</div>`;
|
|
16618
|
+
};
|
|
16619
|
+
const render = () => {
|
|
16620
|
+
const all = rows.length > 0 && rows.every((row) => row.branch === 'unverified');
|
|
16621
|
+
const n = counts();
|
|
16622
|
+
$sub.textContent = again
|
|
16623
|
+
? 'Something changed since you chose how to send these sections: the model, the Tekla model, or Tekla’s own shape. Nothing was sent. Choose again below.'
|
|
16624
|
+
: `${plural(rows.length, 'section in this model is', 'sections in this model are')} custom or parametric. Choose what a send to Tekla does with ${rows.length === 1 ? 'it' : 'each'}. Leaving a section out is always allowed.`;
|
|
16625
|
+
const dest = check.destination || {};
|
|
16626
|
+
$source.textContent = dest.identity === 'agreed'
|
|
16627
|
+
? `Checked against ${dest.modelPath ? `the open Tekla model (${dest.modelPath})` : 'the open Tekla model'}${dest.environment ? `, ${dest.environment} environment` : ''}.`
|
|
16628
|
+
: 'FloLess could not tell which Tekla model answered, so nothing below could be checked.';
|
|
16629
|
+
const bulk = rows.length > 3
|
|
16630
|
+
? `<div class="cs-bulk"><span>${escapeHtml(`${n.left} of ${rows.length} will be left out.`)}</span><button type="button" data-cs-all-out="1" data-command-id="shell.custom-sections-choice" data-command-instance="every section" data-command-instance-label="every section">Leave all out</button></div>` : '';
|
|
16631
|
+
const banner = all ? '<div class="pm-empty">FloLess couldn’t get an answer from Tekla about these sections, so nothing below was checked.</div>' : '';
|
|
16632
|
+
$body.innerHTML = `${bulk}${banner}${rows.map(cardHtml).join('')}`;
|
|
16633
|
+
$note.textContent = `${(check.warnings || []).join(' ')} Nothing is sent yet: the send review comes next. Your choices are checked again when the send starts, and FloLess asks again if the model, the Tekla model or Tekla’s shape changed.`.trim();
|
|
16634
|
+
$apply.textContent = `Continue (${n.sent} sent, ${n.placeholders} as placeholders, ${n.left} left out)`;
|
|
16635
|
+
};
|
|
16636
|
+
const close = (value) => {
|
|
16637
|
+
if (done) return;
|
|
16638
|
+
done = true;
|
|
16639
|
+
$csModal.classList.remove('show');
|
|
16640
|
+
$csModal.removeEventListener('click', onClick);
|
|
16641
|
+
$csModal.removeEventListener('keydown', onKey);
|
|
16642
|
+
$csModal.removeEventListener('mousedown', onBackdrop);
|
|
16643
|
+
const back = typeof returnFocus === 'function' ? returnFocus() : returnFocus;
|
|
16644
|
+
if (back && back.isConnected) back.focus();
|
|
16645
|
+
resolve(value);
|
|
16646
|
+
};
|
|
16647
|
+
const choose = (sectionId, choice, focusAfter = true) => {
|
|
16648
|
+
picked.set(sectionId, choice);
|
|
16649
|
+
render();
|
|
16650
|
+
if (focusAfter) {
|
|
16651
|
+
const node = $body.querySelector(`[data-cs-row="${CSS.escape(sectionId)}"][data-cs-choice="${CSS.escape(choice)}"]`);
|
|
16652
|
+
if (node) node.focus();
|
|
16653
|
+
}
|
|
16654
|
+
};
|
|
16655
|
+
function onClick(event) {
|
|
16656
|
+
const target = event.target instanceof Element ? event.target : null;
|
|
16657
|
+
if (!target) return;
|
|
16658
|
+
if (target.closest('#customsections-apply')) {
|
|
16659
|
+
close({ answers: rows.map((row) => ({ sectionId: row.sectionId, choice: picked.get(row.sectionId), binding: { sourceRevision: check.sourceRevision, destinationKey: check.destinationKey, comparisonDigest: row.comparisonDigest } })) });
|
|
16660
|
+
return;
|
|
16661
|
+
}
|
|
16662
|
+
if (target.closest('#customsections-cancel')) { close(null); return; }
|
|
16663
|
+
if (target.closest('[data-cs-all-out]')) { rows.forEach((row) => picked.set(row.sectionId, 'leave-out')); render(); return; }
|
|
16664
|
+
const option = target.closest('[data-cs-choice]');
|
|
16665
|
+
if (option) choose(option.dataset.csRow, option.dataset.csChoice);
|
|
16666
|
+
}
|
|
16667
|
+
function onKey(event) {
|
|
16668
|
+
if (event.key === 'Escape') { event.preventDefault(); event.stopPropagation(); close(null); return; }
|
|
16669
|
+
const target = event.target instanceof Element ? event.target : null;
|
|
16670
|
+
const radio = target && target.closest('[role="radio"]');
|
|
16671
|
+
if (radio && ['ArrowDown', 'ArrowRight', 'ArrowUp', 'ArrowLeft'].includes(event.key)) {
|
|
16672
|
+
event.preventDefault();
|
|
16673
|
+
const group = Array.from(radio.parentElement.querySelectorAll('[role="radio"]'));
|
|
16674
|
+
const step = (event.key === 'ArrowDown' || event.key === 'ArrowRight') ? 1 : -1;
|
|
16675
|
+
const next = group[(group.indexOf(radio) + step + group.length) % group.length];
|
|
16676
|
+
choose(next.dataset.csRow, next.dataset.csChoice);
|
|
16677
|
+
return;
|
|
16678
|
+
}
|
|
16679
|
+
if (radio && (event.key === ' ' || event.key === 'Enter')) { event.preventDefault(); choose(radio.dataset.csRow, radio.dataset.csChoice); return; }
|
|
16680
|
+
if (event.key !== 'Tab') return;
|
|
16681
|
+
const focusable = Array.from($csModal.querySelectorAll('button:not([disabled]), [tabindex="0"]')).filter((node) => !node.hidden && node.offsetParent !== null);
|
|
16682
|
+
if (!focusable.length) return;
|
|
16683
|
+
const first = focusable[0], last = focusable[focusable.length - 1];
|
|
16684
|
+
if (event.shiftKey && document.activeElement === first) { event.preventDefault(); last.focus(); }
|
|
16685
|
+
else if (!event.shiftKey && document.activeElement === last) { event.preventDefault(); first.focus(); }
|
|
16686
|
+
}
|
|
16687
|
+
function onBackdrop(event) { if (event.target === $csModal) close(null); }
|
|
16688
|
+
render();
|
|
16689
|
+
$csModal.addEventListener('click', onClick);
|
|
16690
|
+
$csModal.addEventListener('keydown', onKey);
|
|
16691
|
+
$csModal.addEventListener('mousedown', onBackdrop);
|
|
16692
|
+
$csModal.classList.add('show');
|
|
16693
|
+
dialog.focus();
|
|
16694
|
+
});
|
|
16695
|
+
}
|
|
16696
|
+
|
|
16697
|
+
/**
|
|
16698
|
+
* The send's custom-section review. Resolves null when the person cancels; {} when there is nothing to choose, or
|
|
16699
|
+
* Tekla could not be asked (the send then leaves those sections out, and says so); else { customSections } for the body.
|
|
16700
|
+
*/
|
|
16701
|
+
async function reviewTeklaCustomSections(projectId, app, sourceHandle, returnFocus, again) {
|
|
16702
|
+
let check = again || null;
|
|
16703
|
+
if (!check) {
|
|
16704
|
+
showToast('Checking how Tekla handles the custom sections…', 'info');
|
|
16705
|
+
check = await checkTeklaCustomSections(projectId, app, sourceHandle);
|
|
16706
|
+
if (!check) {
|
|
16707
|
+
showToast(`${checkTeklaCustomSections.lastWhy || 'FloLess could not ask Tekla about the custom sections.'} They are left out of this send. Check that Tekla is open, then send again to choose.`, 'warn');
|
|
16708
|
+
return {};
|
|
16709
|
+
}
|
|
16710
|
+
}
|
|
16711
|
+
if (!Array.isArray(check.rows) || check.rows.length === 0) return {};
|
|
16712
|
+
const answer = await openCustomSectionsWindow({ check, again: !!again, returnFocus });
|
|
16713
|
+
if (!answer) return null;
|
|
16714
|
+
return { customSections: { mode: 'ask', answers: answer.answers } };
|
|
16715
|
+
}
|
|
16716
|
+
|
|
16717
|
+
/** What the custom sections did, in a sentence for the send's summary. */
|
|
16718
|
+
function customSectionsText(policy) {
|
|
16719
|
+
if (!policy || !policy.summary) return '';
|
|
16720
|
+
const s = policy.summary;
|
|
16721
|
+
// What the measuring itself left in the Tekla model leads, so it is never lost behind the counts.
|
|
16722
|
+
const parts = [...(Array.isArray(policy.warnings) ? policy.warnings : [])];
|
|
16723
|
+
const m = (n) => `${n} custom-section member${n === 1 ? '' : 's'}`;
|
|
16724
|
+
if (s.sentByName) parts.push(`${m(s.sentByName)} sent under Tekla’s name`);
|
|
16725
|
+
if (s.sentAsPlaceholder) parts.push(`${m(s.sentAsPlaceholder)} arrived as labelled placeholder lines — select them in Tekla and give them a profile`);
|
|
16726
|
+
if (s.leftOut) parts.push(`${m(s.leftOut)} left out`);
|
|
16727
|
+
if (s.unconfirmed) parts.push(`FloLess could not confirm from Tekla’s receipt what ${s.unconfirmed === 1 ? 'one' : s.unconfirmed} of them arrived as`);
|
|
16728
|
+
const asked = (policy.questions || []).filter((q) => q.reason !== 'chosen-leave-out');
|
|
16729
|
+
if (asked.length) parts.push(`${asked.length === 1 ? 'one section was' : `${asked.length} sections were`} left out for lack of a usable answer — choose again in the next send`);
|
|
16730
|
+
return parts.join(', ');
|
|
16731
|
+
}
|
|
16732
|
+
|
|
16478
16733
|
/**
|
|
16479
16734
|
* The send's profile review. Resolves null when the person cancels; {} when the profiles were not checked
|
|
16480
16735
|
* (the send then goes as before); else the fields the preflight and the send carry.
|
|
@@ -16641,6 +16896,8 @@
|
|
|
16641
16896
|
let uncertainHost = null;
|
|
16642
16897
|
let staleReview = false;
|
|
16643
16898
|
let modelChanged = false;
|
|
16899
|
+
let customChanged = false;
|
|
16900
|
+
let customCheck = null;
|
|
16644
16901
|
/** Has the sign-off this batch was aimed at moved on? Only answerable while it is still open. */
|
|
16645
16902
|
const approvalMoved = () => !!current && current.id === projectId && current.approvedAt !== approvedAt;
|
|
16646
16903
|
try {
|
|
@@ -16678,6 +16935,7 @@
|
|
|
16678
16935
|
warnings: res.warnings || [],
|
|
16679
16936
|
unsupported: res.receipt && Array.isArray(res.receipt.unsupported) ? res.receipt.unsupported : [],
|
|
16680
16937
|
profileMapping: res.profileMapping || null,
|
|
16938
|
+
elementsLeftOut: elementsLeftOutText(res),
|
|
16681
16939
|
approvedAt,
|
|
16682
16940
|
});
|
|
16683
16941
|
summary = receiptSummary(exportReceipts.get(`${projectId}:send:${host}`), `send:${host}`);
|
|
@@ -16685,13 +16943,16 @@
|
|
|
16685
16943
|
hostSends.set(`${projectId}:${host}`, { at: new Date().toISOString(), approvedAt });
|
|
16686
16944
|
const omissionText = hostBakeOmissionSummary(res);
|
|
16687
16945
|
const mappingText = profileMappingText(res.profileMapping);
|
|
16946
|
+
const customText = customSectionsText(res.customSectionPolicy);
|
|
16688
16947
|
// #3469: held members the host placed without marking them on HOLD (read from its receipt by the server).
|
|
16689
16948
|
const holdCount = res.holdUnmarked && Number.isSafeInteger(res.holdUnmarked.count) ? res.holdUnmarked.count : 0;
|
|
16690
16949
|
const holdText = holdCount ? `${holdUnmarkedText(holdCount, 'model')} Tell the people using this model.` : '';
|
|
16950
|
+
// #3296 E1b: the walls, slabs and footings this send does not carry, named beside the members.
|
|
16951
|
+
const elementText = elementsLeftOutText(res) || '';
|
|
16691
16952
|
done.push({
|
|
16692
16953
|
host,
|
|
16693
|
-
partial: !!omissionText || !!mappingText || !!holdText || !!(summary && summary.partial),
|
|
16694
|
-
text: [omissionText || (summary && summary.text), mappingText, holdText].filter(Boolean).join(' · '),
|
|
16954
|
+
partial: !!omissionText || !!mappingText || !!holdText || !!customText || !!elementText || !!(summary && summary.partial),
|
|
16955
|
+
text: [omissionText || (summary && summary.text), elementText, mappingText, customText, holdText].filter(Boolean).join(' · '),
|
|
16695
16956
|
});
|
|
16696
16957
|
} catch (err) {
|
|
16697
16958
|
if (err && err.body && ['host-bake-dispatch-uncertain', 'host-bake-result-unverified'].includes(err.body.code)) {
|
|
@@ -16711,8 +16972,10 @@
|
|
|
16711
16972
|
aborted.push(...hosts.slice(i + 1));
|
|
16712
16973
|
break;
|
|
16713
16974
|
}
|
|
16714
|
-
if (err && err.body && ['host-bake-confirmation-stale', 'host-bake-preflight-required', 'stale-selection', 'host-profile-model-changed'].includes(err.body.code)) {
|
|
16975
|
+
if (err && err.body && ['host-bake-confirmation-stale', 'host-bake-preflight-required', 'stale-selection', 'host-profile-model-changed', 'host-custom-sections-changed'].includes(err.body.code)) {
|
|
16715
16976
|
staleReview = true;
|
|
16977
|
+
// Something about the custom sections changed since the person chose: they are shown the fresh answer.
|
|
16978
|
+
if (err.body.code === 'host-custom-sections-changed') { customChanged = true; customCheck = err.body.customSectionCheck || null; }
|
|
16716
16979
|
// A different Tekla model is open now: the table must be checked against it, so the window opens again.
|
|
16717
16980
|
if (err.body.code === 'host-profile-model-changed') modelChanged = true;
|
|
16718
16981
|
aborted.push(...hosts.slice(i));
|
|
@@ -16752,6 +17015,8 @@
|
|
|
16752
17015
|
aborted.length
|
|
16753
17016
|
? uncertainHost
|
|
16754
17017
|
? `${sequenceText(aborted)} ${aborted.length === 1 ? 'wasn’t' : 'weren’t'} sent because ${hostLabel(uncertainHost)} may already have changed. Check that open model before starting another send.`
|
|
17018
|
+
: customChanged
|
|
17019
|
+
? 'Something changed since you chose how to send the custom sections, so nothing was sent to Tekla. Choose again.'
|
|
16755
17020
|
: staleReview
|
|
16756
17021
|
? `The reviewed model changed, so ${sequenceText(aborted)} ${aborted.length === 1 ? 'wasn’t' : 'weren’t'} sent. FloLess is checking the latest version now.`
|
|
16757
17022
|
: `This version changed, so ${sequenceText(aborted)} ${aborted.length === 1 ? 'wasn’t' : 'weren’t'} sent — approve again and re-send.`
|
|
@@ -16761,7 +17026,7 @@
|
|
|
16761
17026
|
}
|
|
16762
17027
|
// No repaint here (#3273): chooseAndSend refreshes the pane once it has released the send's busy claim, so a
|
|
16763
17028
|
// refresh that is slow or never answers cannot keep the card on "Sending…".
|
|
16764
|
-
return { staleReview, modelChanged, remainingHosts: staleReview ? [...aborted] : [] };
|
|
17029
|
+
return { staleReview, modelChanged, customChanged, customCheck, remainingHosts: staleReview ? [...aborted] : [] };
|
|
16765
17030
|
}
|
|
16766
17031
|
|
|
16767
17032
|
/** The Send card's whole action: ask, then send. */
|
|
@@ -16788,6 +17053,8 @@
|
|
|
16788
17053
|
let remainingHosts = [...picked];
|
|
16789
17054
|
let hostBodies = {};
|
|
16790
17055
|
let teklaReviewed = false; // the mapping window is shown once per send, not again on a stale-review retry
|
|
17056
|
+
let teklaCustomReviewed = false; // the custom-sections window likewise
|
|
17057
|
+
let customCheckNext = null; // the fresh check a changed answer came back with, so the person is shown it, not asked to wait
|
|
16791
17058
|
// The user may have switched projects while the dialog was open — the send must not land on
|
|
16792
17059
|
// whatever is open NOW. Everything below is keyed to the captured project. One stale
|
|
16793
17060
|
// continuation is rebuilt and re-reviewed; a second fails closed instead of looping forever.
|
|
@@ -16816,6 +17083,24 @@
|
|
|
16816
17083
|
teklaReviewed = true;
|
|
16817
17084
|
if (reviewed.profileMap) hostBodies.tekla = reviewed;
|
|
16818
17085
|
}
|
|
17086
|
+
// Epic #3382 P1h: what the send does with custom and parametric sections.
|
|
17087
|
+
if (remainingHosts.includes('tekla') && !teklaCustomReviewed) {
|
|
17088
|
+
const custom = await reviewTeklaCustomSections(projectId, app, handles[remainingHosts.indexOf('tekla')], () => $wsExports.querySelector('[data-export="send-host"]'), customCheckNext);
|
|
17089
|
+
customCheckNext = null;
|
|
17090
|
+
if (custom === null) {
|
|
17091
|
+
await releaseCapturedSources(projectId, handles);
|
|
17092
|
+
exportBusy.delete(busyKey);
|
|
17093
|
+
if (current && current.id === projectId && !$wsExports.hidden) {
|
|
17094
|
+
paintExports(current.approvedAt, 'send-host');
|
|
17095
|
+
const sendCard = $wsExports.querySelector('[data-export="send-host"]');
|
|
17096
|
+
if (sendCard instanceof HTMLElement && !sendCard.matches(':disabled,[aria-disabled="true"]')) sendCard.focus();
|
|
17097
|
+
}
|
|
17098
|
+
showToast('CAD send cancelled.', 'info');
|
|
17099
|
+
return;
|
|
17100
|
+
}
|
|
17101
|
+
teklaCustomReviewed = true;
|
|
17102
|
+
if (custom.customSections) hostBodies.tekla = { ...(hostBodies.tekla || {}), ...custom };
|
|
17103
|
+
}
|
|
16819
17104
|
reviews = await preflightHostSends(remainingHosts, projectId, app, handles, hostBodies);
|
|
16820
17105
|
const confirmed = await confirmAggregateHostSend(remainingHosts, reviews[0], attempt > 0 && reviews[0].kind === 'clean');
|
|
16821
17106
|
if (!confirmed) {
|
|
@@ -16860,6 +17145,12 @@
|
|
|
16860
17145
|
if (attempt === 0 && result && result.staleReview && result.remainingHosts.length) {
|
|
16861
17146
|
remainingHosts = result.remainingHosts;
|
|
16862
17147
|
if (result.modelChanged) { teklaReviewed = false; delete hostBodies.tekla; }
|
|
17148
|
+
// The answers no longer apply: the person chooses again, from the fresh check the send came back with.
|
|
17149
|
+
if (result.customChanged) {
|
|
17150
|
+
teklaCustomReviewed = false;
|
|
17151
|
+
customCheckNext = result.customCheck || null;
|
|
17152
|
+
if (hostBodies.tekla) { delete hostBodies.tekla.customSections; if (!Object.keys(hostBodies.tekla).length) delete hostBodies.tekla; }
|
|
17153
|
+
}
|
|
16863
17154
|
// The retry anchors to the approval this refresh reads, so it waits for it (every refresh is bounded).
|
|
16864
17155
|
if (current && current.id === projectId && !$wsExports.hidden) {
|
|
16865
17156
|
await safeRenderExports('after that send finished', 'send-host', () => paintExports(approvedAt, 'send-host'));
|
|
@@ -17409,6 +17700,8 @@
|
|
|
17409
17700
|
// says what the producer could not emit from what it was given, this says what was never
|
|
17410
17701
|
// given to it. A model missing three heights and an AWARE weld failure are not one fact.
|
|
17411
17702
|
(c.kind === 'send-host' ? '' : omittedHtml(c.kind, approved)) +
|
|
17703
|
+
// #3296 E1b: walls, slabs and footings the file or pictures leave out, beside the members line.
|
|
17704
|
+
(c.kind === 'ifc' || c.kind === 'render' ? elementsLeftOutHtml(c.kind, approved) : '') +
|
|
17412
17705
|
(c.kind === 'ifc' ? customSectionAssumedHtml(approved) + holdUnmarkedHtml(approved) : '') +
|
|
17413
17706
|
(c.kind === 'send-host' ? '' : exportProvenanceHtml(c.kind, approved)) +
|
|
17414
17707
|
// REGISTERED, because #1156a changed what this button DOES. It used to refuse an export outright
|
|
@@ -18278,7 +18571,10 @@
|
|
|
18278
18571
|
let copied = false;
|
|
18279
18572
|
try { await navigator.clipboard.writeText(res.url); copied = true; } catch { copied = false; }
|
|
18280
18573
|
track('workspace_export', { app, kind });
|
|
18281
|
-
|
|
18574
|
+
// #3296 E1b: walls, slabs and footings the shared model does not draw are named beside the link (the page lists them too).
|
|
18575
|
+
const elementsShared = elementsLeftOutText(rendered);
|
|
18576
|
+
showToast(`${copied ? 'Share link created — copied to clipboard.' : 'Share link created — use Copy on the card.'}${elementsShared ? ` ${elementsShared}` : ''}`,
|
|
18577
|
+
elementsShared ? 'warn' : 'ok');
|
|
18282
18578
|
} catch (err) {
|
|
18283
18579
|
const code = err && err.body && err.body.error;
|
|
18284
18580
|
// The runtime refusal names the floor, not the pill's target: the footer pill installs
|
|
@@ -18361,6 +18657,7 @@
|
|
|
18361
18657
|
counts: res.counts,
|
|
18362
18658
|
warnings: res.warnings || [],
|
|
18363
18659
|
unsupported: res.receipt && Array.isArray(res.receipt.unsupported) ? res.receipt.unsupported : [],
|
|
18660
|
+
elementsLeftOut: elementsLeftOutText(res),
|
|
18364
18661
|
approvedAt,
|
|
18365
18662
|
} : null;
|
|
18366
18663
|
if (receiptNow && !draftExport) exportReceipts.set(`${projectId}:${kind}`, receiptNow);
|
|
@@ -18370,23 +18667,8 @@
|
|
|
18370
18667
|
// given, `skippedDetail` says what was never given to it - so BOTH are gathered before a single
|
|
18371
18668
|
// toast is raised. `showToast` appends rather than replaces, so emitting a clean "Exported"
|
|
18372
18669
|
// and then a warning would leave the user reading two contradictory messages at once.
|
|
18373
|
-
const
|
|
18374
|
-
|
|
18375
|
-
const holdNow = res.holdUnmarked && Number.isSafeInteger(res.holdUnmarked.count) ? res.holdUnmarked.count : 0;
|
|
18376
|
-
const gaps = [
|
|
18377
|
-
summary && summary.partial ? summary.text : null,
|
|
18378
|
-
omittedNow ? `${omittedNow} member${omittedNow === 1 ? '' : 's'} left out — see the card for why` : null,
|
|
18379
|
-
// Add-ons S1a: a custom section sent as its bounding box is in the file, but not as itself.
|
|
18380
|
-
boxedNow ? `${boxedNow} sent as a bounding box, named in the file as an assumption` : null,
|
|
18381
|
-
// #3469: a held member is in the file with its real section, but the file does not say it is on HOLD.
|
|
18382
|
-
holdNow ? `${holdNow} HOLD member${holdNow === 1 ? '' : 's'} left unmarked in the file (see the card)` : null,
|
|
18383
|
-
].filter(Boolean);
|
|
18384
|
-
// #2521 row 5b: a file made from a Quick (or possibly Quick) model says so here too; the file carries it as well.
|
|
18385
|
-
const quickBit = res.quick && res.quick.label ? ` — ${res.quick.label}, named in the file` : '';
|
|
18386
|
-
showToast(gaps.length
|
|
18387
|
-
? `Exported with gaps — ${gaps.join(' · ')}${quickBit}`
|
|
18388
|
-
: `Exported — ${res.filename || kind}${quickBit}`,
|
|
18389
|
-
gaps.length || (res.quick && res.quick.state === 'unknown') ? 'warn' : 'ok');
|
|
18670
|
+
const toast = exportResultToast(res, summary, kind);
|
|
18671
|
+
showToast(toast.text, toast.tone);
|
|
18390
18672
|
refreshing = true;
|
|
18391
18673
|
// The catch is what makes the finally's skip safe: if the refresh itself throws, nothing else
|
|
18392
18674
|
// would repaint and the card would sit in its busy state forever, with exportBusy already
|
|
@@ -18860,6 +19142,7 @@
|
|
|
18860
19142
|
stopRevisionPoll();
|
|
18861
19143
|
$revisionCard.hidden = true;
|
|
18862
19144
|
$revisionCard.replaceChildren();
|
|
19145
|
+
paintRevisionActive(null, null);
|
|
18863
19146
|
}
|
|
18864
19147
|
const isInitialRevisionRead = (req) => !req || !req.baseVersion || req.baseVersion <= 0;
|
|
18865
19148
|
// ── Who is actually driving this drawing read ───────────────────────────────────────────────
|
|
@@ -19219,6 +19502,35 @@
|
|
|
19219
19502
|
if (files.length) attachRevision(files, owner);
|
|
19220
19503
|
});
|
|
19221
19504
|
|
|
19505
|
+
/**
|
|
19506
|
+
* #3646: the strip under the read card naming the read's PDFs that carry scripts or other active content, or could not
|
|
19507
|
+
* be checked, while the read is active on the Drawings step, as the request view says (`sourceRefs[].activeContent`):
|
|
19508
|
+
* every request poll paints it again. `proj`/`req` null hides it; a PDF that carries none shows nothing.
|
|
19509
|
+
*/
|
|
19510
|
+
function paintRevisionActive(proj, req) {
|
|
19511
|
+
if (!$revisionActive) return;
|
|
19512
|
+
const ac = globalThis.flolessActiveContent;
|
|
19513
|
+
const refs = ac && proj && req && currentStep === 'drawings' ? ac.pdfRefs(req.sourceRefs) : [];
|
|
19514
|
+
const { lines, more, finding } = ac
|
|
19515
|
+
? ac.linesOf(refs.map((ref) => ({ name: String(ref.name || 'A PDF'), view: ref.activeContent })))
|
|
19516
|
+
: { lines: [], more: [], finding: false };
|
|
19517
|
+
const key = lines.length ? `${proj.id}:${req.id}:${finding}:${more.join('|')}:${lines.map((l) => `${l.name}|${l.note}`).join('\n')}` : '';
|
|
19518
|
+
if ($revisionActive._key === key) return;
|
|
19519
|
+
$revisionActive._key = key;
|
|
19520
|
+
if (!lines.length) { $revisionActive.hidden = true; $revisionActive.replaceChildren(); return; }
|
|
19521
|
+
const ico = revEl('span', 'wrc-warn-ico', '⚠'); ico.setAttribute('aria-hidden', 'true');
|
|
19522
|
+
const txt = revEl('div', 'wrc-text');
|
|
19523
|
+
for (const line of lines) {
|
|
19524
|
+
const p = document.createElement('p');
|
|
19525
|
+
p.append(revEl('b', null, line.name), document.createTextNode(`: ${line.note}`));
|
|
19526
|
+
txt.append(p);
|
|
19527
|
+
}
|
|
19528
|
+
if (more.length) txt.append(revEl('p', null, ac.moreText(more)));
|
|
19529
|
+
$revisionActive.className = `ws-revision-active${finding ? '' : ' unchecked'}`;
|
|
19530
|
+
$revisionActive.replaceChildren(ico, txt);
|
|
19531
|
+
$revisionActive.hidden = false;
|
|
19532
|
+
}
|
|
19533
|
+
|
|
19222
19534
|
function buildPendingCard(req) {
|
|
19223
19535
|
const n = (req.sourceRefs && req.sourceRefs.length) || (req.snapshots && req.snapshots.length) || 1;
|
|
19224
19536
|
if (req.preparationState === 'blocked') {
|
|
@@ -19491,8 +19803,8 @@
|
|
|
19491
19803
|
const gen = ++revisionGen;
|
|
19492
19804
|
const ownerGen = revisionOwnerGen;
|
|
19493
19805
|
const proj = current;
|
|
19494
|
-
if (!proj) { $revisionCard.hidden = true; return; }
|
|
19495
|
-
if (wsDescOf(proj)?.serverAuthorizedOnly === true) { $revisionCard.hidden = true; return; }
|
|
19806
|
+
if (!proj) { $revisionCard.hidden = true; paintRevisionActive(null, null); return; }
|
|
19807
|
+
if (wsDescOf(proj)?.serverAuthorizedOnly === true) { $revisionCard.hidden = true; paintRevisionActive(null, null); return; }
|
|
19496
19808
|
// Keep the last known card painted while the request list is reloading. Switching to another
|
|
19497
19809
|
// stage and back must not turn a long-running terminal read into a blank strip for the few
|
|
19498
19810
|
// seconds before /api/requests answers again.
|
|
@@ -19638,6 +19950,7 @@
|
|
|
19638
19950
|
if (activeRequest) retireReadCompletion(proj, Number.isSafeInteger(activeRequest.baseVersion) ? activeRequest.baseVersion : 0);
|
|
19639
19951
|
if (state === 'none') {
|
|
19640
19952
|
revCardReq = null;
|
|
19953
|
+
paintRevisionActive(proj, null);
|
|
19641
19954
|
syncDrawingRevisionRequest('');
|
|
19642
19955
|
stopRevisionPoll(); $revisionCard.hidden = true; $revisionCard.replaceChildren();
|
|
19643
19956
|
$revisionCard.className = 'ws-revision-card'; applyStageGating(); return;
|
|
@@ -19652,6 +19965,7 @@
|
|
|
19652
19965
|
// returning to Drawing Filter briefly resurrects the old "reading" state and can leave Save filter
|
|
19653
19966
|
// unaware that the terminal prepass finished until a later poll happens to repaint the tab.
|
|
19654
19967
|
revCardReq = failed || staged || pending || activeRequest;
|
|
19968
|
+
paintRevisionActive(proj, revCardReq);
|
|
19655
19969
|
syncDrawingRevisionRequest(
|
|
19656
19970
|
pending?.prepassReady ? pending.id : '',
|
|
19657
19971
|
pending?.prepassReady && pending.filterCheckpointCurrent ? pending.filterSavedEtag : '',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floless/app",
|
|
3
|
-
"version": "0.172.
|
|
3
|
+
"version": "0.172.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
|
|
6
6
|
"bin": {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"test:project-import-pdf": "node build/run-required-tests.mjs projects-store.test.ts rfi-import.test.ts",
|
|
30
30
|
"test:platform": "node build/run-tests.mjs --platform-only",
|
|
31
31
|
"test:clock-skew": "node build/run-clock-skew-tests.mjs",
|
|
32
|
+
"snapshot:hole-cuts": "node build/write-hole-cuts.mjs",
|
|
32
33
|
"build": "node build/bundle.mjs",
|
|
33
34
|
"build:exe": "node build/build-production.mjs",
|
|
34
35
|
"build:exe:app": "node build/bundle.mjs && node build/make-sea.mjs",
|