@operad-io/tui 0.2.0 → 0.3.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/package.json +2 -2
- package/src/client.ts +2 -1
- package/src/state.ts +2 -1
- package/src/view/index.ts +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@operad-io/tui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/index.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@opentui/core": "0.6.8",
|
|
11
|
-
"@operad-io/engine": "0.
|
|
11
|
+
"@operad-io/engine": "0.3.1"
|
|
12
12
|
},
|
|
13
13
|
"description": "operad: the terminal client",
|
|
14
14
|
"repository": {
|
package/src/client.ts
CHANGED
|
@@ -33,7 +33,8 @@ export interface TuiLevel {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/** One object type a client can list; an older server may name no plugin. */
|
|
36
|
-
export type TuiTypeInfo = Omit<ViewTypeInfo, "plugin" | "settings"> & {
|
|
36
|
+
export type TuiTypeInfo = Omit<ViewTypeInfo, "plugin" | "settings" | "pluginTitle"> & {
|
|
37
|
+
readonly pluginTitle?: string | undefined;
|
|
37
38
|
readonly plugin?: string | undefined;
|
|
38
39
|
readonly settings?: boolean | undefined;
|
|
39
40
|
};
|
package/src/state.ts
CHANGED
|
@@ -2464,7 +2464,8 @@ function applyTypes(state: TuiState, types: readonly TuiTypeInfo[]): TuiState {
|
|
|
2464
2464
|
const id = `plugin:${name}`;
|
|
2465
2465
|
// A server that names no plugin gives each type its own tab, titled as the type.
|
|
2466
2466
|
const first = group[0];
|
|
2467
|
-
const title = first?.plugin === undefined || first.plugin === "" ? typeTitle(first)
|
|
2467
|
+
const title = first?.plugin === undefined || first.plugin === "" ? typeTitle(first)
|
|
2468
|
+
: (first.pluginTitle ?? name);
|
|
2468
2469
|
const fresh = { ...makeTab(id, "plugin", title, group), plugin: name };
|
|
2469
2470
|
const old = existing.get(id);
|
|
2470
2471
|
if (old === undefined) {
|
package/src/view/index.ts
CHANGED
|
@@ -212,16 +212,16 @@ export const MARK_GLYPHS: Readonly<
|
|
|
212
212
|
> = {
|
|
213
213
|
todo: { char: "○", colour: "weak" },
|
|
214
214
|
blocked: { char: "◌", colour: "weak" },
|
|
215
|
-
retry_wait: { char: "
|
|
215
|
+
retry_wait: { char: "⋯", colour: "weak" },
|
|
216
216
|
paused: { char: "‖", colour: "weak" },
|
|
217
217
|
proposed: { char: "+", colour: "accent" },
|
|
218
218
|
starting: { char: "◔", colour: "run" },
|
|
219
|
-
running: { char: "
|
|
220
|
-
reconciling: { char: "
|
|
221
|
-
checking: { char: "
|
|
219
|
+
running: { char: "⊙", colour: "run" },
|
|
220
|
+
reconciling: { char: "↕", colour: "run" },
|
|
221
|
+
checking: { char: "◎", colour: "run" },
|
|
222
222
|
rework_pending: { char: "↩", colour: "accent" },
|
|
223
223
|
waiting: { char: "●", colour: "accent" },
|
|
224
|
-
integrating: { char: "
|
|
224
|
+
integrating: { char: "↔", colour: "run" },
|
|
225
225
|
ready_to_merge: { char: "◉", colour: "ok" },
|
|
226
226
|
done: { char: "✓", colour: "ok" },
|
|
227
227
|
failed: { char: "✗", colour: "error" },
|
|
@@ -282,7 +282,7 @@ function drawRow(
|
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
/** The folder icon of a repository group: one cell, in the colour its row's mark has when that is the running colour. */
|
|
285
|
-
const FOLDER = "
|
|
285
|
+
const FOLDER = "■";
|
|
286
286
|
|
|
287
287
|
function folder(row: TuiRow, palette: TuiPalette, tint?: string): TextChunk {
|
|
288
288
|
const mark = rowMark(row);
|