clavarium 0.2.321-next.1 → 0.2.322-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,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.321-next.1",
3
+ "version": "0.2.322-next.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.321-next.1",
9
+ "version": "0.2.322-next.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.321-next.1",
3
+ "version": "0.2.322-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.",
package/web/kit.js CHANGED
@@ -125,12 +125,20 @@
125
125
  const main = node('span', 'kit-conv-main');
126
126
  const head = node('span', 'kit-conv-head');
127
127
  head.append(node('b', '', m.title ?? ''));
128
+ /* A row (05-11, the designers' review): its unread count beside its time, its marks as small words on
129
+ the line below, beside its last words -- one line less than pills. */
130
+ const counts = size === 'row' ? (m.chips ?? []).filter((c) => c && !c.wide && c.tone === 'count') : [];
131
+ const countChips = Chips(counts);
132
+ if (countChips) head.append(countChips);
128
133
  if (m.when) head.append(node('small', 'when', m.when));
129
134
  main.append(head);
130
135
  const lines = [];
131
136
  if (size === 'row') {
132
- if (m.last) lines.push(node('small', 'last', m.last));
133
- if (m.now) lines.push(node('small', 'kit-conv-now', m.now));
137
+ const marks = Chips((m.chips ?? []).filter((c) => c && !c.wide && c.tone !== 'count'));
138
+ const sub = [m.last ? node('small', 'last', m.last) : null, m.now ? node('small', 'kit-conv-now', m.now) : null].filter(Boolean);
139
+ if (marks && sub.length) { const line = node('span', 'kit-conv-sub'); line.append(sub[0], marks); lines.push(line, ...sub.slice(1)); }
140
+ else if (marks) lines.push(marks);
141
+ else lines.push(...sub);
134
142
  } else if (size === 'card') {
135
143
  if (m.last) lines.push(node('small', 'last', m.last));
136
144
  const what = [m.now, m.who].filter(Boolean).join(' · ');
@@ -141,7 +149,7 @@
141
149
  }
142
150
  main.append(...lines);
143
151
  /* Its chips by place: all on a card; a row leaves out the wide ones; a member only what waits for you. */
144
- const chips = Chips((m.chips ?? []).filter((c) => c && (size === 'card' || (size === 'row' ? !c.wide : c.tone === 'need' || c.tone === 'count'))));
152
+ const chips = size === 'row' ? null : Chips((m.chips ?? []).filter((c) => c && (size === 'card' || c.tone === 'need' || c.tone === 'count')));
145
153
  if (chips) main.append(chips);
146
154
  root.append(main);
147
155
  if (actions.length) { const acts = node('span', 'kit-conv-acts'); acts.append(...actions.filter(Boolean)); root.append(acts); }
package/web/style.css CHANGED
@@ -2706,3 +2706,13 @@ button.kit-switch[aria-checked="true"]::after { left: 18px; background: var(--ok
2706
2706
  .kit-conv-member .kit-conv-main > small { font-size: .75rem; }
2707
2707
  .salon-host-box > .kit-conv-member { flex: 1; padding: 0; --kc-ring: color-mix(in srgb, var(--brass) 10%, var(--panel)); }
2708
2708
  @media (max-width: 520px) { .kit-conv-card { --kc-av: 30px; column-gap: 8px; padding: 10px; } }
2709
+
2710
+ /* THE ROW, compact (05-11, designers' review): a smaller initial, a bigger ringed point, the marks as small
2711
+ coloured words beside the last words (not pills), the unread count beside the time. */
2712
+ .kit-conv-row { --kc-av: 24px; padding: 6px 10px; }
2713
+ .kit-conv-row > .state-dot { width: 10px; height: 10px; margin: calc(var(--kc-av) - 8px) -4px 0 0; box-shadow: 0 0 0 2px var(--kc-ring); }
2714
+ .kit-conv-row .kit-conv-head > .kit-chips { flex: none; margin: 0; }
2715
+ .kit-conv-sub { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
2716
+ .kit-conv-sub > small { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
2717
+ .kit-conv-row .kit-conv-main > .kit-chips, .kit-conv-sub > .kit-chips { flex: none; margin: 0; gap: 6px; flex-wrap: nowrap; }
2718
+ .kit-conv-row .kit-conv-main .kit-chip:not([data-tone="count"]) { border: 0; padding: 0; background: none; line-height: inherit; font-size: .75rem; }