clavarium 0.2.39-next.1 → 0.2.41-next.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.
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.39-next.1",
3
+ "version": "0.2.41-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.39-next.1",
9
+ "version": "0.2.41-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
13
13
  "@xterm/xterm": "^6.0.0",
14
14
  "clavarium-binder": "0.1.6-next.1",
15
15
  "clavarium-docket": "0.1.1",
16
- "clavarium-parley": "0.17.3-next.1",
16
+ "clavarium-parley": "0.17.4-next.1",
17
17
  "mermaid": "11.17.2",
18
18
  "node-pty": "^1.1.0",
19
19
  "pdfjs-dist": "6.4.299",
@@ -714,9 +714,9 @@
714
714
  }
715
715
  },
716
716
  "node_modules/clavarium-parley": {
717
- "version": "0.17.3-next.1",
718
- "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.3-next.1.tgz",
719
- "integrity": "sha512-wnaCSkDrcaZE/Tf1y7LI0NiYLnz9qAEjZwYeT+DSquvoMIDU43dugBuW7QdNyP1NB8knupaWqXH29oNSZ9n8jw==",
717
+ "version": "0.17.4-next.1",
718
+ "resolved": "https://registry.npmjs.org/clavarium-parley/-/clavarium-parley-0.17.4-next.1.tgz",
719
+ "integrity": "sha512-/rQy9WLP9/XndInawH6mIhS9RivA1IQmMpB5IhYMUflnLSWBvP096Z0TF3xB3u2X1e8uni4tar5Tua5hq/wjWg==",
720
720
  "license": "MIT",
721
721
  "bin": {
722
722
  "parley": "bin/parley.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.39-next.1",
3
+ "version": "0.2.41-next.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
@@ -46,7 +46,7 @@
46
46
  "@xterm/xterm": "^6.0.0",
47
47
  "clavarium-binder": "0.1.6-next.1",
48
48
  "clavarium-docket": "0.1.1",
49
- "clavarium-parley": "0.17.3-next.1",
49
+ "clavarium-parley": "0.17.4-next.1",
50
50
  "mermaid": "11.17.2",
51
51
  "node-pty": "^1.1.0",
52
52
  "pdfjs-dist": "6.4.299",
package/web/gitgraph.js CHANGED
@@ -127,11 +127,14 @@
127
127
  /* Fixed columns, so the author, the time and the branches line up
128
128
  down the rows and read at a glance. All set as text, never markup. */
129
129
  const cell = (cls, tag, text) => { const e = document.createElement(tag); e.className = cls; e.textContent = text; return e; };
130
+ /* The message takes all the room it can and is cut only when it must;
131
+ the other columns are a fixed block on the right. */
130
132
  const subject = cell('gg-subject', 'span', c.subject || '(no message)'); subject.title = c.subject || '';
133
+ const meta = document.createElement('div'); meta.className = 'gg-meta';
131
134
  const author = cell('gg-author', 'span', c.author || '');
132
135
  const time = cell('gg-time', 'small', when(c.date, now));
133
136
  const sha = cell('gg-id', 'small', c.id.slice(0, 7));
134
- b.append(subject, author, time, sha);
137
+ const refs = document.createElement('div'); refs.className = 'gg-refs';
135
138
  /* Its branches: the agent's (filled), the remote's (outlined); the same name on both is one label. */
136
139
  const names = new Map();
137
140
  for (const ref of c.refs ?? []) names.set(ref.name, names.has(ref.name) && names.get(ref.name) !== ref.side ? 'both' : ref.side);
@@ -139,7 +142,7 @@
139
142
  const pill = document.createElement('span'); pill.className = `gg-ref gg-${side}`; pill.textContent = name;
140
143
  pill.style.setProperty('--c', colour(r.col));
141
144
  pill.title = side === 'agent' ? `The agent's ${name}` : side === 'remote' ? `The remote's ${name}` : `${name}, the same here and on the remote`;
142
- b.append(pill);
145
+ refs.append(pill);
143
146
  /* On the agent's tip of a branch that is not level with the remote:
144
147
  how far it is ahead and behind (shown only in the detailed view). */
145
148
  const n = side !== 'remote' && counts[name];
@@ -147,9 +150,11 @@
147
150
  const badge = document.createElement('small'); badge.className = 'gg-count';
148
151
  badge.textContent = `${n.ahead ? `↑${n.ahead}` : ''}${n.behind ? ` ↓${n.behind}` : ''}`.trim();
149
152
  badge.title = `${n.ahead} ahead of, ${n.behind} behind the remote`;
150
- b.append(badge);
153
+ refs.append(badge);
151
154
  }
152
155
  }
