rvlib-shipkit 2.9.0 → 2.11.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/CHANGELOG.md +23 -0
- package/package.json +1 -1
- package/src/cli/cmd_Media.ts +164 -0
- package/src/cli/cmd_Review.ts +2 -1
- package/src/cli/family-pages.ts +1 -0
- package/src/cli/registry.ts +2 -0
- package/src/collections/pings.ts +6 -4
- package/src/core/app-icon.ts +17 -4
- package/src/core/scratch-objects.ts +56 -0
- package/src/core/trace-audit.ts +13 -1
- package/src/home/home-paths.ts +4 -0
- package/src/home/home-routes.ts +36 -2
- package/src/home/hubs.ts +5 -0
- package/src/home/inbox-shape.ts +182 -0
- package/src/home/inbox.ts +48 -0
- package/src/home/run-daemon.ts +12 -2
- package/src/home/serve-web.ts +155 -16
- package/src/ledger/git-scan.ts +73 -25
- package/src/ledger/repo-view.ts +2 -22
- package/src/media-kinds.ts +7 -0
- package/src/media-store/content.ts +51 -0
- package/src/media-store/daemon.ts +91 -0
- package/src/media-store/db.ts +74 -0
- package/src/media-store/fact.ts +9 -0
- package/src/media-store/kind.ts +44 -0
- package/src/media-store/purge.ts +139 -0
- package/src/media-store/remote.ts +93 -0
- package/src/media-store/space.ts +124 -0
- package/src/media-store/sync.ts +101 -0
- package/src/media-store/upload.ts +98 -0
- package/src/repo-config.ts +4 -0
- package/src/review/anim.ts +6 -5
- package/src/review/cells.ts +552 -0
- package/src/review/format.ts +1 -1
- package/src/review/media-kind.ts +84 -0
- package/src/review/media-read.ts +48 -0
- package/src/review/model.ts +43 -5
- package/src/review/previews.ts +153 -0
- package/src/review/routes.ts +105 -47
- package/src/review/store.ts +106 -45
- package/src/review/trailer-desk.ts +79 -46
- package/src/review/trailer-media.ts +163 -0
- package/src/review/trailer-routes.ts +5 -2
- package/src/serve/hub-app/home-st.ts +39 -9
- package/src/serve/hub-app/home.html +2 -1
- package/src/serve/hub-app/hub-app.tsx +7 -23
- package/src/serve/hub-app/icons.tsx +2 -0
- package/src/serve/hub-app/inbox-st.ts +144 -0
- package/src/serve/hub-app/inbox-view.tsx +205 -0
- package/src/serve/hub-app/inbox.css +73 -0
- package/src/serve/hub-app/item-view.tsx +19 -0
- package/src/serve/hub-app/keys.ts +4 -3
- package/src/serve/hub-app/palette-st.ts +2 -1
- package/src/serve/hub-app/project-list.tsx +1 -0
- package/src/serve/hub-app/projects-svc.ts +1 -1
- package/src/serve/hub-app/repo-st.ts +1 -1
- package/src/serve/hub-app/review/kind-view.tsx +21 -22
- package/src/serve/hub-app/review/kit.tsx +11 -12
- package/src/serve/hub-app/review/review-board.tsx +15 -13
- package/src/serve/hub-app/review/review-cells.tsx +241 -0
- package/src/serve/hub-app/review/review-kit.ts +79 -0
- package/src/serve/hub-app/review/review-list.tsx +87 -122
- package/src/serve/hub-app/review/review-page.tsx +22 -79
- package/src/serve/hub-app/review/review-st.ts +269 -698
- package/src/serve/hub-app/review/review-thread.tsx +302 -0
- package/src/serve/hub-app/review/review-views.tsx +322 -253
- package/src/serve/hub-app/review/thread-st.ts +770 -0
- package/src/serve/hub-app/review.css +235 -91
- package/src/serve/hub-runtime.ts +9 -4
- package/src/serve/serve-hub.ts +4 -1
- package/src/serve/warm-cell.ts +6 -1
- package/src/trailer/footage.ts +6 -2
- package/src/trailer/passage.ts +4 -2
- package/src/trailer/prune.ts +6 -10
- package/src/serve/hub-app/review/review-answer.tsx +0 -249
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
.hue-k1{--hue:var(--k1)}.hue-k2{--hue:var(--k2)}.hue-k3{--hue:var(--k3)}.hue-k4{--hue:var(--k4)}.hue-k5{--hue:var(--k5)}.hue-k6{--hue:var(--k6)}
|
|
15
15
|
.hue-none{--hue:var(--dim)}
|
|
16
16
|
|
|
17
|
-
/* ── the
|
|
17
|
+
/* ── the columns ── */
|
|
18
18
|
.rv-cols{flex:1;min-height:0}
|
|
19
19
|
.rv-pane{height:100%;min-width:0;display:flex;flex-direction:column}
|
|
20
20
|
.rv-scroll{flex:1;min-height:0;overflow-y:auto}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
.rv-center{text-align:center}
|
|
26
26
|
.rv-empty{padding:var(--s3);color:var(--dim);font-size:12.5px;display:flex;gap:var(--s2);align-items:center}
|
|
27
27
|
.rv-err{padding:var(--s1) var(--s3);color:var(--errink);font-size:12px;white-space:pre-wrap}
|
|
28
|
-
.rv-lanehead .sp,.rv-viewhead .sp,.tr-cutrow .sp,.tr-transport .sp,.tr-noteshead .sp,.tr-noteacts .sp{flex:1}
|
|
28
|
+
.rv-lanehead .sp,.rv-viewhead .sp,.rv-chead .sp,.rv-meta .sp,.rv-viewsbar .sp,.rv-acts .sp,.rv-contentshead .sp,.tr-cutrow .sp,.tr-transport .sp,.tr-noteshead .sp,.tr-noteacts .sp{flex:1}
|
|
29
29
|
.rv-divider{display:flex;align-items:center;gap:var(--s2);margin:var(--s2) 0 var(--s1);color:var(--dim);font-size:11px}
|
|
30
30
|
.rv-divider::after{content:'';flex:1;border-top:1px solid var(--line)}
|
|
31
31
|
.rv-cols textarea,.tr-notescol textarea,.rv-phone textarea{min-height:0;font:12.5px/1.45 system-ui,sans-serif;padding:var(--s1) var(--s2)}
|
|
@@ -42,40 +42,34 @@
|
|
|
42
42
|
.rv-switch{display:inline-flex;align-items:center;gap:var(--s1);cursor:pointer;color:var(--ink)}
|
|
43
43
|
.rv-count{font-size:11px;color:var(--dim)}
|
|
44
44
|
.rv-listscroll{flex:1;min-height:0;overflow-y:auto;padding:var(--s1) 0 var(--s4)}
|
|
45
|
+
.rv-more{display:block;margin:var(--s2) var(--s3);width:calc(100% - 2 * var(--s3));font-size:12px}
|
|
45
46
|
.rv-lanehead{display:flex;align-items:center;gap:var(--s2);margin:var(--s2) var(--s2) var(--s0);padding:var(--s1) var(--s2);border-radius:4px;border-left:4px solid var(--lane,var(--dim));background:var(--panel2);font-size:12px}
|
|
46
47
|
.rv-lanehead b{color:var(--lane,var(--dim))}
|
|
47
48
|
.rv-row{display:flex;gap:var(--s2);align-items:center;margin:var(--s1) var(--s2);padding:var(--s1) var(--s2);border-radius:6px;cursor:pointer;
|
|
48
49
|
border:1px solid color-mix(in srgb,var(--tone) 45%,var(--line));background:color-mix(in srgb,var(--tone) 9%,var(--panel))}
|
|
49
50
|
.rv-row:hover{background:color-mix(in srgb,var(--tone) 16%,var(--panel))}
|
|
50
51
|
.rv-row.on{background:color-mix(in srgb,var(--tone) 22%,var(--panel));box-shadow:inset 3px 0 0 var(--accent)}
|
|
51
|
-
.rv-row.laned
|
|
52
|
+
.rv-row.laned{border-left:4px solid var(--lane)}
|
|
52
53
|
.rv-row.muted .rv-thumb,.rv-row.muted .rv-rowbody{opacity:.55}
|
|
53
54
|
.rv-thumb{width:56px;height:56px;flex:none;border-radius:4px;overflow:hidden;background:repeating-conic-gradient(var(--chk1) 0 25%,var(--chk2) 0 50%) 0 0/12px 12px}
|
|
54
|
-
.rv-thumb.sm{width:32px;height:32px}
|
|
55
|
-
.rv-thumb.xs{width:36px;height:36px;cursor:pointer}
|
|
56
55
|
.rv-thumbimg{width:100%;height:100%;object-fit:cover;display:block}
|
|
57
56
|
.rv-thumbnone{width:100%;height:100%;display:grid;place-items:center;color:var(--dim);background:var(--panel2)}
|
|
58
57
|
.rv-rowbody{flex:1;min-width:0}
|
|
59
58
|
.rv-rowtitle{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
|
|
60
59
|
.rv-rowtitle.strong{font-weight:700}
|
|
61
|
-
.rv-unread{display:inline-block;width:8px;height:8px;border-radius:4px;background:var(--blue);margin-right:var(--s1);vertical-align:middle}
|
|
60
|
+
.rv-unread{display:inline-block;flex:none;width:8px;height:8px;border-radius:4px;background:var(--blue);margin-right:var(--s1);vertical-align:middle}
|
|
62
61
|
.rv-rowmeta{display:flex;gap:var(--s1);align-items:center;margin-top:var(--s0);min-width:0}
|
|
63
62
|
.rv-badge{flex:none;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:0 var(--s1);border-radius:3px;line-height:16px;
|
|
64
63
|
color:var(--bg);background:var(--tone,var(--dim));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
|
|
65
64
|
.rv-badge.outline{background:none;color:var(--ink);border:1px solid var(--line)}
|
|
66
65
|
.rv-about{font-size:11px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
|
|
67
|
-
.rv-fold{flex:none;display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid var(--line);border-radius:999px;color:var(--dim)}
|
|
68
|
-
.rv-fold .cvt{width:14px;height:14px;transform:rotate(90deg)}
|
|
69
|
-
.rv-fold .cvt.open{transform:rotate(-90deg)}
|
|
70
|
-
.rv-fold:hover{color:var(--ink);border-color:var(--accent)}
|
|
71
66
|
/* a narrow list: the title on its own line on top, a smaller image under it beside the badges */
|
|
72
67
|
@container (max-width:250px){
|
|
73
|
-
.rv-row{display:grid;grid-template-columns:40px minmax(0,1fr)
|
|
68
|
+
.rv-row{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-areas:"title title" "thumb meta" "rework rework";align-items:center;column-gap:var(--s2);row-gap:var(--s1)}
|
|
74
69
|
.rv-row .rv-rowbody{display:contents}
|
|
75
70
|
.rv-row .rv-rowtitle{grid-area:title}
|
|
76
71
|
.rv-row .rv-thumb{grid-area:thumb;width:40px;height:40px}
|
|
77
72
|
.rv-row .rv-rowmeta{grid-area:meta;flex-wrap:wrap;margin-top:0}
|
|
78
|
-
.rv-row .rv-fold{grid-area:fold}
|
|
79
73
|
.rv-row > .rv-rowbody > :not(.rv-rowtitle):not(.rv-rowmeta){grid-area:rework}
|
|
80
74
|
.rv-row.muted .rv-rowtitle,.rv-row.muted .rv-rowmeta{opacity:.55}
|
|
81
75
|
/* the filters: one select a line, the whose bar across the width, the switches one a line */
|
|
@@ -85,39 +79,156 @@
|
|
|
85
79
|
.seg.rv-whose button{flex:1 1 auto;justify-content:center;padding:0 var(--s1);font-size:11px;white-space:nowrap}
|
|
86
80
|
.rv-switches{flex-direction:column;gap:var(--s1)}
|
|
87
81
|
}
|
|
88
|
-
.rv-vrow{display:flex;gap:var(--s1);align-items:center;margin:var(--s0) var(--s2) var(--s0) var(--s4);padding:var(--s0) var(--s1);border-radius:4px;cursor:pointer;opacity:.8;
|
|
89
|
-
border:1px solid color-mix(in srgb,var(--tone) 40%,var(--line));background:color-mix(in srgb,var(--tone) 8%,var(--panel));font-size:11.5px}
|
|
90
|
-
.rv-vrow.on{opacity:1;box-shadow:inset 3px 0 0 var(--accent)}
|
|
91
|
-
.rv-vn{flex:none}
|
|
92
|
-
.rv-vtitle{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
93
82
|
.rv-lane{flex:none;font-size:10px;font-weight:700;color:var(--bg);background:var(--lane);border-radius:3px;padding:0 var(--s1);line-height:16px}
|
|
94
83
|
.rv-auto{flex:none;font-size:10px;font-weight:700;color:var(--bg);background:var(--warn);border-radius:3px;padding:0 var(--s1);line-height:16px}
|
|
95
84
|
.rv-reworkrow{display:flex;margin-top:var(--s1)}
|
|
85
|
+
.rv-meta .rv-reworkrow{margin-top:0}
|
|
96
86
|
.rv-rework{display:inline-flex;align-items:center;gap:var(--s1);font-size:11px;font-weight:700;color:var(--lane);border:1px solid var(--lane);border-radius:4px;padding:0 var(--s1);white-space:nowrap}
|
|
97
87
|
.rv-spin{width:10px;height:10px;border-radius:50%;border:2px solid var(--lane);border-top-color:transparent;animation:rot 2.4s linear infinite}
|
|
98
88
|
.rv-listen{display:inline-flex;align-items:center;gap:var(--s1);font-size:11px;font-weight:700;color:var(--dim);border:1px solid var(--line);border-radius:10px;padding:0 var(--s2);white-space:nowrap;line-height:18px}
|
|
99
89
|
.rv-listen.on{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 55%,var(--line))}
|
|
100
90
|
|
|
101
|
-
/* ── the
|
|
102
|
-
.rv-
|
|
103
|
-
.rv-
|
|
104
|
-
.rv-
|
|
105
|
-
.rv-
|
|
106
|
-
.rv-
|
|
107
|
-
.rv-
|
|
108
|
-
.rv-
|
|
109
|
-
.rv-
|
|
110
|
-
.rv-
|
|
111
|
-
.rv-
|
|
112
|
-
.rv-
|
|
113
|
-
.rv-
|
|
91
|
+
/* ── the thread: a bar on top, the cells (and the contents beside them), the answer box pinned under them ── */
|
|
92
|
+
.rv-thread{position:relative;height:100%;min-height:0;display:flex;flex-direction:column;background:var(--bg)}
|
|
93
|
+
.rv-top{flex:none;display:flex;flex-direction:column;gap:var(--s1);padding:var(--s2) var(--s4);border-bottom:1px solid var(--line);background:var(--panel)}
|
|
94
|
+
.rv-topline{display:flex;align-items:flex-start;gap:var(--s2)}
|
|
95
|
+
.rv-title{flex:1;min-width:0;margin:0;font-size:19px;line-height:1.25;font-weight:750;color:var(--ink)}
|
|
96
|
+
.rv-back{flex:none;font-size:18px;line-height:24px;padding:0 var(--s2)}
|
|
97
|
+
.rv-meta{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s2);align-items:center;font-size:12px;color:var(--dim);line-height:20px}
|
|
98
|
+
.rv-meta .rv-badge{font-size:10px;line-height:18px;max-width:none}
|
|
99
|
+
.rv-meta > button,.rv-meta .seg button{font-size:11.5px;padding:0 var(--s2);line-height:20px}
|
|
100
|
+
.rv-meta > button.on{border-color:var(--accent);color:var(--ink)}
|
|
101
|
+
.rv-copyid{flex:none;display:inline-flex;align-items:center;padding:var(--s0);color:var(--dim)}
|
|
102
|
+
.rv-copyid:hover{color:var(--ink)}
|
|
103
|
+
.rv-toast{position:fixed;left:50%;bottom:var(--s4);transform:translateX(-50%);z-index:40;max-width:calc(100% - 2 * var(--s4));padding:var(--s1) var(--s3);border-radius:6px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:12.5px;box-shadow:0 6px 20px var(--shadow)}
|
|
104
|
+
.rv-threadbody{position:relative;flex:1;min-height:0;display:flex}
|
|
105
|
+
.rv-cells{position:relative;flex:1;min-width:0;overflow-y:auto;display:flex;flex-direction:column;gap:var(--s3);padding:var(--s3) var(--s4) var(--s4)}
|
|
106
|
+
.rv-day{display:flex;align-items:center;gap:var(--s2);margin-top:var(--s2);font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--dim)}
|
|
107
|
+
.rv-day::before,.rv-day::after{content:'';flex:1;border-top:1px solid var(--line)}
|
|
108
|
+
.rv-events{display:flex;flex-direction:column;gap:var(--s0)}
|
|
109
|
+
.rv-event{display:flex;align-items:center;gap:var(--s2);font-size:11.5px;color:var(--dim);scroll-margin-top:var(--s2)}
|
|
110
|
+
.rv-event::before,.rv-event::after{content:'';flex:1 1 var(--s4);border-top:1px dashed var(--line)}
|
|
111
|
+
.rv-eventtext{flex:0 1 auto;min-width:0;max-width:75%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
112
|
+
|
|
113
|
+
/* a cell: a framed card, its header bar, its body or its one line. Who speaks sets --who: the agents in teal, him in
|
|
114
|
+
pink, a verdict in its own tone; the owner's words sit to the right of the column, the agents' replies to its left */
|
|
115
|
+
.rv-c{--who:var(--line);flex:none;border:1px solid var(--line);border-left:4px solid var(--who);border-radius:10px;background:var(--panel);box-shadow:0 1px 3px var(--shadow);scroll-margin-top:var(--s2)}
|
|
116
|
+
.rv-c.p-agent{--who:var(--k3)}
|
|
117
|
+
.rv-c.p-owner{--who:var(--k4)}
|
|
118
|
+
.rv-c.k-verdict{--who:var(--tone)}
|
|
119
|
+
.rv-c.p-owner:not(.k-version){margin-left:10%}
|
|
120
|
+
.rv-c.p-agent.k-reply{margin-right:10%}
|
|
121
|
+
.rv-c.head{border-color:color-mix(in srgb,var(--who) 70%,var(--line));box-shadow:0 0 0 1px color-mix(in srgb,var(--who) 40%,transparent),0 2px 10px var(--shadow)}
|
|
122
|
+
.rv-c.folded{background:color-mix(in srgb,var(--panel) 55%,var(--bg));box-shadow:none}
|
|
123
|
+
.rv-chead{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s1) var(--s2);min-height:38px;padding:var(--s1) var(--s3) var(--s1) var(--s1);border-bottom:1px solid var(--line);border-radius:6px 9px 0 0;background:color-mix(in srgb,var(--who) 9%,var(--panel2));cursor:pointer;user-select:none}
|
|
124
|
+
.rv-c.folded .rv-chead{border-bottom:0;background:none}
|
|
125
|
+
.rv-foldbtn{flex:none;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:none;color:var(--dim);font-size:13px}
|
|
126
|
+
.rv-foldbtn:hover{color:var(--ink)}
|
|
127
|
+
.rv-avatar{flex:none;display:grid;place-items:center;min-width:28px;height:28px;padding:0 var(--s1);border-radius:14px;font-size:10.5px;font-weight:800;letter-spacing:.02em;color:var(--bg);background:var(--lane,var(--dim))}
|
|
128
|
+
.rv-avatar.mine{background:var(--k4)}
|
|
129
|
+
.rv-avatar.player{background:var(--k6)}
|
|
130
|
+
.rv-cwho{font-size:13.5px;color:var(--ink)}
|
|
131
|
+
.rv-ckind{flex:none;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--dim);border:1px solid var(--line);border-radius:4px;padding:0 var(--s1);line-height:18px}
|
|
132
|
+
.rv-c.k-version .rv-ckind{font-size:14px;letter-spacing:.02em;text-transform:none;color:var(--who);border-color:color-mix(in srgb,var(--who) 60%,var(--line));padding:0 var(--s2);line-height:22px}
|
|
133
|
+
.rv-chead .rv-badge{font-size:9.5px;line-height:18px;max-width:none}
|
|
134
|
+
.rv-c.k-version .rv-chead .rv-badge{background:color-mix(in srgb,var(--tone,var(--dim)) 85%,var(--panel))}
|
|
135
|
+
.rv-on{flex:none;font-size:11.5px;padding:0 var(--s2);line-height:20px;color:var(--dim)}
|
|
136
|
+
.rv-on:hover{color:var(--ink)}
|
|
137
|
+
.rv-headtag{flex:none;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--who)}
|
|
138
|
+
.rv-when{flex:none;font-size:11.5px;color:var(--dim);white-space:nowrap}
|
|
139
|
+
.rv-csum{padding:0 var(--s3) var(--s2) var(--s4);margin-left:var(--s4);font-size:13px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
|
|
140
|
+
.rv-cbody{display:flex;flex-direction:column;gap:var(--s3);padding:var(--s3)}
|
|
141
|
+
.rv-cfacts{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s3);align-items:center}
|
|
142
|
+
.rv-what{font-size:14px;line-height:1.5;color:var(--ink)}
|
|
143
|
+
.rv-what ul{margin:var(--s0) 0;padding-left:var(--s4)}
|
|
144
|
+
.rv-what p{margin:var(--s0) 0}
|
|
145
|
+
.rv-why{color:var(--dim);font-size:12px}
|
|
146
|
+
.rv-keeps{color:var(--ok);font-size:13px}
|
|
147
|
+
.rv-words{font-size:14px;line-height:1.5;color:var(--ink)}
|
|
148
|
+
.rv-verdictline{display:flex;flex-wrap:wrap;gap:var(--s2);align-items:center;font-size:12px}
|
|
149
|
+
.rv-bigpill{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding:var(--s0) var(--s3);border-radius:6px;color:var(--bg);background:var(--tone)}
|
|
150
|
+
.rv-noteline{display:flex;gap:var(--s2);align-items:baseline;width:100%;text-align:left;padding:var(--s1) var(--s2);font-size:13px;line-height:1.4;color:var(--ink);
|
|
151
|
+
border:1px solid color-mix(in srgb,var(--tone,var(--line)) 40%,var(--line));border-left:3px solid var(--tone,var(--line));border-radius:6px;background:color-mix(in srgb,var(--tone,var(--panel2)) 7%,transparent)}
|
|
152
|
+
.rv-noteline.rect{--tone:var(--k4)}
|
|
153
|
+
.rv-noteline.still{cursor:default}
|
|
154
|
+
.rv-notemark{flex:none;font-weight:800;color:var(--tone,var(--ink));white-space:nowrap}
|
|
155
|
+
.rv-noteplace{flex:none;max-width:40%;font-size:12px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
156
|
+
.rv-notetext{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
|
|
157
|
+
.rv-notetitle{font-size:14px;font-weight:700}
|
|
158
|
+
.rv-raisedframe{position:relative;max-width:100%;max-height:60vh;border-radius:6px;border:1px solid var(--line);overflow:hidden;background:var(--panel2)}
|
|
159
|
+
.rv-raisedframe img{display:block;width:100%;height:100%;object-fit:contain}
|
|
160
|
+
.rv-msgimg{display:block;max-width:100%;max-height:320px;border-radius:6px}
|
|
161
|
+
|
|
162
|
+
/* the contents: every item of the card, beside the cells or as a sheet over them */
|
|
163
|
+
.rv-contents{flex:none;width:280px;min-height:0;overflow-y:auto;border-left:1px solid var(--line);background:var(--panel);padding:var(--s2) 0 var(--s4)}
|
|
164
|
+
.rv-contentshead{display:flex;align-items:center;gap:var(--s2);padding:0 var(--s3) var(--s2);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
|
|
165
|
+
.rv-contents ol{list-style:none;margin:0;padding:0}
|
|
166
|
+
.rv-entry button{display:flex;align-items:center;gap:var(--s2);width:100%;text-align:left;border:0;border-left:3px solid var(--tone,transparent);border-radius:0;background:none;padding:var(--s1) var(--s3);font-size:12.5px;line-height:1.3;color:var(--ink)}
|
|
167
|
+
.rv-entry button:hover{background:var(--wash)}
|
|
168
|
+
.rv-entry.k-version{margin-top:var(--s2);border-top:1px solid var(--line)}
|
|
169
|
+
.rv-entry.k-version button{padding-top:var(--s2);font-weight:650}
|
|
170
|
+
.rv-entry.k-view button{padding-left:var(--s4);font-size:12px}
|
|
171
|
+
.rv-entry.k-verdict,.rv-entry.k-reply,.rv-entry.k-note{margin-left:var(--s3)}
|
|
172
|
+
.rv-entry.folded button{color:var(--dim)}
|
|
173
|
+
.rv-entry.head.k-version button{color:var(--ink)}
|
|
174
|
+
.rv-entrybadge{flex:none;max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;line-height:16px;padding:0 var(--s1);border-radius:3px;border:1px solid var(--line);color:var(--dim)}
|
|
175
|
+
.rv-entry.k-version .rv-entrybadge,.rv-entry.k-verdict .rv-entrybadge{border-color:transparent;color:var(--bg);background:var(--tone,var(--dim))}
|
|
176
|
+
.rv-entry.k-version .rv-entrybadge{font-size:11px;text-transform:none}
|
|
177
|
+
.rv-entrylabel{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
178
|
+
.rv-sheet{position:absolute;inset:0;z-index:20;display:flex;justify-content:flex-end;background:var(--scrim)}
|
|
179
|
+
.rv-sheet > div{display:flex;width:min(340px,92%);height:100%}
|
|
180
|
+
.rv-sheet .rv-contents{width:100%;border-left:0;box-shadow:-6px 0 20px var(--shadow)}
|
|
181
|
+
|
|
182
|
+
/* the contents as a thin strip when the column has no room for them: a version a pill, an answer or a reply a mark */
|
|
183
|
+
.rv-mini{flex:none;width:48px;min-height:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;gap:var(--s1);padding:var(--s2) 0;border-left:1px solid var(--line);background:var(--panel)}
|
|
184
|
+
.rv-miniopen{flex:none;width:34px;padding:0;line-height:24px;margin-bottom:var(--s1)}
|
|
185
|
+
.rv-minientry{flex:none;padding:0;border:0;cursor:pointer}
|
|
186
|
+
.rv-minientry.k-version{width:38px;line-height:18px;border-radius:4px;font:800 10.5px/18px ui-monospace,Menlo,monospace;color:var(--bg);background:var(--tone,var(--dim))}
|
|
187
|
+
.rv-minientry.k-version.head{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--tone,var(--dim))}
|
|
188
|
+
.rv-minientry.k-verdict{width:10px;height:10px;border-radius:2px;background:var(--tone)}
|
|
189
|
+
.rv-minientry.k-reply,.rv-minientry.k-note{width:8px;height:8px;border-radius:4px;background:var(--dim)}
|
|
190
|
+
|
|
191
|
+
/* his answer box, pinned under the cells */
|
|
192
|
+
.rv-composer{flex:none;display:flex;flex-direction:column;gap:var(--s2);padding:var(--s2) var(--s4) var(--s3);border-top:1px solid var(--line);background:var(--panel);box-shadow:0 -4px 14px var(--shadow)}
|
|
193
|
+
.rv-goes{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s2);align-items:center;font-size:12px}
|
|
194
|
+
.rv-chip{font-size:11.5px;padding:0 var(--s2);line-height:20px;color:var(--tone,var(--ink));border-color:color-mix(in srgb,var(--tone,var(--line)) 50%,var(--line))}
|
|
195
|
+
.rv-chip.rect{--tone:var(--warn)}
|
|
196
|
+
.rv-composer .rv-reply{width:100%;max-height:40vh;font-size:13.5px}
|
|
197
|
+
.rv-acts{display:flex;flex-wrap:wrap;gap:var(--s1);align-items:center}
|
|
198
|
+
.rv-verdict{padding:var(--s1) var(--s3);font-size:13px;border-color:color-mix(in srgb,var(--tone) 60%,var(--line))}
|
|
199
|
+
.rv-verdict .rv-vglyph{color:var(--tone);font-weight:800}
|
|
200
|
+
.rv-verdict.chosen{background:color-mix(in srgb,var(--tone) 22%,var(--panel));border-color:var(--tone)}
|
|
201
|
+
.rv-send{padding:var(--s1) var(--s4)}
|
|
202
|
+
|
|
203
|
+
/* ── a version's views: each a sub cell, its number and title big, its kind, then what was said on it ── */
|
|
204
|
+
.rv-views{display:flex;flex-direction:column;gap:var(--s3)}
|
|
205
|
+
.rv-viewsbar{display:flex;flex-wrap:wrap;gap:var(--s2);align-items:center}
|
|
206
|
+
.rv-viewsbar .seg button{font-size:11.5px;padding:0 var(--s2);line-height:20px}
|
|
207
|
+
.rv-view{border:1px solid var(--line);border-radius:8px;background:var(--bg);scroll-margin-top:var(--s2)}
|
|
208
|
+
.rv-view[class*=' re-']{border-color:color-mix(in srgb,var(--tone) 55%,var(--line))}
|
|
209
|
+
.rv-view.active{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
|
|
210
|
+
/* one sticky row per view: its label, its title, the owner's verdict on it, the tools; it stays at the top while the view scrolls */
|
|
211
|
+
.rv-viewhead{position:sticky;top:0;z-index:4;display:flex;flex-wrap:wrap;gap:var(--s1) var(--s2);align-items:center;padding:var(--s2) var(--s3) var(--s2) var(--s1);border-bottom:1px solid var(--line);border-radius:7px 7px 0 0;background:color-mix(in srgb,var(--panel2) 70%,var(--bg));box-shadow:0 2px 6px var(--shadow)}
|
|
212
|
+
.rv-view.folded .rv-viewhead{border-bottom:0;border-radius:4px 7px 7px 4px}
|
|
213
|
+
.rv-viewn{flex:none;font:800 18px/30px ui-monospace,Menlo,monospace;padding:0 var(--s3);border-radius:6px;color:var(--bg);background:var(--ink)}
|
|
214
|
+
.rv-viewname{margin:0;min-width:0;font-size:16px;line-height:1.3;font-weight:700;color:var(--ink);cursor:pointer}
|
|
215
|
+
.rv-kind{flex:none;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--dim);border:1px solid var(--line);border-radius:10px;padding:0 var(--s2);line-height:18px}
|
|
216
|
+
.rv-viewbody{padding:var(--s3)}
|
|
217
|
+
.rv-viewnote{margin-top:var(--s2);font-size:13px;color:var(--ink)}
|
|
218
|
+
.rv-viewnotes{display:flex;flex-direction:column;gap:var(--s1);padding:0 var(--s3) var(--s3)}
|
|
219
|
+
.rv-view.folded .rv-viewnotes{padding-top:var(--s2)}
|
|
220
|
+
.rv-said{display:flex;gap:var(--s2);align-items:baseline;padding:var(--s1) var(--s2);font-size:13px;line-height:1.4;border-radius:6px;border-left:3px solid var(--tone,var(--k4));background:color-mix(in srgb,var(--tone,var(--k4)) 8%,transparent)}
|
|
221
|
+
.rv-said.rect{--tone:var(--k4)}
|
|
222
|
+
.rv-saidmark{flex:none;font-weight:800;color:var(--tone,var(--k4));white-space:nowrap}
|
|
223
|
+
.rv-saidtext{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
|
|
224
|
+
.rv-saidwho{flex:none;font-size:11px}
|
|
114
225
|
.rv-reacts{display:inline-flex;gap:var(--s1)}
|
|
115
226
|
.rv-react{font-size:11.5px;padding:0 var(--s2);line-height:20px;color:var(--tone);border-color:color-mix(in srgb,var(--tone) 45%,var(--line));background:color-mix(in srgb,var(--tone) 10%,transparent)}
|
|
227
|
+
.rv-react.big{font-size:14px;font-weight:700;line-height:30px;padding:0 12px;border-radius:6px}
|
|
116
228
|
.rv-react.on{color:var(--bg);background:var(--tone);border-color:var(--tone)}
|
|
117
229
|
.rv-react.off{opacity:.45}
|
|
118
|
-
.rv-
|
|
119
|
-
.rv-
|
|
120
|
-
.rv-raisedimg{display:block;max-width:100%;max-height:320px;margin-top:var(--s2);border-radius:4px}
|
|
230
|
+
span.rv-react{display:inline-block;border:1px solid;border-radius:4px}
|
|
231
|
+
.rv-word{width:100%}
|
|
121
232
|
.rv-pairgrid{display:grid;gap:var(--s2)}
|
|
122
233
|
.rv-cell{display:flex;flex-direction:column;align-items:center;gap:var(--s0);min-width:0}
|
|
123
234
|
/* the frame's box: what sits over the frame free of its clip (the note box) shares its size */
|
|
@@ -142,8 +253,11 @@
|
|
|
142
253
|
.rv-rect{position:absolute;border:2px solid var(--warn);box-shadow:0 0 0 1px var(--hi1);background:color-mix(in srgb,var(--warn) 7%,transparent);cursor:pointer}
|
|
143
254
|
.rv-rect.on{border-width:3px;border-color:var(--blue)}
|
|
144
255
|
.rv-rect.faint{border-style:dashed;opacity:.6;box-shadow:none;background:none}
|
|
256
|
+
/* a rectangle an answer already sent: his pink, dashed, still */
|
|
257
|
+
.rv-rect.sent{border:2px dashed var(--k4);background:color-mix(in srgb,var(--k4) 6%,transparent);cursor:default;pointer-events:none}
|
|
145
258
|
.rv-rectn{position:absolute;left:-2px;top:-2px;transform:translateY(-100%);padding:0 var(--s1);border-radius:3px;background:var(--warn);color:var(--bg);font-size:11px;font-weight:800;line-height:16px;white-space:nowrap}
|
|
146
259
|
.rv-rect.on .rv-rectn{background:var(--blue)}
|
|
260
|
+
.rv-rect.sent .rv-rectn{background:var(--k4)}
|
|
147
261
|
.rv-drag{position:absolute;border:2px dashed var(--warn)}
|
|
148
262
|
/* the picked rectangle's note box, in the picked rectangle's blue: under it, or over it (clearing its number) */
|
|
149
263
|
.rv-note{position:absolute;left:clamp(0px,var(--nx),calc(100% - min(300px,100%)));width:min(300px,100%);pointer-events:auto;display:flex;gap:var(--s1);align-items:flex-start;
|
|
@@ -174,16 +288,17 @@
|
|
|
174
288
|
.rv-sound input{width:72px}
|
|
175
289
|
.rv-phonepair{display:flex;flex-direction:column;gap:var(--s2)}
|
|
176
290
|
/* options: one thin row a view, one below the other; the row playing or last touched has the line, the picked one its tone */
|
|
177
|
-
.rv-opts{display:flex;flex-direction:column;gap:var(--
|
|
178
|
-
.rv-opt{scroll-margin-top:
|
|
179
|
-
.rv-opt.active{border-
|
|
180
|
-
.rv-opt[class*=' re-']{border-
|
|
181
|
-
.rv-opt.picked{--tone:var(--ok);border-color:var(--tone);border-left-color:var(--tone);background:color-mix(in srgb,var(--tone) 9%,var(--
|
|
182
|
-
.rv-optrow{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s2);align-items:center;min-height:
|
|
183
|
-
.rv-optn{flex:none;
|
|
291
|
+
.rv-opts{display:flex;flex-direction:column;gap:var(--s2)}
|
|
292
|
+
.rv-opt{scroll-margin-top:var(--s2);padding:var(--s1) var(--s2);border-radius:8px;border:1px solid var(--line);background:var(--bg)}
|
|
293
|
+
.rv-opt.active{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
|
|
294
|
+
.rv-opt[class*=' re-']{border-color:color-mix(in srgb,var(--tone) 55%,var(--line))}
|
|
295
|
+
.rv-opt.picked{--tone:var(--ok);border-color:var(--tone);border-left-color:var(--tone);background:color-mix(in srgb,var(--tone) 9%,var(--bg))}
|
|
296
|
+
.rv-optrow{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s2);align-items:center;min-height:36px}
|
|
297
|
+
.rv-optn{flex:none;font:800 16px/28px ui-monospace,Menlo,monospace;padding:0 8px;border-radius:5px;color:var(--bg);background:var(--ink)}
|
|
298
|
+
.rv-opt.unfolded > .rv-optrow{position:sticky;top:0;z-index:4;margin:calc(-1 * var(--s1)) calc(-1 * var(--s2)) 0;padding:var(--s1) var(--s2);border-radius:7px 7px 0 0;background:var(--bg);box-shadow:0 2px 6px var(--shadow)}
|
|
184
299
|
.rv-optplay{flex:none;width:32px;height:28px;padding:0;font-size:13px}
|
|
185
300
|
.rv-optplay.on{color:var(--bg);background:var(--accent);border-color:var(--accent)}
|
|
186
|
-
.rv-optlabel{flex:0 1 auto;min-width:48px;max-width:30%;font-size:
|
|
301
|
+
.rv-optlabel{flex:0 1 auto;min-width:48px;max-width:30%;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
187
302
|
.rv-optthumb{flex:none;height:32px;max-width:72px;border-radius:3px;overflow:hidden;cursor:zoom-in;border:1px solid var(--line);background:var(--panel2)}
|
|
188
303
|
.rv-optthumb.img{width:48px}
|
|
189
304
|
.rv-optthumb img{display:block;width:100%;height:100%;object-fit:cover}
|
|
@@ -198,44 +313,18 @@
|
|
|
198
313
|
.rv-striphead{position:absolute;top:0;bottom:0;width:2px;transform:translateX(-1px);background:var(--accent)}
|
|
199
314
|
.rv-opttime{flex:none;font-size:11px;color:var(--dim)}
|
|
200
315
|
.rv-optacts{flex:none;display:inline-flex;gap:var(--s1);align-items:center;margin-left:auto}
|
|
201
|
-
.rv-optacts > button{padding:0 var(--
|
|
316
|
+
.rv-optacts > button{font-size:13.5px;font-weight:650;padding:0 var(--s3);line-height:30px}
|
|
202
317
|
.rv-optacts > button.on{border-color:var(--accent)}
|
|
203
318
|
.rv-stars{display:inline-flex}
|
|
204
319
|
.rv-stars button{border:0;background:none;padding:0;font-size:16px;line-height:22px;color:var(--dim)}
|
|
205
320
|
.rv-stars button.on{color:var(--warn)}
|
|
321
|
+
.rv-stars button:disabled{cursor:default;opacity:1}
|
|
206
322
|
.rv-pick{font-weight:700;padding:0 var(--s3)!important;color:var(--ok);border-color:color-mix(in srgb,var(--ok) 55%,var(--line))}
|
|
207
323
|
.rv-pick.on{color:var(--bg);background:var(--ok);border-color:var(--ok)}
|
|
324
|
+
span.rv-pick{display:inline-block;border:1px solid;border-radius:4px;font-size:12px;line-height:22px}
|
|
208
325
|
.rv-optnote{margin:var(--s0) 0 0 var(--s4);font-size:12.5px;color:var(--ink)}
|
|
209
326
|
.rv-opt .rv-word{margin:var(--s1) 0 0 var(--s4);width:calc(100% - var(--s4))}
|
|
210
327
|
.rv-optbody{margin-top:var(--s2)}
|
|
211
|
-
|
|
212
|
-
/* ── the answer ── */
|
|
213
|
-
.rv-form{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s3)}
|
|
214
|
-
.rv-title{margin:0;font-size:16px;line-height:1.3;color:var(--ink)}
|
|
215
|
-
/* the card's header: the title, one tight line of state, then what the agent says at full ink; --dim holds 5.6:1 or
|
|
216
|
-
more on --bg and --panel in both themes */
|
|
217
|
-
.rv-head{display:flex;flex-direction:column;gap:var(--s1)}
|
|
218
|
-
.rv-meta{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s2);align-items:center;font-size:12px;color:var(--dim);line-height:18px}
|
|
219
|
-
.rv-meta .rv-badge{font-size:10px;line-height:18px;max-width:none}
|
|
220
|
-
.rv-copyid{display:inline-flex;align-items:center;padding:var(--s0);color:var(--dim)}
|
|
221
|
-
.rv-copyid:hover{color:var(--ink)}
|
|
222
|
-
.rv-toast{position:fixed;left:50%;bottom:var(--s4);transform:translateX(-50%);z-index:40;max-width:calc(100% - 2 * var(--s4));padding:var(--s1) var(--s3);border-radius:6px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:12.5px;box-shadow:0 6px 20px var(--shadow)}
|
|
223
|
-
.rv-what{font-size:13.5px;line-height:1.45;color:var(--ink)}
|
|
224
|
-
.rv-what ul{margin:var(--s0) 0;padding-left:var(--s4)}
|
|
225
|
-
.rv-what p{margin:var(--s0) 0}
|
|
226
|
-
.rv-why{color:var(--dim);font-size:12px}
|
|
227
|
-
.rv-headverdicts{display:flex;flex-wrap:wrap;gap:var(--s1);align-items:center;margin-top:var(--s1)}
|
|
228
|
-
.rv-headverdicts .rv-verdict{padding:0 var(--s2);line-height:24px;font-size:12.5px}
|
|
229
|
-
.rv-head .rv-comment{margin-top:var(--s1);width:100%}
|
|
230
|
-
.rv-keeps{color:var(--ok);font-size:13px}
|
|
231
|
-
.rv-facts{display:flex;flex-direction:column}
|
|
232
|
-
.rv-fact{display:flex;gap:var(--s2);align-items:center;min-height:22px;font-size:12.5px}
|
|
233
|
-
.rv-factl{width:64px;flex:none;color:var(--dim);font-size:12px}
|
|
234
|
-
.rv-factv{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
235
|
-
.rv-linked{padding:var(--s1) var(--s2);border:1px solid var(--line);border-radius:4px;background:var(--panel)}
|
|
236
|
-
.rv-linkedrow{display:flex;gap:var(--s2);align-items:center;font-size:12px}
|
|
237
|
-
.rv-linkedtitle{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
|
|
238
|
-
.rv-outgoing,.rv-messages{display:flex;flex-direction:column;gap:var(--s1)}
|
|
239
328
|
.rv-outrow{display:flex;gap:var(--s1);align-items:flex-start}
|
|
240
329
|
.rv-outrow textarea{flex:1}
|
|
241
330
|
.rv-outbadge{flex:none;max-width:170px;margin-top:var(--s0);font-size:11px;padding:0 var(--s2);line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
|
|
@@ -243,30 +332,26 @@
|
|
|
243
332
|
.rv-outbadge.rect{--tone:var(--warn)}
|
|
244
333
|
.rv-outbadge.rect.on{--tone:var(--blue)}
|
|
245
334
|
.rv-x{flex:none;padding:0 var(--s1);border:0}
|
|
246
|
-
.rv-verdict{text-align:left;padding:var(--s1) var(--s3);font-size:13px;border-color:color-mix(in srgb,var(--tone) 60%,var(--line))}
|
|
247
|
-
.rv-verdict .rv-vglyph{color:var(--tone);font-weight:800}
|
|
248
|
-
.rv-verdict.chosen{background:var(--tone);color:var(--bg);border-color:var(--tone)}
|
|
249
|
-
.rv-verdict.chosen .rv-vglyph{color:var(--bg)}
|
|
250
|
-
.rv-verdict.off{opacity:.5}
|
|
251
|
-
.rv-msg{max-width:88%;align-self:flex-start;padding:var(--s1) var(--s2);border-radius:6px;border:1px solid var(--line);background:var(--panel2)}
|
|
252
|
-
.rv-msg.mine{align-self:flex-end;border-color:var(--hair);background:var(--wash)}
|
|
253
|
-
.rv-msgimg{display:block;max-width:100%;max-height:160px;margin-top:var(--s1);border-radius:4px}
|
|
254
|
-
.rv-replyrow,.rv-formfoot{display:flex;gap:var(--s2);justify-content:space-between}
|
|
255
|
-
.rv-replyrow{justify-content:flex-end}
|
|
256
335
|
|
|
257
336
|
/* ── the phone: the page covers the hub's panes, one pane at a time, the verdicts under the thumb ── */
|
|
258
337
|
.rv-phone,.tr-phone{position:fixed;inset:0;z-index:30;background:var(--bg)}
|
|
259
|
-
.rv-phone{display:flex;flex-direction:column}
|
|
338
|
+
.rv-phone{display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
|
|
260
339
|
.rv-phonetop{flex:none;display:flex;gap:var(--s2);align-items:center;padding:var(--s1) var(--s2);border-bottom:1px solid var(--line);background:var(--bg-top);font-size:13px}
|
|
261
|
-
.rv-phonetabs{margin:var(--s2);align-self:stretch;display:flex}
|
|
262
|
-
.rv-phonetabs button{flex:1;font-size:13px;padding:var(--s1) var(--s2)}
|
|
263
340
|
.rv-phonepane{flex:1;min-height:0;overflow-y:auto}
|
|
264
|
-
.rv-
|
|
265
|
-
.rv-
|
|
266
|
-
.rv-
|
|
267
|
-
.rv-phone .rv-
|
|
268
|
-
|
|
269
|
-
.rv-phone .rv-
|
|
341
|
+
.rv-phone .rv-thread{flex:1}
|
|
342
|
+
.rv-phone .rv-top{padding:var(--s1) var(--s2)}
|
|
343
|
+
.rv-phone .rv-title{font-size:16px}
|
|
344
|
+
.rv-phone .rv-cells{gap:var(--s2);padding:var(--s2) var(--s2) var(--s3)}
|
|
345
|
+
.rv-phone .rv-c.p-owner:not(.k-version){margin-left:var(--s4)}
|
|
346
|
+
.rv-phone .rv-c.p-agent.k-reply{margin-right:var(--s4)}
|
|
347
|
+
.rv-phone .rv-cbody{padding:var(--s2)}
|
|
348
|
+
.rv-phone .rv-chead .rv-copyid{display:none}
|
|
349
|
+
.rv-phone .rv-viewbody{padding:var(--s1)}
|
|
350
|
+
.rv-phone .rv-viewnotes{padding:0 var(--s1) var(--s2)}
|
|
351
|
+
.rv-phone .rv-viewname{font-size:15px}
|
|
352
|
+
.rv-phone .rv-composer{padding:var(--s2)}
|
|
353
|
+
.rv-phone .rv-acts .sp{display:none}
|
|
354
|
+
.rv-phone .rv-acts .rv-verdict,.rv-phone .rv-send{flex:1 1 0;min-width:0;text-align:center;font-size:13.5px;padding:var(--s2) var(--s1);white-space:nowrap}
|
|
270
355
|
.rv-phone .rv-toast{top:var(--s4);bottom:auto}
|
|
271
356
|
/* a row on a phone: ▶, the label and the time on one line, the strip and the acts under them */
|
|
272
357
|
.rv-phone .rv-optrow{flex-wrap:wrap;row-gap:var(--s1)}
|
|
@@ -391,8 +476,12 @@
|
|
|
391
476
|
.rv-board{padding:var(--s2) var(--s3)}
|
|
392
477
|
.rv-boardrow{padding:var(--s2);border:1px solid var(--line);border-radius:4px;margin-bottom:var(--s1);cursor:pointer;font-size:12.5px}
|
|
393
478
|
.rv-boardrow:hover,.rv-boardrow.on{background:var(--panel)}
|
|
394
|
-
.rv-
|
|
395
|
-
.rv-kindview{display:flex;flex-direction:column;gap:var(--s2)
|
|
479
|
+
.rv-linkedtitle{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
480
|
+
.rv-kindview{display:flex;flex-direction:column;gap:var(--s2)}
|
|
481
|
+
.rv-facts{display:flex;flex-direction:column}
|
|
482
|
+
.rv-fact{display:flex;gap:var(--s2);align-items:center;min-height:22px;font-size:12.5px}
|
|
483
|
+
.rv-factl{width:64px;flex:none;color:var(--dim);font-size:12px}
|
|
484
|
+
.rv-factv{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
396
485
|
.rv-kindtext{font:12px/1.5 ui-monospace,Menlo,monospace;background:var(--panel);border:1px solid var(--line);border-radius:3px;padding:var(--s2) var(--s3);margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
|
|
397
486
|
.rv-part{border:1px solid var(--line);border-radius:4px;padding:var(--s2) var(--s3);margin-top:var(--s2);background:var(--panel)}
|
|
398
487
|
.rv-parthead{display:flex;align-items:center;gap:var(--s2);margin-bottom:var(--s2)}
|
|
@@ -405,3 +494,58 @@
|
|
|
405
494
|
/* a sound view (review-views.tsx SoundBody): its waveform over the player, a row a side on a pair */
|
|
406
495
|
.rv-soundview{display:flex;flex-direction:column;gap:var(--s2)}
|
|
407
496
|
.rv-soundrow{display:flex;flex-direction:column;gap:var(--s1);background:var(--panel);border:1px solid var(--line);border-radius:4px;padding:var(--s2)}
|
|
497
|
+
.rv-moved{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);padding:var(--s2) var(--s3);border-radius:6px;border:1px solid var(--warn,var(--k4));background:color-mix(in srgb,var(--warn,var(--k4)) 12%,var(--panel));font-size:13px;font-weight:600}
|
|
498
|
+
|
|
499
|
+
/* a version's gutter, like a notebook's: its big `v3` stays at the top while the version scrolls; the views run beside it */
|
|
500
|
+
.rv-c.k-version{border-left-width:1px}
|
|
501
|
+
.rv-c.k-version > .rv-cbody{padding:0}
|
|
502
|
+
.rv-vgrid{display:grid;grid-template-columns:52px minmax(0,1fr)}
|
|
503
|
+
.rv-gut{border-right:1px solid color-mix(in srgb,var(--who) 35%,var(--line));border-radius:0 0 0 9px;background:color-mix(in srgb,var(--who) 12%,var(--panel2))}
|
|
504
|
+
.rv-gutlabel{position:sticky;top:0;display:block;padding:var(--s2) 0;text-align:center;font:800 19px/1.2 ui-monospace,Menlo,monospace;color:var(--who)}
|
|
505
|
+
.rv-vmain{min-width:0;display:flex;flex-direction:column;gap:var(--s3);padding:var(--s3)}
|
|
506
|
+
.rv-phone .rv-vgrid{grid-template-columns:30px minmax(0,1fr)}
|
|
507
|
+
.rv-phone .rv-gutlabel{font-size:12.5px}
|
|
508
|
+
.rv-phone .rv-vmain{padding:var(--s2)}
|
|
509
|
+
.rv-avatar.anon{background:var(--panel2);color:var(--dim);border:1px solid var(--line);font-size:14px}
|
|
510
|
+
|
|
511
|
+
/* a long agent text: its first lines, a « more » that unfolds it in place */
|
|
512
|
+
.rv-clamp{display:flex;flex-direction:column;gap:var(--s1)}
|
|
513
|
+
.rv-clamp.shut .rv-what{max-height:9.5em;overflow:hidden;-webkit-mask-image:linear-gradient(var(--solid) 65%,transparent);mask-image:linear-gradient(var(--solid) 65%,transparent)}
|
|
514
|
+
.rv-more{align-self:flex-start;padding:0 var(--s1);font-size:13px;font-weight:700;color:var(--accent)}
|
|
515
|
+
.rv-eventn{flex:none;color:var(--ink)}
|
|
516
|
+
|
|
517
|
+
/* how many views of the version he answers still wait for him */
|
|
518
|
+
.rv-waiting{flex:none;align-self:center;font-size:12.5px;font-weight:750;line-height:22px;padding:0 var(--s3);border-radius:11px;color:var(--bg);background:var(--k4);white-space:nowrap}
|
|
519
|
+
.rv-waiting.done{background:var(--ok)}
|
|
520
|
+
.rv-forks{display:inline-flex;flex-wrap:wrap;gap:var(--s1);align-items:center}
|
|
521
|
+
.rv-fork{font-size:11.5px;padding:0 var(--s2);line-height:20px}
|
|
522
|
+
|
|
523
|
+
/* the minimap: the version pills, the views of the one he answers coloured by his answer, the answers as dots */
|
|
524
|
+
.rv-mini.col{width:58px}
|
|
525
|
+
.rv-mini.col .rv-minigroup{display:flex;flex-direction:column;align-items:center;gap:var(--s0)}
|
|
526
|
+
.rv-mini.row{width:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--s1);overflow:visible;border:0;background:none;padding:var(--s1) 0}
|
|
527
|
+
.rv-contents .rv-mini.row{padding:0 var(--s3) var(--s2)}
|
|
528
|
+
.rv-mini.row .rv-minigroup{display:inline-flex;align-items:center;gap:var(--s0)}
|
|
529
|
+
.rv-minimarks{display:flex;flex-direction:column;gap:var(--s0)}
|
|
530
|
+
.rv-mini.row .rv-minimarks{flex-direction:row;flex-wrap:wrap}
|
|
531
|
+
.rv-minimark{position:relative;width:34px;height:22px;padding:0;border-radius:4px;font:800 11px/18px ui-monospace,Menlo,monospace;color:var(--dim);border:1.5px solid var(--dim);background:none;cursor:pointer}
|
|
532
|
+
.rv-mini.row .rv-minimark{width:auto;min-width:30px;padding:0 var(--s0)}
|
|
533
|
+
.rv-minimark small{font-size:10px;margin-left:var(--s0)}
|
|
534
|
+
.rv-minimark.a-approved,.rv-minimark.a-picked,.rv-minimark.a-scored{color:var(--bg);background:var(--ok);border-color:var(--ok)}
|
|
535
|
+
.rv-minimark.a-approved-with-fix{color:var(--bg);background:var(--warn);border-color:var(--warn)}
|
|
536
|
+
.rv-minimark.a-rejected{color:var(--bg);background:var(--red);border-color:var(--red)}
|
|
537
|
+
.rv-minimark.a-sent,.rv-minimark.a-archived{color:var(--bg);background:var(--dim);border-color:var(--dim)}
|
|
538
|
+
.rv-minimark.noted::after{content:'';position:absolute;right:-3px;top:-3px;width:8px;height:8px;border-radius:4px;background:var(--k4);box-shadow:0 0 0 1.5px var(--bg)}
|
|
539
|
+
|
|
540
|
+
/* his draft notes under a view, before the verdict sends them */
|
|
541
|
+
.rv-drafthead{display:flex;flex-wrap:wrap;gap:var(--s2);align-items:baseline;margin-top:var(--s1);font-size:12.5px;color:var(--k4)}
|
|
542
|
+
.rv-outtext{flex:1;min-width:0;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.4;padding:var(--s0) var(--s2);color:var(--ink)}
|
|
543
|
+
.rv-rectword{margin-left:4px;font-weight:600;max-width:220px;display:inline-block;vertical-align:bottom;overflow:hidden;text-overflow:ellipsis}
|
|
544
|
+
|
|
545
|
+
/* a view whose media the store no longer holds */
|
|
546
|
+
.rv-gone{display:flex;flex-direction:column;gap:var(--s1);padding:var(--s4);border:1px dashed var(--line);border-radius:6px;text-align:center;background:var(--panel2);font-size:13px}
|
|
547
|
+
.rv-phone .rv-react.big,.rv-phone .rv-optacts > button{white-space:nowrap;line-height:34px;padding:0 var(--s3)}
|
|
548
|
+
.rv-phone .rv-reacts{flex:1 1 auto;display:flex;gap:var(--s1)}
|
|
549
|
+
.rv-phone .rv-reacts .rv-react.big{flex:1 1 0;text-align:center}
|
|
550
|
+
.rv-phone .rv-viewhead .rv-reacts{flex:1 1 100%;order:5}
|
|
551
|
+
.rv-phone .rv-clipbar{flex-wrap:wrap;row-gap:var(--s1)}
|
package/src/serve/hub-runtime.ts
CHANGED
|
@@ -46,7 +46,7 @@ import { recordStamp } from './project-gutter.ts'
|
|
|
46
46
|
import { shapeTimeline } from '../ledger/run-timeline.ts'
|
|
47
47
|
import { readSuiteRuns, readSuites } from '../ledger/suite-log.ts'
|
|
48
48
|
import { shapeTestCheck, shapeTestsRoot } from '../collections/test-time.ts'
|
|
49
|
-
import type { TestFacts } from '../collections/collection-types.ts'
|
|
49
|
+
import type { NeedItem, TestFacts } from '../collections/collection-types.ts'
|
|
50
50
|
import { declaredSlowFiles } from '../suite/test-units.ts'
|
|
51
51
|
import { BUILD_TIMEOUT_MS, CHECK_TIMEOUT_MS } from '../collections/checks.ts'
|
|
52
52
|
import { watchTracked } from './tracked-watch.ts'
|
|
@@ -113,11 +113,14 @@ export function configStamp(root: string): string {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
/** the url a ping carries for what it pings: the home gives its inbox's */
|
|
117
|
+
export type PingLink = (fresh: NeedItem[]) => string | undefined
|
|
118
|
+
|
|
116
119
|
/** a host that runs every gate as a detached job (the daemon): the cli the
|
|
117
120
|
* job runs, so a reload of the host never kills a gate in flight */
|
|
118
121
|
export type GateJobs = { cli: string; pollMs?: number }
|
|
119
122
|
|
|
120
|
-
export async function resolveHubDeps(root: string, boot: RepoConfig, io: ServeIo, o?: { port?: number; base?: string; jobs?: GateJobs; planName?: string }): Promise<HubDeps & { plan: PlanSource }> {
|
|
123
|
+
export async function resolveHubDeps(root: string, boot: RepoConfig, io: ServeIo, o?: { port?: number; base?: string; jobs?: GateJobs; planName?: string; link?: PingLink }): Promise<HubDeps & { plan: PlanSource }> {
|
|
121
124
|
// THE SWITCH WRITES repo.config.ts, so the surfaces built on the config
|
|
122
125
|
// read the one on disk rather than the one this process booted with. A
|
|
123
126
|
// toggle that never reached the rows would read as a toggle that did
|
|
@@ -403,7 +406,7 @@ export async function resolveHubDeps(root: string, boot: RepoConfig, io: ServeIo
|
|
|
403
406
|
// a silent one reads as no blockers at all
|
|
404
407
|
pingTick: (needs) =>
|
|
405
408
|
pingTick(root, c.asks?.dir ?? LAYOUT.asks, needs, {
|
|
406
|
-
link: c.serve?.publicHost != null ? `http://${c.serve.publicHost}:${port}${o?.base ?? ''}/?f=needs` : undefined,
|
|
409
|
+
link: o?.link ?? (() => (c.serve?.publicHost != null ? `http://${c.serve.publicHost}:${port}${o?.base ?? ''}/?f=needs` : undefined)),
|
|
407
410
|
run: (cmd) => {
|
|
408
411
|
const p = Bun.spawn(cmd, { stdout: 'ignore', stderr: 'pipe' })
|
|
409
412
|
void p.exited.then(async (code) => {
|
|
@@ -477,6 +480,8 @@ export type LoadHubOpts = {
|
|
|
477
480
|
fresh?: boolean
|
|
478
481
|
/** every gate runs as a detached job this host follows */
|
|
479
482
|
jobs?: GateJobs
|
|
483
|
+
/** the url a ping carries, in place of this hub's own page */
|
|
484
|
+
link?: PingLink
|
|
480
485
|
}
|
|
481
486
|
|
|
482
487
|
/** how long a save burst settles before the warm answers recompute */
|
|
@@ -488,7 +493,7 @@ let warming: Promise<void> = Promise.resolve()
|
|
|
488
493
|
|
|
489
494
|
export async function loadHub(root: string, io: ServeIo, o: LoadHubOpts): Promise<HubRuntime> {
|
|
490
495
|
const c = await loadRepoConfig(root, { fresh: o.fresh === true })
|
|
491
|
-
const deps = await resolveHubDeps(root, c, io, { port: o.port, base: o.base, jobs: o.jobs, planName: o.planName })
|
|
496
|
+
const deps = await resolveHubDeps(root, c, io, { port: o.port, base: o.base, jobs: o.jobs, planName: o.planName, link: o.link })
|
|
492
497
|
const name = deps.plan.repo
|
|
493
498
|
deps.planned = () => o.plan.rows(name)
|
|
494
499
|
deps.ask = (check) => {
|
package/src/serve/serve-hub.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { graphRoutes } from 'rvlib-shipkit/src/wiki/serve-graph.ts'
|
|
|
12
12
|
import type { StudioRoutes } from '../assets/server/studio-server.ts'
|
|
13
13
|
import { comfyBoxUp, type ComfyBox, type ComfyPanelUp } from '../comfy/comfy-panel.ts'
|
|
14
14
|
import { appendAskRemark, appendAssetNote, appendPostFeedback, askDone, askProof, markPosted, pickPostVariant } from '../collections/actions.ts'
|
|
15
|
-
import { brokenRow, projectResources, type Collection, type Instance, type NeedItem } from '../collections/collection-types.ts'
|
|
15
|
+
import { brokenRow, projectResources, type Collection, type Instance, type NeedItem, type Resource } from '../collections/collection-types.ts'
|
|
16
16
|
import type { CheckEvent } from '../core/run-check.ts'
|
|
17
17
|
import { configDirty, readGateBlock, writeGateBlock, type GateEdit } from '../core/when-block.ts'
|
|
18
18
|
import type { InvokedBy } from '../ledger/run-log.ts'
|
|
@@ -131,6 +131,8 @@ export type HubHandler = {
|
|
|
131
131
|
invalidate: () => void
|
|
132
132
|
/** compute the warm answers now, the rows first: the hub's load */
|
|
133
133
|
warm: () => Promise<void>
|
|
134
|
+
/** every row that needs someone, from the warm rows as memory holds them: the home's inbox polls it */
|
|
135
|
+
needs: () => Promise<Resource[]>
|
|
134
136
|
stop: () => void
|
|
135
137
|
}
|
|
136
138
|
|
|
@@ -200,6 +202,7 @@ export function hubHandler(d: HubDeps, o: { base?: string; projects?: Gutter } =
|
|
|
200
202
|
await timeline?.warm()
|
|
201
203
|
for (const g of graphs.values()) await g.warm()
|
|
202
204
|
},
|
|
205
|
+
needs: async () => (await rows.get({ held: true })).resources.filter((r) => r.severity != null),
|
|
203
206
|
stop: () => { d.comfy?.stop() },
|
|
204
207
|
async handle(req, path, srv): Promise<Response> {
|
|
205
208
|
if (!sameOrigin(req)) return new Response('refused: a request that changes something must come from the hub page', { status: 403 })
|
package/src/serve/warm-cell.ts
CHANGED
|
@@ -91,7 +91,7 @@ export class WarmCell<T> {
|
|
|
91
91
|
|
|
92
92
|
/** the answer in memory, a stale one kicking a recompute behind it. With
|
|
93
93
|
* nothing in memory yet, or `fresh`, it waits on a compute */
|
|
94
|
-
async get(o: { fresh?: boolean } = {}): Promise<T> {
|
|
94
|
+
async get(o: { fresh?: boolean; held?: boolean } = {}): Promise<T> {
|
|
95
95
|
const watched = this.watched
|
|
96
96
|
this.readAt = this.now()
|
|
97
97
|
if (o.fresh === true) return this.fresh()
|
|
@@ -99,6 +99,11 @@ export class WarmCell<T> {
|
|
|
99
99
|
// nothing in memory, a failed compute included: wait on a new one
|
|
100
100
|
if (v == null) return this.run()
|
|
101
101
|
const moved = this.stale || this.gen !== this.runGen
|
|
102
|
+
// `held`: a reader that polls (the home's inbox) takes what is in memory now, a compute behind it
|
|
103
|
+
if (o.held === true) {
|
|
104
|
+
if (moved && this.running == null) this.kick()
|
|
105
|
+
return v.v
|
|
106
|
+
}
|
|
102
107
|
// the first reader in a while: what is in memory may be hours old,
|
|
103
108
|
// and no save recomputed it meanwhile
|
|
104
109
|
if (moved && !watched) return this.running != null && this.runGen === this.gen ? this.running : this.fresh()
|
package/src/trailer/footage.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync,
|
|
|
5
5
|
import { tmpdir } from 'node:os'
|
|
6
6
|
import { isAbsolute, join } from 'node:path'
|
|
7
7
|
import type { TrailerFilmLine, TrailerUnit } from './adapter.ts'
|
|
8
|
+
import { scratchObjects } from '../core/scratch-objects.ts'
|
|
8
9
|
import { duration } from './ffmpeg.ts'
|
|
9
10
|
import type { Shot, Trailer } from './grammar.ts'
|
|
10
11
|
import { cliArgv, isTake, recipeText, recipeWords, runCommand, type Stamp, specOf, type Take, type TakeFilm, type TakeSpec, takeIsStill, takeName, takeSeconds } from './plan.ts'
|
|
@@ -71,7 +72,8 @@ const git = (root: string, args: string[], env?: Record<string, string>): string
|
|
|
71
72
|
* the world the takes show: every file of the repo as it stands, by its content (`trailer/` and `.shipkit/` left out),
|
|
72
73
|
* or only the `paths` the trailer unit's `stamp` names; a repo with no git: `no-git`. Content addressed: the working
|
|
73
74
|
* tree is staged into a throwaway copy of the index and the staged entries hashed, so the same content dirty or
|
|
74
|
-
* committed is one world, and an edit of the cut alone moves nothing
|
|
75
|
+
* committed is one world, and an edit of the cut alone moves nothing. The blobs the add hashes go to a throwaway
|
|
76
|
+
* object dir too (core/scratch-objects.ts), never into the repo's store
|
|
75
77
|
*/
|
|
76
78
|
export function worldStamp(root: string, paths?: readonly string[]): string {
|
|
77
79
|
const real = git(root, ['rev-parse', '--git-path', 'index'])
|
|
@@ -79,17 +81,19 @@ export function worldStamp(root: string, paths?: readonly string[]): string {
|
|
|
79
81
|
const spec = paths ? ['--', ...paths] : ['--', '.', ':(exclude)trailer', ':(exclude).shipkit']
|
|
80
82
|
if (paths) for (const p of paths) if (!existsSync(join(root, p))) throw new Error(`the trailer unit's stamp names a path the repo does not hold: ${p}`)
|
|
81
83
|
const index = join(tmpdir(), `sk-world-${process.pid}-${Math.random().toString(36).slice(2)}`)
|
|
84
|
+
const objects = scratchObjects(root, tmpdir())
|
|
82
85
|
try {
|
|
83
86
|
// a copy of the real index keeps git's stat cache: only the files that changed are read again
|
|
84
87
|
const from = isAbsolute(real.trim()) ? real.trim() : join(root, real.trim())
|
|
85
88
|
if (existsSync(from)) copyFileSync(from, index)
|
|
86
|
-
const env = { GIT_INDEX_FILE: index }
|
|
89
|
+
const env = { ...objects.env, GIT_INDEX_FILE: index }
|
|
87
90
|
if (git(root, ['add', '-A', ...spec], env) === null) throw new Error('git add into the world\'s throwaway index failed')
|
|
88
91
|
const staged = git(root, ['ls-files', '-s', ...spec], env)
|
|
89
92
|
if (staged === null) throw new Error('git ls-files of the world\'s throwaway index failed')
|
|
90
93
|
return new Bun.CryptoHasher('sha1').update(staged).digest('hex').slice(0, 12)
|
|
91
94
|
} finally {
|
|
92
95
|
rmSync(index, { force: true })
|
|
96
|
+
objects.drop()
|
|
93
97
|
}
|
|
94
98
|
}
|
|
95
99
|
|
package/src/trailer/passage.ts
CHANGED
|
@@ -66,8 +66,10 @@ async function versionCut(l: Loaded, v: string, cwd: string): Promise<{ t: Trail
|
|
|
66
66
|
if (!existsSync(text)) throw new Refused(`no ${relative(cwd, text)}`)
|
|
67
67
|
const kept = await load(text, l.root, { dir: l.dir, check: false })
|
|
68
68
|
if (kept.errors.length > 0) throw new Refused(`${v} does not read with today's tool (an older version builds only in a worktree at its tag): ${kept.errors[0]!.message}`)
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
let video = versionVideo(l.dir, v) ?? join(l.dir, 'versions', v, `${basename(l.dir)}-${v}.mp4`)
|
|
70
|
+
// a version the disk let go comes back from the media store
|
|
71
|
+
if (!existsSync(video)) video = (await (await import('../review/trailer-media.ts')).versionVideoBack(l.root, basename(l.dir), v)) ?? video
|
|
72
|
+
if (!existsSync(video)) throw new Refused(`no ${relative(cwd, video)}, on the disk or in the media store`)
|
|
71
73
|
return { t: kept.t, video }
|
|
72
74
|
}
|
|
73
75
|
|