@floless/app 0.158.0 → 0.160.0

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.
Files changed (43) hide show
  1. package/dist/floless-server.cjs +140655 -117708
  2. package/dist/schemas/drawing-check.profile.v1.schema.json +33 -1
  3. package/dist/schemas/steel.model.v2.schema.json +1 -0
  4. package/dist/skills/floless-app-actions/SKILL.md +23 -5
  5. package/dist/skills/floless-app-bridge/SKILL.md +5 -3
  6. package/dist/skills/floless-app-onboarding/SKILL.md +69 -5
  7. package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +8 -6
  8. package/dist/skills/floless-app-queue/SKILL.md +3 -1
  9. package/dist/skills/floless-app-rfi/SKILL.md +29 -1
  10. package/dist/skills/floless-app-steel-model/SKILL.md +11 -5
  11. package/dist/skills/floless-app-steel-takeoff/SKILL.md +28 -8
  12. package/dist/skills/floless-app-workflows/SKILL.md +6 -3
  13. package/dist/web/agents.js +12 -5
  14. package/dist/web/app.css +266 -159
  15. package/dist/web/app.js +23 -51
  16. package/dist/web/aware.js +533 -546
  17. package/dist/web/chat-question-card.js +24 -1
  18. package/dist/web/chat.css +170 -48
  19. package/dist/web/chat.js +1406 -208
  20. package/dist/web/commands-shell.js +1104 -177
  21. package/dist/web/commands-steel.js +2 -0
  22. package/dist/web/drawing-check-editor.html +10 -0
  23. package/dist/web/drawing-check-editor.js +44 -0
  24. package/dist/web/guide.js +12 -2
  25. package/dist/web/index.html +62 -48
  26. package/dist/web/instructor.js +33 -12
  27. package/dist/web/pages.js +186 -31
  28. package/dist/web/panels.js +19 -1
  29. package/dist/web/project-access.js +67 -8
  30. package/dist/web/project-modules.js +474 -0
  31. package/dist/web/project-rfis.js +715 -0
  32. package/dist/web/project-workflows.js +506 -0
  33. package/dist/web/run-history.js +198 -0
  34. package/dist/web/run-page-view.js +12 -2
  35. package/dist/web/steel-3d-core.js +75 -1
  36. package/dist/web/steel-3d-view.js +8 -38
  37. package/dist/web/steel-editor.html +263 -59
  38. package/dist/web/steel-model-v2-projection.js +7 -0
  39. package/dist/web/workspace-root-recovery.js +119 -0
  40. package/dist/web/workspaces.js +493 -161
  41. package/launch-starting-page.mjs +5 -2
  42. package/launch.mjs +136 -78
  43. package/package.json +6 -1
@@ -1463,6 +1463,17 @@ rect.lblhot:focus-visible{outline:2px solid var(--brand);outline-offset:2px;stro
1463
1463
  #rfiList .rfimeta span{background:var(--sunken);border:1px solid var(--line);color:var(--mut);
1464
1464
  border-radius:4px;padding:0 5px;font-size:10px;line-height:1.7}
1465
1465
  #rfiList .rfinote{margin-top:4px;color:var(--mut);font-size:11px;line-height:1.5}
1466
+ /* #2521 row 3b-2 — the AI's mark. The word "AI" carries it, so it survives losing colour; the brand
1467
+ outline only says it is not one of the grey facts beside it. Shown where the AI wrote the proposal. */
1468
+ #rfiList .rfimeta .rfiby.ai{color:var(--brand);border-color:var(--brand)}
1469
+ #rfiList .rfioccurrence-title{display:inline-flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-top:0}
1470
+ /* A Quick version's questions the AI could not get into the RFI file. Rows, not the banner: they are
1471
+ questions waiting on a filing, and the dashed badge already means "not filed" in this list. */
1472
+ #rfiList .rfiunfiled{padding:6px 0 8px;border-bottom:1px solid var(--line);margin-bottom:4px}
1473
+ #rfiList .rfiunfiled .glab{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--mut);padding:0 8px}
1474
+ #rfiList .rfiunfiled>.rfinote,#rfiList .rfiunfiled>.rfiacts{padding:0 8px}
1475
+ #rfiList .rfiunfiled .rfiwhy{color:var(--warn)}
1476
+ #rfiList .rfiunfiled b.rfiwarn{color:var(--warn)}
1466
1477
  #rfiList .rfiacts{margin-top:6px;display:flex;flex-wrap:wrap;gap:5px;align-items:center}
1467
1478
  #rfiList .rfiacts button{font-size:11px;padding:3px 8px}
1468
1479
  #rfiList .rfiacts [aria-disabled=true]{opacity:.48;cursor:progress;background:var(--btn);border-color:var(--ctrl-border)}
@@ -1869,6 +1880,11 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
1869
1880
  inline-block for max-width to apply at all, and vertical-align:bottom to hold its baseline with the