156
+ meta.append(author, time, sha, refs);
157
+ b.append(subject, meta);
153
158
  if (pick) b.addEventListener('click', () => pick(c));
154
159
  list.append(b);
155
160
  });
package/web/style.css CHANGED
@@ -1172,20 +1172,24 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
1172
1172
  .gg-bar { display: flex; justify-content: flex-end; }
1173
1173
  .gg-toggle { font-size: .72rem; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink2); }
1174
1174
  .gg-toggle[aria-pressed="true"] { color: var(--ink); border-color: var(--gg-0); }
1175
- .gg { position: relative; min-width: max-content; }
1175
+ .gg { position: relative; width: 100%; }
1176
1176
  .gg-lines { position: absolute; left: 0; top: 0; }
1177
1177
  .gg-rows { display: flex; flex-direction: column; }
1178
- .gg-row { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-weight: 400; white-space: nowrap; }
1179
- .gg-row:hover, .gg-row:focus-visible { background: var(--button, #222c38); }
1180
- /* Fixed columns, so the author and the branches line up down the rows. */
1181
- .gg-subject { flex: none; width: 30ch; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
1182
- .gg-author { flex: none; width: 12ch; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; }
1183
- .gg-time { flex: none; width: 9ch; color: var(--ink2); }
1184
- .gg-id { flex: none; width: 7ch; color: var(--ink2); font-family: ui-monospace, Menlo, Consolas, monospace; opacity: .8; }
1185
- .gg-count { flex: none; color: var(--ink2); font-weight: 700; font-size: .72rem; }
1178
+ .gg-row { display: flex; align-items: center; gap: 14px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-weight: 400; white-space: nowrap; width: 100%; }
1179
+ /* A faint highlight on the row the mouse is over, to follow it across a wide screen. */
1180
+ .gg-row:hover, .gg-row:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); }
1181
+ /* The message takes all the room it can; the other columns are a fixed block on the right. */
1182
+ .gg-subject { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
1183
+ .gg-meta { flex: none; display: flex; align-items: center; gap: 10px; }
1184
+ .gg-author { width: 11ch; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; }
1185
+ .gg-time { width: 8ch; color: var(--ink2); }
1186
+ .gg-id { width: 7ch; color: var(--ink2); font-family: ui-monospace, Menlo, Consolas, monospace; opacity: .8; }
1187
+ .gg-refs { width: 14ch; flex: none; display: flex; align-items: center; gap: 6px; overflow: hidden; }
1188
+ .gg-count { color: var(--ink2); font-weight: 700; font-size: .72rem; }
1186
1189
  /* The id, the time and the ahead/behind count come in only when asked. */
1187
1190
  .gg-id, .gg-time, .gg-count { display: none; }
1188
- .gg-detailed .gg-id, .gg-detailed .gg-time, .gg-detailed .gg-count { display: inline-block; }
1191
+ .gg-detailed .gg-id, .gg-detailed .gg-time { display: inline-block; }
1192
+ .gg-detailed .gg-count { display: inline; }
1189
1193
  .gg-row small { color: var(--ink2); }
1190
1194
  .gg-ref { font-size: .6875rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: var(--c); border: 1px solid var(--c); }
1191
1195
  .gg-agent, .gg-both { background: color-mix(in srgb, var(--c) 16%, transparent); }