forest-cli 5.24.4 → 5.25.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/dist/services/dumpers/agent-nodejs.d.ts.map +1 -1
- package/dist/services/dumpers/agent-nodejs.js +13 -5
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/back.hbs +1 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/back.js +154 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/component.js +154 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.css +416 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.hbs +99 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/data-map.js +243 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.css +278 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.hbs +38 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/demo-guide.js +353 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-activity.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-agent.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-ai.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-charts.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-collections.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-custom-components.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-inboxes.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-roles.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-segments.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-smart-actions.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-workflows.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature-workspaces.js +124 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature.css +1109 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/feature.hbs +286 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/go-to.hbs +4 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/go-to.js +217 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.css +580 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.hbs +80 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/kyc-flow.js +49 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/run-action.hbs +3 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/run-action.js +96 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.css +131 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.hbs +4 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/select-first.js +205 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/senior-guide.hbs +39 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/senior-guide.js +189 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/style.css +372 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/components/hub/template.hbs +83 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/forest-layout.json +52897 -8498
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/203696b1-e9ca-45f3-9bd3-5bc6fb4fd8c3.bpmn +161 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/2bc0c0ff-486c-44b1-ae31-3de204f7b14f.bpmn +107 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/4b37a274-117f-4c2d-96ad-21d1be4d0bc7.bpmn +159 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/56ff9484-8308-4971-9e02-3de5eea2e240.bpmn +67 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/619e3e88-4a9c-4f02-84fb-732c16f9b5bf.bpmn +43 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/76516b9e-aac0-4f7b-9794-8f86c529531b.bpmn +75 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/86b4fc1e-b10a-4906-9fd1-e601eaad83c0.bpmn +81 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/92b119e5-c908-48d1-9a0d-23173c57bd5b.bpmn +47 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/92c02240-9c8a-49e7-9993-077af3e1ddcc.bpmn +77 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/aac25aee-f626-40a8-9459-d2a933fb8446.bpmn +105 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/b269dbff-5fde-401f-a05b-76a7dac79387.bpmn +75 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d8b208a9-fc71-4005-acb9-ba5fedd2499f.bpmn +73 -0
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/e3abab67-7bc6-4a44-9848-c7f83a55a56d.bpmn +71 -0
- package/dist/services/dumpers/templates/agent-nodejs/javascript/index.hbs +45 -4
- package/dist/services/dumpers/templates/agent-nodejs/typescript/Dockerfile.hbs +1 -1
- package/dist/services/dumpers/templates/agent-nodejs/typescript/index.hbs +45 -4
- package/oclif.manifest.json +136 -136
- package/package.json +6 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/30d581e3-294e-4790-b723-0f16509ecae0.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/52e0acb4-6064-472a-9823-cdfd7fa7a3ab.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/71f692b4-fe4f-476d-8251-fdc5af1ec51e.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/9d564d80-19d1-4ce4-bb4b-aaf41e7ef5b6.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/c8ab4b5d-20df-4d28-9160-0d4376282c90.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d0289f67-2c9e-4c69-b1ee-ecbbace841b3.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/d07aa5ee-9a49-4916-a1b5-1f953bfe9a8e.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/e25c6237-b882-498b-9655-b16b30131b10.bpmn +0 -2
- package/dist/services/dumpers/templates/agent-nodejs/common/workflows/f01b9e61-4156-47b8-b6a1-5c90adbcd2ba.bpmn +0 -2
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
/* Data map (data-map.js), in Forest's brand. Forest adds this file to the page as a global style
|
|
2
|
+
element: every class starts with dm. Sizes are in em of the root, whose font size the component
|
|
3
|
+
sets from its box. */
|
|
4
|
+
.dm {
|
|
5
|
+
--dm-dark: #262d1e;
|
|
6
|
+
--dm-darker: #1a2208;
|
|
7
|
+
--dm-green: #3f5b1e;
|
|
8
|
+
--dm-pop: #ddf327;
|
|
9
|
+
--dm-lime: #e3f68b;
|
|
10
|
+
--dm-tint: #f2f8d4;
|
|
11
|
+
--dm-canvas: #f6f5ee;
|
|
12
|
+
--dm-zone: #ece9e0;
|
|
13
|
+
--dm-card: #e9e6df;
|
|
14
|
+
--dm-label: #686c62;
|
|
15
|
+
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 1em;
|
|
20
|
+
height: 100%;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
padding: 1.2em 1.4em;
|
|
23
|
+
border-radius: 14px;
|
|
24
|
+
background: var(--dm-canvas);
|
|
25
|
+
color: var(--dm-dark);
|
|
26
|
+
font-family: Matter, Inter, system-ui, sans-serif;
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
line-height: 1.35;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dm * {
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dm button {
|
|
38
|
+
border: 0;
|
|
39
|
+
background: none;
|
|
40
|
+
color: inherit;
|
|
41
|
+
font: inherit;
|
|
42
|
+
text-align: left;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Header: the words on the left, the numbers on the right. */
|
|
47
|
+
.dm .dm-head {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: flex-end;
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
gap: 2em;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dm .dm-head-text {
|
|
55
|
+
max-width: 46em;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.dm .dm-badge {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
padding: 0.2em 0.65em;
|
|
61
|
+
border-radius: 999px;
|
|
62
|
+
background: var(--dm-pop);
|
|
63
|
+
font-size: 0.72em;
|
|
64
|
+
font-weight: 700;
|
|
65
|
+
letter-spacing: 0.06em;
|
|
66
|
+
text-transform: uppercase;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.dm .dm-title {
|
|
70
|
+
margin-top: 0.3em;
|
|
71
|
+
color: var(--dm-darker);
|
|
72
|
+
font-size: 1.8em;
|
|
73
|
+
font-weight: 800;
|
|
74
|
+
line-height: 1.1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.dm .dm-intro {
|
|
78
|
+
margin-top: 0.4em;
|
|
79
|
+
color: var(--dm-label);
|
|
80
|
+
font-size: 0.9em;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.dm .dm-stats {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex: none;
|
|
86
|
+
gap: 0.6em;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.dm .dm-stat {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
min-width: 6.5em;
|
|
93
|
+
padding: 0.6em 0.8em;
|
|
94
|
+
border-radius: 10px;
|
|
95
|
+
background: var(--dm-dark);
|
|
96
|
+
color: var(--dm-pop);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dm .dm-stat-value {
|
|
100
|
+
font-size: 1.5em;
|
|
101
|
+
font-weight: 800;
|
|
102
|
+
line-height: 1.1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.dm .dm-stat-label {
|
|
106
|
+
color: #d0ee89;
|
|
107
|
+
font-size: 0.72em;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Body: the domains on the left, the selected one on the right. */
|
|
111
|
+
.dm .dm-body {
|
|
112
|
+
display: grid;
|
|
113
|
+
flex: 1;
|
|
114
|
+
grid-template-columns: 15em minmax(0, 1fr);
|
|
115
|
+
gap: 1em;
|
|
116
|
+
min-height: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.dm .dm-domains {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: column;
|
|
122
|
+
gap: 0.3em;
|
|
123
|
+
min-height: 0;
|
|
124
|
+
overflow-y: auto;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.dm .dm-domain {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
gap: 0.6em;
|
|
131
|
+
padding: 0.45em 0.6em;
|
|
132
|
+
border-left: 0.22em solid transparent;
|
|
133
|
+
border-radius: 8px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.dm .dm-domain:hover {
|
|
137
|
+
background: var(--dm-zone);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.dm .dm-domain--on {
|
|
141
|
+
border-left-color: var(--dm-pop);
|
|
142
|
+
background: var(--dm-dark);
|
|
143
|
+
color: #ffffff;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.dm .dm-domain--on:hover {
|
|
147
|
+
background: var(--dm-dark);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.dm .dm-domain-icon {
|
|
151
|
+
flex: none;
|
|
152
|
+
font-size: 1.2em;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.dm .dm-domain-text {
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.dm .dm-domain-name {
|
|
161
|
+
font-weight: 700;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.dm .dm-domain-meta {
|
|
165
|
+
color: var(--dm-label);
|
|
166
|
+
font-size: 0.75em;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.dm .dm-domain--on .dm-domain-meta {
|
|
170
|
+
color: #d0ee89;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.dm .dm-main {
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-direction: column;
|
|
176
|
+
gap: 0.8em;
|
|
177
|
+
min-height: 0;
|
|
178
|
+
overflow-y: auto;
|
|
179
|
+
padding: 1em 1.2em;
|
|
180
|
+
border-radius: 12px;
|
|
181
|
+
background: #ffffff;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.dm .dm-h2 {
|
|
185
|
+
font-size: 1.35em;
|
|
186
|
+
font-weight: 800;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.dm .dm-blurb {
|
|
190
|
+
color: var(--dm-label);
|
|
191
|
+
font-size: 0.9em;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* The domain's map: its tables on an ellipse, a line per link. */
|
|
195
|
+
.dm .dm-map {
|
|
196
|
+
position: relative;
|
|
197
|
+
flex: none;
|
|
198
|
+
padding: 0.6em;
|
|
199
|
+
border-radius: 10px;
|
|
200
|
+
background: var(--dm-canvas);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.dm .dm-svg {
|
|
204
|
+
display: block;
|
|
205
|
+
width: 100%;
|
|
206
|
+
max-height: 14em;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.dm .dm-line {
|
|
210
|
+
stroke: #b4b2a6;
|
|
211
|
+
stroke-width: 2;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.dm .dm-node {
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.dm .dm-node rect {
|
|
219
|
+
fill: #ffffff;
|
|
220
|
+
stroke: var(--dm-dark);
|
|
221
|
+
stroke-width: 2;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.dm .dm-node text {
|
|
225
|
+
fill: var(--dm-dark);
|
|
226
|
+
font-size: 13px;
|
|
227
|
+
font-weight: 700;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.dm .dm-node:hover rect,
|
|
231
|
+
.dm .dm-node--on rect {
|
|
232
|
+
fill: var(--dm-pop);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.dm .dm-outside {
|
|
236
|
+
position: absolute;
|
|
237
|
+
right: 0.8em;
|
|
238
|
+
bottom: 0.5em;
|
|
239
|
+
color: var(--dm-label);
|
|
240
|
+
font-size: 0.72em;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* The domain's tables as cards. */
|
|
244
|
+
.dm .dm-cards {
|
|
245
|
+
display: grid;
|
|
246
|
+
grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
|
|
247
|
+
gap: 0.6em;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.dm .dm-card {
|
|
251
|
+
display: flex;
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
gap: 0.3em;
|
|
254
|
+
padding: 0.75em 0.9em;
|
|
255
|
+
border: 1px solid var(--dm-card);
|
|
256
|
+
border-radius: 10px;
|
|
257
|
+
background: #ffffff;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.dm .dm-card:hover {
|
|
261
|
+
border-color: var(--dm-green);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.dm .dm-card--link {
|
|
265
|
+
border-style: dashed;
|
|
266
|
+
background: var(--dm-canvas);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.dm .dm-card-head {
|
|
270
|
+
display: flex;
|
|
271
|
+
align-items: baseline;
|
|
272
|
+
justify-content: space-between;
|
|
273
|
+
gap: 0.6em;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.dm .dm-card-name {
|
|
277
|
+
font-weight: 800;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.dm .dm-rows {
|
|
281
|
+
flex: none;
|
|
282
|
+
padding: 0.1em 0.5em;
|
|
283
|
+
border-radius: 999px;
|
|
284
|
+
background: var(--dm-tint);
|
|
285
|
+
color: var(--dm-green);
|
|
286
|
+
font-size: 0.72em;
|
|
287
|
+
font-weight: 700;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.dm .dm-card-purpose {
|
|
291
|
+
color: var(--dm-label);
|
|
292
|
+
font-size: 0.85em;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.dm .dm-card-meta {
|
|
296
|
+
margin-top: auto;
|
|
297
|
+
color: var(--dm-green);
|
|
298
|
+
font-size: 0.75em;
|
|
299
|
+
font-weight: 700;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/* A table, in detail. */
|
|
303
|
+
.dm .dm-detail {
|
|
304
|
+
display: flex;
|
|
305
|
+
flex-direction: column;
|
|
306
|
+
gap: 0.8em;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.dm .dm-detail-head {
|
|
310
|
+
display: flex;
|
|
311
|
+
flex-direction: column;
|
|
312
|
+
align-items: flex-start;
|
|
313
|
+
gap: 0.35em;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.dm .dm-back {
|
|
317
|
+
color: var(--dm-green);
|
|
318
|
+
font-size: 0.8em;
|
|
319
|
+
font-weight: 700;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.dm .dm-h3 {
|
|
323
|
+
display: flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
gap: 0.5em;
|
|
326
|
+
font-size: 1.3em;
|
|
327
|
+
font-weight: 800;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.dm .dm-open {
|
|
331
|
+
padding: 0.45em 1em;
|
|
332
|
+
border-radius: 999px;
|
|
333
|
+
background: var(--dm-dark) !important;
|
|
334
|
+
color: var(--dm-pop) !important;
|
|
335
|
+
font-size: 0.85em !important;
|
|
336
|
+
font-weight: 700;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.dm .dm-open:hover {
|
|
340
|
+
background: var(--dm-green) !important;
|
|
341
|
+
color: #ffffff !important;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.dm .dm-detail-cols {
|
|
345
|
+
display: grid;
|
|
346
|
+
grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
|
|
347
|
+
gap: 1.4em;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.dm .dm-h4 {
|
|
351
|
+
margin: 0.6em 0 0.35em;
|
|
352
|
+
font-size: 0.9em;
|
|
353
|
+
font-weight: 800;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.dm .dm-list {
|
|
357
|
+
list-style: none;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.dm .dm-action {
|
|
361
|
+
display: flex;
|
|
362
|
+
justify-content: space-between;
|
|
363
|
+
gap: 0.8em;
|
|
364
|
+
padding: 0.35em 0;
|
|
365
|
+
border-bottom: 1px solid var(--dm-zone);
|
|
366
|
+
font-size: 0.85em;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.dm .dm-action span {
|
|
370
|
+
flex: none;
|
|
371
|
+
color: var(--dm-label);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.dm .dm-chips {
|
|
375
|
+
display: flex;
|
|
376
|
+
flex-wrap: wrap;
|
|
377
|
+
gap: 0.35em;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.dm .dm-chip {
|
|
381
|
+
padding: 0.2em 0.6em;
|
|
382
|
+
border-radius: 999px;
|
|
383
|
+
background: var(--dm-zone);
|
|
384
|
+
font-size: 0.78em;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.dm .dm-chip em {
|
|
388
|
+
color: var(--dm-label);
|
|
389
|
+
font-style: normal;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.dm .dm-chip--link {
|
|
393
|
+
background: var(--dm-tint);
|
|
394
|
+
color: var(--dm-green);
|
|
395
|
+
font-weight: 700;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.dm .dm-chip--link:hover {
|
|
399
|
+
background: var(--dm-pop);
|
|
400
|
+
color: var(--dm-dark);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.dm .dm-chip--computed {
|
|
404
|
+
background: #ffffff;
|
|
405
|
+
outline: 1px dashed var(--dm-card);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.dm .dm-note {
|
|
409
|
+
margin-bottom: 0.4em;
|
|
410
|
+
color: var(--dm-label);
|
|
411
|
+
font-size: 0.75em;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.dm .dm-loading {
|
|
415
|
+
color: var(--dm-label);
|
|
416
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<div class="dm" style={{this.rootStyle}}>
|
|
2
|
+
<header class="dm-head">
|
|
3
|
+
<div class="dm-head-text">
|
|
4
|
+
<span class="dm-badge">Data model</span>
|
|
5
|
+
<h1 class="dm-title">How this bank’s data fits together</h1>
|
|
6
|
+
<p class="dm-intro">Everything Forest shows is read live from the bank’s own database, through its agent: Forest sees the shape of the tables, never the rows. Tables are grouped by domain; Smart Actions are the operations the teams run on them.</p>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="dm-stats">
|
|
9
|
+
{{#each this.stats as |s|}}
|
|
10
|
+
<div class="dm-stat"><span class="dm-stat-value">{{s.value}}</span><span class="dm-stat-label">{{s.label}}</span></div>
|
|
11
|
+
{{/each}}
|
|
12
|
+
</div>
|
|
13
|
+
</header>
|
|
14
|
+
|
|
15
|
+
{{#if this.map}}
|
|
16
|
+
<div class="dm-body">
|
|
17
|
+
<nav class="dm-domains">
|
|
18
|
+
{{#each this.domains as |d|}}
|
|
19
|
+
<button type="button" class={{d.className}} {{on "click" (fn this.pickDomain d.index)}}>
|
|
20
|
+
<span class="dm-domain-icon">{{d.icon}}</span>
|
|
21
|
+
<span class="dm-domain-text"><span class="dm-domain-name">{{d.name}}</span><span class="dm-domain-meta">{{d.meta}}</span></span>
|
|
22
|
+
</button>
|
|
23
|
+
{{/each}}
|
|
24
|
+
</nav>
|
|
25
|
+
|
|
26
|
+
<section class="dm-main">
|
|
27
|
+
<div class="dm-domain-head">
|
|
28
|
+
<h2 class="dm-h2">{{this.domain.icon}} {{this.domain.name}}</h2>
|
|
29
|
+
<p class="dm-blurb">{{this.domain.blurb}}</p>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div class="dm-map">
|
|
33
|
+
<svg viewBox={{this.mapView.viewBox}} class="dm-svg" role="img" aria-label="How the domain’s tables link">
|
|
34
|
+
{{#each this.mapView.lines as |l|}}
|
|
35
|
+
<line x1={{l.x1}} y1={{l.y1}} x2={{l.x2}} y2={{l.y2}} class="dm-line"></line>
|
|
36
|
+
{{/each}}
|
|
37
|
+
{{#each this.mapView.nodes as |n|}}
|
|
38
|
+
<g class={{n.className}} {{on "click" (fn this.pickTable n.name)}}>
|
|
39
|
+
<rect x={{n.x}} y={{n.y}} width={{n.width}} height={{n.height}} rx="8"></rect>
|
|
40
|
+
<text x={{n.tx}} y={{n.ty}} text-anchor="middle">{{n.label}}</text>
|
|
41
|
+
</g>
|
|
42
|
+
{{/each}}
|
|
43
|
+
</svg>
|
|
44
|
+
{{#if this.mapView.outside}}<span class="dm-outside">↔ linked to {{this.mapView.outside}} tables in other domains</span>{{/if}}
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
{{#if this.table}}
|
|
48
|
+
<div class="dm-detail">
|
|
49
|
+
<div class="dm-detail-head">
|
|
50
|
+
<button type="button" class="dm-back" {{on "click" this.closeTable}}>← All {{this.domain.name}} tables</button>
|
|
51
|
+
<h3 class="dm-h3">{{this.table.label}} <span class="dm-rows">{{this.table.rowsText}} rows</span></h3>
|
|
52
|
+
<p class="dm-blurb">{{this.table.purpose}}</p>
|
|
53
|
+
<button type="button" class="dm-open" {{on "click" (fn this.openInForest this.table.name)}}>Open in Forest →</button>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="dm-detail-cols">
|
|
56
|
+
<div class="dm-col">
|
|
57
|
+
{{#if this.table.belongsTo}}
|
|
58
|
+
<h4 class="dm-h4">Belongs to</h4>
|
|
59
|
+
<div class="dm-chips">{{#each this.table.belongsTo as |l|}}<button type="button" class="dm-chip dm-chip--link" {{on "click" (fn this.pickTable l.table)}}>{{l.label}}</button>{{/each}}</div>
|
|
60
|
+
{{/if}}
|
|
61
|
+
{{#if this.table.hasMany}}
|
|
62
|
+
<h4 class="dm-h4">Has many</h4>
|
|
63
|
+
<div class="dm-chips">{{#each this.table.hasMany as |l|}}<button type="button" class="dm-chip dm-chip--link" {{on "click" (fn this.pickTable l.table)}}>{{l.label}}</button>{{/each}}</div>
|
|
64
|
+
{{/if}}
|
|
65
|
+
{{#if this.table.actions}}
|
|
66
|
+
<h4 class="dm-h4">⚡ Smart Actions</h4>
|
|
67
|
+
<ul class="dm-list">
|
|
68
|
+
{{#each this.table.actions as |a|}}<li class="dm-action"><strong>{{a.name}}</strong><span>on {{a.on}}</span></li>{{/each}}
|
|
69
|
+
</ul>
|
|
70
|
+
{{/if}}
|
|
71
|
+
</div>
|
|
72
|
+
<div class="dm-col">
|
|
73
|
+
<h4 class="dm-h4">Fields in the database</h4>
|
|
74
|
+
<div class="dm-chips">{{#each this.table.fields as |f|}}<span class="dm-chip">{{f.name}} <em>{{f.typeText}}</em></span>{{/each}}</div>
|
|
75
|
+
{{#if this.table.computed}}
|
|
76
|
+
<h4 class="dm-h4">Computed by the agent, for the desks</h4>
|
|
77
|
+
<p class="dm-note">Added in the agent’s code, with no change to the database: the case file, the checks, the risk lines.</p>
|
|
78
|
+
<div class="dm-chips">{{#each this.table.computed as |f|}}<span class="dm-chip dm-chip--computed">{{f.name}}</span>{{/each}}</div>
|
|
79
|
+
{{/if}}
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
{{else}}
|
|
84
|
+
<div class="dm-cards">
|
|
85
|
+
{{#each this.cards as |t|}}
|
|
86
|
+
<button type="button" class={{t.className}} {{on "click" (fn this.pickTable t.name)}}>
|
|
87
|
+
<span class="dm-card-head"><span class="dm-card-name">{{t.label}}</span><span class="dm-rows">{{t.rowsText}}</span></span>
|
|
88
|
+
<span class="dm-card-purpose">{{t.purpose}}</span>
|
|
89
|
+
<span class="dm-card-meta">{{t.meta}}</span>
|
|
90
|
+
</button>
|
|
91
|
+
{{/each}}
|
|
92
|
+
</div>
|
|
93
|
+
{{/if}}
|
|
94
|
+
</section>
|
|
95
|
+
</div>
|
|
96
|
+
{{else}}
|
|
97
|
+
<p class="dm-loading">{{if this.failed "The agent does not answer: is it running?" "Reading the bank’s data model…"}}</p>
|
|
98
|
+
{{/if}}
|
|
99
|
+
</div>
|