@lace-cloud/canvas 0.29.0 → 0.31.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 CHANGED
@@ -72,13 +72,14 @@ const results = createResultStore();
72
72
  const runner = createActionRunner({ commands, presenter }, results);
73
73
  const apply = CORE_COMMAND_ACTIONS.find((a) => a.id === 'apply');
74
74
  if (apply) await runner.run(apply, { root, stack }, {});
75
- // results.getSnapshot().run is the run's phases, last log line and outcome.
75
+ // results.getSnapshot().run is the run's stages, last log line and outcome.
76
76
  ```
77
77
 
78
78
  A command that failed says why as data (`CommandExitError.failure`), and
79
79
  `answering(CORE_COMMAND_ACTIONS, failure)` is what a host offers on it:
80
80
  the actions that answer that failure's reason (Import the rest answers
81
- `import_residual`), each run the same way with `{ failure }` as its target.
81
+ `import_residual`, Lock providers `no_lockfile`), each run the same way with
82
+ `{ failure }` as its target.
82
83
 
83
84
  A host that mounts the canvas can own its result store too: pass it as
84
85
  `<App ports={ports} results={results} />` and call `results.bumpTick()`
@@ -17,15 +17,22 @@
17
17
  }
18
18
 
19
19
  /* A section head reads like a VS Code view section's: small capitals,
20
- * letter-spaced, muted until hovered, a chevron that turns as it opens. */
20
+ * letter-spaced, muted until hovered, a chevron that turns as it opens.
21
+ * It sticks to the top of the panel that scrolls it while its section is
22
+ * in view, so the controls on screen are always under their section's
23
+ * name, and paints the panel's surface so what scrolls under it is
24
+ * hidden. */
21
25
  .lace-accordion__header {
26
+ position: sticky;
27
+ top: 0;
28
+ z-index: 1;
22
29
  display: flex;
23
30
  align-items: center;
24
31
  gap: var(--lace-space-1);
25
32
  width: 100%;
26
33
  min-height: 32px;
27
34
  padding: var(--lace-space-1) var(--lace-space-4) var(--lace-space-1) var(--lace-space-3);
28
- background: transparent;
35
+ background: var(--lace-bg-surface);
29
36
  border: none;
30
37
  color: var(--lace-color-text-description);
31
38
  font-family: inherit;
@@ -0,0 +1,23 @@
1
+ /* A card's badge row (BadgeRow.tsx), standing on the card's top edge. A row
2
+ * wider than its card cuts its last chip's text with an ellipsis; each chip
3
+ * names its badge in full as its tooltip. */
4
+ .lace-badge-row {
5
+ position: absolute;
6
+ bottom: calc(100% + var(--lace-space-1));
7
+ left: 0;
8
+ display: flex;
9
+ gap: var(--lace-space-1);
10
+ max-width: 100%;
11
+ overflow: hidden;
12
+ }
13
+
14
+ .lace-badge-row__chip {
15
+ flex: 0 1 auto;
16
+ min-width: 0;
17
+ }
18
+
19
+ .lace-badge-row__text {
20
+ min-width: 0;
21
+ overflow: hidden;
22
+ text-overflow: ellipsis;
23
+ }
@@ -0,0 +1,40 @@
1
+ /* A card's controls: the actions placed on it, drawn in its header while it
2
+ * is hovered (CardActions.tsx), on a module card and a group card alike. */
3
+
4
+ .lace-card-action {
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ flex-shrink: 0;
9
+ width: 18px;
10
+ height: 18px;
11
+ padding: 0;
12
+ background: none;
13
+ border: none;
14
+ border-radius: var(--lace-radius-sm);
15
+ color: var(--lace-color-text-muted);
16
+ font-size: 12px;
17
+ cursor: pointer;
18
+ line-height: 1;
19
+ }
20
+
21
+ .lace-card-action .lace-canvas-icon {
22
+ stroke-width: 2;
23
+ }
24
+
25
+ .lace-card-action:hover:not([aria-disabled="true"]) {
26
+ background: var(--lace-icon-btn-hover);
27
+ color: var(--lace-color-text-primary);
28
+ }
29
+
30
+ .lace-card-action--danger:hover:not([aria-disabled="true"]) {
31
+ background: var(--lace-color-danger-bg-soft);
32
+ color: var(--lace-color-danger-fg);
33
+ }
34
+
35
+ /* A control that cannot run, or is running: inert, keeping its focus so its
36
+ * tooltip says why. */
37
+ .lace-card-action[aria-disabled="true"] {
38
+ cursor: not-allowed;
39
+ opacity: 0.4;
40
+ }
@@ -54,6 +54,17 @@
54
54
  background: var(--lace-color-danger-bg-soft);
55
55
  }
56
56
 
57
+ /* An item that cannot run yet keeps its place and its focus, so its
58
+ * tooltip can say why; it does not answer the pointer like one that can. */
59
+ .lace-ctx-menu__item[aria-disabled="true"] {
60
+ color: var(--lace-color-text-muted);
61
+ cursor: not-allowed;
62
+ }
63
+
64
+ .lace-ctx-menu__item[aria-disabled="true"]:hover {
65
+ background: transparent;
66
+ }
67
+
57
68
  .lace-ctx-menu__separator {
58
69
  height: 1px;
59
70
  margin: var(--lace-space-1) var(--lace-space-1);
@@ -8,7 +8,8 @@
8
8
  }
9
9
 
10
10
  /* A row: the severity's glyph in its tone, then the finding in the text
11
- * colour, where it is and the rule it breaks — identifiers, muted. The glyph
11
+ * colour, the file and line it is at, where it is in the graph and the rule
12
+ * it breaks — identifiers, muted. The glyph
12
13
  * holds its own column, so a row that wraps hangs under the message, never
13
14
  * under the glyph. */
14
15
  .lace-diagnostics-panel__row {
@@ -39,6 +40,7 @@
39
40
  color: var(--lace-color-text-primary);
40
41
  }
41
42
 
43
+ .lace-diagnostics-panel__file,
42
44
  .lace-diagnostics-panel__where,
43
45
  .lace-diagnostics-panel__code {
44
46
  color: var(--lace-color-text-muted);
@@ -77,8 +77,7 @@
77
77
  border-radius: var(--lace-radius-md);
78
78
  }
79
79
 
80
- .lace-group-node__collapse-btn,
81
- .lace-group-node__ungroup-btn {
80
+ .lace-group-node__collapse-btn {
82
81
  display: flex;
83
82
  flex-shrink: 0;
84
83
  align-items: center;
@@ -95,13 +94,11 @@
95
94
  line-height: 1;
96
95
  }
97
96
 
98
- .lace-group-node__collapse-btn:hover,
99
- .lace-group-node__ungroup-btn:hover {
97
+ .lace-group-node__collapse-btn:hover {
100
98
  color: var(--lace-color-text-primary);
101
99
  }
102
100
 
103
- .lace-group-node__collapse-btn .lace-canvas-icon,
104
- .lace-group-node__ungroup-btn .lace-canvas-icon {
101
+ .lace-group-node__collapse-btn .lace-canvas-icon {
105
102
  stroke-width: 2;
106
103
  }
107
104
 
@@ -157,41 +154,3 @@
157
154
  font-family: var(--lace-font-mono);
158
155
  font-size: var(--lace-font-size-xs);
159
156
  }
160
-
161
- /* Same chip shape ModuleNode's own badge row uses (ModuleNode.css) — a
162
- diagnostic addressed to this group's own scope, not any member's. */
163
- .lace-group-node__badges {
164
- position: absolute;
165
- top: -20px;
166
- left: 0;
167
- display: flex;
168
- gap: 4px;
169
- max-width: 100%;
170
- overflow: hidden;
171
- }
172
-
173
- .lace-group-node__badge {
174
- overflow: hidden;
175
- padding: 1px 6px;
176
- border-radius: var(--lace-radius-pill);
177
- white-space: nowrap;
178
- text-overflow: ellipsis;
179
- font-size: 9px;
180
- font-weight: var(--lace-font-weight-medium);
181
- line-height: 1.4;
182
- }
183
-
184
- .lace-group-node__badge--neutral {
185
- background: var(--lace-color-neutral-400);
186
- color: var(--lace-color-neutral-900);
187
- }
188
-
189
- .lace-group-node__badge--warn {
190
- background: var(--lace-color-amber-400);
191
- color: var(--lace-color-neutral-900);
192
- }
193
-
194
- .lace-group-node__badge--error {
195
- background: var(--lace-color-red-alpha-30);
196
- color: var(--lace-color-text-danger);
197
- }
@@ -25,6 +25,12 @@
25
25
  font-size: var(--lace-font-size-sm);
26
26
  }
27
27
 
28
+ /* The source the call reads, after the module's key: where the module's
29
+ * directory or address is, which the key alone does not say. */
30
+ .lace-mcp__module-source {
31
+ color: var(--lace-color-text-muted);
32
+ }
33
+
28
34
  .lace-mcp__title-eyebrow {
29
35
  color: var(--lace-color-text-muted);
30
36
  font-size: var(--lace-font-size-xs);
@@ -85,8 +85,7 @@
85
85
  color: var(--lace-color-text-primary);
86
86
  }
87
87
 
88
- .lace-module-node__collapse-btn .lace-canvas-icon,
89
- .lace-module-node__delete-btn .lace-canvas-icon {
88
+ .lace-module-node__collapse-btn .lace-canvas-icon {
90
89
  stroke-width: 2;
91
90
  }
92
91
 
@@ -129,64 +128,6 @@
129
128
  font-weight: var(--lace-font-weight-medium);
130
129
  }
131
130
 
132
- .lace-module-node__delete-btn {
133
- display: flex;
134
- align-items: center;
135
- justify-content: center;
136
- flex-shrink: 0;
137
- width: 18px;
138
- height: 18px;
139
- padding: 0;
140
- background: none;
141
- border: none;
142
- border-radius: var(--lace-radius-sm);
143
- color: var(--lace-color-text-muted);
144
- font-size: 12px;
145
- cursor: pointer;
146
- line-height: 1;
147
- }
148
-
149
- .lace-module-node__delete-btn:hover {
150
- background: var(--lace-color-danger-bg-soft);
151
- color: var(--lace-color-danger-fg);
152
- }
153
-
154
- .lace-module-node__badges {
155
- position: absolute;
156
- top: -20px;
157
- left: 0;
158
- display: flex;
159
- gap: 4px;
160
- max-width: 100%;
161
- overflow: hidden;
162
- }
163
-
164
- .lace-module-node__badge {
165
- overflow: hidden;
166
- padding: 1px 6px;
167
- border-radius: var(--lace-radius-pill);
168
- white-space: nowrap;
169
- text-overflow: ellipsis;
170
- font-size: 9px;
171
- font-weight: var(--lace-font-weight-medium);
172
- line-height: 1.4;
173
- }
174
-
175
- .lace-module-node__badge--neutral {
176
- background: var(--lace-color-neutral-400);
177
- color: var(--lace-color-neutral-900);
178
- }
179
-
180
- .lace-module-node__badge--warn {
181
- background: var(--lace-color-amber-400);
182
- color: var(--lace-color-neutral-900);
183
- }
184
-
185
- .lace-module-node__badge--error {
186
- background: var(--lace-color-red-alpha-30);
187
- color: var(--lace-color-text-danger);
188
- }
189
-
190
131
  .lace-module-node__body {
191
132
  position: relative;
192
133
  }