@songsid/agend 2.4.0-beta.3 → 2.4.0-beta.4
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/dist/agent-endpoint.d.ts +1 -1
- package/dist/agent-endpoint.js +8 -2
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/auth-api.d.ts +3 -0
- package/dist/auth-api.js +15 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/agy-model-switch.d.ts +22 -0
- package/dist/backend/agy-model-switch.js +62 -0
- package/dist/backend/agy-model-switch.js.map +1 -0
- package/dist/backend/antigravity.js +50 -1
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/cli-runtime-switch.d.ts +71 -0
- package/dist/backend/cli-runtime-switch.js +176 -0
- package/dist/backend/cli-runtime-switch.js.map +1 -0
- package/dist/backend/codex-model-switch.d.ts +41 -0
- package/dist/backend/codex-model-switch.js +170 -0
- package/dist/backend/codex-model-switch.js.map +1 -0
- package/dist/backend/grok-model-switch.d.ts +16 -0
- package/dist/backend/grok-model-switch.js +45 -0
- package/dist/backend/grok-model-switch.js.map +1 -0
- package/dist/backend/grok.js +1 -1
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/muse.d.ts +2 -0
- package/dist/backend/muse.js +7 -3
- package/dist/backend/muse.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-server.js +10 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.js +8 -0
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/cli-audited.js +12 -12
- package/dist/cli-audited.js.map +1 -1
- package/dist/daemon.d.ts +47 -1
- package/dist/daemon.js +301 -20
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-consumed-watch.js +3 -0
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/fleet-manager.d.ts +102 -0
- package/dist/fleet-manager.js +663 -25
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +2 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +9 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +154 -0
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +4 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +7 -3
- package/dist/hub/admin-dashboard.d.ts +85 -0
- package/dist/hub/admin-dashboard.js +161 -0
- package/dist/hub/admin-dashboard.js.map +1 -0
- package/dist/hub/attachments/store.d.ts +2 -0
- package/dist/hub/attachments/store.js +6 -0
- package/dist/hub/attachments/store.js.map +1 -1
- package/dist/hub/client.d.ts +10 -0
- package/dist/hub/client.js +72 -10
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +20 -0
- package/dist/hub/compose/member.js +212 -17
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +8 -0
- package/dist/hub/compose/server.js +13 -2
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/display-name.d.ts +10 -0
- package/dist/hub/display-name.js +35 -0
- package/dist/hub/display-name.js.map +1 -0
- package/dist/hub/execution/service.d.ts +1 -0
- package/dist/hub/execution/service.js +1 -1
- package/dist/hub/execution/service.js.map +1 -1
- package/dist/hub/fleet-info.d.ts +12 -0
- package/dist/hub/fleet-info.js +14 -0
- package/dist/hub/fleet-info.js.map +1 -0
- package/dist/hub/fleet-update-model.d.ts +100 -0
- package/dist/hub/fleet-update-model.js +15 -0
- package/dist/hub/fleet-update-model.js.map +1 -0
- package/dist/hub/fleet-updates.d.ts +46 -0
- package/dist/hub/fleet-updates.js +282 -0
- package/dist/hub/fleet-updates.js.map +1 -0
- package/dist/hub/fleet-versions.d.ts +28 -0
- package/dist/hub/fleet-versions.js +80 -0
- package/dist/hub/fleet-versions.js.map +1 -0
- package/dist/hub/http/compose.d.ts +2 -0
- package/dist/hub/http/compose.js +192 -16
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +1 -0
- package/dist/hub/http/schema.js +13 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/member/display-name.d.ts +9 -0
- package/dist/hub/member/display-name.js +71 -0
- package/dist/hub/member/display-name.js.map +1 -0
- package/dist/hub/member/exposure-api.d.ts +4 -0
- package/dist/hub/member/exposure-api.js +8 -3
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/exposures.d.ts +4 -0
- package/dist/hub/member/exposures.js +20 -0
- package/dist/hub/member/exposures.js.map +1 -1
- package/dist/hub/member/pairing-api.js +3 -2
- package/dist/hub/member/pairing-api.js.map +1 -1
- package/dist/hub/member/recommendations.d.ts +37 -0
- package/dist/hub/member/recommendations.js +129 -0
- package/dist/hub/member/recommendations.js.map +1 -0
- package/dist/hub/member/room-ask.d.ts +60 -1
- package/dist/hub/member/room-ask.js +250 -22
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-post-answers.d.ts +52 -0
- package/dist/hub/member/room-post-answers.js +152 -0
- package/dist/hub/member/room-post-answers.js.map +1 -0
- package/dist/hub/member/room-post-receipt.d.ts +21 -0
- package/dist/hub/member/room-post-receipt.js +49 -0
- package/dist/hub/member/room-post-receipt.js.map +1 -0
- package/dist/hub/member/room-post.d.ts +100 -0
- package/dist/hub/member/room-post.js +223 -0
- package/dist/hub/member/room-post.js.map +1 -0
- package/dist/hub/member/updates.d.ts +92 -0
- package/dist/hub/member/updates.js +316 -0
- package/dist/hub/member/updates.js.map +1 -0
- package/dist/hub/protocol.d.ts +658 -1
- package/dist/hub/protocol.js +90 -13
- package/dist/hub/protocol.js.map +1 -1
- package/dist/hub/published-version.d.ts +3 -0
- package/dist/hub/published-version.js +35 -0
- package/dist/hub/published-version.js.map +1 -0
- package/dist/hub/recommendation-model.d.ts +36 -0
- package/dist/hub/recommendation-model.js +9 -0
- package/dist/hub/recommendation-model.js.map +1 -0
- package/dist/hub/recommendations.d.ts +58 -0
- package/dist/hub/recommendations.js +211 -0
- package/dist/hub/recommendations.js.map +1 -0
- package/dist/hub/representative.d.ts +3 -0
- package/dist/hub/representative.js +1 -0
- package/dist/hub/representative.js.map +1 -1
- package/dist/hub/room-context-model.d.ts +43 -0
- package/dist/hub/room-context-model.js +12 -0
- package/dist/hub/room-context-model.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +41 -9
- package/dist/hub/rooms/agents.js +183 -21
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/assistant.d.ts +1 -6
- package/dist/hub/rooms/assistant.js +7 -2
- package/dist/hub/rooms/assistant.js.map +1 -1
- package/dist/hub/rooms/automation.d.ts +24 -0
- package/dist/hub/rooms/automation.js +66 -0
- package/dist/hub/rooms/automation.js.map +1 -0
- package/dist/hub/rooms/buttons.d.ts +85 -0
- package/dist/hub/rooms/buttons.js +62 -0
- package/dist/hub/rooms/buttons.js.map +1 -0
- package/dist/hub/rooms/context-cursor.d.ts +18 -0
- package/dist/hub/rooms/context-cursor.js +61 -0
- package/dist/hub/rooms/context-cursor.js.map +1 -0
- package/dist/hub/rooms/context.d.ts +1 -1
- package/dist/hub/rooms/context.js +4 -4
- package/dist/hub/rooms/context.js.map +1 -1
- package/dist/hub/rooms/mentions.d.ts +15 -0
- package/dist/hub/rooms/mentions.js +43 -0
- package/dist/hub/rooms/mentions.js.map +1 -0
- package/dist/hub/rooms/post-replies.d.ts +23 -0
- package/dist/hub/rooms/post-replies.js +114 -0
- package/dist/hub/rooms/post-replies.js.map +1 -0
- package/dist/hub/rooms/schema.d.ts +9 -0
- package/dist/hub/rooms/schema.js +43 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +136 -1
- package/dist/hub/rooms/service.js +727 -18
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +27 -3
- package/dist/hub/rooms.js +1 -1
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/runtime.js +12 -0
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +6 -1
- package/dist/hub/server.js +75 -5
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/settings-directory-proof.js +22 -1
- package/dist/hub/settings-directory-proof.js.map +1 -1
- package/dist/hub/types.d.ts +133 -2
- package/dist/hub-contact-windows.d.ts +11 -0
- package/dist/hub-contact-windows.js +56 -0
- package/dist/hub-contact-windows.js.map +1 -0
- package/dist/hub-pairing-summary.d.ts +1 -1
- package/dist/hub-room-conversation.d.ts +14 -0
- package/dist/hub-room-conversation.js +60 -0
- package/dist/hub-room-conversation.js.map +1 -0
- package/dist/hub-update-notice.d.ts +12 -0
- package/dist/hub-update-notice.js +35 -0
- package/dist/hub-update-notice.js.map +1 -0
- package/dist/locale.js +56 -2
- package/dist/locale.js.map +1 -1
- package/dist/native-mcp.js +9 -6
- package/dist/native-mcp.js.map +1 -1
- package/dist/outbound-handlers.d.ts +14 -4
- package/dist/outbound-handlers.js +54 -1
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +12 -0
- package/dist/outbound-schemas.js +12 -0
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-port.d.ts +2 -0
- package/dist/queued-handoffs.d.ts +16 -4
- package/dist/queued-handoffs.js +18 -1
- package/dist/queued-handoffs.js.map +1 -1
- package/dist/runtime-cli-install.js +13 -10
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/settings-api.d.ts +1 -0
- package/dist/settings-api.js +87 -0
- package/dist/settings-api.js.map +1 -1
- package/dist/tmux-manager.d.ts +2 -0
- package/dist/tmux-manager.js +2 -0
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tool-permissions.js +3 -0
- package/dist/tool-permissions.js.map +1 -1
- package/dist/ui/chat-msg-actions.js +3 -222
- package/dist/ui/hub-admin-overview.js +189 -0
- package/dist/ui/hub-client.js +36 -4
- package/dist/ui/hub-fleet-versions.js +393 -0
- package/dist/ui/hub-room-agent-strings.js +28 -0
- package/dist/ui/hub-room-composer.js +5 -3
- package/dist/ui/hub-room-members-strings.js +2 -2
- package/dist/ui/hub-room-members.js +3 -2
- package/dist/ui/hub-room-notify.js +161 -0
- package/dist/ui/hub-room-search.js +126 -0
- package/dist/ui/hub-room-strings.js +46 -0
- package/dist/ui/hub-room-thread.js +239 -34
- package/dist/ui/hub-room-unread.js +2 -1
- package/dist/ui/hub-strings.js +8 -0
- package/dist/ui/image-annotate.js +2 -283
- package/dist/ui/image-lightbox.js +2 -176
- package/dist/ui/image-zoom.js +2 -242
- package/dist/ui/notice-hub-update.js +94 -0
- package/dist/ui/panel-chat.js +35 -6
- package/dist/ui/panel-hub.js +133 -19
- package/dist/ui/panel-notices.js +3 -1
- package/dist/ui/panel-settings.js +1 -1
- package/dist/ui/settings-hub-updates.js +67 -0
- package/dist/ui/settings-hub.js +28 -3
- package/dist/ui/settings-registry.js +1 -0
- package/dist/ui/settings-update.js +11 -5
- package/dist/ui/settings-web-authority.js +1 -1
- package/dist/ui/shared/app-i18n.js +2 -0
- package/dist/ui/shared/app-nav.js +6 -2
- package/dist/ui/shared/app-prefs.js +2 -1
- package/dist/ui/shared/app-shell.js +11 -1
- package/dist/ui/shared/app-update.js +90 -8
- package/dist/ui/shared/app.css +20 -0
- package/dist/ui/shared/chat-msg-actions.js +225 -0
- package/dist/ui/shared/chat-thread.js +70 -5
- package/dist/ui/shared/chat-work-bar.css +25 -13
- package/dist/ui/shared/hub-chat.css +6 -1
- package/dist/ui/shared/hub-owner.css +104 -0
- package/dist/ui/shared/hub-rooms-u2.css +16 -0
- package/dist/ui/shared/hub.css +5 -0
- package/dist/ui/shared/image-annotate.js +306 -0
- package/dist/ui/shared/image-lightbox.js +183 -0
- package/dist/ui/shared/image-zoom.js +242 -0
- package/dist/ui/shared/instance-nav.js +36 -7
- package/dist/ui/shared/view-strings.js +6 -0
- package/dist/ui/shared/web-authorize.js +2 -2
- package/dist/update-dispatch.d.ts +8 -1
- package/dist/update-dispatch.js +16 -1
- package/dist/update-dispatch.js.map +1 -1
- package/dist/update-idle.d.ts +65 -0
- package/dist/update-idle.js +190 -0
- package/dist/update-idle.js.map +1 -0
- package/dist/update-launch.d.ts +1 -1
- package/dist/update-launch.js +9 -2
- package/dist/update-launch.js.map +1 -1
- package/dist/usage/profile-timeline.d.ts +2 -0
- package/dist/usage/profile-timeline.js +4 -0
- package/dist/usage/profile-timeline.js.map +1 -1
- package/dist/web-api.js +19 -2
- package/dist/web-api.js.map +1 -1
- package/dist/web-notices.d.ts +3 -0
- package/dist/web-notices.js +17 -2
- package/dist/web-notices.js.map +1 -1
- package/dist/web-prefs.js +1 -0
- package/dist/web-prefs.js.map +1 -1
- package/dist/web-update.d.ts +15 -1
- package/package.json +1 -1
|
@@ -40,6 +40,10 @@ const P = () => globalThis.AgendPreview;
|
|
|
40
40
|
export const STATUS_FOLD_LINES = 2;
|
|
41
41
|
export const STATUS_LINE_CHARS = 100;
|
|
42
42
|
const REPLY = '<svg class="icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"/></svg>';
|
|
43
|
+
// M-3127 (Hub rooms): add a reaction — a smiley with a plus.
|
|
44
|
+
const REACT = '<svg class="icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.2-8.56"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><path d="M9 9h.01M15 9h.01"/><path d="M19 2v6M16 5h6"/></svg>';
|
|
45
|
+
/** M-3127: the quick reactions a person picks from (a room checks each one again). */
|
|
46
|
+
export const QUICK_REACTIONS = Object.freeze(["👍", "❤️", "😂", "🎉", "🙏", "👀", "✅", "🔥"]);
|
|
43
47
|
const COPY = '<svg class="icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>';
|
|
44
48
|
|
|
45
49
|
/** Escapes & " ' < >: safe for text and inside a quoted attribute. */
|
|
@@ -199,9 +203,57 @@ export function createThread(list, scroller, opts) {
|
|
|
199
203
|
const clicked = x.role === "user" && x.click && typeof x.click.label === "string";
|
|
200
204
|
// #2272: reply to it — a hover strip at its top right (phones: swipe left or long-press; R on a focused message).
|
|
201
205
|
const key = msgKey(x);
|
|
202
|
-
|
|
206
|
+
// M-3127: a Hub room (opts.react, a message of the room) also offers Add reaction in the same strip; the Fleet passes none.
|
|
207
|
+
const reactable = typeof opts.react === "function" && x.roomMessage && opts.canReact?.(x) !== false;
|
|
208
|
+
const addReact = reactable ? `<button type="button" class="chip-btn icon-only" data-act="reactPick" data-arg="${escAttr(key)}" aria-haspopup="true" aria-expanded="false" title="${escAttr(reactText("add"))}" aria-label="${escAttr(reactText("add"))}">${REACT}</button>` : "";
|
|
209
|
+
const act = opts.canReply?.() === false ? (addReact ? `<div data-trust="thread-control" class="msg-actions">${addReact}</div>` : "") : `<div data-trust="thread-control" class="msg-actions">${addReact}<button type="button" class="chip-btn icon-only" data-act="reply" data-arg="${escAttr(key)}" title="${escAttr(tr("chat.reply"))}" aria-label="${escAttr(tr("chat.reply"))}">${REPLY}</button></div>`;
|
|
203
210
|
// M-3092 (Hub rooms): another person's message, a bubble on the left (`msg-person`); the fleet never sets x.person.
|
|
204
|
-
return `<div class="msg ${u ? "user" : "agent"}${x.person ? " msg-person" : ""}" data-key="${escAttr(key)}" tabindex="-1">${act}<div class="meta"><span class="sender">${escAttr(x.sender)}</span>${time}${ticks}</div>${quoteHtml(x.replyTo)}<div class="body">${clicked ? clickHtml(x.click) : `<div class="md">${renderedMarkdown(x.text, x.role === "agent", opts.emojis, opts.mentions, opts.mentionLabels?.())}</div>`}${R().attachmentsHtml(x.attachments, { htmlCards: x.role === "agent", goneTitle: tr("chat.attGone"), goneLabel: tr("chat.attUnavailable"), inlinePreviews: !PUBLIC_LINK(), textPreviews: true })}${buttons}</div>${R().reactionsHtml(x.reactions, tr("chat.reactedBy", x.instance || ""))}${tools}</div>`;
|
|
211
|
+
return `<div class="msg ${u ? "user" : "agent"}${x.person ? " msg-person" : ""}" data-key="${escAttr(key)}" tabindex="-1">${act}<div class="meta"><span class="sender">${escAttr(x.sender)}</span>${time}${ticks}</div>${quoteHtml(x.replyTo)}<div class="body">${clicked ? clickHtml(x.click) : `<div class="md">${renderedMarkdown(x.text, x.role === "agent", opts.emojis, opts.mentions, opts.mentionLabels?.())}</div>`}${R().attachmentsHtml(x.attachments, { htmlCards: x.role === "agent", goneTitle: tr("chat.attGone"), goneLabel: tr("chat.attUnavailable"), inlinePreviews: !PUBLIC_LINK(), textPreviews: true })}${buttons}</div>${Array.isArray(x.reactionBar) ? reactBarHtml(x, key, reactable) : R().reactionsHtml(x.reactions, tr("chat.reactedBy", x.instance || ""))}${tools}</div>`;
|
|
212
|
+
}
|
|
213
|
+
/** M-3127: a room's words for its reaction controls (opts.reactText(key)), English when the page gives none. */
|
|
214
|
+
function reactText(k, ...a) {
|
|
215
|
+
const own = opts.reactText?.(k, ...a);
|
|
216
|
+
if (typeof own === "string" && own) return own;
|
|
217
|
+
return k === "add" ? "Add reaction" : k === "pick" ? "Reactions" : k === "chip" ? `${a[0]} ${a[1]}` : "";
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* M-3127: a room message's reactions as chips anyone in the room can press: `x.reactionBar` [{ emoji, count, mine, label }]
|
|
221
|
+
* (label: who reacted, in the page's words). Mine is pressed; pressing toggles mine. Read-only when the room is closed.
|
|
222
|
+
*/
|
|
223
|
+
function reactBarHtml(x, key, live) {
|
|
224
|
+
const items = x.reactionBar.filter((r) => r && typeof r.emoji === "string" && r.count > 0).map((r) => {
|
|
225
|
+
const label = escAttr(r.label || reactText("chip", r.emoji, r.count));
|
|
226
|
+
return live ? `<button type="button" data-trust="thread-control" class="reaction react-chip${r.mine ? " mine" : ""}" data-act="reactToggle" data-arg="${escAttr(key)}" data-emoji="${escAttr(r.emoji)}" aria-pressed="${r.mine ? "true" : "false"}" title="${label}" aria-label="${label}"><span class="e">${escAttr(r.emoji)}</span><span class="n">${Number(r.count)}</span></button>`
|
|
227
|
+
: `<span class="reaction react-chip${r.mine ? " mine" : ""}" role="img" title="${label}" aria-label="${label}"><span class="e">${escAttr(r.emoji)}</span><span class="n">${Number(r.count)}</span></span>`;
|
|
228
|
+
}).join("");
|
|
229
|
+
return items ? `<div class="msg-reactions react-bar" role="group" aria-label="${escAttr(reactText("pick"))}">${items}</div>` : "";
|
|
230
|
+
}
|
|
231
|
+
/** M-3127: a reaction control `el` (its message key and emoji) → the page's react(message, emoji, on). */
|
|
232
|
+
function reactFrom(el, on) {
|
|
233
|
+
const x = msgs.find(y => msgKey(y) === el.dataset.arg);
|
|
234
|
+
if (x && typeof el.dataset.emoji === "string") opts.react?.(x, el.dataset.emoji, on);
|
|
235
|
+
}
|
|
236
|
+
/** M-3127: the quick picker under a message's Add reaction (one open at a time; Escape or a pick closes it). */
|
|
237
|
+
let picker = null;
|
|
238
|
+
function closePicker(focusBack = false) {
|
|
239
|
+
if (!picker) return;
|
|
240
|
+
const { node, button } = picker; picker = null; node.remove(); button.setAttribute("aria-expanded", "false");
|
|
241
|
+
if (focusBack && button.isConnected) button.focus();
|
|
242
|
+
}
|
|
243
|
+
function openPicker(button) {
|
|
244
|
+
const was = picker && picker.button === button; closePicker();
|
|
245
|
+
if (was) return;
|
|
246
|
+
const doc = button.ownerDocument, node = doc.createElement("div");
|
|
247
|
+
node.className = "react-pick"; node.setAttribute("role", "group"); node.setAttribute("data-trust", "thread-control"); node.setAttribute("aria-label", reactText("pick"));
|
|
248
|
+
for (const e of QUICK_REACTIONS) {
|
|
249
|
+
const b = doc.createElement("button");
|
|
250
|
+
b.type = "button"; b.className = "chip-btn react-opt"; b.dataset.act = "reactAdd"; b.dataset.arg = button.dataset.arg; b.dataset.emoji = e;
|
|
251
|
+
b.setAttribute("aria-label", e); b.textContent = e; node.append(b);
|
|
252
|
+
}
|
|
253
|
+
node.addEventListener("keydown", (ev) => { if (ev.key === "Escape") { ev.stopPropagation(); closePicker(true); } });
|
|
254
|
+
button.closest(".msg")?.append(node); button.setAttribute("aria-expanded", "true");
|
|
255
|
+
picker = { node, button };
|
|
256
|
+
node.querySelector("button")?.focus();
|
|
205
257
|
}
|
|
206
258
|
/**
|
|
207
259
|
* A message this page is sending (chat-store.js): its own bubble at once, dimmed with "Sending…" until the server
|
|
@@ -292,7 +344,9 @@ export function createThread(list, scroller, opts) {
|
|
|
292
344
|
// M-3092: a Hub room's line may carry one action (「展開其餘 N 則」): a button the page answers through opts.statusAction.
|
|
293
345
|
const action = x.action && typeof x.action.label === "string" && typeof x.action.arg === "string"
|
|
294
346
|
? `<button type="button" data-trust="thread-control" class="chip-btn st-action" data-act="statusAction" data-arg="${escAttr(x.action.arg)}">${escAttr(x.action.label)}</button>` : "";
|
|
295
|
-
|
|
347
|
+
// A Hub mention-stop sentence must stay readable at phone width. Ordinary Fleet status rows still fold.
|
|
348
|
+
const folded = x.wrap === true ? "" : ` folded${overflows ? " overflows" : ""}`;
|
|
349
|
+
return `<div class="msg status-line${folded}"><div class="meta">${time}</div><div class="body"><div class="st-text">${body}</div>${x.wrap === true ? "" : more}${action}</div>${x.bare === true ? "" : tools}</div>`;
|
|
296
350
|
}
|
|
297
351
|
/**
|
|
298
352
|
* #1266: an agent reply's buttons. Labels are text (escaped, never Markdown); the click names the set and the index,
|
|
@@ -307,7 +361,8 @@ export function createThread(list, scroller, opts) {
|
|
|
307
361
|
const chosen = b.state === "chosen" && b.chosen === i;
|
|
308
362
|
return `<button type="button" class="btn btn-sm rb-btn${chosen ? " chosen" : ""}" data-act="replyButton" data-arg="${escAttr(`${b.id}:${i}`)}"${off ? " disabled" : ""}>${escAttr(chosen ? `✓ ${label}` : label)}</button>`;
|
|
309
363
|
}).join("");
|
|
310
|
-
|
|
364
|
+
// M-3127: a Hub room's buttons say whose they are (`b.note`, "Only Alex can answer"); the Fleet sets none.
|
|
365
|
+
const note = b.state === "chosen" ? trf("chat.rbChosen", b.by || "") : b.state === "expired" ? tr("chat.rbExpired") : typeof b.note === "string" ? b.note : "";
|
|
311
366
|
return `<div data-trust="reply" class="rb-row" role="group" aria-label="${escAttr(tr("chat.rbGroup"))}">${items}${note ? `<span class="rb-note">${escAttr(note)}</span>` : ""}</div>`;
|
|
312
367
|
}
|
|
313
368
|
/**
|
|
@@ -934,6 +989,9 @@ export function createThread(list, scroller, opts) {
|
|
|
934
989
|
if (m && opts.clickReplyButton) opts.clickReplyButton(m[1], Number(m[2]));
|
|
935
990
|
} else if (act === "showButtons") { const x = msgs.find(y => y.buttons && y.buttons.id === el.dataset.arg); if (x) reveal(msgKey(x)); }
|
|
936
991
|
else if (act === "reply") { const x = msgs.find(y => msgKey(y) === el.dataset.arg); if (x) opts.startReply?.(x); }
|
|
992
|
+
else if (act === "reactPick") openPicker(el);
|
|
993
|
+
else if (act === "reactAdd") { closePicker(true); reactFrom(el, true); } // a quick pick: mine added
|
|
994
|
+
else if (act === "reactToggle") reactFrom(el, el.getAttribute("aria-pressed") !== "true"); // a chip: mine on or off
|
|
937
995
|
else if (act === "jumpQuote") void jumpTo(el.dataset.arg);
|
|
938
996
|
else if (act === "retryOut") opts.retryOutgoing?.(el.dataset.arg); // a failed send, again
|
|
939
997
|
else if (act === "putBackOut") opts.putBackOutgoing?.(el.dataset.arg); // back in the composer, to change it
|
|
@@ -982,6 +1040,7 @@ export function createThread(list, scroller, opts) {
|
|
|
982
1040
|
}
|
|
983
1041
|
/** `own`: only this thread's previews stop (a thread let go while another chat is in view); else every one, as leaving. */
|
|
984
1042
|
function dispose(own = false) {
|
|
1043
|
+
closePicker();
|
|
985
1044
|
disposed = true;
|
|
986
1045
|
if (!parked) watchReader(scroller, false);
|
|
987
1046
|
if (ro) ro.disconnect();
|
|
@@ -992,5 +1051,11 @@ export function createThread(list, scroller, opts) {
|
|
|
992
1051
|
armPolls();
|
|
993
1052
|
}
|
|
994
1053
|
|
|
995
|
-
|
|
1054
|
+
/** M-3127: open the quick reaction picker under message `key` (its Add reaction button) — the message menu's React; false when none. */
|
|
1055
|
+
function pickReaction(key) {
|
|
1056
|
+
const node = nodes.get(key)?.node, button = node && node.querySelector('[data-act="reactPick"]');
|
|
1057
|
+
if (!button) return false;
|
|
1058
|
+
openPicker(button); return true;
|
|
1059
|
+
}
|
|
1060
|
+
return { render, progress, onScroll, onClick, jumpLatest, reveal, jumpTo, messageOf, rove, refreshCards, park, attach, dispose, nodes, pickReaction, get unseen() { return unseen; } };
|
|
996
1061
|
}
|
|
@@ -10,6 +10,23 @@
|
|
|
10
10
|
.work-bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
11
11
|
.work-bar .elapsed, .work-bar .pulse { flex: none; }
|
|
12
12
|
@media (max-width: 899px), (pointer: coarse) { .work-bar { block-size: var(--tap, 44px); min-block-size: var(--tap, 44px); max-block-size: var(--tap, 44px); } }
|
|
13
|
+
/* M-3167: the context ring and the model picker beside the box are drawn wherever the composer has them — a phone (M-3115)
|
|
14
|
+
and a desk up to 1439 px (panel-chat.js COMPOSER_TOOLS_Q) — so they are always styled. Outside a media query: a window
|
|
15
|
+
resized across 899 px left them unstyled (a grey "56" box, the model on a grey block). */
|
|
16
|
+
/* M-3115 PR 2: one composer row — the box, then the context's ring (from 50%) and the model · effort picker, then Send
|
|
17
|
+
(Stop while the agent works with nothing typed). Each is a full tap target; the ring is drawn smaller inside. */
|
|
18
|
+
.composer-tools { display: inline-flex; align-items: center; flex: none; min-width: 0; }
|
|
19
|
+
.ctx-ring { --pct: 0; flex: none; display: grid; place-items: center; min-width: var(--tap); min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--text-3); }
|
|
20
|
+
.ctx-dial { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-full); background: conic-gradient(currentColor calc(var(--pct) * 1%), var(--border) 0); }
|
|
21
|
+
.ctx-dial::before { content: ""; position: absolute; inset: 3px; border-radius: var(--r-full); background: var(--surface); }
|
|
22
|
+
.ctx-pct { position: relative; font-size: var(--fs-xs); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; transform: scale(0.8); }
|
|
23
|
+
.ctx-ring.warn { color: var(--warn); }
|
|
24
|
+
.ctx-ring.warn .ctx-pct { font-weight: var(--fw-semibold); }
|
|
25
|
+
.composer-pick { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); max-width: min(24vw, 12rem); padding: 0 var(--s-2); border: 0; border-radius: var(--r-full); background: none; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }
|
|
26
|
+
.composer-pick b { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: var(--fw-semibold); }
|
|
27
|
+
.composer-pick .pick-effort { flex: none; }
|
|
28
|
+
.composer-pick .chev { flex: none; color: var(--text-3); }
|
|
29
|
+
|
|
13
30
|
/* M-3115 (phone v2): in a phone's chat the working bar is one thin status line ("● 調度中… 0:01"), and Stop is Send's
|
|
14
31
|
while the box is empty (panel-chat.js). With something typed Send sends again, and Stop is this line's small 「停止」 —
|
|
15
32
|
a 44 px tap target drawn as text. */
|
|
@@ -18,19 +35,6 @@
|
|
|
18
35
|
.p-chat .dock:has(.composer-field textarea:placeholder-shown) .work-bar .btn-stop { display: none; }
|
|
19
36
|
.p-chat .work-bar .btn-stop { min-height: var(--tap); min-width: var(--tap); height: var(--tap); margin-block: calc((22px - var(--tap)) / 2); padding: 0 var(--s-2); border: 0; background: none; color: var(--accent); font-weight: var(--fw-semibold); }
|
|
20
37
|
.p-chat .work-bar .btn-stop .icon { display: none; }
|
|
21
|
-
/* M-3115 PR 2: one composer row — the box, then the context's ring (from 50%) and the model · effort picker, then Send
|
|
22
|
-
(Stop while the agent works with nothing typed). Each is a full tap target; the ring is drawn smaller inside. */
|
|
23
|
-
.composer-tools { display: inline-flex; align-items: center; flex: none; min-width: 0; }
|
|
24
|
-
.ctx-ring { --pct: 0; flex: none; display: grid; place-items: center; min-width: var(--tap); min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--text-3); }
|
|
25
|
-
.ctx-dial { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-full); background: conic-gradient(currentColor calc(var(--pct) * 1%), var(--border) 0); }
|
|
26
|
-
.ctx-dial::before { content: ""; position: absolute; inset: 3px; border-radius: var(--r-full); background: var(--surface); }
|
|
27
|
-
.ctx-pct { position: relative; font-size: var(--fs-xs); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; transform: scale(0.8); }
|
|
28
|
-
.ctx-ring.warn { color: var(--warn); }
|
|
29
|
-
.ctx-ring.warn .ctx-pct { font-weight: var(--fw-semibold); }
|
|
30
|
-
.composer-pick { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); max-width: 24vw; padding: 0 var(--s-2); border: 0; border-radius: var(--r-full); background: none; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; }
|
|
31
|
-
.composer-pick b { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: var(--fw-semibold); }
|
|
32
|
-
.composer-pick .pick-effort { flex: none; }
|
|
33
|
-
.composer-pick .chev { flex: none; color: var(--text-3); }
|
|
34
38
|
/* M-3115 PR 3: past 70% the context hint is one thin line in the status line's place — the idle strip gives way to it,
|
|
35
39
|
and while the agent works the working line has the place (the ring by the box still says the %). 22 px either way;
|
|
36
40
|
its words are links, each a full tap target drawn as text. */
|
|
@@ -46,3 +50,11 @@
|
|
|
46
50
|
.p-chat .composer .btn-send { width: var(--tap); min-width: var(--tap); min-height: var(--tap); }
|
|
47
51
|
.p-chat .work-bar .btn-stop .stop-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: nowrap; }
|
|
48
52
|
}
|
|
53
|
+
/* M-3167: between a phone and a wide desk the composer has the model (above), so the header's chips (backend, model,
|
|
54
|
+
effort) give way: they drew under the agent's tabs at about 920 px. Wider, they stay. On every desk the header's status
|
|
55
|
+
line may shrink and is cut instead of running under the tabs, and the name keeps a few characters. */
|
|
56
|
+
@media (min-width: 900px) and (max-width: 1439px) { .p-chat .panel-head .panel-sub .hd-chip { display: none; } }
|
|
57
|
+
@media (min-width: 900px) {
|
|
58
|
+
.p-chat .panel-head .panel-sub { min-width: 0; overflow: hidden; }
|
|
59
|
+
.p-chat .panel-head .panel-title h1 { flex: 0 1000 auto; min-width: min(8ch, 40%); } /* the name gives way before the status */
|
|
60
|
+
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
.hub-room-text { min-width: 0; display: flex; flex-direction: column; }
|
|
20
20
|
.hub-room-text .t { font-weight: var(--fw-semibold, 600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
21
21
|
.hub-room-text .s { color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
22
|
-
.hub-room-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size:
|
|
22
|
+
.hub-room-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
|
|
23
23
|
.hub-room-side .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: hub-pulse 1.4s ease-in-out infinite; }
|
|
24
24
|
@keyframes hub-pulse { 50% { opacity: .3; } }
|
|
25
25
|
@media (prefers-reduced-motion: reduce) { .hub-room-side .pulse { animation: none; } }
|
|
@@ -78,6 +78,11 @@
|
|
|
78
78
|
.hub-back { flex: none; }
|
|
79
79
|
/* S-150: the phone's back to the list is a full tap target, as the header's other buttons are. */
|
|
80
80
|
@media (max-width: 899px), (pointer: coarse) { .hub-chat-head .hub-back { min-width: var(--tap); min-height: var(--tap); } }
|
|
81
|
+
/* M-3128: the rooms headers' own controls (Aa text size, the Notify bell) are full tap targets too. */
|
|
82
|
+
.hub-head-tools { display: inline-flex; align-items: center; gap: var(--s-1); flex: none; }
|
|
83
|
+
@media (max-width: 899px), (pointer: coarse) {
|
|
84
|
+
.hub-head-tools .hd-text, .hub-head-tools .hub-notify { min-width: var(--tap); min-height: var(--tap); }
|
|
85
|
+
}
|
|
81
86
|
.hub-scroller { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative; }
|
|
82
87
|
/* M-3117: the thread is the Fleet chat's (.thread in app.css: its column, padding and a phone's tighter one) — no Hub copy. */
|
|
83
88
|
.hub-room-empty { padding: var(--s-6) var(--s-4); }
|
|
@@ -14,6 +14,38 @@
|
|
|
14
14
|
.hub-row-link:hover { background: var(--surface-2); }
|
|
15
15
|
.hub-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
16
16
|
.hub-row-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
17
|
+
/* M-3137 (versions spec §2.2): Connected fleets' summary line and its filter, and each row's version facts. */
|
|
18
|
+
.hub-fleet-summary { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-1); }
|
|
19
|
+
.hub-fleet-summary > .note { margin: 0; flex: 1 1 auto; min-width: 0; }
|
|
20
|
+
.hub-fleet-list .hub-rows .s-row.hub-row { flex-wrap: wrap; }
|
|
21
|
+
/* The version facts are the row's second line, under the name: its Active tag and menu stay on the first. */
|
|
22
|
+
.hub-fleet-list .s-row.hub-row > .hub-fleet-version { order: 1; flex: 1 1 100%; }
|
|
23
|
+
.hub-fleet-version { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-size: var(--fs-sm); }
|
|
24
|
+
.hub-fleet-version > span { display: inline-flex; align-items: center; gap: var(--s-1); white-space: nowrap; }
|
|
25
|
+
.hub-fleet-version .hub-fleet-why { flex: 1 1 100%; white-space: normal; }
|
|
26
|
+
/* M-3141 (§3.1): the recommended version card — three choices, a version box beside "A specific version". */
|
|
27
|
+
.hub-rec-choices { display: flex; flex-direction: column; gap: var(--s-2); margin: var(--s-2) 0; }
|
|
28
|
+
.hub-rec-choice { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); }
|
|
29
|
+
.hub-rec-version input { width: 12ch; }
|
|
30
|
+
.hub-fleet-version .hub-fleet-notified { flex: 1 1 100%; white-space: normal; }
|
|
31
|
+
/* M-3145 (§4.2, §4.5): a row's update part (its status line and one action, Update, or "Owner updates it") under its
|
|
32
|
+
version facts; "Update {n} Fleets that allow it" under the summary. */
|
|
33
|
+
.hub-fleet-list .s-row.hub-row > .hub-fleet-update { order: 2; flex: 1 1 100%; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
|
|
34
|
+
.hub-fleet-update-all { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); margin-top: var(--s-1); }
|
|
35
|
+
@media (max-width: 899px), (pointer: coarse) {
|
|
36
|
+
.hub-fleet-update .btn, .hub-fleet-update-all .btn { min-width: var(--tap); min-height: var(--tap); }
|
|
37
|
+
}
|
|
38
|
+
/* §2.3: the older-Fleet banner — its words, and Close beside them (never on a line of its own). */
|
|
39
|
+
.hub-versions-banner { display: flex; align-items: flex-start; gap: var(--s-2); }
|
|
40
|
+
.hub-versions-banner > span { flex: 1 1 auto; min-width: 0; }
|
|
41
|
+
.hub-versions-banner > .icon-btn { flex: none; }
|
|
42
|
+
@media (max-width: 899px), (pointer: coarse) {
|
|
43
|
+
.hub-versions-banner > .icon-btn, .hub-fleet-summary .hub-fleet-filter { min-width: var(--tap); min-height: var(--tap); }
|
|
44
|
+
}
|
|
45
|
+
@media (max-width: 899px) {
|
|
46
|
+
/* A phone stacks the row as the Teams roster does: the name, then labelled lines, the tag first. */
|
|
47
|
+
.hub-fleet-list .hub-fleet-version { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: 2px; }
|
|
48
|
+
}
|
|
17
49
|
.hub-row-text .note { overflow-wrap: anywhere; }
|
|
18
50
|
.hub-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
|
|
19
51
|
.hub-card-head h3 { margin: 0; color: var(--text); font-size: var(--fs-lg); text-transform: none; letter-spacing: 0; }
|
|
@@ -63,3 +95,75 @@
|
|
|
63
95
|
.hub-admin-access .field-row { flex-wrap: wrap; }
|
|
64
96
|
.hub-admin-access h4 { margin: 0; }
|
|
65
97
|
.hub-admin-manual > .card { border: 0; }
|
|
98
|
+
|
|
99
|
+
/* M-3162: Administration's tabs (Overview · Manage · Teams · Groups · This Hub): one row under the page header, the column's
|
|
100
|
+
width; on a phone it scrolls sideways and each tab is a full tap target. */
|
|
101
|
+
.hub-admin-tabs-wrap { padding: var(--s-3) var(--s-5) 0; }
|
|
102
|
+
.hub-admin-tabs-wrap > .hub-admin-tabs { max-width: 860px; margin: 0 auto; } /* the Hub column's width (.hub-owner) */
|
|
103
|
+
.hub-admin-tabs { display: flex; gap: var(--s-4); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
|
|
104
|
+
.hub-admin-tabs::-webkit-scrollbar { display: none; }
|
|
105
|
+
.hub-admin-tab { flex: none; padding: var(--s-2) 0; color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
|
|
106
|
+
.hub-admin-tab:hover { color: var(--text); }
|
|
107
|
+
.hub-admin-tab.active { color: var(--text); font-weight: var(--fw-semibold); border-bottom-color: var(--text); }
|
|
108
|
+
@media (max-width: 899px) {
|
|
109
|
+
.hub-admin-tabs-wrap { padding: var(--s-2) var(--s-4) 0; }
|
|
110
|
+
.hub-admin-tab { min-height: var(--tap); min-width: var(--tap); display: inline-flex; align-items: center; justify-content: center; }
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* M-3162: Administration → Overview — counts in cards. Numbers in tabular figures; the bars and the split drawn in the
|
|
114
|
+
theme's own colours (their sizes are set through the CSSOM, never an inline style). */
|
|
115
|
+
.hub-ov { display: flex; flex-direction: column; gap: var(--s-5); padding-top: var(--s-2); } /* clear of the tab row's underline */
|
|
116
|
+
.hub-ov-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
|
|
117
|
+
/* Lumen (#3980): the Hub's segmented switch (as .hub-switch) — one track, the current range on a raised surface. */
|
|
118
|
+
.hub-ov-range { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
|
|
119
|
+
.hub-ov-range-item { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; min-width: 4.5rem; padding: 0 var(--s-3); border: 0; border-radius: calc(var(--r-md) - 2px);
|
|
120
|
+
background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
|
|
121
|
+
.hub-ov-range-item:hover { color: var(--text); }
|
|
122
|
+
.hub-ov-range-item.is-current { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); font-weight: var(--fw-semibold); }
|
|
123
|
+
.hub-ov-privacy { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--surface-2); }
|
|
124
|
+
.hub-ov-section { display: flex; flex-direction: column; gap: var(--s-3); }
|
|
125
|
+
.hub-ov-section > h3 { margin: 0; font-size: var(--fs-md); }
|
|
126
|
+
.hub-ov-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
|
|
127
|
+
.hub-ov-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
|
|
128
|
+
.hub-ov-stack { display: flex; flex-direction: column; gap: var(--s-3); }
|
|
129
|
+
.hub-ov-card { background: var(--surface-2); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); }
|
|
130
|
+
.hub-ov-card-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-2); }
|
|
131
|
+
.hub-ov-big { font-size: var(--fs-xl); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; line-height: 1.2; }
|
|
132
|
+
.hub-ov-big small { font-size: var(--fs-sm); font-weight: normal; color: var(--text-2); }
|
|
133
|
+
.hub-ov-sub { font-size: var(--fs-sm); color: var(--text-2); }
|
|
134
|
+
.hub-ov-card.warn .hub-ov-sub { color: var(--warn); }
|
|
135
|
+
.hub-ov-card .note { margin: var(--s-1) 0 0; }
|
|
136
|
+
.hub-ov-kv { margin: 0; display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-sm); }
|
|
137
|
+
.hub-ov-kv + .hub-ov-kv { border-top: 1px solid var(--border); padding-top: var(--s-2); margin-top: var(--s-1); }
|
|
138
|
+
.hub-ov-kv > div { display: flex; justify-content: space-between; gap: var(--s-3); }
|
|
139
|
+
.hub-ov-kv dt { color: var(--text-2); } .hub-ov-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: var(--fw-medium, 500); }
|
|
140
|
+
.hub-ov-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); height: 9rem; align-items: end; margin-top: var(--s-2); }
|
|
141
|
+
.hub-ov-bars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; font-size: var(--fs-xs); color: var(--text-2); }
|
|
142
|
+
.hub-ov-bars i { display: block; width: 70%; max-width: 3rem; min-height: 2px; border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--accent-fill); opacity: 0.8; }
|
|
143
|
+
.hub-ov-bars > div.today i { opacity: 1; } .hub-ov-bars > div.today b { color: var(--text); }
|
|
144
|
+
.hub-ov-bars b { font-weight: normal; font-variant-numeric: tabular-nums; }
|
|
145
|
+
.hub-ov-top table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
|
|
146
|
+
.hub-ov-top th { text-align: left; font-weight: normal; color: var(--text-2); padding: var(--s-1) var(--s-2) var(--s-1) 0; border-bottom: 1px solid var(--border); }
|
|
147
|
+
.hub-ov-top td { padding: var(--s-2) var(--s-2) var(--s-2) 0; border-bottom: 1px solid var(--border); vertical-align: top; }
|
|
148
|
+
.hub-ov-top tr:last-child td { border-bottom: 0; }
|
|
149
|
+
.hub-ov-top .n { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: var(--s-2); }
|
|
150
|
+
.hub-ov-top .rank { width: 1.6em; color: var(--text-3); font-variant-numeric: tabular-nums; }
|
|
151
|
+
.hub-ov-agent { font-weight: var(--fw-medium, 500); overflow-wrap: anywhere; }
|
|
152
|
+
.hub-ov-meter { height: 4px; border-radius: 2px; background: var(--border); margin-top: var(--s-1); max-width: 14rem; overflow: hidden; }
|
|
153
|
+
.hub-ov-meter i { display: block; height: 100%; background: var(--accent-fill); }
|
|
154
|
+
.hub-ov-link { align-self: flex-start; font-size: var(--fs-sm); }
|
|
155
|
+
.hub-ov-split-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin: var(--s-2) 0; background: var(--border); }
|
|
156
|
+
.hub-ov-split-bar i, .hub-ov-legend dt i { display: block; flex: 0 0 0; }
|
|
157
|
+
.hub-ov-split-bar i.p, .hub-ov-legend i.p { background: var(--accent-fill); }
|
|
158
|
+
.hub-ov-split-bar i.a, .hub-ov-legend i.a { background: var(--ok); }
|
|
159
|
+
.hub-ov-split-bar i.h, .hub-ov-legend i.h { background: var(--warn); }
|
|
160
|
+
.hub-ov-legend dt { display: inline-flex; align-items: center; gap: var(--s-2); }
|
|
161
|
+
.hub-ov-legend dt i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
|
|
162
|
+
.hub-ov-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
|
|
163
|
+
.hub-ov-empty p { margin: 0; }
|
|
164
|
+
@media (max-width: 899px) {
|
|
165
|
+
.hub-ov-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
166
|
+
.hub-ov-split { grid-template-columns: minmax(0, 1fr); }
|
|
167
|
+
.hub-ov-range-item { min-height: var(--tap); }
|
|
168
|
+
.hub-ov-link { min-height: var(--tap); display: inline-flex; align-items: center; }
|
|
169
|
+
}
|
|
@@ -40,3 +40,19 @@
|
|
|
40
40
|
@media (max-width: 899px), (pointer: coarse) {
|
|
41
41
|
:is(.hub-invitations, .hub-agent-rooms, .hub-room-members, .hub-room-settings, .hub-room-new, .hub-admin-rooms) .btn { min-height: var(--tap); min-width: var(--tap); }
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
/* M-3127: people's reactions in a group room — the Fleet's reaction chip (app.css .msg-reactions .reaction), pressable:
|
|
45
|
+
mine is accented; the count beside the emoji. The quick picker opens under the message's Add reaction. */
|
|
46
|
+
.msg-reactions .react-chip { gap: 4px; cursor: pointer; color: var(--text); }
|
|
47
|
+
.msg-reactions span.react-chip { cursor: default; }
|
|
48
|
+
.msg-reactions .react-chip .n { font-family: var(--font-ui, inherit); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: var(--text-2); }
|
|
49
|
+
.msg-reactions .react-chip.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
|
|
50
|
+
.msg-reactions .react-chip.mine .n { color: var(--accent); }
|
|
51
|
+
.msg-reactions button.react-chip:hover { border-color: var(--accent); }
|
|
52
|
+
.msg-reactions button.react-chip:focus-visible, .react-pick .react-opt:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 1px; }
|
|
53
|
+
@media (pointer: coarse) { .msg-reactions .react-chip { min-height: 32px; min-width: 40px; } }
|
|
54
|
+
.react-pick { display: flex; flex-wrap: wrap; gap: 2px; width: max-content; max-width: 100%; margin-top: 4px; padding: 4px;
|
|
55
|
+
border: 1px solid var(--border); border-radius: var(--r-md, 10px); background: var(--surface); box-shadow: var(--shadow-2); }
|
|
56
|
+
.msg.user .react-pick { margin-left: auto; }
|
|
57
|
+
.react-pick .react-opt { width: 36px; height: 36px; padding: 0; justify-content: center; font-family: var(--font-emoji); font-size: var(--fs-xl); line-height: 1; }
|
|
58
|
+
@media (pointer: coarse) { .react-pick .react-opt { width: 44px; height: 44px; } }
|
package/dist/ui/shared/hub.css
CHANGED
|
@@ -76,3 +76,8 @@ a.hub-switch-item:focus-visible { outline: 2px solid var(--focus); outline-offse
|
|
|
76
76
|
.hub-code { font-family: var(--font-mono); font-size: var(--fs-lg); letter-spacing: .12em; user-select: all; }
|
|
77
77
|
.hub-session { display: flex; align-items: center; gap: var(--s-2); }
|
|
78
78
|
.hub-session .side-row { flex: 1; min-width: 0; }
|
|
79
|
+
|
|
80
|
+
/* M-3160: reuse the Settings checkbox language, including its whole-label tap target. */
|
|
81
|
+
.hub-contact-limit { display: flex; align-items: flex-start; gap: var(--s-2); min-height: var(--tap); padding-top: var(--s-2); }
|
|
82
|
+
.hub-contact-limit input { flex: 0 0 auto; margin-top: 3px; }
|
|
83
|
+
.hub-contact-limit span, .hub-contact-notice { min-width: 0; overflow-wrap: anywhere; }
|