@floless/app 0.148.1 → 0.149.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/bin/floless.mjs +1 -1
- package/dist/floless-server.cjs +29115 -18888
- package/dist/schemas/drawing-check.profile.v1.schema.json +156 -0
- package/dist/schemas/steel.model.v2.schema.json +43 -1
- package/dist/schemas/tekla.model.v2.schema.json +6 -2
- package/dist/skills/floless-app-steel-model/SKILL.md +54 -11
- package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +9 -5
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +128 -15
- package/dist/skills/floless-app-vectorize/SKILL.md +7 -4
- package/dist/templates/check-drawings.flo +46 -0
- package/dist/templates/drawing-check.flo +55 -0
- package/dist/templates/tekla-parser.flo +6 -2
- package/dist/web/app.css +143 -8
- package/dist/web/aware.js +444 -39
- package/dist/web/chat.css +189 -12
- package/dist/web/chat.js +2203 -772
- package/dist/web/commands-drawing-check.js +53 -0
- package/dist/web/commands-shell.js +299 -6
- package/dist/web/commands-steel.js +1 -0
- package/dist/web/commands-tekla-parser.js +3 -0
- package/dist/web/commands.js +1 -1
- package/dist/web/connections.js +382 -0
- package/dist/web/display-units.js +15 -1
- package/dist/web/drawing-check-editor.html +289 -0
- package/dist/web/drawing-check-editor.js +1242 -0
- package/dist/web/drawing-check-overlay.js +36 -0
- package/dist/web/filter-ai-proposal.js +32 -13
- package/dist/web/index.html +29 -3
- package/dist/web/instructor.js +2 -2
- package/dist/web/local-discovery.js +144 -2
- package/dist/web/model-display-units.js +23 -9
- package/dist/web/model-viewport-revit-adapter.js +12 -2
- package/dist/web/revit-editor.css +5 -0
- package/dist/web/revit-editor.js +141 -20
- package/dist/web/steel-editor.html +166 -27
- package/dist/web/steel-filter.html +60 -166
- package/dist/web/steel-model-v2-commands.js +13 -3
- package/dist/web/steel-model-v2-projection.js +20 -0
- package/dist/web/steel-units.js +3 -1
- package/dist/web/workspaces.js +306 -22
- package/launch.mjs +5 -5
- package/package.json +3 -1
- package/dist/web/filter-ai-context.js +0 -92
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Drawing Checker markup: numbered boxes in PDF page coordinates. Shared by the editor page and the
|
|
2
|
+
// server-built run report, so the two can never draw a different markup for the same result.
|
|
3
|
+
/** @type {Readonly<Record<'pass' | 'fail' | 'dont-know', string>>} */
|
|
4
|
+
export const DEFAULT_COLOURS = Object.freeze({ pass: 'hsl(142 71% 45%)', fail: 'hsl(0 72% 56%)', 'dont-know': 'hsl(38 92% 50%)' });
|
|
5
|
+
const STYLE = { pass: { w: 1.2, dash: '' }, fail: { w: 2.4, dash: '' }, 'dont-know': { w: 1.6, dash: '3 2' } };
|
|
6
|
+
const esc = (s) => String(s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
7
|
+
const num = (v) => (Number.isFinite(v) ? Math.round(v * 10) / 10 : 0);
|
|
8
|
+
|
|
9
|
+
export function hatchDefs() {
|
|
10
|
+
return '<defs><pattern id="dc-hatch" width="6" height="6" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">'
|
|
11
|
+
+ '<line x1="0" y1="0" x2="0" y2="6" stroke="hsl(217 16% 45%)" stroke-width="0.8" opacity="0.5"/></pattern></defs>';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @param {*} sheet
|
|
16
|
+
* @param {Partial<Record<'pass' | 'fail' | 'dont-know', string>>} [colours]
|
|
17
|
+
* @param {{selectedN: number | null}} [opts]
|
|
18
|
+
* @returns {string}
|
|
19
|
+
*/
|
|
20
|
+
export function overlaySvg(sheet, colours = DEFAULT_COLOURS, opts = { selectedN: null }) {
|
|
21
|
+
let out = `<g class="dc-overlay" data-sheet="${esc(sheet.sheetLabel)}">`;
|
|
22
|
+
for (const u of sheet.uncovered || []) {
|
|
23
|
+
out += `<rect class="dc-uncovered" x="${num(u[0])}" y="${num(u[1])}" width="${num(u[2] - u[0])}" height="${num(u[3] - u[1])}" fill="url(#dc-hatch)" stroke="hsl(217 16% 45%)" stroke-width="0.6" stroke-dasharray="2 2"/>`;
|
|
24
|
+
}
|
|
25
|
+
for (const it of sheet.items) {
|
|
26
|
+
const colour = colours[it.status] || DEFAULT_COLOURS[it.status]; const st = STYLE[it.status];
|
|
27
|
+
const sel = opts.selectedN === it.n ? ' data-selected="true"' : '';
|
|
28
|
+
for (const e of it.evidence) {
|
|
29
|
+
const [x0, y0, x1, y1] = e.bbox.map(num); const pad = 2;
|
|
30
|
+
out += `<rect data-n="${it.n}"${sel} x="${x0 - pad}" y="${y0 - pad}" width="${x1 - x0 + 2 * pad}" height="${y1 - y0 + 2 * pad}" rx="2" fill="none" stroke="${esc(colour)}" stroke-width="${st.w}"${st.dash ? ` stroke-dasharray="${st.dash}"` : ''} vector-effect="non-scaling-stroke"/>`;
|
|
31
|
+
out += `<g class="dc-tag" data-n="${it.n}"><circle cx="${x1 + pad}" cy="${y0 - pad}" r="7" fill="white" stroke="${esc(colour)}" stroke-width="1.4"/>`
|
|
32
|
+
+ `<text x="${x1 + pad}" y="${y0 - pad + 3}" text-anchor="middle" font-size="9" font-weight="700" font-family="Inter, system-ui, sans-serif" fill="hsl(222 84% 5%)">${it.n}</text></g>`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return out + '</g>';
|
|
36
|
+
}
|
|
@@ -31,9 +31,38 @@ export function filterAiTouchesUnreadLayer(proposal, filter) {
|
|
|
31
31
|
*/
|
|
32
32
|
export const MAX_FILTER_EXPLANATION = 6_000;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* How many ticks one suggestion may change — ONE number, used by the server when the AI proposes
|
|
36
|
+
* (`floless_filter_propose`) and by the page when the person applies (#1859). It was 30, which a busy
|
|
37
|
+
* sheet's "turn off every text layer" passes easily. Owner ruling 2026-10-02: the open filter must not
|
|
38
|
+
* limit anything, so it is now every control a snapshot can carry — a suggestion may touch them all.
|
|
39
|
+
*/
|
|
40
|
+
export const MAX_FILTER_CHANGES = 5_000;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Every control this filter really has, by `dimension\0key`, minus the layers FloLess did not read —
|
|
44
|
+
* the set a suggestion may ever name. Shared by the page's Apply check and the server's proposal check,
|
|
45
|
+
* so the two can never disagree about what exists.
|
|
46
|
+
*/
|
|
47
|
+
export function filterAiKnownControls(filter) {
|
|
48
|
+
const known = new Map();
|
|
49
|
+
const blockedLayers = filterAiBlockedLayerKeys(filter);
|
|
50
|
+
for (const dim of MODE_ORDER) {
|
|
51
|
+
const descriptor = FACET_DIMS[dim];
|
|
52
|
+
for (const row of filter[descriptor.control] || []) {
|
|
53
|
+
const key = facetKey(dim, row[descriptor.rowKey]);
|
|
54
|
+
if (key === undefined) continue;
|
|
55
|
+
if (dim === 'layer' && blockedLayers.has(key)) continue;
|
|
56
|
+
known.set(dim + '\0' + String(key), key);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return known;
|
|
60
|
+
}
|
|
61
|
+
|
|
34
62
|
/** Reject malformed or contradictory suggestions before any surface presents them. */
|
|
35
63
|
export function parseFilterAiProposalShape(answer) {
|
|
36
|
-
|
|
64
|
+
// Sized for MAX_FILTER_CHANGES changes of the longest names a snapshot carries, so no suggestion it allows is refused here.
|
|
65
|
+
if (typeof answer !== 'string' || answer.length > 2_000_000) throw new Error('AI returned a suggestion that is too large. Ask about fewer layers.');
|
|
37
66
|
let value;
|
|
38
67
|
// A model that wraps the envelope in a ```json fence produced the envelope; the fence is packaging,
|
|
39
68
|
// not a different answer, so unwrap it before deciding anything.
|
|
@@ -62,7 +91,7 @@ export function parseFilterAiProposalShape(answer) {
|
|
|
62
91
|
if (!value || Array.isArray(value) || typeof value !== 'object'
|
|
63
92
|
|| Object.keys(value).sort().join(',') !== 'changes,explanation,mode'
|
|
64
93
|
|| typeof value.explanation !== 'string' || !value.explanation.trim() || value.explanation.length > MAX_FILTER_EXPLANATION
|
|
65
|
-
|| !Array.isArray(value.changes) || value.changes.length >
|
|
94
|
+
|| !Array.isArray(value.changes) || value.changes.length > MAX_FILTER_CHANGES
|
|
66
95
|
|| (value.mode !== null && (typeof value.mode !== 'string'
|
|
67
96
|
|| !value.mode || value.mode !== canonicalMode(value.mode.split('+'))))) {
|
|
68
97
|
throw new Error('AI returned a suggestion this filter cannot use. Ask it to try again.');
|
|
@@ -99,17 +128,7 @@ export function parseFilterAiProposalShape(answer) {
|
|
|
99
128
|
*/
|
|
100
129
|
export function parseFilterAiProposal(answer, filter, allowedControls = null) {
|
|
101
130
|
const value = parseFilterAiProposalShape(answer);
|
|
102
|
-
const known =
|
|
103
|
-
const blockedLayers = filterAiBlockedLayerKeys(filter);
|
|
104
|
-
for (const dim of MODE_ORDER) {
|
|
105
|
-
const descriptor = FACET_DIMS[dim];
|
|
106
|
-
for (const row of filter[descriptor.control] || []) {
|
|
107
|
-
const key = facetKey(dim, row[descriptor.rowKey]);
|
|
108
|
-
if (key === undefined) continue;
|
|
109
|
-
if (dim === 'layer' && blockedLayers.has(key)) continue;
|
|
110
|
-
known.set(dim + '\0' + String(key), key);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
131
|
+
const known = filterAiKnownControls(filter);
|
|
113
132
|
const changes = [];
|
|
114
133
|
for (const item of value.changes) {
|
|
115
134
|
const canonical = facetKey(item.dimension, item.value);
|
package/dist/web/index.html
CHANGED
|
@@ -186,6 +186,8 @@
|
|
|
186
186
|
<button data-command-id="shell.chat-effort" type="button" class="ai-chat-setting" id="chat-effort" aria-haspopup="listbox" aria-expanded="false" data-tip="Choose how much reasoning the AI uses for future messages."><span>Effort</span><strong>Medium</strong></button>
|
|
187
187
|
<button data-command-id="shell.chat-permission" type="button" class="ai-chat-setting" id="chat-permission" aria-haspopup="listbox" aria-expanded="false" data-tip="Access controls what the AI may change: Read only, Working folder write, or Full access."><span>Access</span><strong>Read only</strong></button>
|
|
188
188
|
<button data-command-id="shell.chat-integrations" type="button" class="ai-chat-setting ai-chat-integration-setting" id="chat-integrations" aria-haspopup="listbox" aria-expanded="false"><span>Connected accounts</span><strong>Choose a connected account</strong></button>
|
|
189
|
+
<!-- #1907 (owner ruling 2026-10-03): the AI's own connectors are off in every new conversation; this turns them on for this one. -->
|
|
190
|
+
<button data-command-id="shell.chat-own-connectors" type="button" class="ai-chat-setting ai-chat-own-connectors" id="chat-own-connectors" role="switch" aria-checked="false"><span>Use my connectors in this chat</span><strong aria-hidden="true">Off</strong></button>
|
|
189
191
|
<div class="ai-chat-desktop-status" id="chat-desktop-status">
|
|
190
192
|
<div><span>Continue in desktop app</span><strong id="chat-desktop-value">—</strong></div>
|
|
191
193
|
<small id="chat-desktop-reason" aria-live="polite">Open a conversation to check whether the desktop app can continue it.</small>
|
|
@@ -207,7 +209,11 @@
|
|
|
207
209
|
<div class="ai-chat-skills" id="chat-skills" role="listbox" hidden></div>
|
|
208
210
|
<div class="ai-chat-approval-tray" id="chat-approval-tray"></div>
|
|
209
211
|
<div class="ai-chat-composer" id="chat-composer">
|
|
212
|
+
<!-- #1890: a workspace conversation's units question, and then its "Units: … · Change" line. -->
|
|
213
|
+
<div class="ai-chat-units" id="chat-units" hidden></div>
|
|
210
214
|
<div class="ai-chat-tekla-context" id="chat-tekla-context" hidden></div>
|
|
215
|
+
<!-- #1907: shown only while this chat uses the person's own connectors: "on · Turn off", then each allowed one with Revoke (web/chat.js). -->
|
|
216
|
+
<div class="ai-chat-connectors" id="chat-connectors" role="group" aria-label="Your connectors in this chat" hidden></div>
|
|
211
217
|
<textarea data-command-id="shell.chat-input" id="chat-input" rows="1" maxlength="131072" placeholder="Message AI…" aria-label="Message AI"></textarea>
|
|
212
218
|
<!-- The data-handling disclosure gets its OWN node in the composer, not a line in
|
|
213
219
|
#chat-compose-hint: that hint is one mutable string chosen by a priority chain,
|
|
@@ -216,8 +222,10 @@
|
|
|
216
222
|
it away (#1501). -->
|
|
217
223
|
<p class="ai-chat-composer-disclosure" id="chat-composer-disclosure" hidden>Messages and attachments are sent to Claude or Codex through your account.</p>
|
|
218
224
|
<div class="ai-chat-compose-actions">
|
|
219
|
-
|
|
220
|
-
|
|
225
|
+
<!-- No accept= filter (#1853): data files are recognised by their contents, so the chooser lets
|
|
226
|
+
every file through to be checked; one FloLess cannot read is refused before upload. -->
|
|
227
|
+
<input data-command-id="shell.chat-attach-input" id="chat-file" type="file" multiple hidden>
|
|
228
|
+
<button data-command-id="shell.chat-attach" type="button" class="ai-chat-icon" id="chat-attach" data-tip="Attach a picture, PDF, or data file (IFC, DXF, CSV, text)" aria-label="Attach a picture, PDF, or data file"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551"/></svg></button>
|
|
221
229
|
<span class="ai-chat-compose-hint" id="chat-compose-hint">Enter to send · Shift+Enter for a new line</span>
|
|
222
230
|
<button data-command-id="shell.chat-stop" type="button" class="ai-chat-stop" id="chat-stop" aria-label="Stop response" data-tip="Stop response" hidden><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="5" y="5" width="14" height="14" rx="2.5"/></svg></button>
|
|
223
231
|
<button data-command-id="shell.chat-send" type="button" class="ai-chat-send" id="chat-send" aria-label="Send message"><svg viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"/><path d="m21.854 2.147-10.94 10.939"/></svg></button>
|
|
@@ -285,6 +293,8 @@
|
|
|
285
293
|
<div class="panel-label">
|
|
286
294
|
<span id="center-panel-name">Canvas</span>
|
|
287
295
|
<span class="label-end">
|
|
296
|
+
<!-- #1798: the open workflow's display units — the same control the model views show for a project. -->
|
|
297
|
+
<div id="workflow-units" class="model-display-units workflow-display-units" hidden></div>
|
|
288
298
|
<span class="role" id="center-panel-role">transparency layer · read-mostly</span>
|
|
289
299
|
</span>
|
|
290
300
|
</div>
|
|
@@ -328,6 +338,8 @@
|
|
|
328
338
|
<!-- Workspaces mode surfaces (web/workspaces.js renders both; hidden outside the mode).
|
|
329
339
|
Landing = project grid; project = step tabs over the editor/filter iframes. -->
|
|
330
340
|
<div class="ws-landing" id="ws-landing" hidden></div>
|
|
341
|
+
<!-- #1890: the Workflows tab's landing (web/aware.js renders it): a New workflow card and one card per workflow. -->
|
|
342
|
+
<div class="ws-landing wf-landing" id="wf-landing" hidden></div>
|
|
331
343
|
<div class="ws-project" id="ws-project" hidden>
|
|
332
344
|
<!-- The step tabs ARE the project header. A 45px breadcrumb row used to sit above them saying
|
|
333
345
|
"Workspaces › <project>" plus the app type, and every word of it was already on screen: the
|
|
@@ -373,9 +385,14 @@
|
|
|
373
385
|
the wait reads as work in progress rather than a dead pane. CSS-only swap on the
|
|
374
386
|
attribute; it is not aria-busy because this pane is the import's own live region. -->
|
|
375
387
|
<span class="ws-source-spin" aria-hidden="true"></span>
|
|
376
|
-
<div class="ws-source-title">This project's source drawing</div>
|
|
388
|
+
<div class="ws-source-title" tabindex="-1">This project's source drawing</div>
|
|
377
389
|
<div class="ws-source-sub">The lines on the Traced tab were read from the drawing you imported. Use “Attach revised drawings…” above to re-trace a newer one as a new version.</div>
|
|
390
|
+
<!-- #1836: the Tekla catalogue files a copied model is missing, shown while FloLess asks
|
|
391
|
+
whether to add them or continue without them (askTeklaCatalogues in workspaces.js). -->
|
|
392
|
+
<ul class="ws-source-files" id="ws-source-files" hidden></ul>
|
|
378
393
|
<div class="ws-source-actions" id="ws-source-actions" hidden>
|
|
394
|
+
<button type="button" id="ws-tekla-add-catalogues" class="primary" data-command-id="tekla-parser.add-catalogue-files" data-tip="Choose the missing files from your Tekla environment folder. You can pick several at once." hidden>Add catalogue files…</button>
|
|
395
|
+
<button type="button" id="ws-tekla-continue-without" class="btn-mini" data-command-id="tekla-parser.continue-without-catalogues" data-tip="Open the model now. Shapes that can be worked out from their name stay real; other beams and columns show as thin stand-in bars, and bolts that need a missing file are not drawn. Everything affected is listed in the Audit tab, and the model can’t be approved until you read it again with the files." hidden>Continue without them</button>
|
|
379
396
|
<button type="button" id="ws-revit-open-model" class="primary" data-command-id="revit.open-model" data-tip="Show the imported model on the Model tab. It stays a draft until approved." hidden>Open Model tab</button>
|
|
380
397
|
<button type="button" id="ws-revit-replace" class="btn-mini" data-command-id="revit.replace-import" data-tip="Choose a new RVT. The current model remains available until the replacement is ready.">Replace RVT…</button>
|
|
381
398
|
<button type="button" id="ws-revit-retry" class="btn-mini" data-command-id="revit.retry-import" data-tip="Try importing the already stored RVT again." hidden>Try import again</button>
|
|
@@ -383,6 +400,8 @@
|
|
|
383
400
|
<button type="button" id="ws-revit-cancel" class="btn-mini" data-command-id="revit.cancel-import" data-tip="Cancel this import. The existing model remains unchanged." hidden>Cancel import</button>
|
|
384
401
|
</div>
|
|
385
402
|
<div class="ws-source-reassure" id="ws-source-reassure" role="status" aria-live="polite" hidden>The current model remains unchanged until this import finishes.</div>
|
|
403
|
+
<div class="ws-source-reassure" id="ws-source-hint" hidden></div>
|
|
404
|
+
<input data-command-id="tekla-parser.add-catalogue-files" type="file" id="ws-tekla-catalogue-input" multiple accept=".bin,.db" aria-hidden="true" tabindex="-1" hidden>
|
|
386
405
|
</div>
|
|
387
406
|
</div>
|
|
388
407
|
<!-- Exports = a SHELL-rendered pane (not an iframe): export cards over the project's own
|
|
@@ -1567,6 +1586,11 @@
|
|
|
1567
1586
|
</div>
|
|
1568
1587
|
</div>
|
|
1569
1588
|
<div id="local-discovery-results" class="local-discovery-results" aria-label="Local tool findings"></div>
|
|
1589
|
+
<section id="local-discovery-services" class="local-discovery-services" aria-labelledby="local-discovery-services-title" hidden>
|
|
1590
|
+
<strong id="local-discovery-services-title">Services you can connect</strong>
|
|
1591
|
+
<p>Accounts and keys FloLess can use. You connect them in Integrations; nothing connects from here on its own.</p>
|
|
1592
|
+
<div id="local-discovery-services-list" class="local-discovery-services-list"></div>
|
|
1593
|
+
</section>
|
|
1570
1594
|
</div>
|
|
1571
1595
|
<div class="modal-actions">
|
|
1572
1596
|
<button data-command-id="shell.dialog-close#local discovery" id="local-discovery-close" type="button">Close</button>
|
|
@@ -1613,6 +1637,7 @@
|
|
|
1613
1637
|
<script src="workspaces.js"></script>
|
|
1614
1638
|
<script src="left-pane.js"></script>
|
|
1615
1639
|
<script src="chat.js"></script>
|
|
1640
|
+
<script src="connections.js"></script>
|
|
1616
1641
|
<script src="local-discovery.js"></script>
|
|
1617
1642
|
<script src="account-menu.js"></script>
|
|
1618
1643
|
<script src="commands-shell.js"></script>
|
|
@@ -1630,6 +1655,7 @@
|
|
|
1630
1655
|
<script src="commands-filter.js"></script>
|
|
1631
1656
|
<script src="commands-vector.js"></script>
|
|
1632
1657
|
<script src="commands-vector3d.js"></script>
|
|
1658
|
+
<script src="commands-drawing-check.js"></script>
|
|
1633
1659
|
<script src="instructor.js"></script>
|
|
1634
1660
|
</body>
|
|
1635
1661
|
</html>
|
package/dist/web/instructor.js
CHANGED
|
@@ -773,8 +773,8 @@
|
|
|
773
773
|
a static array cannot express that, because "active" is runtime state. */
|
|
774
774
|
var GROUP_ORDER = [
|
|
775
775
|
// the shell
|
|
776
|
-
'In the header', 'In the workflow picker', 'In the project picker', 'In the project list',
|
|
777
|
-
'In the Workspace directory dialog', 'In Tekla source selection', 'In the new project dialog', 'In the project workspace', 'In the Revit workspace', 'In the Tekla Parser workspace', 'In Company knowledge',
|
|
776
|
+
'In the header', 'In the workflow picker', 'In the project picker', 'In the project list', 'On the Workflows page',
|
|
777
|
+
'In the Workspace directory dialog', 'In Tekla source selection', 'In the new project dialog', 'In the project workspace', 'In the Revit workspace', 'In the Tekla Parser workspace', 'In the Drawing Checker profile', 'In Company knowledge',
|
|
778
778
|
'On the workflow canvas', 'In workflow setup dialogs',
|
|
779
779
|
// The Informed by row sits at the top of the canvas column, so it is read right after the canvas.
|
|
780
780
|
'In the Informed by row', 'In Set inputs',
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
const chooseButton = document.getElementById('local-discovery-choose');
|
|
15
15
|
const scanButton = document.getElementById('local-discovery-scan');
|
|
16
16
|
const closeButton = document.getElementById('local-discovery-close');
|
|
17
|
+
const servicesSection = document.getElementById('local-discovery-services');
|
|
18
|
+
const servicesList = document.getElementById('local-discovery-services-list');
|
|
17
19
|
const selections = new Map();
|
|
18
20
|
let scanController = null;
|
|
19
21
|
let scanGeneration = 0;
|
|
@@ -155,11 +157,38 @@
|
|
|
155
157
|
modal.classList.add('show');
|
|
156
158
|
closeButton.focus();
|
|
157
159
|
}
|
|
160
|
+
const connections = () => window.flolessConnections || null;
|
|
161
|
+
const announce = (text) => { status.textContent = text; };
|
|
162
|
+
/** The route line under a finding's facts: how it can be connected, in plain words (#1899). */
|
|
163
|
+
function routeLine(route) {
|
|
164
|
+
if (!route) return null;
|
|
165
|
+
if (route.kind === 'host') {
|
|
166
|
+
const names = route.agents.map((agent) => agent.name).join(', ');
|
|
167
|
+
return `Connects through the installed ${names} tool${route.agents.length > 1 ? 's' : ''}.`;
|
|
168
|
+
}
|
|
169
|
+
if (route.kind === 'graft') return 'No tool for it yet. You can prepare one.';
|
|
170
|
+
return 'FloLess can’t connect this yet.';
|
|
171
|
+
}
|
|
158
172
|
function findingCard(finding) {
|
|
159
173
|
const card = make('article', 'local-discovery-card');
|
|
160
174
|
const head = make('div', 'local-discovery-card-head');
|
|
161
175
|
head.append(make('strong', '', finding.label || 'Unnamed tool'));
|
|
162
|
-
|
|
176
|
+
const chips = make('span', 'local-discovery-chips');
|
|
177
|
+
chips.append(make('span', 'local-discovery-found', 'Found'));
|
|
178
|
+
const route = finding.route && typeof finding.route.kind === 'string' ? finding.route : null;
|
|
179
|
+
const hostAgents = route?.kind === 'host' && Array.isArray(route.agents) ? route.agents : [];
|
|
180
|
+
// A host check answers for ONE running version. Its receipt belongs on the card of that version,
|
|
181
|
+
// not on every installed version of the program: when the check reported a version, the card's
|
|
182
|
+
// name must carry its number (e.g. "2026" from "2026.0"). No version reported → any card.
|
|
183
|
+
const answeredFor = (receipt) => {
|
|
184
|
+
const year = String(receipt?.reported?.hostVersion || '').match(/\d{2,}/)?.[0];
|
|
185
|
+
return !year || String(finding.label || '').split(/\D+/).includes(year);
|
|
186
|
+
};
|
|
187
|
+
const latest = hostAgents.map((agent) => connections()?.cachedReceipt(agent.id, null))
|
|
188
|
+
.find((receipt) => receipt && answeredFor(receipt)) || null;
|
|
189
|
+
const chip = latest ? connections()?.receiptChip(latest) : null;
|
|
190
|
+
if (chip) chips.append(make('span', `local-discovery-found conn-chip ${chip.cls}`, chip.label));
|
|
191
|
+
head.append(chips);
|
|
163
192
|
card.append(head);
|
|
164
193
|
const facts = make('dl', 'local-discovery-facts');
|
|
165
194
|
for (const [name, value] of [
|
|
@@ -170,7 +199,28 @@
|
|
|
170
199
|
facts.append(make('dt', '', name), make('dd', '', String(value)));
|
|
171
200
|
}
|
|
172
201
|
card.append(facts);
|
|
202
|
+
const line = routeLine(route);
|
|
203
|
+
if (line) card.append(make('p', 'local-discovery-route', line));
|
|
173
204
|
const actions = make('div', 'local-discovery-card-actions');
|
|
205
|
+
const receiptHost = make('div', 'conn-receipt-host');
|
|
206
|
+
receiptHost.setAttribute('role', 'status');
|
|
207
|
+
const confirmHost = make('div', 'conn-confirm-host');
|
|
208
|
+
for (const agent of hostAgents) {
|
|
209
|
+
if (!agent.hasProbe || !connections()) continue;
|
|
210
|
+
actions.append(connections().checkButton({ agent: agent.id, label: agent.name, receiptHost, confirmHost, announce }));
|
|
211
|
+
}
|
|
212
|
+
if (hostAgents.length && !hostAgents.some((agent) => agent.hasProbe)) {
|
|
213
|
+
card.append(make('p', 'local-discovery-route', 'This tool can’t check the connection yet.'));
|
|
214
|
+
}
|
|
215
|
+
if (route?.kind === 'graft' && !route.graftKind) {
|
|
216
|
+
const prepare = make('button', '', 'Prepare a tool');
|
|
217
|
+
prepare.type = 'button'; prepare.dataset.commandId = 'shell.discovery-prepare-tool';
|
|
218
|
+
prepare.addEventListener('click', () => {
|
|
219
|
+
close(false);
|
|
220
|
+
document.dispatchEvent(new CustomEvent('floless:discovery-graft', { detail: { kind: null, ref: '' } }));
|
|
221
|
+
});
|
|
222
|
+
actions.append(prepare);
|
|
223
|
+
}
|
|
174
224
|
if (finding.graft && typeof finding.graft.ref === 'string' && typeof finding.graft.kind === 'string') {
|
|
175
225
|
const graft = make('button', '', 'Open in Graft');
|
|
176
226
|
graft.type = 'button'; graft.dataset.commandId = 'shell.discovery-open-graft';
|
|
@@ -191,9 +241,96 @@
|
|
|
191
241
|
} catch { status.textContent = 'FloLess could not open AI Chat for this finding. Open a project or workflow and try again.'; }
|
|
192
242
|
});
|
|
193
243
|
actions.append(chat);
|
|
194
|
-
card.append(actions);
|
|
244
|
+
card.append(actions, confirmHost, receiptHost);
|
|
245
|
+
if (latest) receiptHost.replaceChildren(connections().receiptNode(latest));
|
|
195
246
|
return card;
|
|
196
247
|
}
|
|
248
|
+
/** "Services you can connect" — sign-in services and key services, from Integrations' inventory. */
|
|
249
|
+
function serviceRow(service) {
|
|
250
|
+
const row = make('div', 'int-account local-discovery-service');
|
|
251
|
+
const copy = make('div', 'int-account-copy');
|
|
252
|
+
copy.append(make('span', 'int-account-name', service.name));
|
|
253
|
+
const accounts = Array.isArray(service.accounts) ? service.accounts.length : 0;
|
|
254
|
+
const expired = !!connections()?.signInExpired(service);
|
|
255
|
+
copy.append(make('span', 'int-account-origin', service.kind === 'key'
|
|
256
|
+
? (service.connected ? 'Key saved' : 'Needs a key from the service')
|
|
257
|
+
: accounts ? `${accounts} ${accounts === 1 ? 'account' : 'accounts'}${expired ? ' · sign-in expired' : ''}` : 'No account connected'));
|
|
258
|
+
row.append(copy, make('span', 'int-chat-state', service.connected ? 'Connected' : expired ? 'Sign-in expired' : 'Not connected'));
|
|
259
|
+
if (service.connected) row.classList.add('is-chat-ready');
|
|
260
|
+
else if (expired) row.classList.add('is-chat-warning');
|
|
261
|
+
const actions = make('div', 'local-discovery-card-actions');
|
|
262
|
+
const receiptHost = make('div', 'conn-receipt-host');
|
|
263
|
+
receiptHost.setAttribute('role', 'status');
|
|
264
|
+
const confirmHost = make('div', 'conn-confirm-host');
|
|
265
|
+
if (service.kind === 'sign-in') {
|
|
266
|
+
const verb = service.connected ? 'Manage' : expired ? 'Reconnect' : 'Connect';
|
|
267
|
+
const connect = make('button', '', verb);
|
|
268
|
+
connect.type = 'button';
|
|
269
|
+
connect.dataset.commandId = `shell.discovery-service-connect#${service.id}`;
|
|
270
|
+
connect.dataset.commandInstanceLabel = service.name;
|
|
271
|
+
connect.setAttribute('aria-label', `${verb} ${service.name} in Integrations`);
|
|
272
|
+
connect.addEventListener('click', () => {
|
|
273
|
+
close(false);
|
|
274
|
+
if (typeof openIntegrations === 'function') openIntegrations(service.id);
|
|
275
|
+
});
|
|
276
|
+
actions.append(connect);
|
|
277
|
+
} else if (!service.connected) {
|
|
278
|
+
const command = `aware credential put ${service.id}`;
|
|
279
|
+
const label = 'Copy the command to add your key';
|
|
280
|
+
const copyButton = make('button', '', label);
|
|
281
|
+
copyButton.type = 'button';
|
|
282
|
+
copyButton.dataset.commandId = `shell.discovery-service-copy-key#${service.id}`;
|
|
283
|
+
copyButton.dataset.commandInstanceLabel = service.name;
|
|
284
|
+
copyButton.addEventListener('click', async () => {
|
|
285
|
+
try {
|
|
286
|
+
await navigator.clipboard.writeText(command);
|
|
287
|
+
copyButton.textContent = 'Copied';
|
|
288
|
+
announce('Command copied. Run it in a terminal, then paste your key when it asks.');
|
|
289
|
+
} catch { announce('FloLess couldn’t copy the command. Select it and copy it yourself.'); }
|
|
290
|
+
setTimeout(() => { copyButton.textContent = label; }, 2000);
|
|
291
|
+
});
|
|
292
|
+
copy.append(make('span', 'int-account-origin', 'Run this in a terminal, then paste your key when it asks:'),
|
|
293
|
+
make('code', 'conn-code', command));
|
|
294
|
+
actions.append(copyButton);
|
|
295
|
+
}
|
|
296
|
+
const checks = Array.isArray(service.checks) ? service.checks : [];
|
|
297
|
+
const account = connections()?.checkAccountOf(service);
|
|
298
|
+
if (service.statusUnknown) {
|
|
299
|
+
copy.append(make('span', 'int-account-origin', 'FloLess couldn’t read whether this key is saved. Close this window and try again.'));
|
|
300
|
+
} else if (checks.length && service.connected && connections() && account === undefined) {
|
|
301
|
+
copy.append(make('span', 'int-account-origin', 'Choose which account to check in Integrations first.'));
|
|
302
|
+
} else if (checks.length && service.connected && connections()) {
|
|
303
|
+
for (const check of checks) {
|
|
304
|
+
actions.append(connections().checkButton({ agent: check.id, alias: account, label: check.name, receiptHost, confirmHost, announce }));
|
|
305
|
+
const latest = connections().cachedReceipt(check.id, account);
|
|
306
|
+
if (latest) receiptHost.replaceChildren(connections().receiptNode(latest));
|
|
307
|
+
}
|
|
308
|
+
} else if (checks.length && expired) {
|
|
309
|
+
copy.append(make('span', 'int-account-origin', connections().EXPIRED_SENTENCE));
|
|
310
|
+
} else if (checks.length) {
|
|
311
|
+
copy.append(make('span', 'int-account-origin', service.kind === 'key'
|
|
312
|
+
? 'Add the key first, then check it works.' : 'Connect first, then check it works.'));
|
|
313
|
+
}
|
|
314
|
+
const wrap = make('div', 'local-discovery-service-wrap');
|
|
315
|
+
wrap.append(row);
|
|
316
|
+
if (actions.childElementCount) wrap.append(actions);
|
|
317
|
+
wrap.append(confirmHost, receiptHost);
|
|
318
|
+
return wrap;
|
|
319
|
+
}
|
|
320
|
+
async function paintServices() {
|
|
321
|
+
if (!servicesSection || !servicesList) return;
|
|
322
|
+
if (!connections()) { servicesSection.hidden = true; return; }
|
|
323
|
+
servicesSection.hidden = false;
|
|
324
|
+
servicesList.replaceChildren(make('p', 'local-discovery-no-filter-match', 'Loading services…'));
|
|
325
|
+
try {
|
|
326
|
+
const services = await connections().loadServices();
|
|
327
|
+
servicesList.replaceChildren();
|
|
328
|
+
if (!services.length) servicesList.append(make('p', 'local-discovery-no-filter-match', 'No services to connect yet.'));
|
|
329
|
+
for (const service of services) servicesList.append(serviceRow(service));
|
|
330
|
+
} catch (error) {
|
|
331
|
+
servicesList.replaceChildren(make('p', 'local-discovery-no-filter-match', connections().sentenceOf(error)));
|
|
332
|
+
}
|
|
333
|
+
}
|
|
197
334
|
function paintPage() {
|
|
198
335
|
const query = filterInput.value.trim().toLocaleLowerCase();
|
|
199
336
|
const matching = query ? allFindings.filter((finding) =>
|
|
@@ -236,9 +373,14 @@
|
|
|
236
373
|
status.textContent = findings.length
|
|
237
374
|
? `${findings.length} ${findings.length === 1 ? 'result' : 'results'} found. Check what FloLess found before taking another step.${failures.length ? ' Some locations could not be fully checked.' : ''}`
|
|
238
375
|
: failures.length ? 'FloLess found no tools in the places it could check. Some places were not fully checked. Scan again or choose a smaller folder.' : 'FloLess found no tools in the places it checked. Add a folder or scan again.';
|
|
376
|
+
if (typeof data.routesUnavailable === 'string') status.textContent += ` ${data.routesUnavailable}`;
|
|
239
377
|
allFindings = findings;
|
|
240
378
|
browse.hidden = !findings.length;
|
|
379
|
+
// Receipts first, so a finding that was already checked shows it on first paint.
|
|
380
|
+
try { await connections()?.loadReceipts(); } catch { /* no chips; every check still works */ }
|
|
381
|
+
if (generation !== scanGeneration) return;
|
|
241
382
|
if (findings.length) paintPage();
|
|
383
|
+
void paintServices();
|
|
242
384
|
if (failures.length) {
|
|
243
385
|
errors.hidden = false;
|
|
244
386
|
errors.append(make('strong', '', 'Some places could not be fully checked. Scan again or choose a smaller folder.'));
|
|
@@ -2,27 +2,39 @@ import { DEFAULT_DISPLAY_UNITS, formatLength, FT_IN, MM } from './display-units.
|
|
|
2
2
|
|
|
3
3
|
const valid = (value) => value === FT_IN || value === MM;
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The parser viewers share Steel's project preference and its single length formatter. A workflow's canvas mounts the
|
|
7
|
+
* same control over its own setting (#1798): pass `workflowId` instead of `projectId`, and the words say "workflow".
|
|
8
|
+
*
|
|
9
|
+
* @param {{ host: any, doc: any, projectId?: string | null, workflowId?: string | null, commandPrefix: string,
|
|
10
|
+
* request: any, onChange: any, onError: any, choiceTip?: ((value: string) => string) | null,
|
|
11
|
+
* wait?: (ms: number) => Promise<any> }} options
|
|
12
|
+
*/
|
|
13
|
+
export function mountModelDisplayUnits({ host, doc, projectId = null, workflowId = null, commandPrefix, request, onChange, onError, choiceTip = null,
|
|
7
14
|
wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms)) }) {
|
|
8
15
|
let units = null, saving = false, destroyed = false, generation = 0, readGeneration = 0, connectionGeneration = 0, connected = true, stale = false;
|
|
9
16
|
const controls = [];
|
|
17
|
+
const noun = workflowId ? 'workflow' : 'project';
|
|
18
|
+
const Noun = workflowId ? 'Workflow' : 'Project';
|
|
10
19
|
host.setAttribute('role', 'group'); host.setAttribute('aria-label', 'Display units');
|
|
11
20
|
const label = doc.createElement('span'); label.textContent = 'Units'; host.append(label);
|
|
12
21
|
const status = doc.createElement('span'); status.className = 'model-units-status'; status.setAttribute('role', 'status');
|
|
13
|
-
const retry = doc.createElement('button'); retry.type = 'button'; retry.className = 'model-units-retry'; retry.textContent = 'Retry'; retry.dataset.commandId = `${commandPrefix}.display-units-retry`; retry.setAttribute('aria-label',
|
|
22
|
+
const retry = doc.createElement('button'); retry.type = 'button'; retry.className = 'model-units-retry'; retry.textContent = 'Retry'; retry.dataset.commandId = `${commandPrefix}.display-units-retry`; retry.setAttribute('aria-label', `Retry loading ${noun} display units`);
|
|
14
23
|
retry.addEventListener('click', () => load());
|
|
15
24
|
const paint = () => {
|
|
16
25
|
for (const [value, button] of controls) {
|
|
17
26
|
button.disabled = units === null || saving;
|
|
27
|
+
// Instructor explains a disabled control by this reason (instructor-impact rubric: blocked state).
|
|
28
|
+
if (button.disabled) button.dataset.blockedReason = units === null ? `Still reading this ${noun}’s saved display units` : `Saving this ${noun}’s display units`;
|
|
29
|
+
else delete button.dataset.blockedReason;
|
|
18
30
|
button.setAttribute('aria-pressed', String(value === units));
|
|
19
|
-
button.dataset.tip = units === null ?
|
|
20
|
-
: saving ?
|
|
31
|
+
button.dataset.tip = units === null ? `Loading this ${noun}’s display units…`
|
|
32
|
+
: saving ? `Saving this ${noun}’s display units…` : choiceTip ? choiceTip(value) : `Display lengths in ${value === MM ? 'millimetres' : 'feet and inches'}`;
|
|
21
33
|
}
|
|
22
34
|
status.hidden = connected && !stale;
|
|
23
35
|
status.textContent = stale ? (units === null ? 'Units unavailable (ft-in)' : 'Units may be stale') : connected ? '' : 'Offline';
|
|
24
|
-
status.dataset.tip = units === null ?
|
|
25
|
-
status.setAttribute('aria-label', status.hidden ? '' : units === null ?
|
|
36
|
+
status.dataset.tip = units === null ? `${Noun} units could not be confirmed. Feet and inches are shown until Retry succeeds.` : `The last confirmed units are shown. Retry to read the current ${noun} setting.`;
|
|
37
|
+
status.setAttribute('aria-label', status.hidden ? '' : units === null ? `${Noun} display units unavailable; showing feet and inches` : 'Display units may be out of date');
|
|
26
38
|
retry.hidden = !stale; retry.disabled = saving;
|
|
27
39
|
const instructorState = doc.defaultView?.__revitInstructorState;
|
|
28
40
|
if (instructorState && typeof instructorState === 'object') {
|
|
@@ -35,7 +47,9 @@ export function mountModelDisplayUnits({ host, doc, projectId, commandPrefix, re
|
|
|
35
47
|
};
|
|
36
48
|
const confirm = (value) => { if (!valid(value) || destroyed) return; const changed = units !== value; units = value; paint(); if (changed) onChange(units); };
|
|
37
49
|
const adopt = (value) => { if (!valid(value) || destroyed) return; generation += 1; confirm(value); };
|
|
38
|
-
const url =
|
|
50
|
+
const url = workflowId
|
|
51
|
+
? `/api/workflows/owned/${encodeURIComponent(workflowId)}/display-units`
|
|
52
|
+
: `/api/projects/${encodeURIComponent(projectId)}/display-units`;
|
|
39
53
|
const choose = async (value) => {
|
|
40
54
|
if (saving || units === null || units === value || destroyed) return;
|
|
41
55
|
const started = generation;
|
|
@@ -73,7 +87,7 @@ export function mountModelDisplayUnits({ host, doc, projectId, commandPrefix, re
|
|
|
73
87
|
} catch { /* Retry the same bounded reconciliation pass. */ }
|
|
74
88
|
}
|
|
75
89
|
if (!destroyed && requestGeneration === readGeneration) {
|
|
76
|
-
stale = true; paint(); onError(units === null ?
|
|
90
|
+
stale = true; paint(); onError(units === null ? `Could not read this ${noun}’s display units. Showing feet and inches.` : `${Noun} units could not be refreshed. Showing the last confirmed units.`);
|
|
77
91
|
}
|
|
78
92
|
return false;
|
|
79
93
|
}
|
|
@@ -359,6 +359,13 @@ function materialFor(source, vertexColors, flatShading) {
|
|
|
359
359
|
return material;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
/** A verified generation with nothing drawn: a degraded Tekla read AWARE signed with no geometry tile (#1849). */
|
|
363
|
+
export function emptyModelScene(frameReceipt) {
|
|
364
|
+
const frame = revitGeometryFrame(frameReceipt); const root = new THREE.Group();
|
|
365
|
+
root.matrix.fromArray(frame.matrix); root.matrixAutoUpdate = false;
|
|
366
|
+
return { root, meshes: [], ownedMeshes: [], decorationMeshes: [], dispose() {} };
|
|
367
|
+
}
|
|
368
|
+
|
|
362
369
|
export function sceneFromGlb(bytes, ownerByNode = new Map(), frameReceipt) {
|
|
363
370
|
const frame = revitGeometryFrame(frameReceipt);
|
|
364
371
|
const { json, binary } = parseGlb(bytes); const root = new THREE.Group(); const meshes = []; const ownedMeshes = []; const decorationMeshes = [];
|
|
@@ -1052,7 +1059,8 @@ export function createRevitViewport({ canvas, onSelect = () => {}, onOutlineBuil
|
|
|
1052
1059
|
const request = pendingLoad; pendingLoad = null;
|
|
1053
1060
|
if (!request) throw new Error('No verified Revit generation was staged for loading.');
|
|
1054
1061
|
const nextFrame = revitGeometryFrame(request.frameReceipt);
|
|
1055
|
-
|
|
1062
|
+
// null is the verified "no tile" of a degraded Tekla read, never a missing download (#1849).
|
|
1063
|
+
const next = request.bytes === null ? emptyModelScene(request.frameReceipt) : sceneFromGlb(request.bytes, request.ownerByNode, request.frameReceipt);
|
|
1056
1064
|
try {
|
|
1057
1065
|
applyRevitDisplayMode(next.ownedMeshes, mode);
|
|
1058
1066
|
const receipts = new Map();
|
|
@@ -1084,7 +1092,9 @@ export function createRevitViewport({ canvas, onSelect = () => {}, onOutlineBuil
|
|
|
1084
1092
|
if (model === next.root) { cancelOutlineJob(); model = null; modelDisposer = null; meshes = []; ownedMeshes = []; hoveredId = null; baseVisibility.clear(); isolation.forget(); structuralGridBaseVisible = true; structuralGridVisibilityBeforeIsolation = null; spatialVisibilityBox = null; snapIndex = buildModelSnapIndex([]); structuralGridView.clear(); structuralGrid = null; structuralGridReceipt = null; structuralGridOwnerId = null; }
|
|
1085
1093
|
},
|
|
1086
1094
|
});
|
|
1087
|
-
|
|
1095
|
+
// A structural grid is drawn from its own record, so a Tekla read with no drawn object but a grid
|
|
1096
|
+
// (#1849) still has something to frame: the camera fits the grid instead of staying at the origin.
|
|
1097
|
+
return { empty: next.ownedMeshes.length === 0 && !request.structuralGrid, generation };
|
|
1088
1098
|
} catch (error) {
|
|
1089
1099
|
next.dispose(); throw error;
|
|
1090
1100
|
}
|
|
@@ -37,6 +37,9 @@ body.model-panel-host{display:flex;flex-direction:column;background:var(--panel)
|
|
|
37
37
|
.viewport-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;background:rgba(8,13,24,.72);z-index:20}.viewport-state span:last-child{color:var(--muted)}.state-spinner{width:24px;height:24px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
|
|
38
38
|
/* No revision to open yet (#1522): the viewport keeps its scrim and says why, and the model-only chrome steps aside. */
|
|
39
39
|
.viewport-state-empty{gap:6px;padding:24px}.viewport-state-empty .viewport-state-icon{width:32px;height:32px;margin-bottom:6px;fill:none;stroke:var(--muted);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.viewport-state-empty strong{font-size:14px;font-weight:600;color:var(--text)}.viewport-state-empty span{max-width:42ch;color:var(--muted)}
|
|
40
|
+
/* A Tekla read with nothing drawable (#1849): the model is open, so the notice is a card, not a scrim, and takes no clicks.
|
|
41
|
+
It sits under the toolbar rather than at the centre, where a fitted structural grid would be. */
|
|
42
|
+
.viewport-state.viewport-state-notice{inset:auto;left:50%;top:68px;transform:translateX(-50%);width:min(440px,calc(100% - 32px));background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);pointer-events:none}
|
|
40
43
|
.editor-root[data-model-state="empty"].model-editor-shell,.editor-root[data-model-state="empty"]{grid-template-columns:minmax(0,1fr)}
|
|
41
44
|
/* Hidden by position, not by name: everything beside the viewport (the Properties column) and everything in it but the
|
|
42
45
|
status. The shared chrome stays styled only by model-editor.css (model-editor-shell.test.ts). */
|
|
@@ -69,3 +72,5 @@ body:has(.editor-root[data-model-state="empty"]) .read-only-chip{display:none}
|
|
|
69
72
|
.chat-q-more>summary:hover,.chat-q-orphans>summary:hover{color:var(--text)}
|
|
70
73
|
.chat-q-more>summary:focus-visible,.chat-q-orphans>summary:focus-visible{outline:2px solid var(--accent);outline-offset:1px;border-radius:3px}
|
|
71
74
|
.chat-q-failed{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
|
|
75
|
+
/* #1836: the files a read went without, above the findings they cause. Not sticky: the summary below it is. */
|
|
76
|
+
.tekla-audit-sources{display:block;position:static;padding:4px 9px 6px;border-bottom:1px solid var(--line)}.tekla-audit-sources .tekla-audit-state{padding:6px 0 2px;text-align:left}.tekla-audit-sources .tekla-audit-inspector-item{padding:6px 0}.tekla-audit-sources .tekla-audit-inspector-item p{font-size:11px}
|