@floless/app 0.148.1 → 0.149.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.
- package/bin/floless.mjs +1 -1
- package/dist/floless-server.cjs +28663 -18914
- 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 +171 -9
- package/dist/web/chat.js +2005 -759
- package/dist/web/commands-drawing-check.js +53 -0
- package/dist/web/commands-shell.js +275 -3
- 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 +25 -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
package/dist/web/chat.css
CHANGED
|
@@ -652,7 +652,20 @@
|
|
|
652
652
|
.ai-chat-message-body p:last-child { margin-bottom: 0; }
|
|
653
653
|
.ai-chat-message-body h1, .ai-chat-message-body h2, .ai-chat-message-body h3 { margin: 0 0 7px; color: var(--text); font-size: 13px; line-height: 1.35; }
|
|
654
654
|
.ai-chat-message-body ul, .ai-chat-message-body ol { margin: 5px 0 8px; padding-left: 20px; }
|
|
655
|
+
.ai-chat-message-body ol { padding-left: 22px; }
|
|
655
656
|
.ai-chat-message-body li + li { margin-top: 3px; }
|
|
657
|
+
/* #1854: a quote, a continuation paragraph or a sub-list written under an item now lives inside it. */
|
|
658
|
+
.ai-chat-message-body li > blockquote, .ai-chat-message-body li > p, .ai-chat-message-body li > ul, .ai-chat-message-body li > ol { margin-top: 4px; margin-bottom: 4px; }
|
|
659
|
+
.ai-chat-message-body li > :last-child { margin-bottom: 0; }
|
|
660
|
+
/* A quoted drawing note is evidence to read, so it keeps --text; the fill marks it as quoted rather
|
|
661
|
+
than repeating the message's own left stripe. */
|
|
662
|
+
.ai-chat-message-body blockquote { margin: 5px 0 8px; padding: 5px 9px; border-left: 2px solid var(--border-strong); border-radius: 0 4px 4px 0; background: var(--surface-3); color: var(--text); }
|
|
663
|
+
.ai-chat-message-body blockquote > :first-child { margin-top: 0; }
|
|
664
|
+
.ai-chat-message-body blockquote > :last-child { margin-bottom: 0; }
|
|
665
|
+
.ai-chat-message-body blockquote p { margin-bottom: 4px; }
|
|
666
|
+
/* Code shares the quote's fill, so inside a quote it steps back to the body surface to stay boxed. */
|
|
667
|
+
.ai-chat-message-body blockquote code, .ai-chat-message-body blockquote pre { background: var(--surface-2); }
|
|
668
|
+
.ai-chat-message-body blockquote pre code { background: transparent; }
|
|
656
669
|
.ai-chat-message-body code { padding: 1px 4px; border-radius: 3px; background: var(--surface-3); color: var(--text); font: .9em var(--mono); }
|
|
657
670
|
.ai-chat-message-body pre { margin: 7px 0; padding: 8px; overflow-x: auto; border-radius: 4px; background: var(--surface-3); }
|
|
658
671
|
.ai-chat-message-body pre code { padding: 0; background: transparent; white-space: pre; }
|
|
@@ -732,6 +745,7 @@
|
|
|
732
745
|
}
|
|
733
746
|
.ai-chat-filter-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 11px; line-height: 15px; }
|
|
734
747
|
.ai-chat-filter-card-head strong { font-weight: 600; }
|
|
748
|
+
.ai-chat-filter-why { margin: 6px 0 0; color: var(--text); font-size: 11px; line-height: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
735
749
|
.ai-chat-filter-state { color: var(--text-dim); font: 600 8px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
|
|
736
750
|
.ai-chat-filter-changes { display: flex; flex-direction: column; gap: 4px; max-height: 180px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none;
|
|
737
751
|
scrollbar-width: thin; scrollbar-color: var(--text-dim) var(--surface-2); }
|
|
@@ -756,12 +770,114 @@
|
|
|
756
770
|
.ai-chat-filter-actions .ai-chat-filter-apply[aria-disabled="true"] { border-color: var(--border-strong); background: var(--surface); color: var(--text-dim); }
|
|
757
771
|
.ai-chat-filter-actions button[aria-disabled="true"]:hover { background: var(--surface); color: var(--text-dim); filter: none; }
|
|
758
772
|
.ai-chat-filter-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
759
|
-
/*
|
|
760
|
-
live status, so a longer note wraps under the message instead of being cut off at the left edge. */
|
|
761
|
-
.ai-chat-live-status.ai-chat-filter-pending { align-self: flex-end; gap: 6px; height: auto; max-width: min(100%, 360px); margin: 2px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
|
|
762
|
-
.ai-chat-filter-pending .ai-chat-live-label { white-space: normal; text-align: right; overflow-wrap: anywhere; }
|
|
773
|
+
/* A note under the person's own (right-aligned) message, e.g. that the filter's selection did not go with it. */
|
|
763
774
|
.ai-chat-filter-notice { align-self: flex-end; max-width: min(100%, 360px); margin: 0; color: var(--text-muted); font-size: 10px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
|
|
764
775
|
|
|
776
|
+
/* #1882 — a height question the drawing read asked the person. The filter card's shell; the row controls
|
|
777
|
+
copy the filter card's buttons so every action in AI Chat reads the same in both themes. */
|
|
778
|
+
.ai-chat-height-card[data-state="answered"] { border-left: 3px solid var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface-2)); }
|
|
779
|
+
.ai-chat-height-card[data-state="closed"] { border-left-color: var(--border-strong); }
|
|
780
|
+
[data-theme="light"] .ai-chat-height-card[data-state="answered"] { --text-muted: #475569; }
|
|
781
|
+
.ai-chat-height-count { margin: 6px 0 0; color: var(--text-dim); font: 600 9px/1.3 var(--mono); letter-spacing: .04em; }
|
|
782
|
+
.ai-chat-height-rows { display: flex; flex-direction: column; gap: 6px; max-height: min(320px, 50vh); margin: 6px 0 0; padding: 0 2px 0 0; overflow-y: auto; list-style: none;
|
|
783
|
+
scrollbar-width: thin; scrollbar-color: var(--text-dim) var(--surface-2); }
|
|
784
|
+
.ai-chat-height-rows::-webkit-scrollbar { width: 8px; }
|
|
785
|
+
.ai-chat-height-rows::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--text-dim); }
|
|
786
|
+
.ai-chat-height-rows::-webkit-scrollbar-track { background: var(--surface-2); }
|
|
787
|
+
.ai-chat-height-rows:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
788
|
+
.ai-chat-height-row { display: flex; flex-direction: column; gap: 4px; padding: 6px 7px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
|
|
789
|
+
.ai-chat-height-row[data-status="superseded"] { opacity: .6; }
|
|
790
|
+
.ai-chat-height-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-size: 11px; line-height: 15px; overflow-wrap: anywhere; }
|
|
791
|
+
.ai-chat-height-meta { color: var(--text-muted); font: 9px/1.3 var(--mono); overflow-wrap: anywhere; }
|
|
792
|
+
.ai-chat-height-proposal, .ai-chat-height-field, .ai-chat-height-answered { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
793
|
+
.ai-chat-height-proposal span { flex: 1; min-width: 0; color: var(--text); font: 11px/15px var(--mono); overflow-wrap: anywhere; }
|
|
794
|
+
.ai-chat-height-answered { color: var(--text); font-size: 11px; line-height: 15px; }
|
|
795
|
+
.ai-chat-height-answered > span:not(.ai-chat-height-glyph) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
796
|
+
.ai-chat-height-glyph { flex: none; width: 1em; color: var(--ok); font: 600 11px/15px var(--mono); text-align: center; }
|
|
797
|
+
.ai-chat-height-input { appearance: none; box-sizing: border-box; flex: 1; min-width: 0; height: 26px; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 4px;
|
|
798
|
+
background: var(--surface-2); color: var(--text); font: 11px var(--mono); caret-color: var(--accent); }
|
|
799
|
+
.ai-chat-height-input::placeholder { color: var(--text-dim); }
|
|
800
|
+
.ai-chat-height-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
801
|
+
.ai-chat-height-row button { flex: none; min-height: 26px; padding: 4px 9px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; }
|
|
802
|
+
.ai-chat-height-row button:hover { color: var(--text); background: var(--surface-3); }
|
|
803
|
+
.ai-chat-height-row button.ai-chat-filter-apply { border-color: var(--accent); background: var(--accent); color: #fff; }
|
|
804
|
+
.ai-chat-height-row button.ai-chat-filter-apply:hover { background: var(--accent); filter: brightness(1.08); }
|
|
805
|
+
.ai-chat-height-row button.ai-chat-height-change { min-height: 22px; padding: 2px 7px; font-weight: 500; }
|
|
806
|
+
.ai-chat-height-row button[aria-disabled="true"], .ai-chat-height-row button[aria-disabled="true"]:hover { cursor: default; opacity: .45; background: var(--surface); color: var(--text-dim); border-color: var(--border-strong); filter: none; }
|
|
807
|
+
.ai-chat-height-row button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
808
|
+
.ai-chat-height-error { margin: 0; color: var(--err-text); font: 10.5px/1.45 var(--ui); overflow-wrap: anywhere; }
|
|
809
|
+
.ai-chat-height-error:empty { display: none; }
|
|
810
|
+
.ai-chat-height-card > .ai-chat-height-error { margin-top: 6px; }
|
|
811
|
+
.ai-chat-height-done { margin: 8px 0 0; color: var(--text-muted); font-size: 10.5px; line-height: 14px; }
|
|
812
|
+
|
|
813
|
+
/* #1906 — height groups, the bulk bar and themed checkboxes (no native box in either theme). */
|
|
814
|
+
.ai-chat-height-group { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
|
|
815
|
+
.ai-chat-height-group-name { flex: 1; min-width: 0; overflow: hidden; color: var(--text); font: 600 10.5px/14px var(--ui); text-overflow: ellipsis; white-space: nowrap; }
|
|
816
|
+
.ai-chat-height-labelline { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
|
|
817
|
+
.ai-chat-height-labelline .ai-chat-height-label { flex: 1; min-width: 0; }
|
|
818
|
+
.ai-chat-check { appearance: none; flex: none; box-sizing: border-box; width: 14px; height: 14px; margin: 1px 0 0; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--surface-2); cursor: pointer; display: grid; place-content: center; }
|
|
819
|
+
.ai-chat-check::before { content: ""; width: 8px; height: 8px; transform: scale(0); background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
|
|
820
|
+
.ai-chat-check:checked { border-color: var(--accent); background: var(--accent); }
|
|
821
|
+
.ai-chat-check:checked::before { transform: scale(1); }
|
|
822
|
+
.ai-chat-check:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
823
|
+
.ai-chat-check:disabled { cursor: default; opacity: .45; }
|
|
824
|
+
.ai-chat-height-bulk { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding: 7px; border: 1px solid var(--accent); border-radius: 5px; background: var(--surface); }
|
|
825
|
+
.ai-chat-height-bulk-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--text); font: 600 10px/14px var(--mono); }
|
|
826
|
+
.ai-chat-height-bulk button, .ai-chat-answer-source button { flex: none; min-height: 24px; padding: 3px 8px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--text-muted); font-size: 10px; font-weight: 600; cursor: pointer; }
|
|
827
|
+
.ai-chat-height-bulk button:hover, .ai-chat-answer-source button:hover { color: var(--text); background: var(--surface-3); }
|
|
828
|
+
.ai-chat-height-bulk button.ai-chat-filter-apply { border-color: var(--accent); background: var(--accent); color: #fff; }
|
|
829
|
+
.ai-chat-height-bulk button.ai-chat-filter-apply:hover { background: var(--accent); filter: brightness(1.08); }
|
|
830
|
+
.ai-chat-height-bulk button[aria-disabled="true"], .ai-chat-answer-source button[aria-disabled="true"] { cursor: default; opacity: .45; background: var(--surface); color: var(--text-dim); filter: none; }
|
|
831
|
+
.ai-chat-height-bulk button:focus-visible, .ai-chat-answer-source button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
832
|
+
|
|
833
|
+
/* #1906 — where an answer came from: a note and the person's pictures. */
|
|
834
|
+
.ai-chat-answer-source { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
835
|
+
.ai-chat-answer-source button.ai-chat-answer-add { align-self: flex-start; min-height: 20px; padding: 1px 4px; border-color: transparent; background: transparent; color: var(--text-muted); font-weight: 500; }
|
|
836
|
+
.ai-chat-answer-source button.ai-chat-answer-add:hover { color: var(--text); background: transparent; text-decoration: underline; }
|
|
837
|
+
.ai-chat-answer-box { display: flex; flex-direction: column; gap: 4px; padding: 5px; border: 1px dashed var(--border-strong); border-radius: 4px; }
|
|
838
|
+
.ai-chat-answer-box.drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
|
|
839
|
+
.ai-chat-answer-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
840
|
+
.ai-chat-answer-source button.ai-chat-answer-clip { width: 28px; height: 26px; padding: 0; display: grid; place-items: center; }
|
|
841
|
+
.ai-chat-answer-clip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
842
|
+
.ai-chat-answer-files { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
|
|
843
|
+
.ai-chat-answer-lead { color: var(--text-muted); font: 10px/14px var(--ui); overflow-wrap: anywhere; }
|
|
844
|
+
.ai-chat-answer-files .ai-chat-attachment button { width: 18px; height: 18px; min-height: 18px; padding: 0; }
|
|
845
|
+
.ai-chat-answer-picture button.ai-chat-answer-open { width: auto; min-height: 18px; height: auto; max-width: 140px; padding: 0 2px; overflow: hidden; border: 0; background: transparent; color: var(--text); font: 9px/1.25 var(--mono); text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; }
|
|
846
|
+
.ai-chat-answer-picture button.ai-chat-answer-open:hover { background: transparent; color: var(--accent); }
|
|
847
|
+
.ai-chat-answer-missing { color: var(--text-dim); font: 9px/1.25 var(--ui); }
|
|
848
|
+
.ai-chat-answered-source { padding-left: calc(1em + 6px); }
|
|
849
|
+
.ai-chat-answer-source button.ai-chat-answer-picture-only { align-self: flex-start; }
|
|
850
|
+
|
|
851
|
+
/* #1906 — the read setup card: three stacked sections in ONE scroller, header and footer outside it. */
|
|
852
|
+
.ai-chat-setup-body { max-height: min(420px, 55vh); gap: 8px; }
|
|
853
|
+
.ai-chat-setup-section { display: flex; flex-direction: column; gap: 5px; }
|
|
854
|
+
.ai-chat-setup-section-head { appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 4px 2px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font: 600 11px/15px var(--ui); text-align: left; cursor: pointer; }
|
|
855
|
+
.ai-chat-setup-section-head::before { content: "▸"; color: var(--text-dim); font-size: 9px; }
|
|
856
|
+
.ai-chat-setup-section-head[aria-expanded="true"]::before { content: "▾"; }
|
|
857
|
+
.ai-chat-setup-section-head > span:first-child { flex: 1; }
|
|
858
|
+
.ai-chat-setup-section-head:hover { color: var(--accent); }
|
|
859
|
+
.ai-chat-setup-section-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
860
|
+
.ai-chat-setup-summary { margin: 0; color: var(--text-muted); font: 10px/14px var(--mono); overflow-wrap: anywhere; }
|
|
861
|
+
.ai-chat-setup-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
|
|
862
|
+
.ai-chat-setup-proposal { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; border-top: 1px solid var(--border); }
|
|
863
|
+
.ai-chat-setup-evidence { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-muted); font: 10px/13px var(--ui); overflow-wrap: anywhere; }
|
|
864
|
+
.ai-chat-setup-tag { color: var(--text-dim); font: 600 8px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
|
|
865
|
+
.ai-chat-setup-why, .ai-chat-setup-frozen { margin: 0; color: var(--text-muted); font: 10.5px/14px var(--ui); overflow-wrap: anywhere; }
|
|
866
|
+
.ai-chat-setup-conflict { display: flex; flex-direction: column; gap: 2px; padding: 5px 7px; border: 1px solid var(--border-strong); border-left: 2px solid var(--err-text); border-radius: 4px; background: var(--surface-2); color: var(--text); font: 10.5px/14px var(--ui); overflow-wrap: anywhere; }
|
|
867
|
+
.ai-chat-setup-conflict-lead { color: var(--err-text); font-weight: 600; }
|
|
868
|
+
.ai-chat-setup-origin, .ai-chat-setup-also { min-width: 0; margin: 0; padding: 0; border: 0; }
|
|
869
|
+
.ai-chat-setup-origin legend, .ai-chat-setup-also legend { padding: 0; margin-bottom: 4px; color: var(--text); font: 600 10.5px/14px var(--ui); }
|
|
870
|
+
.ai-chat-setup-also { margin-top: 6px; }
|
|
871
|
+
.ai-chat-setup-also legend { color: var(--text-muted); font-weight: 500; }
|
|
872
|
+
.ai-chat-setup-choices { display: flex; flex-wrap: wrap; gap: 4px 12px; }
|
|
873
|
+
.ai-chat-setup-also { display: flex; flex-wrap: wrap; gap: 4px 12px; }
|
|
874
|
+
.ai-chat-setup-also legend { flex: 0 0 100%; }
|
|
875
|
+
.ai-chat-setup-choice { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; color: var(--text); cursor: pointer; }
|
|
876
|
+
.ai-chat-setup-choice-name { font: 11px/15px var(--mono); }
|
|
877
|
+
.ai-chat-setup-statement { padding: 5px 7px; border: 1px solid var(--border-strong); border-left: 2px solid var(--accent); border-radius: 4px; background: var(--surface-3); color: var(--text); font: 10.5px/14px var(--ui); overflow-wrap: anywhere; }
|
|
878
|
+
.ai-chat-height-row button.ai-chat-setup-secondary { align-self: flex-start; font-weight: 500; }
|
|
879
|
+
.ai-chat-setup-row .ai-chat-height-proposal button { white-space: normal; text-align: left; }
|
|
880
|
+
|
|
765
881
|
.ai-chat-event {
|
|
766
882
|
border: 1px solid var(--border);
|
|
767
883
|
border-radius: 5px;
|
|
@@ -772,10 +888,11 @@
|
|
|
772
888
|
overflow-wrap: anywhere;
|
|
773
889
|
}
|
|
774
890
|
.ai-chat-event strong { color: var(--text); font-weight: 500; }
|
|
775
|
-
.ai-chat-event.error { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); color: var(--err); }
|
|
891
|
+
.ai-chat-event.error { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); color: var(--err-text); }
|
|
776
892
|
.ai-chat-event.knowledge { border-color: color-mix(in srgb, var(--accent) 36%, var(--border)); }
|
|
777
893
|
/* The chat model's object links (#1653): a quiet receipt under its answer. */
|
|
778
894
|
.ai-chat-event.links { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
|
|
895
|
+
.ai-chat-event.evidence:not(.error) { border-color: color-mix(in srgb, var(--accent) 24%, var(--border)); }
|
|
779
896
|
.ai-chat-live-status {
|
|
780
897
|
align-self: flex-start;
|
|
781
898
|
display: inline-flex;
|
|
@@ -892,8 +1009,13 @@
|
|
|
892
1009
|
grid-row: 5;
|
|
893
1010
|
padding: 6px 9px 0;
|
|
894
1011
|
display: flex;
|
|
1012
|
+
/* Chips wrap rather than shrink (#1853: up to five pictures and four data files). Shrunk chips lost their
|
|
1013
|
+
names and slid one chip's remove button under its neighbour. Past two rows the list scrolls. */
|
|
1014
|
+
flex-wrap: wrap;
|
|
1015
|
+
max-height: 80px; /* two rows of picture chips: 2 × 34px + 5px gap + 6px top padding = 79px */
|
|
895
1016
|
gap: 5px;
|
|
896
|
-
overflow-x:
|
|
1017
|
+
overflow-x: hidden;
|
|
1018
|
+
overflow-y: auto;
|
|
897
1019
|
scrollbar-width: thin;
|
|
898
1020
|
scrollbar-color: var(--border-strong) transparent;
|
|
899
1021
|
}
|
|
@@ -912,7 +1034,7 @@
|
|
|
912
1034
|
font: 9px/1.25 var(--mono);
|
|
913
1035
|
}
|
|
914
1036
|
.ai-chat-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
915
|
-
.ai-chat-attachment img { width: 24px; height: 24px; object-fit: cover; border-radius: 3px; background: var(--surface-3); }
|
|
1037
|
+
.ai-chat-attachment img { width: 24px; height: 24px; flex: none; object-fit: cover; border-radius: 3px; background: var(--surface-3); }
|
|
916
1038
|
.ai-chat-attachment button { width: 18px; height: 18px; padding: 0; flex: none; }
|
|
917
1039
|
/* #1653: the selected Steel objects that go with the next question. The label is the chip's own text made
|
|
918
1040
|
focusable (so its tooltip reaches a keyboard), not a second button look. */
|
|
@@ -928,6 +1050,37 @@
|
|
|
928
1050
|
so a cut-off line would hide the permission. Deliberately neutral — no success colour or icon —
|
|
929
1051
|
because it is not a verification claim; each approved read gets its own receipt card. */
|
|
930
1052
|
.ai-chat-tekla-context { margin-bottom: 6px; }
|
|
1053
|
+
/* #1890: a workspace conversation's units — asked once above the message box, then a quiet line to change them. */
|
|
1054
|
+
.ai-chat-units {
|
|
1055
|
+
display: flex;
|
|
1056
|
+
flex-wrap: wrap;
|
|
1057
|
+
align-items: center;
|
|
1058
|
+
gap: 6px 8px;
|
|
1059
|
+
margin-bottom: 6px;
|
|
1060
|
+
color: var(--text-muted);
|
|
1061
|
+
font: 10.5px/1.45 var(--ui);
|
|
1062
|
+
}
|
|
1063
|
+
.ai-chat-units[hidden] { display: none; }
|
|
1064
|
+
.ai-chat-units-question { color: var(--text); }
|
|
1065
|
+
.ai-chat-units-options { display: inline-flex; flex-wrap: wrap; gap: 4px; }
|
|
1066
|
+
.ai-chat-units-option, .ai-chat-units-change {
|
|
1067
|
+
appearance: none;
|
|
1068
|
+
min-height: 24px;
|
|
1069
|
+
padding: 2px 8px;
|
|
1070
|
+
border: 1px solid var(--border-strong);
|
|
1071
|
+
border-radius: 5px;
|
|
1072
|
+
background: var(--surface-2);
|
|
1073
|
+
color: var(--text);
|
|
1074
|
+
font: inherit;
|
|
1075
|
+
cursor: pointer;
|
|
1076
|
+
}
|
|
1077
|
+
.ai-chat-units-option:hover, .ai-chat-units-change:hover { border-color: var(--accent-dim); }
|
|
1078
|
+
/* A suggestion is a hint, not a choice: a dim accent border; only the chosen option is filled. */
|
|
1079
|
+
.ai-chat-units-option.is-suggested { border-color: var(--accent-dim); }
|
|
1080
|
+
.ai-chat-units-option[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
|
|
1081
|
+
.ai-chat-units-hint { color: var(--text-dim); }
|
|
1082
|
+
.ai-chat-units-change { padding: 1px 6px; color: var(--text-muted); background: transparent; border-color: transparent; text-decoration: underline; }
|
|
1083
|
+
.ai-chat-units-option:focus-visible, .ai-chat-units-change:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
931
1084
|
.ai-chat-tekla-context[hidden] { display: none; }
|
|
932
1085
|
.ai-chat-tekla-chip {
|
|
933
1086
|
display: flex;
|
|
@@ -973,7 +1126,7 @@
|
|
|
973
1126
|
.ai-chat-tekla-context[data-state="error"] .ai-chat-tekla-chip { border-color: color-mix(in srgb, var(--err) 42%, var(--border)); }
|
|
974
1127
|
.ai-chat-tekla-context[data-state="removing"] .ai-chat-tekla-chip,
|
|
975
1128
|
.ai-chat-tekla-context[data-state="binding"] .ai-chat-tekla-chip { opacity: .75; }
|
|
976
|
-
.ai-chat-tekla-error { margin: 5px 2px 0; color: var(--err); font: 10.5px/1.45 var(--ui); }
|
|
1129
|
+
.ai-chat-tekla-error { margin: 5px 2px 0; color: var(--err-text); font: 10.5px/1.45 var(--ui); }
|
|
977
1130
|
|
|
978
1131
|
/* A server-authored receipt of one approved live Tekla read, in the Graft receipt's look. */
|
|
979
1132
|
.ai-chat-tekla-read {
|
|
@@ -1037,7 +1190,9 @@
|
|
|
1037
1190
|
text-transform: uppercase;
|
|
1038
1191
|
}
|
|
1039
1192
|
.ai-chat-tekla-parts th:nth-child(1) { width: 17%; }
|
|
1040
|
-
.
|
|
1193
|
+
/* Wide enough for "12,345.6" in the 10px mono digits: pounds run 2.2x the kilograms, so a share of a narrow
|
|
1194
|
+
chat cut "1,100.6" to "1100…" (#1798). */
|
|
1195
|
+
.ai-chat-tekla-parts th:nth-child(5) { width: 62px; }
|
|
1041
1196
|
.ai-chat-tekla-parts td {
|
|
1042
1197
|
padding: 3px 6px;
|
|
1043
1198
|
border-bottom: 1px solid var(--border);
|
|
@@ -1161,6 +1316,13 @@
|
|
|
1161
1316
|
.ai-chat-composer-disclosure[hidden] { display: none; }
|
|
1162
1317
|
.ai-chat-compose-hint { flex: 1; min-width: 0; color: var(--text-dim); font: 8px/1.4 var(--mono); overflow-wrap: anywhere; }
|
|
1163
1318
|
.ai-chat-compose-hint.working { display: inline-flex; align-items: center; min-height: 16px; padding-left: 4px; }
|
|
1319
|
+
/* The refusal the composer itself reports — "could not send", a filter note. chat.js toggles this
|
|
1320
|
+
class at five sites (adds at 361, 443, 476; removes at 437, 999) and no rule ever styled it, so
|
|
1321
|
+
the one line in the pane that says the message did not go anywhere was painted in --text-dim like
|
|
1322
|
+
an ordinary hint. In the light theme --text-dim resolves through the `inherit` at line 72 to
|
|
1323
|
+
hsl(215.4 16.3% 60%), which on the composer's white --surface is 3.0:1 — worse than the 3.5:1
|
|
1324
|
+
error row #1864 was filed for. Error ink, same token as the row. */
|
|
1325
|
+
.ai-chat-compose-hint.error { color: var(--err-text); }
|
|
1164
1326
|
.ai-chat-compose-context { min-height: 12px; padding: 5px 0 0 30px; color: var(--text-dim); font: 8px/1.3 var(--mono); overflow-wrap: anywhere; }
|
|
1165
1327
|
.ai-chat-compose-context strong { color: var(--text-muted); font-weight: 600; }
|
|
1166
1328
|
/* Send and Stop are icon-only circles: the composer's primary actions, set apart from the square
|