@lace-cloud/canvas 0.16.2 → 0.17.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/README.md +77 -73
- package/dist/{AccordionSection-RPWRZINZ.css → AccordionSection-QHNIBNJT.css} +12 -3
- package/dist/AccountPanel-YCG6RHJI.css +32 -0
- package/dist/App-LQX66JSZ.css +126 -0
- package/dist/ChaosPanel-7JZ2KASG.css +18 -0
- package/dist/ConflictBanner-4V5K2QNU.css +44 -0
- package/dist/DiagnosticsPanel-3UQFOL4T.css +33 -0
- package/dist/{GroupNode-EY63N53G.css → GroupNode-XSB4OKGK.css} +38 -0
- package/dist/Markers-XLREDZNM.css +16 -0
- package/dist/{ModuleNode-AZZ54ONC.css → ModuleNode-VNODPUHI.css} +36 -0
- package/dist/PreviewPanel-FHSY6FS6.css +18 -0
- package/dist/RegistryPanel-DLIMDBWW.css +33 -0
- package/dist/RunPanel-DHBR5SCC.css +11 -0
- package/dist/SourceRefusedBanner-5PXHEDHT.css +23 -0
- package/dist/StackPicker-ZJQELYQ6.css +10 -0
- package/dist/index.cjs +11614 -12408
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3276 -804
- package/dist/index.d.ts +3276 -804
- package/dist/index.mjs +8691 -9519
- package/dist/index.mjs.map +1 -1
- package/dist/{panels-shared-LLLB7PR4.css → panels-shared-OFOUQSUT.css} +3 -4
- package/package.json +8 -4
- package/dist/ActionBar-7ANPCCPK.css +0 -74
- package/dist/RegistryBrowser-3G22I4EO.css +0 -78
- package/dist/ValidationErrorBanner-G6TBGMK7.css +0 -158
package/README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# @lace-cloud/canvas
|
|
2
2
|
|
|
3
3
|
Lace Cloud's visual canvas — the React + ReactFlow webview UI for
|
|
4
|
-
visually composing Terraform modules.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
visually composing Terraform modules. The core renders against
|
|
5
|
+
`CanvasPorts` (`source`, `context`, `viewState`, and optional `editor`,
|
|
6
|
+
`commands`, `navigator`, `presenter`); a host wires only the ports it
|
|
7
|
+
can support, and read-only is the absence of `editor` (or a live
|
|
8
|
+
session whose source tf is refused), never a flag.
|
|
7
9
|
|
|
8
10
|
## Install
|
|
9
11
|
|
|
@@ -11,87 +13,89 @@ either VS Code postMessage (extension host) or Connect-JSON over fetch
|
|
|
11
13
|
npm install @lace-cloud/canvas @lace-cloud/design-tokens react react-dom @xyflow/react
|
|
12
14
|
```
|
|
13
15
|
|
|
14
|
-
##
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
16
|
+
## Ports
|
|
17
|
+
|
|
18
|
+
`packages/canvas/src/ports.ts` is the one contract every host — VS
|
|
19
|
+
Code, JetBrains, Storybook, the portal — renders against:
|
|
20
|
+
|
|
21
|
+
- `source` (required) — subscribes to the live `CanvasSource`: the IR
|
|
22
|
+
Bundle, undo/redo flags, `unsaved` / `ungenerated` / `conflict` /
|
|
23
|
+
`sourceRefused`, and the engine's own diagnostics. The canvas runs no
|
|
24
|
+
validator of its own.
|
|
25
|
+
- `editor` — `apply` (every IR edit, registry placement included),
|
|
26
|
+
`save` (working IR → `state.lace`), `generate` (`state.lace` → source
|
|
27
|
+
tf), `resolveConflict` (Keep or Reload), and an optional `autosave`
|
|
28
|
+
delay for a host that offers the preference. Its absence is read-only.
|
|
29
|
+
- `commands` — runs one CLI command in-process (`invoke(path, args,
|
|
30
|
+
signal)`); every canvas feature that isn't an IR edit is a
|
|
31
|
+
contribution bound to a command path in `command-tree.golden`.
|
|
32
|
+
- `navigator` / `presenter` — open a run/stack/change/module, and
|
|
33
|
+
notify/confirm/showCode, respectively.
|
|
34
|
+
- `context` / `viewState` — session identity and consumer-owned
|
|
35
|
+
arrangement (node positions, group collapse/label) — never
|
|
36
|
+
transported over the wire.
|
|
37
|
+
|
|
38
|
+
## The engine adapter
|
|
39
|
+
|
|
40
|
+
`src/adapters/engine/` turns one engine connection into
|
|
41
|
+
`source`/`editor`/`commands` plus `context`. Single barrel entry — no
|
|
42
|
+
deep imports:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import { connectCaller, openEngineCanvas } from '@lace-cloud/canvas';
|
|
46
|
+
|
|
47
|
+
const caller = connectCaller({ baseUrl: 'http://localhost:50051', token });
|
|
48
|
+
const { ports, close } = await openEngineCanvas(caller, { root: '/path/to/authoring/root' });
|
|
35
49
|
```
|
|
36
50
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
`
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
- `connectCaller({baseUrl, token})` reaches a running `lace engine`
|
|
52
|
+
process directly over Connect-JSON (HTTP POST, fetch) — Storybook
|
|
53
|
+
flow stories and the canvas-flow Playwright suite use this.
|
|
54
|
+
- `bridgeCaller(bridge)` forwards every call over a `MessageBridge`
|
|
55
|
+
(`@lace-cloud/proto`) to a host process holding the engine
|
|
56
|
+
connection instead — VS Code and JetBrains webviews. The other end
|
|
57
|
+
is `@lace-cloud/host`'s `serveEngineBridge`.
|
|
58
|
+
- `openEngineCanvas(caller, target)` opens the session
|
|
59
|
+
(`{root}` | `{ephemeral:{name}}` | `{fixture}`) and subscribes
|
|
60
|
+
exactly once, fanning that stream out to `source` and to whichever
|
|
61
|
+
`editor.generate()` call is in flight. `commands.invoke` runs a CLI
|
|
62
|
+
command over `Invoke`; `Invocation.cancel()` sends `CancelInvoke`
|
|
63
|
+
only and leaves `events` running until the command's own exit — a
|
|
64
|
+
`signal` abort or `close()` detaches the stream instead, without
|
|
65
|
+
cancelling the command's remote effects.
|
|
66
|
+
|
|
67
|
+
`snapshotSource` (`src/adapters/snapshot-source.ts`) is the read-only
|
|
68
|
+
`source` a host without a live engine mounts (portal's control-plane
|
|
69
|
+
dashboards): it fetches one Bundle snapshot and never changes —
|
|
70
|
+
`unsaved`/`ungenerated`/`sourceRefused` are always false, `conflict` is
|
|
71
|
+
always `null`, `diagnostics` is always empty, since a RunSnapshot has no live
|
|
72
|
+
validator and the run's own certification already vouched for it.
|
|
73
|
+
|
|
74
|
+
```ts
|
|
75
|
+
import { snapshotSource } from '@lace-cloud/canvas';
|
|
76
|
+
|
|
77
|
+
const source = snapshotSource({ bundleUrl, headers });
|
|
58
78
|
```
|
|
59
79
|
|
|
60
|
-
|
|
80
|
+
## Save and generate
|
|
61
81
|
|
|
62
|
-
|
|
63
|
-
(`
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
A `focus-node` intent frames one node instead (`padding: 1.2`), and any
|
|
72
|
-
intent may override padding and duration per dispatch.
|
|
82
|
+
A root session's canvas renders from the root's `state.lace`
|
|
83
|
+
(`.lace/.canvas/state.lace`), the persistent bridge between its source
|
|
84
|
+
tf and the canvas. An edit changes the working IR only ("● Unsaved");
|
|
85
|
+
Save writes it to `state.lace` ("Not generated"); Generate writes
|
|
86
|
+
`state.lace`'s IR to the tf in the repo. A hand edit to the tf updates
|
|
87
|
+
the canvas live, or — with edits the tf lacks — opens the conflict
|
|
88
|
+
banner (Keep / Reload). `lace stack apply` and `preview` run the tf on
|
|
89
|
+
disk, never the canvas.
|
|
73
90
|
|
|
74
91
|
## Read-only mode
|
|
75
92
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
For consumers that show state without letting users mutate it
|
|
81
|
-
(portal's control plane is the driving example). Three-layer gating
|
|
82
|
-
(xyflow native props + conditional handler installation + render
|
|
83
|
-
gates) ensures no mutation slips through. See lace's
|
|
93
|
+
A canvas is read-only when its host supplies no `editor` port, or
|
|
94
|
+
while its session's source tf is refused — there is no `readOnly`
|
|
95
|
+
flag. See lace's
|
|
84
96
|
[CLAUDE.md](https://github.com/lace-cloud/lace/blob/main/CLAUDE.md#read-only-mode-canvas)
|
|
85
97
|
for the full contract.
|
|
86
98
|
|
|
87
|
-
## CanvasEngine interface
|
|
88
|
-
|
|
89
|
-
The contract between webview and backend. `PostMessageEngine` and
|
|
90
|
-
`ConnectWebEngine` both implement it; consumers (App, hooks) work
|
|
91
|
-
with either. See lace's
|
|
92
|
-
[AGENTS.md](https://github.com/lace-cloud/lace/blob/main/AGENTS.md#engine-interface-canvasengine)
|
|
93
|
-
for the full method list.
|
|
94
|
-
|
|
95
99
|
## License
|
|
96
100
|
|
|
97
101
|
BUSL-1.1 — see the `LICENSE` file packed in this package.
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
/* AccordionSection — collapsible section used inside config panels.
|
|
2
2
|
* Whole-row button click toggles; chevron rotates 0→90 on open.
|
|
3
3
|
* The grid-rows animation is the "height: auto transition" trick —
|
|
4
|
-
* grid-template-rows can animate, so the inner wrapper
|
|
5
|
-
*
|
|
4
|
+
* grid-template-rows can animate, so the inner wrapper clips it until
|
|
5
|
+
* it expands to 1fr. The inner wrapper needs both `overflow: clip` and
|
|
6
|
+
* `min-height: 0`: `clip` (not `hidden`) forbids the box from being a
|
|
7
|
+
* programmatic scroll container, so a scrollIntoView (mouse-driven
|
|
8
|
+
* autoscroll, keyboard focus) that fires mid-animation falls through to
|
|
9
|
+
* the real scroll container instead of scrolling the still-growing box
|
|
10
|
+
* itself. But `clip` alone leaves the box's automatic minimum height at
|
|
11
|
+
* its content height, so the 0fr row in a closed accordion can't shrink
|
|
12
|
+
* past that — `min-height: 0` removes the floor so the 0fr track
|
|
13
|
+
* actually collapses the box to zero. */
|
|
6
14
|
|
|
7
15
|
.lace-accordion {
|
|
8
16
|
border-bottom: 1px solid var(--lace-color-border-default);
|
|
@@ -66,7 +74,8 @@
|
|
|
66
74
|
}
|
|
67
75
|
|
|
68
76
|
.lace-accordion__body-inner {
|
|
69
|
-
overflow:
|
|
77
|
+
overflow: clip;
|
|
78
|
+
min-height: 0;
|
|
70
79
|
}
|
|
71
80
|
|
|
72
81
|
.lace-accordion__body-content {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* AccountPanel — the toolbar's sign-in/out surface. */
|
|
2
|
+
|
|
3
|
+
.lace-account-panel {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--lace-space-2);
|
|
7
|
+
font-size: var(--lace-font-size-md);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.lace-account-panel__status {
|
|
11
|
+
color: var(--lace-color-text-muted);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lace-account-panel__email {
|
|
15
|
+
color: var(--lace-color-text-primary);
|
|
16
|
+
white-space: nowrap;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.lace-account-panel__org,
|
|
20
|
+
.lace-account-panel__team {
|
|
21
|
+
color: var(--lace-color-text-muted);
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lace-account-panel__login,
|
|
26
|
+
.lace-account-panel__logout {
|
|
27
|
+
padding: 1px 7px;
|
|
28
|
+
border-radius: var(--lace-radius-sm);
|
|
29
|
+
color: var(--lace-color-text-primary);
|
|
30
|
+
font-size: var(--lace-font-size-sm);
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* App's own layout: the fixed slots every contribution renders
|
|
2
|
+
* into — toolbar (actions, the stack picker, account), sidebar, the
|
|
3
|
+
* canvas itself with its bottom tabs, and the banner strip above
|
|
4
|
+
* everything. A host's own contributions land in the exact same slots
|
|
5
|
+
* a core one does; there is no host-specific layout. */
|
|
6
|
+
|
|
7
|
+
.lace-app {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
width: 100%;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lace-app__banners {
|
|
15
|
+
position: relative;
|
|
16
|
+
z-index: var(--lace-z-chrome);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.lace-app__toolbar {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: var(--lace-space-2);
|
|
23
|
+
padding: var(--lace-space-2) var(--lace-space-3);
|
|
24
|
+
border-bottom: 1px solid var(--lace-color-border-default);
|
|
25
|
+
background: var(--lace-color-bg-surface);
|
|
26
|
+
/* A normal-flow row above the pane, never an overlay: fixed height
|
|
27
|
+
* (never squeezed to 0 by the flex column above it) so the flow pane
|
|
28
|
+
* below always starts at its true bottom edge, not a miscomputed one. */
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.lace-app__toolbar-actions {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
gap: var(--lace-space-2);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.lace-app__toolbar-spacer {
|
|
40
|
+
flex: 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.lace-app__body {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex: 1;
|
|
46
|
+
min-height: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.lace-app__sidebar {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
width: 260px;
|
|
53
|
+
overflow-y: auto;
|
|
54
|
+
border-right: 1px solid var(--lace-color-border-default);
|
|
55
|
+
background: var(--lace-color-bg-surface);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.lace-app__main {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
flex: 1;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
/* Clips the flow pane to its own box: xyflow paints nodes with
|
|
64
|
+
* `transform`, not layout flow, so a pane whose own height briefly
|
|
65
|
+
* miscomputes (e.g. `height: 100%` resolving before its flex ancestor
|
|
66
|
+
* settles) would otherwise paint past its box and over the toolbar
|
|
67
|
+
* above it — later in DOM order always wins the overlap. */
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.lace-app__canvas {
|
|
72
|
+
flex: 1;
|
|
73
|
+
min-height: 0;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.lace-app__bottom {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
height: 240px;
|
|
81
|
+
border-top: 1px solid var(--lace-color-border-default);
|
|
82
|
+
background: var(--lace-color-bg-surface);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.lace-app__bottom-tabs {
|
|
86
|
+
display: flex;
|
|
87
|
+
gap: var(--lace-space-1);
|
|
88
|
+
padding: var(--lace-space-1) var(--lace-space-2);
|
|
89
|
+
border-bottom: 1px solid var(--lace-color-border-default);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.lace-app__bottom-tab {
|
|
93
|
+
padding: var(--lace-space-1) var(--lace-space-2);
|
|
94
|
+
border: none;
|
|
95
|
+
background: none;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.lace-app__bottom-tab--active {
|
|
100
|
+
border-bottom: 2px solid var(--lace-color-accent);
|
|
101
|
+
font-weight: 600;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.lace-app__bottom-content {
|
|
105
|
+
flex: 1;
|
|
106
|
+
overflow: auto;
|
|
107
|
+
padding: var(--lace-space-2);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* PanelSlot's own read-error rendering — the one place a failed
|
|
111
|
+
* `useCommandRead` surfaces, so every panel body still renders normally
|
|
112
|
+
* (typically an empty list) beneath it. */
|
|
113
|
+
.lace-app__panel-error {
|
|
114
|
+
margin: 0;
|
|
115
|
+
padding: var(--lace-space-1) var(--lace-space-2);
|
|
116
|
+
color: var(--lace-color-text-danger);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.lace-app__inspector {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
width: 300px;
|
|
123
|
+
overflow-y: auto;
|
|
124
|
+
border-left: 1px solid var(--lace-color-border-default);
|
|
125
|
+
background: var(--lace-color-bg-surface);
|
|
126
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.lace-chaos-panel {
|
|
2
|
+
list-style: none;
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: var(--lace-space-2);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--lace-space-1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.lace-chaos-panel__row {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
gap: var(--lace-space-2);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.lace-chaos-panel__meta {
|
|
17
|
+
color: var(--lace-color-text-muted);
|
|
18
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* ConflictBanner — shown when the tf changed under an unsaved or
|
|
2
|
+
* ungenerated working IR and needs Keep or Reload (see
|
|
3
|
+
* docs/developer/proto.md "The save/generate contract"). Keep resolves the
|
|
4
|
+
* conflict onto the current tree hash; Reload discards the working IR and
|
|
5
|
+
* re-parses the tree. */
|
|
6
|
+
|
|
7
|
+
.lace-conflict-banner {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: var(--lace-space-4);
|
|
10
|
+
left: var(--lace-space-4);
|
|
11
|
+
z-index: var(--lace-z-chrome);
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--lace-space-2);
|
|
15
|
+
padding: var(--lace-space-1) var(--lace-space-3);
|
|
16
|
+
background: var(--lace-toast-error-bg);
|
|
17
|
+
border: 1px solid var(--lace-toast-error-border);
|
|
18
|
+
border-radius: var(--lace-radius-md);
|
|
19
|
+
color: var(--lace-color-text-danger-soft);
|
|
20
|
+
font-size: var(--lace-font-size-md);
|
|
21
|
+
line-height: var(--lace-line-height-tight);
|
|
22
|
+
box-shadow: var(--lace-shadow-sm);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.lace-conflict-banner__message {
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.lace-conflict-banner__conflict-keep,
|
|
30
|
+
.lace-conflict-banner__conflict-reload {
|
|
31
|
+
padding: 1px 7px;
|
|
32
|
+
background: var(--lace-color-red-alpha-12);
|
|
33
|
+
border: 1px solid var(--lace-color-red-alpha-30);
|
|
34
|
+
border-radius: var(--lace-radius-sm);
|
|
35
|
+
color: var(--lace-color-text-danger-soft);
|
|
36
|
+
font-size: var(--lace-font-size-sm);
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
transition: background var(--lace-duration-fast) var(--lace-easing-standard);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.lace-conflict-banner__conflict-keep:hover,
|
|
42
|
+
.lace-conflict-banner__conflict-reload:hover {
|
|
43
|
+
background: var(--lace-color-red-alpha-20);
|
|
44
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.lace-diagnostics-panel {
|
|
2
|
+
list-style: none;
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: var(--lace-space-2);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--lace-space-1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.lace-diagnostics-panel__message {
|
|
11
|
+
font: inherit;
|
|
12
|
+
color: inherit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.lace-diagnostics-panel__action {
|
|
16
|
+
background: none;
|
|
17
|
+
border: none;
|
|
18
|
+
padding: 0;
|
|
19
|
+
margin-left: var(--lace-space-2);
|
|
20
|
+
text-align: left;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
font: inherit;
|
|
23
|
+
color: inherit;
|
|
24
|
+
text-decoration: underline;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.lace-diagnostics-panel__row--error .lace-diagnostics-panel__message {
|
|
28
|
+
color: var(--lace-color-text-danger);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lace-diagnostics-panel__row--warning .lace-diagnostics-panel__message {
|
|
32
|
+
color: var(--lace-color-warning-fg);
|
|
33
|
+
}
|
|
@@ -110,3 +110,41 @@
|
|
|
110
110
|
color: var(--lace-color-neutral-100-alpha-85);
|
|
111
111
|
font-size: var(--lace-font-size-xs);
|
|
112
112
|
}
|
|
113
|
+
|
|
114
|
+
/* Same chip shape ModuleNode's own badge row uses (ModuleNode.css) — a
|
|
115
|
+
diagnostic addressed to this group's own scope, not any member's. */
|
|
116
|
+
.lace-group-node__badges {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: -20px;
|
|
119
|
+
left: 0;
|
|
120
|
+
display: flex;
|
|
121
|
+
gap: 4px;
|
|
122
|
+
max-width: 100%;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.lace-group-node__badge {
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
padding: 1px 6px;
|
|
129
|
+
border-radius: var(--lace-radius-pill);
|
|
130
|
+
white-space: nowrap;
|
|
131
|
+
text-overflow: ellipsis;
|
|
132
|
+
font-size: 9px;
|
|
133
|
+
font-weight: var(--lace-font-weight-medium);
|
|
134
|
+
line-height: 1.4;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.lace-group-node__badge--neutral {
|
|
138
|
+
background: var(--lace-color-neutral-400);
|
|
139
|
+
color: var(--lace-color-neutral-900);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.lace-group-node__badge--warn {
|
|
143
|
+
background: var(--lace-color-amber-400);
|
|
144
|
+
color: var(--lace-color-neutral-900);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.lace-group-node__badge--error {
|
|
148
|
+
background: var(--lace-color-red-alpha-30);
|
|
149
|
+
color: var(--lace-color-text-danger);
|
|
150
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* The two quiet toolbar status markers (Unsaved, Not generated) — plain
|
|
2
|
+
* text, no banner chrome; the conflict and source-refused facts get the
|
|
3
|
+
* attention-grabbing banner treatment instead. */
|
|
4
|
+
|
|
5
|
+
.lace-marker {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
padding: 0 var(--lace-space-2);
|
|
9
|
+
font-size: var(--lace-font-size-sm);
|
|
10
|
+
color: var(--lace-color-text-muted);
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lace-marker--unsaved {
|
|
15
|
+
color: var(--lace-color-text-danger-soft);
|
|
16
|
+
}
|
|
@@ -103,6 +103,42 @@
|
|
|
103
103
|
line-height: 1;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
.lace-module-node__badges {
|
|
107
|
+
position: absolute;
|
|
108
|
+
top: -20px;
|
|
109
|
+
left: 0;
|
|
110
|
+
display: flex;
|
|
111
|
+
gap: 4px;
|
|
112
|
+
max-width: 100%;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.lace-module-node__badge {
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
padding: 1px 6px;
|
|
119
|
+
border-radius: var(--lace-radius-pill);
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
font-size: 9px;
|
|
123
|
+
font-weight: var(--lace-font-weight-medium);
|
|
124
|
+
line-height: 1.4;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.lace-module-node__badge--neutral {
|
|
128
|
+
background: var(--lace-color-neutral-400);
|
|
129
|
+
color: var(--lace-color-neutral-900);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.lace-module-node__badge--warn {
|
|
133
|
+
background: var(--lace-color-amber-400);
|
|
134
|
+
color: var(--lace-color-neutral-900);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.lace-module-node__badge--error {
|
|
138
|
+
background: var(--lace-color-red-alpha-30);
|
|
139
|
+
color: var(--lace-color-text-danger);
|
|
140
|
+
}
|
|
141
|
+
|
|
106
142
|
.lace-module-node__body {
|
|
107
143
|
position: relative;
|
|
108
144
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.lace-preview-panel {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--lace-space-2);
|
|
5
|
+
padding: var(--lace-space-2) var(--lace-space-3);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.lace-preview-panel__human {
|
|
9
|
+
margin: 0;
|
|
10
|
+
font-family: var(--lace-font-family-mono);
|
|
11
|
+
white-space: pre-wrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lace-preview-panel__policy,
|
|
15
|
+
.lace-preview-panel__tree-hash {
|
|
16
|
+
margin: 0;
|
|
17
|
+
color: var(--lace-color-text-muted);
|
|
18
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.lace-registry-panel {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: var(--lace-space-2);
|
|
5
|
+
padding: var(--lace-space-2);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.lace-registry-panel__list,
|
|
9
|
+
.lace-registry-panel__versions {
|
|
10
|
+
list-style: none;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: var(--lace-space-1);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.lace-registry-panel__item {
|
|
19
|
+
background: none;
|
|
20
|
+
border: none;
|
|
21
|
+
padding: 0;
|
|
22
|
+
text-align: left;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
font: inherit;
|
|
25
|
+
color: inherit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.lace-registry-panel__version {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
gap: var(--lace-space-2);
|
|
33
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* SourceRefusedBanner — shown while the open tf is refused: the engine
|
|
2
|
+
* locks every edit, undo, redo, save, generate and conflict Keep/Reload
|
|
3
|
+
* until a fix lands. ConflictBanner still renders independently over
|
|
4
|
+
* `view.conflict` — the conflict stays visible, its Keep/Reload row just
|
|
5
|
+
* isn't resolvable. */
|
|
6
|
+
|
|
7
|
+
.lace-source-refused-banner {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: var(--lace-space-4);
|
|
10
|
+
left: var(--lace-space-4);
|
|
11
|
+
z-index: var(--lace-z-chrome);
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--lace-space-2);
|
|
15
|
+
padding: var(--lace-space-2) var(--lace-space-3);
|
|
16
|
+
background: var(--lace-toast-error-bg);
|
|
17
|
+
border: 1px solid var(--lace-toast-error-border);
|
|
18
|
+
border-radius: var(--lace-radius-md);
|
|
19
|
+
color: var(--lace-color-text-danger-soft);
|
|
20
|
+
font-size: var(--lace-font-size-md);
|
|
21
|
+
line-height: var(--lace-line-height-tight);
|
|
22
|
+
box-shadow: var(--lace-shadow-sm);
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* StackPicker — the toolbar's stack switcher. */
|
|
2
|
+
|
|
3
|
+
.lace-stack-picker {
|
|
4
|
+
font-size: var(--lace-font-size-md);
|
|
5
|
+
color: var(--lace-color-text-primary);
|
|
6
|
+
background: var(--lace-color-bg-input);
|
|
7
|
+
border: 1px solid var(--lace-color-border-input);
|
|
8
|
+
border-radius: var(--lace-radius-sm);
|
|
9
|
+
padding: 1px 7px;
|
|
10
|
+
}
|