1870
1881
  sibling chips (overflow:hidden makes an inline-block's bottom edge its own baseline). */
1871
1882
  #srcStat{white-space:nowrap}
1883
+ /* #2521 row 5: the Quick model chip. Amber (= needs review, never an error), as last saved; dashed when unknown. */
1884
+ #quickStat{white-space:nowrap;color:var(--warn)}
1885
+ #quickStat.is-unknown{text-decoration:underline dashed;text-underline-offset:3px}
1886
+ .conf-quick{margin:0 0 8px;padding:6px 10px;border:1px solid var(--warn-edge);border-radius:6px;color:var(--mut);font-size:12px;line-height:1.45}
1887
+ .conf-quick b{color:var(--warn)}
1872
1888
  #srcStat b{display:inline-block;max-width:130px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
1873
1889
  #detailNewForm input#dnName{margin:2px 0 10px}
1874
1890
  #dnDrop{border:1px dashed var(--ctrl-border);border-radius:8px;background:var(--sunken);min-height:88px;display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--mut);cursor:pointer;padding:12px;font-size:12px}
@@ -2987,6 +3003,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
2987
3003
  <button data-command-id="steel.confidence-report" class=stat id=confStat data-tip="Confidence report — review recorded drawing evidence." style="display:none" aria-haspopup=dialog aria-controls=confModal><span id=confLabel>Confidence</span> <b id=confPct>—</b><span id=confTgt></span></button>
2988
3004
  <span class=stat id=saveStat data-tip="Edits auto-save in this browser (localStorage)">Saved</span>
2989
3005
  <span class=stat id=srcStat style="display:none"></span>
3006
+ <span class=stat id=quickStat data-command-id="steel.quick-model-chip" tabindex=0 style="display:none"></span>
2990
3007
  <span class=tb-sep></span>
2991
3008
  <button data-command-id="steel.undo" id=undoB data-tip="Undo (Ctrl+Z)">↶</button>
2992
3009
  <button data-command-id="steel.redo" id=redoB data-tip="Redo (Ctrl+Y / Ctrl+Shift+Z)">↷</button>
@@ -3473,6 +3490,7 @@ text.mlentx{fill:#e2e8f0;text-anchor:middle;dominant-baseline:central;font-famil
3473
3490
  </div></div>
3474
3491
  <div id=confModal role=dialog aria-modal=true aria-labelledby=confTitle><div class=mbackdrop id=confBackdrop></div>
3475
3492
  <div class=mpanel><div class=mhead><b id=confTitle>Confidence report</b><label class=conf-tgt data-tip="Confidence target for this read (%). Overrides the workflow default; saved with the contract.">Target <input data-command-id="steel.confidence-target" id=confTarget type=number min=0 max=100 step=1 placeholder="—"> % <span id=confTargetState></span></label><button data-command-id="steel.dialog-close#the confidence report" id=confClose aria-label="Close confidence report">✕</button></div>
3493
+ <div id=confQuick class=conf-quick role=note hidden></div>
3476
3494
  <div id=confCats class=conf-cats></div>
3477
3495
  <div id=confFilter class=conf-filter></div>
3478
3496
  <div id=confBody class=conf-body></div></div></div>
@@ -4362,6 +4380,32 @@ function handleReviewChanged(m){
4362
4380
  applying it to a sign-off would throw away the user's unsaved edits because another tab clicked a
4363
4381
  button. A review generation moving is not a reason to lose work. */
4364
4382
  markReviewDirty({storeRevision:reviewAt.storeRevision,reviewRevision:m.reviewRevision});}
4383
+ /* #2521 row 5: paint the Quick model chip from the server's `quick` (the snapshot served, or what a save stored). The
4384
+ server sends the words; a precise model, or no field, hides the chip. It describes the model AS LAST SAVED. */
4385
+ let lastSavedQuick=null;
4386
+ function paintQuickStat(q){
4387
+ if(q===undefined)return; // a reply whose body could not be read leaves the last label in place; null = precise
4388
+ lastSavedQuick=q&&(q.state==='quick'||q.state==='unknown')&&typeof q.short==='string'?q:null;
4389
+ const el=document.getElementById('quickStat');if(!el)return;
4390
+ // Precise: hide the chip AND clear an open confidence report's line, so both describe the same saved document.
4391
+ if(!lastSavedQuick){el.style.display='none';el.textContent='';el.removeAttribute('data-tip');if(typeof renderConfQuick==='function')renderConfQuick();return;}
4392
+ el.textContent=lastSavedQuick.short;
4393
+ el.classList.toggle('is-unknown',lastSavedQuick.state==='unknown');
4394
+ el.setAttribute('data-tip',(lastSavedQuick.label||'')+'. '+(lastSavedQuick.tip||'')+' Shown as last saved.');
4395
+ el.style.display='';
4396
+ if(typeof renderConfQuick==='function')renderConfQuick();
4397
+ }
4398
+ /* The confidence report's line: scoped to the last saved model, and it says so when the report shows unsaved edits. */
4399
+ function renderConfQuick(){
4400
+ const el=document.getElementById('confQuick');if(!el)return;
4401
+ if(!lastSavedQuick){el.hidden=true;el.textContent='';return;}
4402
+ el.textContent='';
4403
+ const b=document.createElement('b');b.textContent='As last saved: '+(lastSavedQuick.label||lastSavedQuick.short)+'.';
4404
+ el.appendChild(b);
4405
+ el.appendChild(document.createTextNode(' '+(lastSavedQuick.tip||'')
4406
+ +(editorHasUnsavedWork()?' This report includes changes not saved yet; the label is the last saved model’s.':'')));
4407
+ el.hidden=false;
4408
+ }
4365
4409
  async function rebootstrapContractEvents(epoch,attempt=0){
4366
4410
  if(epoch!==contractEventEpoch)return;contractEventReady=false;
4367
4411
  try{
@@ -4738,6 +4782,7 @@ async function boot() {
4738
4782
  // assigning before the type is validated would publish a document this editor cannot render — briefly
4739
4783
  // live, and observable to anything that runs in between. Validate, then publish.
4740
4784
  const snapshotPayload = await res.json();
4785
+ paintQuickStat(snapshotPayload && typeof snapshotPayload === 'object' ? (snapshotPayload.quick ?? null) : undefined);
4741
4786
  const loaded = snapshotPayload && snapshotPayload.contract;
4742
4787
  // Shape first, then type. A body that is null, an array or a scalar has no `type` to test, so a
4743
4788
  // type-only gate waved it through and the failure surfaced as a raw red `boot().catch` — "Cannot read
@@ -5217,6 +5262,11 @@ function openChangeList(ctx) {
5217
5262
  const headline = el('b', null, String(r.headline || '')); summary.appendChild(headline);
5218
5263
  if (typeof r.weight === 'string' && r.weight) summary.appendChild(el('span', 'clweight', r.weight));
5219
5264
  for (const n of (Array.isArray(r.notes) ? r.notes : [])) body.appendChild(el('div', 'clnote warn', String(n && n.text || '')));
5265
+ // #2521 row 5: each side says what IT rests on, above the changes, so a Quick side never reads as precise.
5266
+ const q = r.quick && typeof r.quick === 'object' ? r.quick : null;
5267
+ for (const [side, scope] of q ? [[q.base, 'Before'], [q.current, 'Now']] : []) {
5268
+ if (side && (side.state === 'quick' || side.state === 'unknown') && typeof side.label === 'string') body.appendChild(el('div', 'clnote warn', scope + ': ' + side.label + '.'));
5269
+ }
5220
5270
  if (ctx && ctx.situation === 'A' && typeof r.targetEtag === 'string' && r.targetEtag !== serverEtag) body.appendChild(el('div', 'clnote', CHANGE_LIST_TEXT.changedAgain));
5221
5271
  if (r.nothingChanged && typeof r.emptyBody === 'string') body.appendChild(el('p', 'clmsg quiet', r.emptyBody));
5222
5272
  for (const g of (Array.isArray(r.groups) ? r.groups : [])) {
@@ -5530,7 +5580,8 @@ async function memberEndRequest(path,body){
5530
5580
  if(!PROJECT)throw new Error('Member-end review is available inside a project.');
5531
5581
  const mutating=path!=='scan',mid=mutating?newMutationId():null,headers={'content-type':'application/json'};if(mutating){headers['x-floless-mutation-id']=mid;if(serverEtag)headers['if-match']=serverEtag;claimMutation(mid);}
5532
5582
  let res;try{res=await fetch('/api/projects/'+encodeURIComponent(PROJECT)+'/member-ends/'+path,{method:'POST',headers,body:JSON.stringify(body)});}catch(e){if(mid)releaseMutation(mid);throw e;}
5533
- const d=await res.json().catch(()=>({}));if(!res.ok){if(mid)releaseMutation(mid);const error=new Error(d.error||('Member-end request failed ('+res.status+')'));error.code=d.code;error.status=res.status;throw error;}return d;
5583
+ const d=await res.json().catch(()=>({}));if(!res.ok){if(mid)releaseMutation(mid);const error=new Error(d.error||('Member-end request failed ('+res.status+')'));error.code=d.code;error.status=res.status;throw error;}if(d&&d.contract)paintQuickStat(d.quick??null); /* #2521 row 5: a reply carrying the model repaints its label; none means precise */
5584
+ return d;
5534
5585
  }
5535
5586
  async function scanMemberEnds(liveMessage,pinnedScope){ // pinnedScope: re-check the scope an open review was scanned with (Undo/Redo, a stale apply) instead of the view you are on; only the explicit "Check this sheet/3D model" rescan omits it
5536
5587
  closeMore();if((memberEndScan&&memberEndScan.busy)||(memberEndReview&&memberEndReview.busy))return;if(!PROJECT){toast('Open this model from a project to check member ends.');return;}
@@ -6662,7 +6713,16 @@ function openMaterialPicker({ids=[],current=null,scope='',invoker,onApply}={}){
6662
6713
  source:`${materialCatalog?.provider?.label||'Material catalog'} · ${env}`,onApply:onApply||((value)=>applyMaterialChoice(targets,value))});
6663
6714
  }
6664
6715
  let basePickColId=null; // Mode B: the column whose base an armed 3D level-pick retargets
6665
- const MIN_COL_STUB_MM=FT_TO_MM; // never trim a column below a 1' stub (keeps bos < tos). Spelled as the foot constant rather than 304.8: it IS one foot, and the number is the unit vocabulary's, not this line's.
6716
+ // Never trim a column below a minimum stub (keeps bos < tos). A FUNCTION, not a constant, because
6717
+ // the number is a drafting convention and a metric project's is a round 300 mm rather than the
6718
+ // 304.8 a converted foot lands on (owner ruling, Pawel, 2026-10-23). Keyed on the project's
6719
+ // ENVIRONMENT — immutable, and a property of the project — never on `displayUnits`, which is a
6720
+ // view preference a person flips at will; a geometry clamp that moved with a display toggle would
6721
+ // make the same model trim differently depending on who was looking at it.
6722
+ // Read off the CONTRACT's own environment, the same field `columnBelowReachOf` reads, so the clamp
6723
+ // the editor applies and the reach a sheet draws can never resolve to different standards. The
6724
+ // server stamps it on write (`stampSteelEnvironment`), so a UK contract always carries it.
6725
+ const minColStubMm=()=>SteelCore.defaultColumnBelowReach(C&&C.environment);
6666
6726
  // Mode B: arm the 3D column-base pick on `colId` (a level-snapped elevation → col.bosMm). 3D-view only.
6667
6727
  function armBaseTrim(colId){
6668
6728
  if(!view3d){toast('Open the 3D view to pick the column base point');return;}
@@ -7136,7 +7196,7 @@ async function persistServer(force,token){const seq=saveSeq;
7136
7196
  // write is usually still in flight — the server broadcasts before it replies — so releasing here would
7137
7197
  // make the tab read its OWN echo as external and reload itself mid-edit. The id is released when the
7138
7198
  // echo consumes it, when the write fails, or when the SSE channel closes (nothing can echo after that).
7139
- if(res.ok){let d={},bodyReadable=true;try{d=await res.json();}catch(_){bodyReadable=false;}const t=d.etag||res.headers.get('ETag');if(d.contract&&t&&Number.isSafeInteger(d.storeRevision))adoptSaveReply(d.contract,t,d.storeRevision,seq);else{if(t){const pv=serverEtag;serverEtag=t;restampDraftBase(pv,t);}if(Number.isSafeInteger(d.storeRevision))serverRevision=Math.max(serverRevision,d.storeRevision);serverDecided=sentDecided;if(seq!==saveSeq)reconcileDecisions();}conflicted=false;lastSeenCommitOwnSave(t,d,bodyReadable,sentCopy);
7199
+ if(res.ok){let d={},bodyReadable=true;try{d=await res.json();}catch(_){bodyReadable=false;}paintQuickStat(bodyReadable?(d.quick??null):undefined);const t=d.etag||res.headers.get('ETag');if(d.contract&&t&&Number.isSafeInteger(d.storeRevision))adoptSaveReply(d.contract,t,d.storeRevision,seq);else{if(t){const pv=serverEtag;serverEtag=t;restampDraftBase(pv,t);}if(Number.isSafeInteger(d.storeRevision))serverRevision=Math.max(serverRevision,d.storeRevision);serverDecided=sentDecided;if(seq!==saveSeq)reconcileDecisions();}conflicted=false;lastSeenCommitOwnSave(t,d,bodyReadable,sentCopy);
7140
7200
  // The write COMMITTED. Apply its revalidation report ONLY when we can prove it describes the live `C`:
7141
7201
  // the body was readable AND `seq===saveSeq` (no newer edit landed while this PUT was in flight). Otherwise
7142
7202
  // do NOTHING — no merge, no bookkeeping. That is safe because a joint whose removal we then miss is
@@ -7236,7 +7296,7 @@ async function flushContractWith(token, signal) {
7236
7296
  showConflictBanner();
7237
7297
  throw new Error('save conflict');
7238
7298
  }
7239
- if (res.ok) { let d = {}, bodyReadable = true; try { d = await res.json(); } catch (_) { bodyReadable = false; } if(signal&&signal.aborted)quarantineMutation(mid, seq); const t = d.etag || res.headers.get('ETag'); adoptedTag = t || null; if (d.contract && t && Number.isSafeInteger(d.storeRevision)) { const generationBefore = modelEditGeneration; adoptSaveReply(d.contract, t, d.storeRevision, seq); /* #1936 - installing the reply re-bumps the generation although nothing the person looked at changed; report the post-install generation, but ONLY when nothing visible moved between the PUT and the install (a genuine concurrent edit still shows as a mismatch) */ if (generationBefore === publishedGeneration && modelEditGeneration === generationBefore + 1) publishedGeneration = modelEditGeneration; } else { if (t) { const pv = serverEtag; serverEtag = t; restampDraftBase(pv, t); } if (Number.isSafeInteger(d.storeRevision)) serverRevision = Math.max(serverRevision, d.storeRevision); serverDecided = sentDecided; if (seq !== saveSeq) reconcileDecisions(); } conflicted = false; lastSeenCommitOwnSave(t, d, bodyReadable, sentCopy);
7299
+ if (res.ok) { let d = {}, bodyReadable = true; try { d = await res.json(); } catch (_) { bodyReadable = false; } paintQuickStat(bodyReadable ? (d.quick ?? null) : undefined); if(signal&&signal.aborted)quarantineMutation(mid, seq); const t = d.etag || res.headers.get('ETag'); adoptedTag = t || null; if (d.contract && t && Number.isSafeInteger(d.storeRevision)) { const generationBefore = modelEditGeneration; adoptSaveReply(d.contract, t, d.storeRevision, seq); /* #1936 - installing the reply re-bumps the generation although nothing the person looked at changed; report the post-install generation, but ONLY when nothing visible moved between the PUT and the install (a genuine concurrent edit still shows as a mismatch) */ if (generationBefore === publishedGeneration && modelEditGeneration === generationBefore + 1) publishedGeneration = modelEditGeneration; } else { if (t) { const pv = serverEtag; serverEtag = t; restampDraftBase(pv, t); } if (Number.isSafeInteger(d.storeRevision)) serverRevision = Math.max(serverRevision, d.storeRevision); serverDecided = sentDecided; if (seq !== saveSeq) reconcileDecisions(); } conflicted = false; lastSeenCommitOwnSave(t, d, bodyReadable, sentCopy);
7240
7300
  // The flush committed. Same rule as persistServer: apply the report only when the body was readable and
7241
7301
  // `seq===saveSeq` (Approve awaits this flush, so the user CAN edit meanwhile and make it stale). Otherwise
7242
7302
  // do nothing — the next save re-introduces any joint whose removal we missed, and the server re-decides it.
@@ -12104,7 +12164,7 @@ function panel(){
12104
12164
  ${memberTypeField('mTypeS',[m])}
12105
12165
  <div class="f"><div class=elab>Profile</div><div style="display:flex;gap:6px"><input data-command-id="steel.member-profile" aria-label="Profile" id=pf class=combo data-src=profiles value="${esc(m.profile)}" style="flex:1" autocomplete=off><button data-command-id="steel.browse-profile-catalog" id=profileBrowseS class=ghost aria-label="Search the profile catalog" data-tip="Search the profile catalog — 4,516 profiles, by designation or alias"><svg viewBox="0 0 16 16" aria-hidden=true width=13 height=13 fill=none stroke=currentColor stroke-width=1.4 stroke-linecap=round><circle cx="6.9" cy="6.9" r="4.3"/><path d="M10.1 10.1 13.7 13.7"/></svg></button><button data-command-id="steel.pick-profile" id=pickProf class="ghost${(picking&&pickKind==='profile')?' on':''}" aria-pressed="${(picking&&pickKind==='profile')?'true':'false'}" aria-label="Pick profile from a drawing label" data-tip="Pick profile from drawing labels by click, Enter, or Space">⌖</button></div>${(picking&&pickKind==='profile')?'<div class="hint" data-profile-pick-status role=status aria-live=polite style="margin-top:4px;font-style:italic;color:var(--brand)">'+esc(profilePickGuidance())+'</div>':''}</div>
12106
12166
  <div class="f"><div class=elab>Material grade</div><div style="display:flex;gap:6px"><input data-command-id="steel.member-material" aria-label="Material grade" id=mat class=combo data-src=materials value="${esc(m.material||'')}" placeholder="Profile default · ${esc(profileDefaultMaterial(m.profile))}" style="flex:1" autocomplete=off data-tip="${m.material?'This member carries its own grade, so it will not follow a profile change':'Empty — follows the profile’s default grade. Type or browse to give this member its own.'}"><button data-command-id="steel.browse-material-catalog" id=materialBrowseS class=ghost aria-label="Search material grades" data-tip="Search the material catalog by name or alias"><svg viewBox="0 0 16 16" aria-hidden=true width=13 height=13 fill=none stroke=currentColor stroke-width=1.4 stroke-linecap=round><circle cx="6.9" cy="6.9" r="4.3"/><path d="M10.1 10.1 13.7 13.7"/></svg></button><span class=pslot aria-hidden=true></span></div></div>
12107
- <div class="row hint">Length <b>${L}</b> · ${wpf==null?'<span id=rfiPill class="pill pill-clickable" role=button tabindex=0 data-tip="Open the RFI list, focused on this member" style="background:var(--err-bg)">RFI — size unresolved</span>':'Weight <b>'+(_lenFt(m)*wpf).toFixed(0)+' lb</b> · '+_plf2(wpf)+' lb/ft'}</div>
12167
+ <div class="row hint">Length <b>${L}</b> · ${wpf==null?'<span id=rfiPill class="pill pill-clickable" role=button tabindex=0 data-tip="Open the RFI list, focused on this member" style="background:var(--err-bg)">RFI — size unresolved</span>':_memberWeightHint(m,wpf)}</div>
12108
12168
  <div class=elab>Verified</div><span class=vwrap data-panel-control><button data-command-id="steel.member-verified" id=verifyBtn class="vbtn${m.verified?' on':''}" aria-pressed="${m.verified?'true':'false'}" data-tip="Mark this member human-confirmed">${m.verified?'✓ Human-confirmed':'Mark verified'}</button></span>
12109
12169
  ${mfSect}
12110
12170
  ${appearanceSect}
@@ -14041,7 +14101,20 @@ function toast(msg,sticky,ms,visualOnly){let t=document.getElementById('toast');
14041
14101
  if(!t){t=document.createElement('div');t.id='toast';t.style.cssText='position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 14px;box-shadow:var(--shadow-md);z-index:60;font:13px var(--ui);line-height:1.5;max-width:min(480px,86vw);opacity:0;transition:opacity .2s;pointer-events:none';document.body.appendChild(t);}
14042
14102
  if(visualOnly){t.removeAttribute('role');t.removeAttribute('aria-live');t.removeAttribute('aria-atomic');}
14043
14103
  else{t.setAttribute('role','status');t.setAttribute('aria-live','polite');t.setAttribute('aria-atomic','true');}
14044
- t.textContent=msg;t.style.opacity='1';clearTimeout(t._h);if(!sticky)t._h=setTimeout(()=>{t.style.opacity='0';},ms>0?ms:TOAST_MS);}
14104
+ t.textContent=msg;t.style.opacity='1';clearTimeout(t._h);if(!sticky)t._h=setTimeout(()=>{t.style.opacity='0';},ms>0?ms:TOAST_MS);
14105
+ t._holdUntil=0;t._deferred=null;clearTimeout(t._dh);} // any later toast ends a hold and drops a waiting status line (#2621)
14106
+ // #2621: the answer to something the person asked for from outside (Open / Show in the model) holds the toast for
14107
+ // its full time. The 3D bake lands in the same moment and its build-status line used to replace the answer 2 ms
14108
+ // later, so the person never read why their press failed.
14109
+ const ANSWER_TOAST_MS=9000;
14110
+ function answerToast(msg){toast(msg,false,ANSWER_TOAST_MS);document.getElementById('toast')._holdUntil=Date.now()+ANSWER_TOAST_MS;}
14111
+ // A passive status line (the build status after a bake) waits out a held answer and then shows for its own full
14112
+ // time. `line` is called when it SHOWS, not when it was asked for, so what it says is what is true then (an empty
14113
+ // line shows nothing); only the latest waits, since it reads the same live state the older one would have.
14114
+ function statusToast(line){const t=document.getElementById('toast'),left=t?t._holdUntil-Date.now():0;
14115
+ if(!(left>0)){const msg=line();if(msg)toast(msg);return;}
14116
+ clearTimeout(t._dh);t._deferred=line;
14117
+ t._dh=setTimeout(()=>{const l=t._deferred;t._deferred=null;const msg=l?l():'';if(msg)toast(msg);},left);}
14045
14118
  // --- pointer: select(+ctrl toggle / box) + group-move + endpoint (Shift = ortho) ---
14046
14119
  function applyProfileLabel(prof){
14047
14120
  if(mode!=='add'&&picking&&pickKind==='profile'&&selIds.size===1){const id=[...selIds][0];picking=false;edit(()=>{const m=byId(id);ModelCmd.patchMember(m,{profile:prof,rfi:_wtPlf(prof)==null});if(!profs.includes(prof)){profs.push(prof);profs.sort();}});restoreProfilePickerOwnerAfterApply('pickProf');return true;}
@@ -14376,6 +14449,10 @@ document.getElementById('csArm3dB').onclick=()=>{const d3=window.Steel3DView;if(
14376
14449
  below zero, over 100 ft) says what is wrong and KEEPS the old one: nothing refuses, and nothing throws. */
14377
14450
  function reachEls(){const $=id=>document.getElementById(id);return {inp:$('reachInput'),def:$('reachDef'),reset:$('reachReset'),echo:$('reachEcho'),stat:$('reachStatus')};}
14378
14451
  function reachNow(){return SteelCore.columnBelowReachOf(C);}
14452
+ /* THIS project's default reach, which is 300 mm on a metric standard and 304.8 (1'-0") on an imperial one
14453
+ (owner ruling, 2026-10-23). Read through the same resolver the sheets use, so "is this the default?",
14454
+ the Reset tooltip and the toast cannot name a different number from the one Reset actually restores. */
14455
+ function reachDefault(){return SteelCore.defaultColumnBelowReach(C&&C.environment);}
14379
14456
  function reachExample(){return displayUnits()===DisplayUnits.MM?'150 · 0.3 m · 6"':'6" · 2\'-0" · 150 mm';}
14380
14457
  /** What a typed distance reads as: {ok, mm} or {ok:false, text} (the sentence that says what is wrong, ending with the value kept). */
14381
14458
  function reachRead(typed){
@@ -14412,11 +14489,11 @@ function syncReachRow(){
14412
14489
  const ready=!!C&&!!SteelCore; // boot() resolves the units before the first render; with no project and none stored, ft-in is the documented default
14413
14490
  e.inp.disabled=!ready;
14414
14491
  if(!ready)return; // the markup's "Loading…" placeholder stands: never a plausible guess
14415
- const mm=reachNow(),isDefault=mm===SteelCore.COLUMN_BELOW_REACH_MM;
14492
+ const mm=reachNow(),isDefault=mm===reachDefault();
14416
14493
  if(document.activeElement!==e.inp){e.inp.value=fmtDisp(mm);e.echo.textContent='';e.inp.removeAttribute('aria-invalid');}
14417
14494
  e.inp.placeholder=reachExample().split(' · ')[0];
14418
14495
  e.def.hidden=!isDefault;e.reset.hidden=isDefault;
14419
- e.reset.dataset.tip='Back to the default, '+underFloorText(SteelCore.COLUMN_BELOW_REACH_MM)+'.';}
14496
+ e.reset.dataset.tip='Back to the default, '+underFloorText(reachDefault())+'.';}
14420
14497
  /** Enter or blur: apply what is typed. A bad value keeps the old one and says why; the same value writes nothing. */
14421
14498
  function commitReach(){
14422
14499
  const e=reachEls();if(!e.inp||e.inp.disabled)return false;
@@ -14433,7 +14510,7 @@ function resetReach(){
14433
14510
  reachTouched=true;
14434
14511
  if(!edit(()=>V2_SESSION.setColumnBelowReach(null)))return false;
14435
14512
  reachSay('');
14436
- toast('Columns ending below a floor are back to the default of '+underFloorText(SteelCore.COLUMN_BELOW_REACH_MM)+'. Ctrl+Z undoes it.');
14513
+ toast('Columns ending below a floor are back to the default of '+underFloorText(reachDefault())+'. Ctrl+Z undoes it.');
14437
14514
  syncReachRow();const e=reachEls();if(e.inp)e.inp.focus(); // the Reset button hides itself, so focus goes to the field
14438
14515
  return true;}
14439
14516
  {const e=reachEls();
@@ -15304,20 +15381,35 @@ function connectionRefusalCopy(d,m){
15304
15381
  };
15305
15382
  return byCode[d.code]||{head:'Not built · Connection was refused',detail:'The connection engine refused '+(d.jointId||'this joint')+' ('+(d.code||'unknown reason')+'). No geometry or member trim was created.'};
15306
15383
  }
15384
+ // The build-status line, written when it SHOWS rather than when the bake landed (#2621): one that waited out a held
15385
+ // answer says what is true then. A diagnostic counts as told only once this line reaches the screen, so one whose
15386
+ // line was replaced or dropped is still said by the next; one that went away meanwhile is not. While a re-bake is
15387
+ // in flight the list is empty, so the line is empty and nothing is marked told. `connectionSkipNote` is the latest
15388
+ // bake's skipped counts, kept until said: a bake without skips clears it.
15389
+ let connectionSkipNote=null;
15390
+ function connectionStatusLine(){
15391
+ const fresh=connectionDiagnostics.filter(d=>!shownConnectionDiagnosticSignatures.has(connectionDiagnosticSignature(d)));
15392
+ const refused=fresh.filter(d=>d.severity==='error').length,adjusted=fresh.filter(d=>d.code==='bolt-gauge-adjusted').length;
15393
+ const limited=fresh.filter(d=>d.code==='support-section-unsupported').length,sk=connectionSkipNote||{unreported:0,noFit:0};
15394
+ const bits=[];
15395
+ if(refused)bits.push(refused+' connection'+(refused>1?'s':'')+' not built');
15396
+ if(adjusted)bits.push(adjusted+' built with an adjusted bolt gauge');
15397
+ if(limited)bits.push(limited+' connection'+(limited>1?'s':'')+' built with limited support-side fit');
15398
+ if(sk.unreported)bits.push(sk.unreported+' connection'+(sk.unreported>1?'s':'')+' not shown in 3D');
15399
+ if(sk.noFit)bits.push(sk.noFit+' member'+(sk.noFit>1?'s':'')+' priced but not drawn — no tabulated footprint');
15400
+ if(!bits.length)return '';
15401
+ for(const d of fresh)shownConnectionDiagnosticSignatures.add(connectionDiagnosticSignature(d));
15402
+ connectionSkipNote=null;
15403
+ return bits.join(' · ')+' — see the member’s Properties panel.';
15404
+ }
15307
15405
  function updateConnectionDiagnostics(raw,announce=true){
15308
15406
  const unique=[],seen=new Set();
15309
15407
  for(const d of (Array.isArray(raw)?raw:[])){if(!d||typeof d!=='object'||!d.jointId||!d.code)continue;const sig=connectionDiagnosticSignature(d);if(seen.has(sig))continue;seen.add(sig);unique.push(d);}
15310
15408
  for(const sig of [...shownConnectionDiagnosticSignatures])if(!seen.has(sig))shownConnectionDiagnosticSignatures.delete(sig);
15311
15409
  const fresh=unique.filter(d=>!shownConnectionDiagnosticSignatures.has(connectionDiagnosticSignature(d)));
15312
15410
  connectionDiagnostics=unique;connectionDiagnosticsStatus='ready';announceConnectionTruth('Connection build status checked.',false);
15313
- for(const d of fresh)shownConnectionDiagnosticSignatures.add(connectionDiagnosticSignature(d));
15314
- if(announce&&fresh.length){
15315
- const refused=fresh.filter(d=>d.severity==='error').length,adjusted=fresh.filter(d=>d.code==='bolt-gauge-adjusted').length;
15316
- const limited=fresh.filter(d=>d.code==='support-section-unsupported').length;
15317
- const bits=[];if(refused)bits.push(refused+' connection'+(refused>1?'s':'')+' not built');if(adjusted)bits.push(adjusted+' built with an adjusted bolt gauge');if(limited)bits.push(limited+' connection'+(limited>1?'s':'')+' built with limited support-side fit');
15318
- toast(bits.join(' · ')+' — see the member’s Properties panel.');
15319
- }
15320
- return {count:fresh.length,refused:fresh.filter(d=>d.severity==='error').length,adjusted:fresh.filter(d=>d.code==='bolt-gauge-adjusted').length,limited:fresh.filter(d=>d.code==='support-section-unsupported').length};
15411
+ if(announce&&fresh.length)statusToast(connectionStatusLine);
15412
+ return fresh.length;
15321
15413
  }
15322
15414
  function applyConnectionBakeTruth(j,announce=true){
15323
15415
  const fresh=updateConnectionDiagnostics(j&&j.diagnostics,false),sk=Array.isArray(j&&j.skipped)?j.skipped:[];
@@ -15328,15 +15420,9 @@ function applyConnectionBakeTruth(j,announce=true){
15328
15420
  // the silence below was justified by, so it gets said (#627).
15329
15421
  const noFit=sk.filter(s=>String(s).startsWith('nofootprint:')).length;
15330
15422
  if(sk.length)console.warn('3D bake skipped '+sk.length+' item(s):',sk);
15331
- if(announce&&(fresh.count||unreported||noFit)){
15332
- const bits=[];
15333
- if(fresh.refused)bits.push(fresh.refused+' connection'+(fresh.refused>1?'s':'')+' not built');
15334
- if(fresh.adjusted)bits.push(fresh.adjusted+' built with an adjusted bolt gauge');
15335
- if(fresh.limited)bits.push(fresh.limited+' connection'+(fresh.limited>1?'s':'')+' built with limited support-side fit');
15336
- if(unreported)bits.push(unreported+' connection'+(unreported>1?'s':'')+' not shown in 3D');
15337
- if(noFit)bits.push(noFit+' member'+(noFit>1?'s':'')+' priced but not drawn — no tabulated footprint');
15338
- toast(bits.join(' · ')+' — see the member’s Properties panel.');
15339
- }
15423
+ if(!announce)return;
15424
+ connectionSkipNote=unreported||noFit?{unreported,noFit}:null;
15425
+ if(fresh||unreported||noFit)statusToast(connectionStatusLine);
15340
15426
  }
15341
15427
  async function fetchScenePayload(contract=C){
15342
15428
  const r=await fetch('/api/contract/'+encodeURIComponent(APP_ID)+'/scene'+PROJECT_QS,{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify({contract})});
@@ -15371,6 +15457,7 @@ function connectionTruthRequest(){
15371
15457
  }
15372
15458
  function invalidateConnectionDiagnostics(immediate=false){
15373
15459
  const seq=++connectionDiagnosticsSeq,truth=connectionTruthRequest();
15460
+ connectionSkipNote=null; // the last bake's skips are stale now too; a status line still waiting must not say them (#2621)
15374
15461
  if(connectionDiagnosticsTimer){clearTimeout(connectionDiagnosticsTimer);connectionDiagnosticsTimer=null;}
15375
15462
  connectionPreviewJointByEnd=truth.previewByEnd;
15376
15463
  if((!Array.isArray(C&&C.joints)||!C.joints.length)&&!truth.count){connectionDiagnostics=[];connectionDiagnosticsStatus='ready';announceConnectionTruth('',false);return;}
@@ -15930,7 +16017,7 @@ const view3dApi={
15930
16017
  const m=byId(basePickColId); if(!m||m.role!=='column'||!m.col){toast('No column to trim');return;}
15931
16018
  const tos=(m.col.tosMm!=null?m.col.tosMm:defaultTosMm); // WORLD MM, like the pick itself — there is no conversion on this axis any more
15932
16019
  if(tos==null){toast('Set the column top (TOS) first');return;}
15933
- const want=p.z, cap=tos-MIN_COL_STUB_MM;
16020
+ const want=p.z, cap=tos-minColStubMm();
15934
16021
  const bosMm=Math.min(want, cap); // clamp so the column keeps a min stub (bos<tos)
15935
16022
  const clamped=want>cap+0.5; // the pick was above the min-stub cap → we seated at the cap, not the picked level
15936
16023
  const cur=(m.col.bosMm!=null?m.col.bosMm:0);
@@ -22843,12 +22930,14 @@ async function setView(on,{remember=true}={}){
22843
22930
  // Bounded by a WALL-CLOCK deadline rather than a tick count: setTimeout is clamped to >=1s in a
22844
22931
  // background tab, which would stretch a counted 5 s into roughly a hundred.
22845
22932
  let viewWantSeq=0; // any newer request supersedes an outstanding wait
22933
+ let viewChoiceSeq=0; // bumped only by the person's own 2D/3D/Split choice; view3dSettled stops waiting on it
22934
+ let viewRestorePending=false; // the boot restore of the saved layout is queued; a focus request takes it over (#2622)
22846
22935
  function setViewBusy(on){const g=document.getElementById('viewToggle');if(g){if(on)g.setAttribute('aria-busy','true');else g.removeAttribute('aria-busy');}}
22847
22936
  // Both handlers key on the MODE, not on the active pane. Keying on view3d made each a no-op in a split:
22848
22937
  // with the 2D pane active the 2D segment did nothing, with the 3D pane active the 3D segment did nothing,
22849
22938
  // and split became a trap you could not leave by the control that got you into it.
22850
22939
  function requestView2d(){viewWantSeq++;setViewBusy(false);if(viewMode!=='2d')setView('2d');}
22851
- function requestView3d(){
22940
+ function requestView3d({remember=true}={}){
22852
22941
  const want=++viewWantSeq,deadline=Date.now()+5000;
22853
22942
  return new Promise(resolve=>{
22854
22943
  const tick=async()=>{
@@ -22858,7 +22947,7 @@ function requestView3d(){
22858
22947
  try{
22859
22948
  let appliedSeq=viewSeq;
22860
22949
  if(viewMode==='3d'){if(viewTransition)await viewTransition;}
22861
- else{const pending=setView('3d');appliedSeq=viewSeq;await pending;}
22950
+ else{const pending=setView('3d',{remember});appliedSeq=viewSeq;await pending;}
22862
22951
  resolve(want===viewWantSeq&&appliedSeq===viewSeq&&viewMode==='3d');
22863
22952
  }catch(error){console.error('[steel] could not finish changing views',error);resolve(false);}
22864
22953
  return;
@@ -22870,22 +22959,30 @@ function requestView3d(){
22870
22959
  }
22871
22960
  // Split needs the renderer exactly as 3D does, so it waits on the same deadline rather than refusing
22872
22961
  // instantly — see requestView3d's comment above for why an instant refusal is the worse failure.
22873
- function requestViewSplit(){
22962
+ // It answers whether Split landed, so a caller can await it and a newer request still supersedes it while it waits.
22963
+ function requestViewSplit({remember=true}={}){
22874
22964
  const want=++viewWantSeq,deadline=Date.now()+5000;
22965
+ return new Promise(resolve=>{
22875
22966
  const tick=()=>{
22876
- if(want!==viewWantSeq)return;
22877
- if(viewMode==='split'){setViewBusy(false);return;}
22878
- if(window.Steel3DView||Date.now()>=deadline){setViewBusy(false);setView('split');return;}
22967
+ if(want!==viewWantSeq){resolve(false);return;}
22968
+ if(viewMode==='split'){setViewBusy(false);resolve(true);return;}
22969
+ if(window.Steel3DView||Date.now()>=deadline){
22970
+ setViewBusy(false);
22971
+ setView('split',{remember}).then(()=>resolve(want===viewWantSeq&&viewMode==='split'),
22972
+ error=>{console.error('[steel] could not finish changing views',error);resolve(false);});
22973
+ return;
22974
+ }
22879
22975
  setTimeout(tick,50);
22880
22976
  };
22881
22977
  tick();
22978
+ });
22882
22979
  }
22883
22980
  // Each clears pendingView: between the hand-over below and its deferred start, view3d is still false,
22884
22981
  // so a REAL 2D click landing in that gap is a no-op AND would then be overridden by the queued 3D
22885
22982
  // switch — silently doing the opposite of the last thing the user asked for.
22886
- document.getElementById('vt2d').onclick=()=>{pendingView=null;requestView2d();};
22887
- document.getElementById('vt3d').onclick=()=>{pendingView=null;requestView3d();};
22888
- {const s=document.getElementById('vtSplit');if(s)s.onclick=()=>{pendingView=null;requestViewSplit();};}
22983
+ document.getElementById('vt2d').onclick=()=>{pendingView=null;viewChoiceSeq++;requestView2d();};
22984
+ document.getElementById('vt3d').onclick=()=>{pendingView=null;viewChoiceSeq++;requestView3d();};
22985
+ {const s=document.getElementById('vtSplit');if(s)s.onclick=()=>{pendingView=null;viewChoiceSeq++;requestViewSplit();};}
22889
22986
  // CAPTURE phase, so the pane is active BEFORE the canvas's own handler runs: the 3D engine's onDown is
22890
22987
  // itself a capture-phase listener on #stage3d, and it must see inputActive already true.
22891
22988
  document.getElementById('pane2d').addEventListener('pointerdown',()=>setActivePane('2d'),true);
@@ -22941,7 +23038,8 @@ viewHandlersLive=true;
22941
23038
  // hand-over below is: main() is still wiring the state setView acts on.
22942
23039
  if(pendingView===null&&requestedMode!=='2d'){
22943
23040
  const want=requestedMode;
22944
- setTimeout(()=>{if(pendingView!==null)return;setView(want,{remember:false});},0);
23041
+ viewRestorePending=true;
23042
+ setTimeout(()=>{if(pendingView!==null||!viewRestorePending)return;viewRestorePending=false;setView(want,{remember:false});},0);
22945
23043
  }
22946
23044
  // A model without an editable 2D plan defaults to 3D, where the full model is visible.
22947
23045
  //
@@ -24373,7 +24471,9 @@ async function refreshRfiRecords(opts){
24373
24471
  // unknown project, a malformed id, a project with no incarnation yet — carry no code at all, so an
24374
24472
  // arm that switched on one would fall through for a state a real project can reach.
24375
24473
  rfiState={status:'fail',records:live,sizeTruth:'known',liveTruth:j.liveTruth==='unavailable'?'unavailable':'known',detail:'',
24376
- liveDetail:String(j.liveTruthDetail||''),http:r.status||0,error:String((j&&j.error)||'')};
24474
+ liveDetail:String(j.liveTruthDetail||''),http:r.status||0,error:String((j&&j.error)||''),
24475
+ // #2521 row 3b-2: a Quick version's unfiled questions live in the version, so they show even now.
24476
+ quickFiling:Array.isArray(j&&j.quickFiling)?j.quickFiling:[]};
24377
24477
  }else{
24378
24478
  const filed=j.rfis.map(r=>{
24379
24479
  const g=r&&r.liveGap,targets=liveDrawingTargets(g);
@@ -24388,7 +24488,8 @@ async function refreshRfiRecords(opts){
24388
24488
  // reassuring answer, so it is the one that must be earned rather than defaulted to.
24389
24489
  sizeTruth:j.sizeTruth==='known'?'known':'unavailable',
24390
24490
  liveTruth:j.liveTruth==='known'?'known':'unavailable',
24391
- detail:String(j.sizeTruthDetail||''),liveDetail:String(j.liveTruthDetail||''),http:200,error:''};
24491
+ detail:String(j.sizeTruthDetail||''),liveDetail:String(j.liveTruthDetail||''),http:200,error:'',
24492
+ quickFiling:Array.isArray(j.quickFiling)?j.quickFiling:[]};
24392
24493
  }
24393
24494
  }catch(e){
24394
24495
  if(mine!==rfiFetchSeq)return false;
@@ -25899,14 +26000,14 @@ function renderRfiList(){
25899
26000
  :rfiStatusFilter==='all'
25900
26001
  ?'<b>No RFIs yet.</b>Nothing has been asked about this project, and every member has a size FloLess can price.'
25901
26002
  :'<b>Nothing is waiting on an answer.</b>Every question that was asked has been closed, and every member has a size FloLess can price.';
25902
- list.innerHTML='<div class=rfiempty>'+empty+'</div>';
26003
+ list.innerHTML=rfiQuickFilingHtml()+'<div class=rfiempty>'+empty+'</div>';
25903
26004
  wireRfiList();
25904
26005
  rfiRestoreFocus(restore);
25905
26006
  return;
25906
26007
  }
25907
26008
 
25908
26009
  const shown=rows.slice(0,RFI_ROW_CAP);
25909
- let html='';
26010
+ let html=rfiQuickFilingHtml();
25910
26011
  for(const row of shown)html+=(row.kind==='record'?rfiRecordRowHtml(row.record):rfiSymptomRowHtml(row));
25911
26012
  if(rows.length>shown.length)html+='<div class=rfimore>'+(rows.length-shown.length)+' more not listed here — narrow the filter above.</div>';
25912
26013
  list.innerHTML=html;
@@ -26270,7 +26371,7 @@ async function runEditorFocus(req,current){
26270
26371
  if(!m||!current())return null;
26271
26372
  if(!m.ok){
26272
26373
  const said=m.reason==='missing'?m.said+' Ask about it again in the chat.':m.reason==='view'?m.said+' Switch to the 3D view, then press Show in the model again.':m.said;
26273
- toast(said,false,9000);
26374
+ answerToast(said);
26274
26375
  return {ok:false,reason:m.reason,said};
26275
26376
  }
26276
26377
  return {ok:true};
@@ -26286,17 +26387,17 @@ async function runEditorFocus(req,current){
26286
26387
  if(req.raiseRfi){
26287
26388
  const why=r.ok||(r.reason!=='missing'&&r.reason!=='busy')?openRaiseRfi(req.jointId,req.checkId||null):'';
26288
26389
  raise={raised:r.ok||(r.reason!=='missing'&&r.reason!=='busy')?!why:false,...(why?{raiseSaid:why}:{})};
26289
- if(why)toast(why,false,9000);
26390
+ if(why)answerToast(why);
26290
26391
  }
26291
26392
  if(!r.ok){
26292
26393
  const said=r.reason==='missing'?'Connection '+req.jointId+' is no longer in the model. Ask about it again in the chat to get a fresh card.'
26293
26394
  :r.reason==='view'?r.said+' Switch to the 3D view, then press Open in the model again.'
26294
26395
  :r.reason==='unbuilt'&&!(raise&&raise.raised)?r.said+' Its row on the readiness card says why; raise an RFI or record an assumption from there.'
26295
26396
  :r.said;
26296
- toast(said,false,9000);
26397
+ answerToast(said);
26297
26398
  return {ok:false,reason:r.reason,said,...(raise||{})};
26298
26399
  }
26299
- if(r.fallback){toast(r.said,false,9000);return {ok:true,fallback:r.fallback,said:r.said,...(raise||{})};}
26400
+ if(r.fallback){answerToast(r.said);return {ok:true,fallback:r.fallback,said:r.said,...(raise||{})};}
26300
26401
  return {ok:true,...(raise||{})};
26301
26402
  }
26302
26403
  // A bug in the runner still ends in a sentence where the person is looking, and the cause in the console.
@@ -26306,7 +26407,7 @@ EditorFocus.setRunner(async(req,current)=>{
26306
26407
  console.error('[steel] could not show the connection asked for',error);
26307
26408
  if(!current())return null;
26308
26409
  const said=req.memberId?'The model could not show member '+req.memberId+'. Press Show in the model again, or find it in the Model panel.':'The model could not show connection '+req.jointId+'. Press Open in the model again, or find it in the Model panel.';
26309
- toast(said,false,9000);
26410
+ answerToast(said);
26310
26411
  return {ok:false,said};
26311
26412
  }
26312
26413
  });
@@ -26361,8 +26462,11 @@ async function focusConnection(jointId,opts){
26361
26462
  if(!joint)return {ok:false,reason:'missing',said:'Connection '+jointId+' is no longer in the model.'};
26362
26463
  if(o.viewPending)o.viewPending(true);
26363
26464
  let ready=false;
26364
- try{ready=await requestView3d();}finally{if(o.viewPending)o.viewPending(false);}
26465
+ const choice=viewChoiceSeq;
26466
+ try{ready=await requestFocusView();}finally{if(o.viewPending)o.viewPending(false);}
26365
26467
  if(!current())return null;
26468
+ ready=await view3dSettled(ready,current,choice);
26469
+ if(ready===null)return null;
26366
26470
  const busy=o.beforeSelect?o.beforeSelect():'';
26367
26471
  if(busy)return {ok:false,reason:'busy',said:busy};
26368
26472
  const parts=connChildIdsEditor(jointId);
@@ -26373,6 +26477,8 @@ async function focusConnection(jointId,opts){
26373
26477
  if(!selIdOK(main))return {ok:false,reason:'filter',said:'FloLess could not build connection '+jointId+', and its main member '+main+' is excluded by the selection filter. Turn on that member type under Select, then try again.'};
26374
26478
  // The editor's own "go to the main member" sequence (cmpMember): leave any whole-connection selection
26375
26479
  // first, or its envelope, breadcrumb and inspector stay on the connection picked before.
26480
+ // In a split the 3D pane takes the tools — only now, so a refusal never disarms a 2D tool for nothing (#2622).
26481
+ if(viewMode==='split')setActivePane('3d');
26376
26482
  if(modelEditor.isReady()&&modelEditor.steel.clearConnSel)modelEditor.steel.clearConnSel();
26377
26483
  modelSelection.replaceMembers([main]);selDimIds.clear();sel3dDimIds.clear();modelSelection.clearGrids();render();
26378
26484
  if(!selIds.has(main))return {ok:false,reason:'select',said:'FloLess could not build connection '+jointId+', and the 3D view could not select its main member '+main+'.'};
@@ -26387,6 +26493,7 @@ async function focusConnection(jointId,opts){
26387
26493
  if(!ready||!window.Steel3DView)return {ok:false,reason:'view',said:'The 3D view could not show connection '+jointId+'.'};
26388
26494
  if(!parts.length)return {ok:false,reason:'unbuilt',said:'FloLess could not build connection '+jointId+', so the model has nothing of it to show.'};
26389
26495
  if(!parts.every(selIdOK))return {ok:false,reason:'filter',said:'Connection '+jointId+' is excluded by the selection filter. Turn on '+(joint.kind||'its type')+' connections under Select, then try again.'};
26496
+ if(viewMode==='split')setActivePane('3d'); // as above: the 3D pane holds the selection and its tools
26390
26497
  const selectedThisAttempt=treeSelectConn(jointId,{});
26391
26498
  const selected=connSelInfo();
26392
26499
  if(!selectedThisAttempt||!selected||selected.conn!==jointId||!selected.whole)return {ok:false,reason:'select',said:'The 3D view could not select connection '+jointId+'.'};
@@ -26394,24 +26501,55 @@ async function focusConnection(jointId,opts){
26394
26501
  if(modelEditor.dispatch('model.fit-selection')===false)return {ok:false,reason:'frame',said:'Connection '+jointId+' is selected, but it is hidden in the 3D view. Use Show all in the Visibility menu, then press Open in the model again.'};
26395
26502
  return {ok:true};
26396
26503
  }
26504
+ // The 3D view a request needs, in the layout the person chose (#2622). Split already shows a live 3D pane, so it is
26505
+ // kept; a saved Split the boot restore has not applied yet is asked for rather than overridden by full 3D, and
26506
+ // awaited, so cancelling the request (rfiCancelTarget) still stops it. Otherwise full 3D. Neither switch writes
26507
+ // the saved layout: opening a connection is not the person choosing a view. A boot restore still queued is taken
26508
+ // over, since this already honours the saved layout: left to run, it would switch Split a second time under the
26509
+ // rebuild this started, or, on a window too narrow for Split, drop the full 3D asked for back to 2D. A Split taken
26510
+ // over that then does not land (the request was cancelled, or the switch failed) is asked for once more — unless the person chose a view,
26511
+ // a newer request has taken over (it asks for the layout itself, and the hand-back would cancel it), or Split no
26512
+ // longer fits.
26513
+ let focusViewSeq=0;
26514
+ async function requestFocusView(){
26515
+ const restoring=viewRestorePending,choice=viewChoiceSeq,mine=++focusViewSeq;
26516
+ viewRestorePending=false;
26517
+ if(viewMode==='split')return !viewTransition;
26518
+ if(requestedMode==='split'&&splitAvailable){
26519
+ const landed=await requestViewSplit({remember:false});
26520
+ if(!landed&&restoring&&mine===focusViewSeq&&viewChoiceSeq===choice&&splitAvailable&&viewMode!=='split')requestViewSplit({remember:false});
26521
+ return landed;
26522
+ }
26523
+ return requestView3d({remember:false});
26524
+ }
26525
+ // Opened from another step, the editor restores its own last view at the same moment and that supersedes a
26526
+ // requestView3d() (it answers false), although 3D comes up anyway (#2471, #2581): give it a few seconds to settle
26527
+ // before saying it could not show the thing asked for. Split counts, as its 3D pane is live (#2622). Answers whether 3D is up, or null once `current()` says a
26528
+ // newer request replaced this one. A view the person chose themselves since `choice` (viewChoiceSeq, read before the
26529
+ // request) is never waited out: a 2D click means they changed their mind, and a later 3D click must not revive it.
26530
+ async function view3dSettled(ready,current,choice){
26531
+ for(const until=Date.now()+5000;!ready&&viewChoiceSeq===choice&&Date.now()<until;){
26532
+ await new Promise(resolve=>setTimeout(resolve,100));
26533
+ if(!current())return null;
26534
+ ready=viewChoiceSeq===choice&&!!window.Steel3DView&&(viewMode==='3d'||viewMode==='split')&&!viewTransition;
26535
+ }
26536
+ return ready;
26537
+ }
26397
26538
  // #2471: one member, selected and framed in the 3D view — an AI Chat answer's "Show in the model" for a member it cited.
26398
26539
  // The connection fallback's own sequence (cmpMember): leave any connection selection, select the member, frame it.
26399
26540
  async function focusMember(memberId,opts){
26400
26541
  const o=opts||{},current=o.current||(()=>true);
26401
26542
  if(!(C.members||[]).some(m=>m&&m.id===memberId))return {ok:false,reason:'missing',said:'Member '+memberId+' is no longer in the model.'};
26402
- let ready=await requestView3d();
26543
+ const choice=viewChoiceSeq;
26544
+ let ready=await requestFocusView();
26403
26545
  if(!current())return null;
26404
- // Opened from another step, the editor restores its own last view at the same moment and that supersedes this request,
26405
- // although 3D comes up anyway: give it a few seconds to settle before saying it could not show the member.
26406
- for(const until=Date.now()+5000;!ready&&Date.now()<until;){
26407
- await new Promise(resolve=>setTimeout(resolve,100));
26408
- if(!current())return null;
26409
- ready=!!window.Steel3DView&&viewMode==='3d'&&!viewTransition;
26410
- }
26546
+ ready=await view3dSettled(ready,current,choice);
26547
+ if(ready===null)return null;
26411
26548
  const busy=o.beforeSelect?o.beforeSelect():'';
26412
26549
  if(busy)return {ok:false,reason:'busy',said:busy};
26413
26550
  if(!ready||!window.Steel3DView)return {ok:false,reason:'view',said:'The 3D view could not show member '+memberId+'.'};
26414
26551
  if(!selIdOK(memberId))return {ok:false,reason:'filter',said:'Member '+memberId+' is excluded by the selection filter. Turn on that member type under Select, then try again.'};
26552
+ if(viewMode==='split')setActivePane('3d');
26415
26553
  if(modelEditor.isReady()&&modelEditor.steel.clearConnSel)modelEditor.steel.clearConnSel();
26416
26554
  modelSelection.replaceMembers([memberId]);selDimIds.clear();sel3dDimIds.clear();modelSelection.clearGrids();render();
26417
26555
  if(!selIds.has(memberId))return {ok:false,reason:'select',said:'The 3D view could not select member '+memberId+'.'};
@@ -26550,7 +26688,7 @@ function rfiGroupedRecordRowHtml(r){
26550
26688
  const targetView=occ.liveGap?{...occ.liveGap,id:r.id,kind:r.kind,recordRevision:r.recordRevision,liveGapId:occ.liveGap.id}:view;
26551
26689
  const targets=rfiTargetControls(targetView,index);
26552
26690
  const error=rfiTargetErrors.get(key);
26553
- return '<li class=rfioccurrence data-rfi-occurrence="'+index+'"><article aria-labelledby="rfi-occ-'+r.seq+'-'+index+'"><div class=rfioccurrence-head><h4 id="rfi-occ-'+r.seq+'-'+index+'" tabindex="-1">Occurrence '+(index+1)+' of '+count+' — '+esc(rfiGroupedOccurrenceSubject(occ))+'</h4><span class="rfikind '+rfiStatusTone(occ)+'">'+esc(rfiStatusWords(occ))+'</span></div>'
26691
+ return '<li class=rfioccurrence data-rfi-occurrence="'+index+'"><article aria-labelledby="rfi-occ-'+r.seq+'-'+index+'"><div class=rfioccurrence-head><span class="rfioccurrence-title rfimeta"><h4 id="rfi-occ-'+r.seq+'-'+index+'" tabindex="-1">Occurrence '+(index+1)+' of '+count+' — '+esc(rfiGroupedOccurrenceSubject(occ))+'</h4>'+rfiAiMark(occ.latestBy)+'</span><span class="rfikind '+rfiStatusTone(occ)+'">'+esc(rfiStatusWords(occ))+'</span></div>'
26554
26692
  +'<div class=rfinote>'+esc(occ.question)+(sheets?' · '+esc(sheets):'')+'</div>'
26555
26693
  +(error?'<div class=rfifail role=alert>'+esc(error.message)+'</div>':'')
26556
26694
  +(occurrenceForm?rfiFormHtml(view,'occurrence '+(index+1)+' of '+count,rowKey):(formOpen?'':'<div class=rfiacts>'+rfiGroupedOccurrenceVerbs(r,occ,rowBusy)+targets+'</div>'))
@@ -26566,6 +26704,60 @@ function rfiGroupedRecordRowHtml(r){
26566
26704
  +(formOpen?'':rfiOutcomeHtml(rowKey))+occurrences+'</div></div>';
26567
26705
  }
26568
26706
 
26707
+ /* #2521 row 3b-2 — "AI" beside a proposal the AI wrote (the sighting's `latestBy`), in a Quick model. Not
26708
+ for `raisedBy` alone: a later sighting by a guided read carries its own proposal and no AI mark. */
26709
+ const RFI_AI_TIP='Proposed by the AI in a Quick model: this answer is the AI\'s decision, not a person\'s.';
26710
+ function rfiAiMark(by){
26711
+ return by==='ai'?'<span class="rfiby ai" tabindex="0" aria-label="'+esc(RFI_AI_TIP)+'" data-tip="'+esc(RFI_AI_TIP)+'">AI</span>':'';
26712
+ }
26713
+ /* Where each Quick version's questions stand, and the ones the AI could not get into the RFI file yet.
26714
+ The counts keep every zero: they are the accounting, and a missing class would read as "none". */
26715
+ let rfiQuickRefileBusy=null;
26716
+ function rfiQuickFilingHtml(){
26717
+ const versions=(rfiState.quickFiling||[]).filter(v=>v&&v.counts);
26718
+ if(!versions.length)return '';
26719
+ const n=x=>x===null||x===undefined?'not known':String(x);
26720
+ return versions.map(v=>{
26721
+ const c=v.counts,unfiled=Array.isArray(v.notFiled)?v.notFiled:[];
26722
+ const counts='<div class=rfinote data-rfi-quick-counts="'+esc(v.versionN)+'">Quick model v'+esc(v.versionN)+': '
26723
+ +esc(n(c.settled))+' settled by the AI · '+esc(n(c.filed))+' filed as AI RFIs · '
26724
+ +(c.filedByLaterRead?esc(c.filedByLaterRead)+' filed by a later read · ':'')
26725
+ +'<b class=rfiwarn>'+esc(n(c.notFiled))+' not filed yet</b> · <b>'+esc(n(c.changedInReview))+' changed in your review</b> · '
26726
+ +esc(n(c.appearedAfter))+' appeared after the AI\'s work'
26727
+ +(c.settledAndGone?' · '+esc(c.settledAndGone)+' settled and gone from the final read':'')
26728
+ +(c.leftOutByAudit?' · '+esc(c.leftOutByAudit)+' left out by the audit':'')+'</div>'
26729
+ +(v.snapshotUnavailable?'<div class=rfinote>'+esc(v.snapshotUnavailable.charAt(0).toUpperCase()+v.snapshotUnavailable.slice(1))+'.</div>':'');
26730
+ if(!unfiled.length)return '<div class=rfiunfiled data-rfi-quick-version="'+esc(v.versionN)+'">'+counts+'</div>';
26731
+ const busy=rfiQuickRefileBusy===v.versionN;
26732
+ const retry=v.rfiFileUnavailable?'':'<div class=rfiacts><button data-command-id="steel.rfi-quick-refile#v'+esc(v.versionN)+'" data-command-instance-label="'+esc('version '+v.versionN)+'" data-rfi-ctl="quick-refile:'+esc(v.versionN)+'" data-rfi-quick-refile="'+esc(v.versionN)+'" data-tip="File the questions version '+esc(v.versionN)+' keeps, as the AI\'s; anything already filed is not filed twice"'
26733
+ +(busy?' aria-busy=true aria-disabled=true data-blocked-reason="These questions are being filed"':'')+'>'+(busy?'Filing…':'Try filing again')+'</button></div>';
26734
+ // With the RFI file unreadable, whether these were filed is not known: the section says so, never "not filed".
26735
+ const unknown=!!v.rfiFileUnavailable,heading=unknown?'Filing status unknown':'Not filed yet';
26736
+ return '<section class=rfiunfiled data-rfi-quick-version="'+esc(v.versionN)+'" aria-label="'+heading+', version '+esc(v.versionN)+'"><div class=glab>'+heading+'</div>'+counts+retry
26737
+ +unfiled.map(q=>'<div class=rfirow data-rfi-quick-unfiled="'+esc(q.gapKey)+'"><span class="rfikind sym">'+(unknown?'status unknown':'not filed')+'</span><div class=rfitx>'+esc(q.question)
26738
+ +'<div class=rfimeta>'+rfiAiMark('ai')+'</div>'
26739
+ +(q.proposed?'<div class=rfinote>AI\'s proposed answer: '+esc(q.proposed)+'</div>':'')
26740
+ +(q.tried?'<div class=rfinote>Tried: '+esc(q.tried)+'</div>':'')
26741
+ +'<div class="rfinote rfiwhy">'+esc(q.reason.charAt(0).toUpperCase()+q.reason.slice(1))+'</div></div></div>').join('')
26742
+ +(v.notFiledHeldBack?'<div class=rfimore>'+esc(v.notFiledHeldBack)+(unknown?' more whose filing status is unknown':' more not filed yet')+' are not listed here.</div>':'')+'</section>';
26743
+ }).join('');
26744
+ }
26745
+ async function rfiQuickRefile(versionN){
26746
+ if(rfiQuickRefileBusy!==null)return;
26747
+ rfiQuickRefileBusy=versionN;renderRfiList();
26748
+ try{
26749
+ const res=await fetch('/api/projects/'+encodeURIComponent(PROJECT)+'/versions/'+encodeURIComponent(versionN)+'/rfis',{method:'POST',headers:{'content-type':'application/json'},body:'{}'});
26750
+ const body=await res.json().catch(()=>null);
26751
+ if(res.ok&&body&&body.ok){
26752
+ const filed=(body.outcomes||[]).filter(o=>['created','reused','reopened','successor'].includes(o.result)).length;
26753
+ const notFiled=(body.outcomes||[]).filter(o=>o.result==='over-capacity'||o.result==='unplaceable').length;
26754
+ toast(filed?filed+' question'+(filed===1?'':'s')+' filed as the AI\'s'+(notFiled?'; '+notFiled+' still could not be filed':'')+'.':notFiled?'Nothing more could be filed: '+notFiled+' still do not fit.':'Nothing was left to file.');
26755
+ }else toast('These questions could not be filed: '+((body&&body.error)||'the RFI file could not be written')+'. Nothing was changed.');
26756
+ }catch(e){console.error('[steel] could not retry filing the AI questions',e);toast('These questions could not be filed, because FloLess could not be reached. Nothing was changed.');}
26757
+ // The button the pointer is over is replaced by the repaint, so no pointer-out ever hides its tip.
26758
+ finally{rfiQuickRefileBusy=null;await refreshRfiRecords();if(rfiOpen())renderRfiList();if(window.__tip)window.__tip.hide();}
26759
+ }
26760
+
26569
26761
  function rfiRecordRowHtml(r){
26570
26762
  if(r&&r.grouped)return rfiGroupedRecordRowHtml(r);
26571
26763
  const rowKey=rfiRowKey('record',r.id);
@@ -26591,7 +26783,7 @@ function rfiRecordRowHtml(r){
26591
26783
  +rfiElevationControls(rowKey,r.id,g)
26592
26784
  +'<div class=rfiacts>'+copy+targets+'</div></div></div>';
26593
26785
  }
26594
- const meta=['<span>'+esc(r.id)+'</span>','<span>'+esc(rfiStatusWords(r))+'</span>']
26786
+ const meta=[rfiAiMark(r.latestBy),'<span>'+esc(r.id)+'</span>','<span>'+esc(rfiStatusWords(r))+'</span>']
26595
26787
  .concat(ids.slice(0,6).map(id=>'<span>'+esc(id)+'</span>'))
26596
26788
  .concat(sheets.map(sh=>'<span>Sheet '+esc(sh)+'</span>'))
26597
26789
  .join('');
@@ -26612,7 +26804,10 @@ function rfiRecordRowHtml(r){
26612
26804
  if(r.applied)notes.push('Recorded as applied to the model on '+esc(rfiWhen(r.applied.at))+'.');
26613
26805
  if(r.closed)notes.push('Closed '+esc(rfiDispositionWords(r.closed.disposition))
26614
26806
  +' on '+esc(rfiWhen(r.closed.at))+(r.closed.note?' — '+esc(rfiSentence(r.closed.note)):'.'));
26615
- if(r.proposed)notes.push('FloLess would have proceeded with '+esc(rfiSentence(r.proposed)));
26807
+ // #2521 row 3b-2: the AI's recommendation. Not "built on": a question about an unbuilt connection or an unresolved
26808
+ // placement was never applied, and a later edit can change the model (Codex review).
26809
+ if(r.proposed)notes.push(r.latestBy==='ai'?'The AI’s proposed answer: '+esc(rfiSentence(r.proposed))
26810
+ :'FloLess would have proceeded with '+esc(rfiSentence(r.proposed)));
26616
26811
  if(r.targetsOmitted)notes.push('Showing '+esc((r.targets||[]).filter(t=>t&&t.where==='drawing').length)+' drawing locations. '+esc(r.targetsOmitted)+' additional drawing locations are not available here.');
26617
26812
  if(r.kind==='unbuilt-connection'&&r.subjectsOmitted)notes.push(esc(r.subjectsOmitted)+' additional verified markers are not listed in this RFI.');
26618
26813
  // The one member a Locate can fly to — only ids the model STILL has, since the list may have been
@@ -26980,6 +27175,7 @@ function wireRfiList(){
26980
27175
  const scopeKind=b.dataset.rfiScopeKind;
26981
27176
  // `promote` comes off the CARRIER, because the row key alone cannot say which namespace it is in.
26982
27177
  if(v==='apply')return Promise.resolve(rfiApplyAction(id,occurrence)).catch(rfiGestureFailure);return rfiOpenForm(id,v,promote,occurrence,scopeKind);});
27178
+ root.querySelectorAll('[data-rfi-quick-refile]').forEach(b=>b.onclick=()=>Promise.resolve(rfiQuickRefile(Number(b.dataset.rfiQuickRefile))).catch(rfiGestureFailure));
26983
27179
  root.querySelectorAll('[data-rfi-expand]').forEach(b=>b.onclick=()=>{
26984
27180
  const id=b.dataset.rfiExpand;if(rfiExpandedGroups.has(id))rfiExpandedGroups.delete(id);else rfiExpandedGroups.add(id);
26985
27181
  rfiFocusOverride={rows:[rfiRowKey('record',id)],ctl:'expand'};renderRfiList();});
@@ -27558,6 +27754,10 @@ function _wtBill(profile){const kgm=_wtKgM(profile);
27558
27754
  const UNIT_WORDS={'ft-in':{weight:'lb',tonnage:'tons'},
27559
27755
  mm:{weight:'kg',tonnage:'t'}};
27560
27756
  const _uw=()=>UNIT_WORDS[displayUnits()]||UNIT_WORDS['ft-in'];
27757
+ // The word after a UNIT weight, per system: `bom-units.ts` `labels.unitWeight`, kept beside `UNIT_WORDS` so
27758
+ // the Inspect panel and the bill spell kg/m and lb/ft the same way (#2674).
27759
+ const UNIT_WEIGHT_LABELS={'ft-in':'lb/ft',mm:'kg/m'};
27760
+ const _uwPer=()=>UNIT_WEIGHT_LABELS[displayUnits()]||UNIT_WEIGHT_LABELS['ft-in'];
27561
27761
  /*
27562
27762
  * A MEMBER'S DISPLAYED MASS, from the member itself and the unit weight `_wtBill` returned.
27563
27763
  *
@@ -27578,6 +27778,10 @@ const _propMass=(m,unitWeight)=>
27578
27778
  // printed as 26.000000000000004 — and `bom-format` rounds its own column for exactly this reason.
27579
27779
  // The ARITHMETIC keeps full precision: only what is rendered is rounded.
27580
27780
  const _plf2=(plf)=>plf==null?null:Math.round(plf*100)/100;
27781
+ // The Inspect panel's member weight, in the project's own units. #2674: this was inlined as feet x the unit
27782
+ // weight, labelled lb and lb/ft, so a metric member printed feet x kg/m as pounds (81 lb beside a bill's
27783
+ // 25 kg). Mass comes from `_propMass` and both words from the server's tables, like every other surface.
27784
+ const _memberWeightHint=(m,wpf)=>'Weight <b>'+Math.round(_propMass(m,wpf)).toLocaleString('en-US')+' '+_uw().weight+'</b> · '+_plf2(wpf)+' '+_uwPer();
27581
27785
  // The same weight for the EXPORTED FILE, where two decimals would be a lie rather than a rounding.
27582
27786
  // `_plf2` is right for a label — the catalogue tabulates unit weight to 2 dp — but `contract_edited`
27583
27787
  // is machine-readable and round-trips, and not every weight is a catalogue weight: a document's own
@@ -27640,7 +27844,7 @@ function rememberConfControl(control,kind){confRestoreControl={kind,value:contro
27640
27844
  function restoreConfControl(){if(!confRestoreControl)return false;const pending=confRestoreControl;confRestoreControl=null;
27641
27845
  const selectors={readBand:'#confFilter [data-read-band]',readCat:'#confFilter [data-read-cat]'};
27642
27846
  const selector=selectors[pending.kind];if(!selector)return false;const next=[...document.querySelectorAll(selector)].find(control=>control.dataset[pending.kind]===pending.value);if(!next)return false;next.focus();return true;}
27643
- function renderConf(){const projection=readConfidenceProjection(),target=effectiveTarget(),summary=ReadConfidence.summarizeReadConfidence(projection,target);
27847
+ function renderConf(){const projection=readConfidenceProjection(),target=effectiveTarget(),summary=ReadConfidence.summarizeReadConfidence(projection,target);renderConfQuick();
27644
27848
  if(!['all','beams','columns'].includes(confCat))confCat='all';if(target==null)confReadBand='all';readTargetControl();
27645
27849
  const metric=(label,value,note)=>'<div class=ccard><div class=cc-label>'+label+'</div><div class=cc-score>'+value+'</div><div class=cc-counts><span>'+note+'</span></div></div>';
27646
27850
  document.getElementById('confCats').innerHTML=metric('Recorded fields',summary.totalFields,'immutable drawing values')+metric('Below target',target==null?'—':summary.belowFields,target==null?'No target set':('strictly below '+target+'%'))+metric('Members affected',target==null?'—':summary.affectedMembers,'review destinations')+metric('Not recorded',summary.notRecordedMembers,'members without field confidence');