devcontour-harness-ui 0.0.0-stage → 0.1.0-alpha.2
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/LICENSE +21 -0
- package/README.md +143 -2
- package/dist/app/assets/index-Det9VYJC.css +1 -0
- package/dist/app/assets/index-veveke8K.js +9 -0
- package/dist/app/index.html +13 -0
- package/dist/demo/ru/view.sample.json +483 -0
- package/dist/demo/ru/work.accepted.sample.json +187 -0
- package/dist/demo/ru/work.sample.json +171 -0
- package/dist/demo/view.sample.json +483 -0
- package/dist/demo/work.accepted.sample.json +187 -0
- package/dist/demo/work.sample.json +171 -0
- package/dist/lib/cli.d.ts +2 -0
- package/dist/lib/cli.js +160 -0
- package/dist/lib/components/Activity.d.ts +13 -0
- package/dist/lib/components/Activity.js +19 -0
- package/dist/lib/components/Decisions.d.ts +6 -0
- package/dist/lib/components/Decisions.js +19 -0
- package/dist/lib/components/Health.d.ts +8 -0
- package/dist/lib/components/Health.js +24 -0
- package/dist/lib/components/History.d.ts +32 -0
- package/dist/lib/components/History.js +129 -0
- package/dist/lib/components/Overview.d.ts +19 -0
- package/dist/lib/components/Overview.js +54 -0
- package/dist/lib/components/Reviews.d.ts +23 -0
- package/dist/lib/components/Reviews.js +22 -0
- package/dist/lib/components/Settings.d.ts +21 -0
- package/dist/lib/components/Settings.js +77 -0
- package/dist/lib/components/WorkDetail.d.ts +18 -0
- package/dist/lib/components/WorkDetail.js +96 -0
- package/dist/lib/components/common.d.ts +71 -0
- package/dist/lib/components/common.js +85 -0
- package/dist/lib/index.d.ts +10 -0
- package/dist/lib/index.js +12 -0
- package/dist/lib/model/compat.d.ts +36 -0
- package/dist/lib/model/compat.js +365 -0
- package/dist/lib/model/dict.d.ts +387 -0
- package/dist/lib/model/dict.js +1119 -0
- package/dist/lib/model/format.d.ts +34 -0
- package/dist/lib/model/format.js +88 -0
- package/dist/lib/model/i18n.d.ts +44 -0
- package/dist/lib/model/i18n.js +109 -0
- package/dist/lib/model/index.d.ts +6 -0
- package/dist/lib/model/index.js +8 -0
- package/dist/lib/model/source.d.ts +16 -0
- package/dist/lib/model/source.js +57 -0
- package/dist/lib/model/view.d.ts +474 -0
- package/dist/lib/model/view.js +10 -0
- package/dist/lib/server/harness.d.ts +44 -0
- package/dist/lib/server/harness.js +172 -0
- package/dist/lib/server/serve.d.ts +62 -0
- package/dist/lib/server/serve.js +302 -0
- package/dist/lib/styles.css +485 -0
- package/docs/design.md +1689 -0
- package/docs/harness-proposals.md +560 -0
- package/docs/release-notes/0.1.0-alpha.1.md +96 -0
- package/docs/release-notes/0.1.0-alpha.2.md +218 -0
- package/package.json +75 -4
- package/skills/harness-ui/SKILL.md +246 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
/** Russian plural form: 1 вопрос, 2 вопроса, 5 вопросов. */
|
|
2
|
+
export declare function ruPlural(n: number, forms: readonly [string, string, string]): string;
|
|
3
|
+
/** Glossary entries (design §12): the "what it means" disclosures. */
|
|
4
|
+
export type GlossaryId = 'lead' | 'writer' | 'review' | 'gates' | 'stage' | 'recheck' | 'attempt' | 'neutral' | 'integration' | 'accepted' | 'drift' | 'escalation' | 'temporary' | 'technical' | 'lowerBound' | 'unknown' | 'controller' | 'stalled' | 'waitsQueue';
|
|
5
|
+
/** A label table: known codes map to words; any other code is shown as is. */
|
|
6
|
+
type Labels = Record<string, string>;
|
|
7
|
+
declare const ru: {
|
|
8
|
+
langName: string;
|
|
9
|
+
whatItMeans: string;
|
|
10
|
+
glossary: Record<GlossaryId, {
|
|
11
|
+
term: string;
|
|
12
|
+
meaning: string;
|
|
13
|
+
}>;
|
|
14
|
+
unknown: string;
|
|
15
|
+
notChecked: string;
|
|
16
|
+
noData: string;
|
|
17
|
+
noDataInHarness: string;
|
|
18
|
+
none: string;
|
|
19
|
+
yes: string;
|
|
20
|
+
no: string;
|
|
21
|
+
byDefault: string;
|
|
22
|
+
listClipped: (n: number) => string;
|
|
23
|
+
nav: {
|
|
24
|
+
label: string;
|
|
25
|
+
overview: string;
|
|
26
|
+
reviews: string;
|
|
27
|
+
decisions: string;
|
|
28
|
+
activity: string;
|
|
29
|
+
settings: string;
|
|
30
|
+
history: string;
|
|
31
|
+
health: string;
|
|
32
|
+
back: string;
|
|
33
|
+
language: string;
|
|
34
|
+
};
|
|
35
|
+
app: {
|
|
36
|
+
title: string;
|
|
37
|
+
loading: string;
|
|
38
|
+
loadingWork: string;
|
|
39
|
+
empty: string;
|
|
40
|
+
connectionLost: (e: string) => string;
|
|
41
|
+
newerRevision: string;
|
|
42
|
+
incompatible: string;
|
|
43
|
+
notFound: string;
|
|
44
|
+
readOnly: string;
|
|
45
|
+
liveQuestions: (n: number, clipped: boolean) => string;
|
|
46
|
+
refusal: Labels;
|
|
47
|
+
details: string;
|
|
48
|
+
skip: string;
|
|
49
|
+
};
|
|
50
|
+
usdUnknown: string;
|
|
51
|
+
usdOf: (spent: string, limit: string) => string;
|
|
52
|
+
ofLimit: (limit: string) => string;
|
|
53
|
+
duration: (h: number, m: number, s: number) => string;
|
|
54
|
+
hours: (h: number) => string;
|
|
55
|
+
days: (d: number) => string;
|
|
56
|
+
typicalRange: (lo: string, hi: string) => string;
|
|
57
|
+
calls: (n: number) => string;
|
|
58
|
+
stage: Labels;
|
|
59
|
+
actor: Labels;
|
|
60
|
+
liveness: Labels;
|
|
61
|
+
bucket: Labels;
|
|
62
|
+
header: {
|
|
63
|
+
paused: string;
|
|
64
|
+
running: (n: number) => string;
|
|
65
|
+
queued: (n: number) => string;
|
|
66
|
+
stopped: (n: number) => string;
|
|
67
|
+
answer: (n: number) => string;
|
|
68
|
+
decide: (n: number) => string;
|
|
69
|
+
and: string;
|
|
70
|
+
maybeMore: string;
|
|
71
|
+
waiting: (n: number) => string;
|
|
72
|
+
unknownClipped: string;
|
|
73
|
+
nothing: string;
|
|
74
|
+
now: (parts: string) => string;
|
|
75
|
+
idle: string;
|
|
76
|
+
fromYou: (what: string) => string;
|
|
77
|
+
};
|
|
78
|
+
footer: (at: string | undefined) => string;
|
|
79
|
+
target: {
|
|
80
|
+
pushed: string;
|
|
81
|
+
notPushed: string;
|
|
82
|
+
unknown: (why: string) => string;
|
|
83
|
+
noTarget: (sha: string) => string;
|
|
84
|
+
noLocation: string;
|
|
85
|
+
notYet: string;
|
|
86
|
+
seeChecks: string;
|
|
87
|
+
short: Labels;
|
|
88
|
+
shortUnknown: string;
|
|
89
|
+
};
|
|
90
|
+
question: {
|
|
91
|
+
youOrLead: string;
|
|
92
|
+
onlyYou: string;
|
|
93
|
+
answeredNotApplied: string;
|
|
94
|
+
carryStale: string;
|
|
95
|
+
appliedAwaitingClaim: string;
|
|
96
|
+
delivered: string;
|
|
97
|
+
unknownState: (s: string) => string;
|
|
98
|
+
severity: (n: number) => string;
|
|
99
|
+
whatChanges: string;
|
|
100
|
+
full: string;
|
|
101
|
+
version: (n: number) => string;
|
|
102
|
+
answeredBy: (who: string) => string;
|
|
103
|
+
};
|
|
104
|
+
overview: {
|
|
105
|
+
label: string;
|
|
106
|
+
queueRunning: string;
|
|
107
|
+
queuePaused: (reason: string) => string;
|
|
108
|
+
queueWho: (who: string, action: string) => string;
|
|
109
|
+
acceptedOf: (done: number, total: number) => string;
|
|
110
|
+
plan: string;
|
|
111
|
+
planClipped: string;
|
|
112
|
+
after: (ids: string) => string;
|
|
113
|
+
needsYou: (n: number) => string;
|
|
114
|
+
noQuestions: string;
|
|
115
|
+
otherQuestions: string;
|
|
116
|
+
now: (running: number, slots: number) => string;
|
|
117
|
+
nothingRunning: string;
|
|
118
|
+
runningUnlisted: (n: number) => string;
|
|
119
|
+
attemptsShort: (used: number, max: number, left: number) => string;
|
|
120
|
+
lastStopped: (plain: string) => string;
|
|
121
|
+
decisions: (n: number) => string;
|
|
122
|
+
noDecisions: string;
|
|
123
|
+
whoActs: (who: string, action: string) => string;
|
|
124
|
+
waiting: string;
|
|
125
|
+
noWaiting: string;
|
|
126
|
+
accepted: (n: number) => string;
|
|
127
|
+
acceptedUnlisted: (n: number, clipped: boolean) => string;
|
|
128
|
+
budget: string;
|
|
129
|
+
noBudget: string;
|
|
130
|
+
budgetUnknown: string;
|
|
131
|
+
spent: (s: string) => string;
|
|
132
|
+
controller: string;
|
|
133
|
+
controllerPresent: string;
|
|
134
|
+
controllerAbsent: string;
|
|
135
|
+
stalled: string;
|
|
136
|
+
drift: string;
|
|
137
|
+
driftNotChecked: (n: number) => string;
|
|
138
|
+
warnings: string;
|
|
139
|
+
};
|
|
140
|
+
budgetScope: Labels;
|
|
141
|
+
budgetState: Labels;
|
|
142
|
+
blocker: {
|
|
143
|
+
nobody: string;
|
|
144
|
+
whoActs: (who: string) => string;
|
|
145
|
+
noReason: (code: string) => string;
|
|
146
|
+
stoppedNoReason: string;
|
|
147
|
+
};
|
|
148
|
+
work: {
|
|
149
|
+
label: (id: string) => string;
|
|
150
|
+
now: string;
|
|
151
|
+
since: (clock: string, elapsed: string) => string;
|
|
152
|
+
next: (stages: string) => string;
|
|
153
|
+
nothingNext: string;
|
|
154
|
+
needs: (who: string, action: string) => string;
|
|
155
|
+
stages: string;
|
|
156
|
+
stagePassed: string;
|
|
157
|
+
stageFailed: string;
|
|
158
|
+
stageCurrent: string;
|
|
159
|
+
stageAhead: string;
|
|
160
|
+
stageNoOutcome: string;
|
|
161
|
+
whyRetry: string;
|
|
162
|
+
attemptsLine: (used: number, max: number, left: number) => string;
|
|
163
|
+
lastFailure: (n: number, plain: string) => string;
|
|
164
|
+
failureGroup: (g: string) => string;
|
|
165
|
+
failureUnknown: string;
|
|
166
|
+
rechecks: (n: number) => string;
|
|
167
|
+
neutral: (used: number, max: number) => string;
|
|
168
|
+
interrupted: (n: number) => string;
|
|
169
|
+
attempts: string;
|
|
170
|
+
noAttempts: string;
|
|
171
|
+
attemptRow: (n: number) => string;
|
|
172
|
+
attemptStatus: Labels;
|
|
173
|
+
interruptedRow: string;
|
|
174
|
+
startedAt: (at: string) => string;
|
|
175
|
+
finishedAt: (at: string) => string;
|
|
176
|
+
whatChecked: string;
|
|
177
|
+
noVerification: string;
|
|
178
|
+
emptyVerification: string;
|
|
179
|
+
gate: string;
|
|
180
|
+
reviewRow: string;
|
|
181
|
+
phase: Labels;
|
|
182
|
+
result: Labels;
|
|
183
|
+
resultOther: (r: string) => string;
|
|
184
|
+
howExecuted: (n: number | undefined) => string;
|
|
185
|
+
howReused: (n: number | undefined) => string;
|
|
186
|
+
howRead: string;
|
|
187
|
+
howNotChecked: string;
|
|
188
|
+
howUnknown: (h: string) => string;
|
|
189
|
+
by: (who: string) => string;
|
|
190
|
+
byUnknown: string;
|
|
191
|
+
spend: string;
|
|
192
|
+
spendLine: (usd: string, calls: string, time: string) => string;
|
|
193
|
+
blockers: string;
|
|
194
|
+
noBlockers: string;
|
|
195
|
+
questions: string;
|
|
196
|
+
noQuestions: string;
|
|
197
|
+
reviews: string;
|
|
198
|
+
noReviews: string;
|
|
199
|
+
accepted: string;
|
|
200
|
+
drift: string;
|
|
201
|
+
noDriftAccepted: string;
|
|
202
|
+
noDriftUnknown: string;
|
|
203
|
+
notAccepted: string;
|
|
204
|
+
detailClipped: (what: string, n: number) => string;
|
|
205
|
+
detailUnavailable: string;
|
|
206
|
+
clippedName: Labels;
|
|
207
|
+
};
|
|
208
|
+
drift: {
|
|
209
|
+
row: (ref: string, from: string, to: string) => string;
|
|
210
|
+
headUnknown: string;
|
|
211
|
+
commits: (n: number) => string;
|
|
212
|
+
files: (n: number) => string;
|
|
213
|
+
diverged: string;
|
|
214
|
+
unavailable: (why: string) => string;
|
|
215
|
+
};
|
|
216
|
+
reviews: {
|
|
217
|
+
label: string;
|
|
218
|
+
none: string;
|
|
219
|
+
kind: Labels;
|
|
220
|
+
approved: string;
|
|
221
|
+
notApproved: string;
|
|
222
|
+
rounds: (used: number, max: number | null) => string;
|
|
223
|
+
open: (blocking: number, notes: number) => string;
|
|
224
|
+
acceptedLimits: (n: number) => string;
|
|
225
|
+
reviewer: (who: string) => string;
|
|
226
|
+
reviewerUnknown: string;
|
|
227
|
+
sameVendor: string;
|
|
228
|
+
findings: (n: number) => string;
|
|
229
|
+
noFindings: string;
|
|
230
|
+
finding: Labels;
|
|
231
|
+
findingRounds: (n: number) => string;
|
|
232
|
+
disposition: Labels;
|
|
233
|
+
decidedBy: (decision: string, who: string, round: number) => string;
|
|
234
|
+
escalation: (requestId: string, findings: string) => string;
|
|
235
|
+
escalationAnswered: string;
|
|
236
|
+
escalationOpen: string;
|
|
237
|
+
escalations: (n: number) => string;
|
|
238
|
+
noEscalations: string;
|
|
239
|
+
col: {
|
|
240
|
+
subject: string;
|
|
241
|
+
kind: string;
|
|
242
|
+
rounds: string;
|
|
243
|
+
open: string;
|
|
244
|
+
accepted: string;
|
|
245
|
+
reviewer: string;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
decisions: {
|
|
249
|
+
label: string;
|
|
250
|
+
missing: string;
|
|
251
|
+
temporary: (n: number) => string;
|
|
252
|
+
noTemporary: string;
|
|
253
|
+
all: (n: number) => string;
|
|
254
|
+
none: string;
|
|
255
|
+
kind: Labels;
|
|
256
|
+
by: (who: string) => string;
|
|
257
|
+
revisit: (when: string) => string;
|
|
258
|
+
revisitUnknown: string;
|
|
259
|
+
reason: (why: string) => string;
|
|
260
|
+
reasonMissing: string;
|
|
261
|
+
about: string;
|
|
262
|
+
};
|
|
263
|
+
activity: {
|
|
264
|
+
label: string;
|
|
265
|
+
missing: string;
|
|
266
|
+
none: string;
|
|
267
|
+
filterWork: string;
|
|
268
|
+
filterActor: string;
|
|
269
|
+
all: string;
|
|
270
|
+
shown: (n: number, total: number) => string;
|
|
271
|
+
};
|
|
272
|
+
settings: {
|
|
273
|
+
label: string;
|
|
274
|
+
who: string;
|
|
275
|
+
role: (role: string, repo: string | undefined) => string;
|
|
276
|
+
writer: string;
|
|
277
|
+
binding: (runtime: string, model: string | undefined, effort: string | undefined) => string;
|
|
278
|
+
approvalMode: string;
|
|
279
|
+
approval: Labels;
|
|
280
|
+
mode: string;
|
|
281
|
+
modes: Labels;
|
|
282
|
+
concurrency: string;
|
|
283
|
+
reviewers: string;
|
|
284
|
+
rule: (kind: string, scope: string) => string;
|
|
285
|
+
scope: Labels;
|
|
286
|
+
scopeOf: (scope: string, id: string | undefined) => string;
|
|
287
|
+
alternates: (list: string) => string;
|
|
288
|
+
noAlternates: string;
|
|
289
|
+
vendor: Labels;
|
|
290
|
+
effective: string;
|
|
291
|
+
effectiveFrom: (source: string) => string;
|
|
292
|
+
effectiveNone: string;
|
|
293
|
+
effectiveClipped: string;
|
|
294
|
+
anyRepo: string;
|
|
295
|
+
ask: string;
|
|
296
|
+
threshold: (n: number) => string;
|
|
297
|
+
leadMax: (n: number | undefined) => string;
|
|
298
|
+
technical: (on: boolean) => string;
|
|
299
|
+
criticalPaths: (n: number) => string;
|
|
300
|
+
limits: string;
|
|
301
|
+
maxAttempts: string;
|
|
302
|
+
repairBudget: string;
|
|
303
|
+
maxNeutral: string;
|
|
304
|
+
roundCap: string;
|
|
305
|
+
escalationRounds: string;
|
|
306
|
+
budgets: string;
|
|
307
|
+
noBudgets: string;
|
|
308
|
+
budgetRow: (scope: string, usd: string | undefined, time: string | undefined) => string;
|
|
309
|
+
onUnknown: string;
|
|
310
|
+
onUnknownValue: Labels;
|
|
311
|
+
timeouts: string;
|
|
312
|
+
runTimeout: string;
|
|
313
|
+
lease: string;
|
|
314
|
+
gateFloor: string;
|
|
315
|
+
notSet: string;
|
|
316
|
+
stall: (quiet: string, stalled: string, action: string, every: string) => string;
|
|
317
|
+
stallAction: Labels;
|
|
318
|
+
stallLabel: string;
|
|
319
|
+
lean: string;
|
|
320
|
+
leanState: Labels;
|
|
321
|
+
digest: (d: string) => string;
|
|
322
|
+
clipped: (what: string, n: number) => string;
|
|
323
|
+
};
|
|
324
|
+
history: {
|
|
325
|
+
label: string;
|
|
326
|
+
window: (from: string, to: string, bucket: string) => string;
|
|
327
|
+
load: string;
|
|
328
|
+
loadSummary: (peak: number, slots: number) => string;
|
|
329
|
+
attempts: string;
|
|
330
|
+
attemptsBucket: string;
|
|
331
|
+
attemptsSummary: (started: number, failed: number, peak: number) => string;
|
|
332
|
+
attemptsSummaryBucket: (started: number, failed: number, peak: number) => string;
|
|
333
|
+
gates: string;
|
|
334
|
+
gatesSummary: (passed: number, failed: number, reused: number) => string;
|
|
335
|
+
spend: string;
|
|
336
|
+
spendSummary: (end: string, budget: string | undefined) => string;
|
|
337
|
+
spendOpening: (s: string) => string;
|
|
338
|
+
spendOpeningUnknown: string;
|
|
339
|
+
lowerBound: string;
|
|
340
|
+
noBudgetLine: string;
|
|
341
|
+
budgetLine: (b: string) => string;
|
|
342
|
+
slotsLine: (n: number) => string;
|
|
343
|
+
started: string;
|
|
344
|
+
failed: string;
|
|
345
|
+
passed: string;
|
|
346
|
+
gateFailed: string;
|
|
347
|
+
reused: string;
|
|
348
|
+
cumulative: string;
|
|
349
|
+
peak: string;
|
|
350
|
+
time: string;
|
|
351
|
+
dataTable: (title: string) => string;
|
|
352
|
+
bucketHour: string;
|
|
353
|
+
misaligned: string;
|
|
354
|
+
};
|
|
355
|
+
health: {
|
|
356
|
+
label: string;
|
|
357
|
+
controllerOn: (until: string | undefined) => string;
|
|
358
|
+
controllerOff: string;
|
|
359
|
+
stalledNone: string;
|
|
360
|
+
stalled: (n: number) => string;
|
|
361
|
+
quiet: (n: number) => string;
|
|
362
|
+
envFailures: (n: number, window: string) => string;
|
|
363
|
+
budgets: string;
|
|
364
|
+
budgetingOff: (spent: string) => string;
|
|
365
|
+
budgetRow: (scope: string, spent: string, limit: string | undefined, state: string, time: string | undefined) => string;
|
|
366
|
+
timeOf: (spent: string, limit: string | undefined) => string;
|
|
367
|
+
spentTotal: (s: string) => string;
|
|
368
|
+
drift: string;
|
|
369
|
+
driftCounts: (drifted: number, unavailable: number, checked: number) => string;
|
|
370
|
+
warnings: string;
|
|
371
|
+
noWarnings: string;
|
|
372
|
+
versions: string;
|
|
373
|
+
harness: (p: string, v: string) => string;
|
|
374
|
+
ui: (v: string | undefined) => string;
|
|
375
|
+
view: (v: number, r: number) => string;
|
|
376
|
+
state: (n: number) => string;
|
|
377
|
+
stalledWorks: string;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
export type Dict = typeof ru;
|
|
381
|
+
export type Lang = 'ru' | 'en';
|
|
382
|
+
export declare const dictionaries: Readonly<Record<Lang, Dict>>;
|
|
383
|
+
/** The dictionary of a language; anything but `en` reads as Russian (RU-first). */
|
|
384
|
+
export declare const dict: (lang: Lang | undefined) => Dict;
|
|
385
|
+
/** A label from a table; a code this build does not know is shown as is. */
|
|
386
|
+
export declare const label: (table: Record<string, string>, code: string) => string;
|
|
387
|
+
export {};
|