@songsid/agend 2.4.0-beta.18 → 2.4.0-beta.19
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-cli-instructions.md +13 -7
- package/dist/agent-cli.js +149 -49
- package/dist/agent-cli.js.map +1 -1
- package/dist/agent-export.d.ts +3 -1
- package/dist/agent-export.js +18 -1
- package/dist/agent-export.js.map +1 -1
- package/dist/agent-whats-new.js +9 -0
- package/dist/agent-whats-new.js.map +1 -1
- package/dist/apply-job.d.ts +2 -2
- package/dist/auth-api.js +1 -1
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +0 -6
- package/dist/backend/claude-code.js +23 -3
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex-precaution.js +3 -2
- package/dist/backend/codex-precaution.js.map +1 -1
- package/dist/backend/codex.js +1 -1
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/types.d.ts +6 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/mcp-server.js +8 -2
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/mcp-tools.d.ts +27 -1
- package/dist/channel/mcp-tools.js +77 -7
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/chat-task-refs.d.ts +61 -0
- package/dist/chat-task-refs.js +112 -0
- package/dist/chat-task-refs.js.map +1 -0
- package/dist/classic-channel-manager.d.ts +1 -1
- package/dist/classic-channel-manager.js +6 -2
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/claude-credential-launch.d.ts +6 -0
- package/dist/claude-credential-launch.js +16 -3
- package/dist/claude-credential-launch.js.map +1 -1
- package/dist/claude-credential-runner.js +3 -1
- package/dist/claude-credential-runner.js.map +1 -1
- package/dist/claude-setup-token-transport.js +25 -3
- package/dist/claude-setup-token-transport.js.map +1 -1
- package/dist/cli-audited.js +5 -5
- package/dist/cli-audited.js.map +1 -1
- package/dist/composite-tools.d.ts +11 -0
- package/dist/composite-tools.js +29 -0
- package/dist/composite-tools.js.map +1 -0
- package/dist/config-validator.js +22 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/config.js +11 -0
- package/dist/config.js.map +1 -1
- package/dist/contact-auth-policy.d.ts +1 -0
- package/dist/contact-auth-policy.js +2 -1
- package/dist/contact-auth-policy.js.map +1 -1
- package/dist/contact-auth-service.js +2 -0
- package/dist/contact-auth-service.js.map +1 -1
- package/dist/contact-auth-store.js +21 -6
- package/dist/contact-auth-store.js.map +1 -1
- package/dist/contact-auth-types.d.ts +2 -0
- package/dist/contact-auth-types.js.map +1 -1
- package/dist/daemon.js +4 -0
- package/dist/daemon.js.map +1 -1
- package/dist/darwin-memory.js +2 -1
- package/dist/darwin-memory.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +1 -8
- package/dist/dashboard-permissions.js +8 -9
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/delivery-outbox.d.ts +0 -6
- package/dist/delivery-outbox.js +0 -25
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/delivery-outbox.test.js +132 -96
- package/dist/delivery-outbox.test.js.map +1 -1
- package/dist/fleet-manager.d.ts +45 -7
- package/dist/fleet-manager.js +309 -99
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +1 -1
- package/dist/fleet-windows-runtime.js +8 -1
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/fleet-yaml-stringify.d.ts +1 -1
- package/dist/fleet-yaml-stringify.js +64 -11
- package/dist/fleet-yaml-stringify.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +53 -4
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +4 -0
- package/dist/general-knowledge/skills/fleet-config/SKILL.md +21 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +2 -0
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +5 -1
- package/dist/general-knowledge/skills/model-discovery/SKILL.md +3 -2
- package/dist/general-knowledge/skills/persona-emoji/SKILL.md +3 -0
- package/dist/general-knowledge/skills/task-board/SKILL.md +63 -0
- package/dist/general-knowledge/skills/web-appearance/SKILL.md +25 -2
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +38 -9
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +4 -0
- package/dist/general-knowledge/steering/core-rules.md +15 -78
- package/dist/general-role-block.d.ts +19 -0
- package/dist/general-role-block.js +56 -0
- package/dist/general-role-block.js.map +1 -0
- package/dist/general-role.d.ts +1 -1
- package/dist/general-role.js +1 -0
- package/dist/general-role.js.map +1 -1
- package/dist/host-memory.d.ts +3 -0
- package/dist/host-memory.js.map +1 -1
- package/dist/host-monitoring/darwin/collector.d.ts +18 -0
- package/dist/host-monitoring/darwin/collector.js +65 -0
- package/dist/host-monitoring/darwin/collector.js.map +1 -0
- package/dist/host-monitoring/darwin/defaults.d.ts +2 -0
- package/dist/host-monitoring/darwin/defaults.js +9 -0
- package/dist/host-monitoring/darwin/defaults.js.map +1 -0
- package/dist/host-monitoring/darwin/interpretation.d.ts +20 -0
- package/dist/host-monitoring/darwin/interpretation.js +73 -0
- package/dist/host-monitoring/darwin/interpretation.js.map +1 -0
- package/dist/host-monitoring/linux/collector.d.ts +17 -0
- package/dist/host-monitoring/linux/collector.js +55 -0
- package/dist/host-monitoring/linux/collector.js.map +1 -0
- package/dist/host-monitoring/linux/defaults.d.ts +2 -0
- package/dist/host-monitoring/linux/defaults.js +9 -0
- package/dist/host-monitoring/linux/defaults.js.map +1 -0
- package/dist/host-monitoring/linux/interpretation.d.ts +22 -0
- package/dist/host-monitoring/linux/interpretation.js +76 -0
- package/dist/host-monitoring/linux/interpretation.js.map +1 -0
- package/dist/host-monitoring/transport.d.ts +42 -0
- package/dist/host-monitoring/transport.js +101 -0
- package/dist/host-monitoring/transport.js.map +1 -0
- package/dist/host-monitoring/wsl/collector.d.ts +19 -0
- package/dist/host-monitoring/wsl/collector.js +72 -0
- package/dist/host-monitoring/wsl/collector.js.map +1 -0
- package/dist/host-monitoring/wsl/defaults.d.ts +2 -0
- package/dist/host-monitoring/wsl/defaults.js +9 -0
- package/dist/host-monitoring/wsl/defaults.js.map +1 -0
- package/dist/host-monitoring/wsl/interpretation.d.ts +22 -0
- package/dist/host-monitoring/wsl/interpretation.js +77 -0
- package/dist/host-monitoring/wsl/interpretation.js.map +1 -0
- package/dist/host-monitoring-alert-policy.d.ts +2 -0
- package/dist/host-monitoring-alert-policy.js +4 -2
- package/dist/host-monitoring-alert-policy.js.map +1 -1
- package/dist/host-monitoring-alert-settings.d.ts +3 -1
- package/dist/host-monitoring-alert-settings.js +7 -2
- package/dist/host-monitoring-alert-settings.js.map +1 -1
- package/dist/host-monitoring-alerts.d.ts +3 -0
- package/dist/host-monitoring-alerts.js +18 -3
- package/dist/host-monitoring-alerts.js.map +1 -1
- package/dist/host-monitoring-defaults.d.ts +19 -0
- package/dist/host-monitoring-defaults.js +10 -0
- package/dist/host-monitoring-defaults.js.map +1 -0
- package/dist/host-monitoring-platform.d.ts +18 -70
- package/dist/host-monitoring-platform.js +14 -269
- package/dist/host-monitoring-platform.js.map +1 -1
- package/dist/host-monitoring.d.ts +13 -0
- package/dist/host-monitoring.js.map +1 -1
- package/dist/hub/agent-catalog-model.d.ts +21 -0
- package/dist/hub/agent-catalog-model.js +9 -1
- package/dist/hub/agent-catalog-model.js.map +1 -1
- package/dist/hub/agent-catalog.d.ts +4 -1
- package/dist/hub/agent-catalog.js +11 -0
- package/dist/hub/agent-catalog.js.map +1 -1
- package/dist/hub/catalog.js +12 -0
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.js +4 -1
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.d.ts +5 -0
- package/dist/hub/compose/member.js +25 -5
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +2 -0
- package/dist/hub/compose/server.js +4 -2
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/http/compose.d.ts +5 -0
- package/dist/hub/http/compose.js +25 -2
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +2 -0
- package/dist/hub/http/schema.js +4 -0
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/lapse-carry.d.ts +45 -0
- package/dist/hub/lapse-carry.js +62 -0
- package/dist/hub/lapse-carry.js.map +1 -0
- package/dist/hub/member/agent-catalog.d.ts +4 -1
- package/dist/hub/member/agent-catalog.js +15 -4
- package/dist/hub/member/agent-catalog.js.map +1 -1
- package/dist/hub/member/agent-intro.d.ts +4 -3
- package/dist/hub/member/agent-intro.js +7 -0
- package/dist/hub/member/agent-intro.js.map +1 -1
- package/dist/hub/member/exposure-api.d.ts +2 -0
- package/dist/hub/member/exposure-api.js +8 -1
- package/dist/hub/member/exposure-api.js.map +1 -1
- package/dist/hub/member/room-post.d.ts +34 -6
- package/dist/hub/member/room-post.js +30 -0
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/member/sharing.d.ts +2 -0
- package/dist/hub/member/sharing.js +9 -2
- package/dist/hub/member/sharing.js.map +1 -1
- package/dist/hub/protocol.d.ts +2 -0
- package/dist/hub/room-brief-model.js +2 -1
- package/dist/hub/room-brief-model.js.map +1 -1
- package/dist/hub/rooms/agents.d.ts +2 -0
- package/dist/hub/rooms/agents.js +16 -2
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/office.d.ts +82 -0
- package/dist/hub/rooms/office.js +46 -0
- package/dist/hub/rooms/office.js.map +1 -0
- package/dist/hub/rooms/service.d.ts +66 -1
- package/dist/hub/rooms/service.js +67 -11
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +4 -0
- package/dist/hub/runtime.d.ts +1 -1
- package/dist/hub/server.js +9 -2
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/sharing-requests.d.ts +5 -2
- package/dist/hub/sharing-requests.js +19 -4
- package/dist/hub/sharing-requests.js.map +1 -1
- package/dist/instance-config-impact.js +1 -1
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.js +6 -7
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instruction-file-sizes.d.ts +46 -0
- package/dist/instruction-file-sizes.js +115 -0
- package/dist/instruction-file-sizes.js.map +1 -0
- package/dist/instructions.d.ts +35 -1
- package/dist/instructions.js +59 -33
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +16 -4
- package/dist/locale.js.map +1 -1
- package/dist/log-steps.d.ts +5 -0
- package/dist/log-steps.js +6 -2
- package/dist/log-steps.js.map +1 -1
- package/dist/memory-guidance.d.ts +5 -0
- package/dist/memory-guidance.js +14 -0
- package/dist/memory-guidance.js.map +1 -0
- package/dist/model-defaults.d.ts +5 -0
- package/dist/model-defaults.js +6 -0
- package/dist/model-defaults.js.map +1 -0
- package/dist/native-mcp.d.ts +2 -0
- package/dist/native-mcp.js +16 -6
- package/dist/native-mcp.js.map +1 -1
- package/dist/needs-you-hub.d.ts +2 -0
- package/dist/needs-you-hub.js +6 -1
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +13 -1
- package/dist/needs-you.js +5 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/outbound-handlers.d.ts +3 -3
- package/dist/outbound-schemas.d.ts +3 -0
- package/dist/outbound-schemas.js +27 -26
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/quickstart.d.ts +1 -1
- package/dist/quickstart.js +2 -3
- package/dist/quickstart.js.map +1 -1
- package/dist/remote-card-prompt.d.ts +1 -0
- package/dist/remote-card-prompt.js +1 -1
- package/dist/remote-card-prompt.js.map +1 -1
- package/dist/runtime-build-info.js +1 -1
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli-install.js +5 -5
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/runtime-pane-mcp.js +7 -3
- package/dist/runtime-pane-mcp.js.map +1 -1
- package/dist/runtime-pane-native.js +2 -1
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/scheduler/db.js +2 -0
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-mentions.d.ts +32 -0
- package/dist/scheduler/task-board-mentions.js +97 -0
- package/dist/scheduler/task-board-mentions.js.map +1 -0
- package/dist/scheduler/task-board-text.js +3 -0
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +199 -3
- package/dist/scheduler/task-board.js +492 -7
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/settings-api.d.ts +3 -1
- package/dist/settings-api.js +23 -4
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-change.js +4 -2
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.js +1 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-instance-patch.js +3 -1
- package/dist/settings-instance-patch.js.map +1 -1
- package/dist/setup-host.d.ts +2 -3
- package/dist/setup-host.js +3 -5
- package/dist/setup-host.js.map +1 -1
- package/dist/setup-wizard.js +0 -2
- package/dist/setup-wizard.js.map +1 -1
- package/dist/shared-default-adoption.d.ts +24 -0
- package/dist/shared-default-adoption.js +73 -0
- package/dist/shared-default-adoption.js.map +1 -0
- package/dist/subagent-records.d.ts +2 -0
- package/dist/subagent-records.js +11 -1
- package/dist/subagent-records.js.map +1 -1
- package/dist/subagent-service.d.ts +3 -0
- package/dist/subagent-service.js +24 -4
- package/dist/subagent-service.js.map +1 -1
- package/dist/task-board-tool.d.ts +31 -0
- package/dist/task-board-tool.js +31 -0
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-board-waker.d.ts +23 -30
- package/dist/task-board-waker.js +136 -97
- package/dist/task-board-waker.js.map +1 -1
- package/dist/types.d.ts +23 -0
- package/dist/ui/agent-details-settings.js +2 -2
- package/dist/ui/agent-export-dialog.js +4 -3
- package/dist/ui/agent-export-strings.js +4 -4
- package/dist/ui/agent-page-strings.js +18 -0
- package/dist/ui/chat-activity-groups.js +1 -1
- package/dist/ui/chat-activity.js +17 -0
- package/dist/ui/chat-store.js +13 -4
- package/dist/ui/chat-task-ref-strings.js +24 -0
- package/dist/ui/chat-task-refs.js +129 -0
- package/dist/ui/claude-setup-token.js +3 -3
- package/dist/ui/contact-auth-strings.js +33 -3
- package/dist/ui/contact-authorizations.js +17 -24
- package/dist/ui/contact-grant-editor.js +50 -0
- package/dist/ui/contact-permissions.js +21 -8
- package/dist/ui/fleet-office-card.js +18 -14
- package/dist/ui/fleet-office.js +29 -17
- package/dist/ui/fleet-task-activity.js +362 -0
- package/dist/ui/fleet-task-card.js +317 -314
- package/dist/ui/fleet-task-common.js +99 -9
- package/dist/ui/fleet-task-create.js +67 -0
- package/dist/ui/fleet-task-edit.js +204 -0
- package/dist/ui/fleet-task-follow.js +123 -0
- package/dist/ui/fleet-task-menu.js +1 -1
- package/dist/ui/fleet-task-owner.js +252 -0
- package/dist/ui/fleet-task-run.js +257 -0
- package/dist/ui/fleet-task-view.js +178 -39
- package/dist/ui/fleet-task-work.js +2 -2
- package/dist/ui/fleet-tasks.js +258 -130
- package/dist/ui/host-health.js +9 -6
- package/dist/ui/host-monitoring-darwin.js +6 -0
- package/dist/ui/host-monitoring-help.js +7 -0
- package/dist/ui/host-monitoring-linux.js +6 -0
- package/dist/ui/host-monitoring-wsl.js +6 -0
- package/dist/ui/hub-agent-copy.js +2 -0
- package/dist/ui/hub-client.js +4 -0
- package/dist/ui/hub-my-agents-strings.js +2 -0
- package/dist/ui/hub-my-agents.js +17 -1
- package/dist/ui/hub-room-composer.js +108 -5
- package/dist/ui/hub-room-members-strings.js +9 -2
- package/dist/ui/hub-room-members.js +72 -15
- package/dist/ui/hub-room-office.js +191 -0
- package/dist/ui/hub-room-purpose.js +18 -2
- package/dist/ui/hub-room-settings.js +8 -1
- package/dist/ui/hub-room-strings.js +15 -0
- package/dist/ui/hub-room-thread.js +51 -15
- package/dist/ui/hub-strings.js +1 -1
- package/dist/ui/log-row.js +7 -5
- package/dist/ui/native-instance-settings.js +4 -2
- package/dist/ui/panel-chat.js +96 -17
- package/dist/ui/panel-details.js +17 -0
- package/dist/ui/panel-fleet.js +1 -1
- package/dist/ui/panel-hub.js +4 -1
- package/dist/ui/panel-needs.js +11 -2
- package/dist/ui/panel-settings.js +57 -13
- package/dist/ui/settings-apply.js +8 -3
- package/dist/ui/settings-default-model-scope.js +40 -0
- package/dist/ui/settings-default-model-strings.js +43 -0
- package/dist/ui/settings-dialogs.js +9 -5
- package/dist/ui/settings-host-alerts.js +4 -3
- package/dist/ui/settings-host-monitoring.js +2 -1
- package/dist/ui/settings-hub.js +1 -1
- package/dist/ui/settings-layout.js +7 -2
- package/dist/ui/settings-model.js +9 -5
- package/dist/ui/settings-quota-notice.js +3 -3
- package/dist/ui/settings-registry.js +3 -0
- package/dist/ui/settings-shared-strings.js +22 -0
- package/dist/ui/settings-shared.js +59 -12
- package/dist/ui/settings-strings.js +2 -4
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app.css +124 -46
- package/dist/ui/shared/chat-composer.js +7 -6
- package/dist/ui/shared/chat-render.js +39 -1
- package/dist/ui/shared/chat-thread.js +8 -3
- package/dist/ui/shared/composer-focus.js +21 -0
- package/dist/ui/shared/hub-chat.css +30 -2
- package/dist/ui/shared/hub-rooms-u2.css +17 -0
- package/dist/ui/shared/task-board.css +406 -8
- package/dist/ui/trigger-complete.js +71 -0
- package/dist/web-api.d.ts +9 -0
- package/dist/web-api.js +128 -13
- package/dist/web-api.js.map +1 -1
- package/dist/windows-native-mcp.js +5 -2
- package/dist/windows-native-mcp.js.map +1 -1
- package/dist/workflow-templates/default.md +4 -6
- package/package.json +1 -1
|
@@ -108,6 +108,22 @@ a.hub-launch-pill { border: 1px solid var(--border); background: transparent; co
|
|
|
108
108
|
.hub-chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
109
109
|
.hub-chat-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
110
110
|
.hub-chat-title .s { color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
111
|
+
/* M-3533 H1 (the user's r3, design §2.1a): a room's header is one line on a desk — its name and its counts beside it, as an
|
|
112
|
+
agent's name has its state — and a phone keeps its two lines. The purpose is the identity-card strip under the header
|
|
113
|
+
(.chat-card .id-card.card-c in app.css, as an agent's chat page): the room's picture, "Purpose" over the text, Edit. */
|
|
114
|
+
.hub-chat-title.one-line { flex-direction: row; align-items: baseline; gap: var(--s-2); }
|
|
115
|
+
.hub-chat-title.one-line strong, .hub-chat-title.one-line .s { flex: 0 1 auto; min-width: 0; }
|
|
116
|
+
.hub-chat-title.one-line .s { font-size: var(--fs-sm); }
|
|
117
|
+
.hub-room-card .id-row { align-items: center; }
|
|
118
|
+
.hub-room-card .hub-room-card-av { width: 40px; height: 40px; font-size: var(--fs-lg); }
|
|
119
|
+
.hub-room-card .id-tagline { margin: 0; font-weight: var(--fw-regular); font-size: var(--fs-sm); color: var(--text-2); }
|
|
120
|
+
/* CJK words stay whole: a line breaks at the punctuation (「…決定,」 / 「以及每週…」), not inside 以及; a run too long for
|
|
121
|
+
the line still wraps (.id-bio's overflow-wrap: anywhere in app.css). English is unaffected (keep-all only changes CJK). */
|
|
122
|
+
.hub-room-card .id-bio { color: var(--text); word-break: keep-all; }
|
|
123
|
+
/* The purpose wraps to as many lines as it needs (design §2.1a; at most 200 characters): a phone's compact identity card
|
|
124
|
+
clamps its tagline and bio (app.css, card-c), which would cut a long purpose here (Prism, #4349). */
|
|
125
|
+
.hub-room-card .id-card.card-c .id-tagline, .hub-room-card .id-card.card-c .id-bio { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: none; }
|
|
126
|
+
.hub-room-card .hub-room-card-edit { flex: none; }
|
|
111
127
|
.hub-back { flex: none; }
|
|
112
128
|
/* S-150: the phone's back to the list is a full tap target, as the header's other buttons are. */
|
|
113
129
|
@media (max-width: 899px), (pointer: coarse) { .hub-chat-head .hub-back { min-width: var(--tap); min-height: var(--tap); } }
|
|
@@ -194,12 +210,24 @@ a.hub-launch-pill { border: 1px solid var(--border); background: transparent; co
|
|
|
194
210
|
.composer-row.hub-hints > .hint { flex-shrink: 0; max-width: 100%; }
|
|
195
211
|
|
|
196
212
|
/* M-3311 (4): a phone's room header is one row, as the Fleet chat's — back, the room (its name, then one line of counts), the
|
|
197
|
-
members and ⋯. The purpose is
|
|
213
|
+
members and ⋯. The purpose is the card under the header (M-3533 H1), and text size and Notify are in ⋯; the name
|
|
198
214
|
no longer sits on the top edge (the header has room above and below), and the counts are no longer cut to "2 人 · 0 個 …". */
|
|
199
215
|
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
|
|
200
216
|
.hub-room-page .hub-chat-head { padding-block: var(--s-1); }
|
|
201
|
-
.hub-room-page .hub-chat-head .hub-chat-title
|
|
217
|
+
.hub-room-page .hub-chat-head .hub-chat-title.one-line { flex-direction: column; align-items: stretch; gap: 0; }
|
|
218
|
+
.hub-room-page .hub-chat-head .hub-chat-title.one-line .s { font-size: var(--fs-xs); }
|
|
219
|
+
.hub-room-card .hub-room-card-edit { min-height: var(--tap); }
|
|
202
220
|
.hub-room-page .hub-chat-head .hub-head-tools { display: none; }
|
|
203
221
|
/* …and its members and ⋯ are full tap targets, as its back is (S-150). */
|
|
204
222
|
.hub-room-page .hub-chat-head .hub-room-menu > .icon-btn, .hub-room-page .hub-chat-head .hub-room-rail-toggle { min-width: var(--tap); min-height: var(--tap); }
|
|
205
223
|
}
|
|
224
|
+
|
|
225
|
+
/* M-3533 R1 (design §2.1): a room's office fills the content area as an agent's View does — no card, no border, no
|
|
226
|
+
inner title bar, no message box under it; the tabs sit in the header just before its tools. */
|
|
227
|
+
.hub-chat-head .hub-room-tabs { margin-left: auto; }
|
|
228
|
+
.hub-chat-head .hub-room-tabs + .hub-head-tools { margin-left: var(--s-2); }
|
|
229
|
+
.hub-room-office { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: var(--s-2) var(--s-3); overflow: auto; }
|
|
230
|
+
.hub-room-office > .oo { flex: 1 1 auto; min-height: 0; }
|
|
231
|
+
.hub-room-office-note, .hub-room-office-loading { padding: var(--s-4); }
|
|
232
|
+
/* The message box stays mounted under the office (its draft and picked mentions kept), not shown. */
|
|
233
|
+
.hub-room-page .hub-dock[hidden] { display: none !important; }
|
|
@@ -101,3 +101,20 @@
|
|
|
101
101
|
.hub-owner-agent-choices small { display:block; }
|
|
102
102
|
.hub-owner-agent-requests blockquote { overflow-wrap:anywhere; margin:var(--s-2) 0; padding-left:var(--s-3); border-left:3px solid var(--border-strong); color:var(--text-2); }
|
|
103
103
|
.hub-owner-agent-requests a { color:var(--accent); text-decoration:underline; }
|
|
104
|
+
/* M-3533 M1 (docs/design/hub-office-visit.md §2.6): a large room's compact member list — a summary, a filter, one line a
|
|
105
|
+
row (the name left, its state right; an agent's owner and introduction in its card), folded groups. */
|
|
106
|
+
.hub-members-sum { margin: 0; }
|
|
107
|
+
/* The dashboard's placeholder colour (as its other boxes'): readable in dark and light (≥ 4.5:1 on --surface). */
|
|
108
|
+
.hub-members-filter::placeholder { color: var(--text-3); opacity: 1; }
|
|
109
|
+
.hub-members-filter { width: 100%; min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; box-sizing: border-box; }
|
|
110
|
+
.hub-member-group > summary { cursor: pointer; padding: var(--s-1) 0; font-size: var(--fs-sm); min-height: 32px; display: flex; align-items: center; gap: 6px; list-style: none; }
|
|
111
|
+
.hub-member-group > summary::-webkit-details-marker { display: none; }
|
|
112
|
+
.hub-member-group > summary::before { content: "▸"; color: var(--text-2); }
|
|
113
|
+
.hub-member-group[open] > summary::before { content: "▾"; }
|
|
114
|
+
.hub-member-group > ul { padding-inline-start: var(--s-3) !important; }
|
|
115
|
+
.hub-room-members.compact .hub-member:not(.hub-member-agent), .hub-room-members.compact .hub-member-open { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-2); }
|
|
116
|
+
.hub-room-members.compact .hub-member-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
117
|
+
.hub-room-members.compact .hub-member-state { flex: none; flex-wrap: nowrap; }
|
|
118
|
+
/* On a touch screen every interactive row is a fingertip high: the filter, a fold, an agent's row (a person's row is not
|
|
119
|
+
pressed, and a desk stays dense). */
|
|
120
|
+
@media (pointer: coarse) { .hub-room-members .hub-members-filter, .hub-member-group > summary, .hub-room-members.compact .hub-member-open { min-height: var(--tap); } }
|
|
@@ -40,8 +40,11 @@
|
|
|
40
40
|
/* Under the project's header, as Linear's options row: Filter, Display, then the filters in force. */
|
|
41
41
|
.tb-view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-3) 0; }
|
|
42
42
|
.tb-view-bar > .menu > .menu-text.active { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
|
|
43
|
+
/* While columns are out of sight the toolbar says so: "‹ ›" at its end (a button with nothing to reach is dimmed, not removed, so the focus stays). */
|
|
44
|
+
.tb-scroll-nav { margin-left: auto; }
|
|
45
|
+
.tb-scroll-btn { display: inline-flex; align-items: center; justify-content: center; }
|
|
46
|
+
.tb-scroll-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
|
|
43
47
|
.tb-view-bar .menu-list { left: 0; right: auto; max-height: min(70vh, 520px); overflow-y: auto; }
|
|
44
|
-
.tb-columns.no-done { grid-template-columns: repeat(4, minmax(176px, 1fr)); }
|
|
45
48
|
.tb-filters { display: contents; }
|
|
46
49
|
.tb-chip { display: inline-flex; align-items: center; min-height: 30px; max-width: 100%; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); font-size: var(--fs-xs); }
|
|
47
50
|
.tb-chip-field { padding: 0 var(--s-2) 0 var(--s-3); color: var(--text-2); white-space: nowrap; }
|
|
@@ -52,18 +55,22 @@
|
|
|
52
55
|
.tb-chip .menu { min-width: 0; }
|
|
53
56
|
.tb-chip .menu-text { min-height: 28px; max-width: 240px; padding: 0 var(--s-2); border: 0; border-left: 1px solid var(--border); border-radius: 0; background: none; }
|
|
54
57
|
.tb-chip .menu-text > span { overflow: hidden; text-overflow: ellipsis; }
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
/* The list is Settings' list (the Agent page's): one rounded, bordered container on the surface, a header row and each
|
|
59
|
+
group's heading on --surface-2, rows between thin lines — so Tasks and Settings read as one product. */
|
|
60
|
+
.tb-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
|
|
61
|
+
.tb-group-head { display: flex; align-items: center; gap: var(--s-2); margin: 0; padding: 10px var(--s-4); border-top: 1px solid var(--border); border-radius: 0; background: var(--surface-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); }
|
|
57
62
|
.tb-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
|
|
58
63
|
.tb-row { border-bottom: 1px solid var(--border); cursor: pointer; }
|
|
59
|
-
.tb-row:hover { background: var(--surface); }
|
|
64
|
+
.tb-row:hover { background: var(--surface-2); }
|
|
65
|
+
.tb-group:last-child .tb-rows > .tb-row:last-child { border-bottom: 0; }
|
|
60
66
|
.tb-row.flash { animation: tb-flash 1.6s var(--ease); }
|
|
61
|
-
.tb-row-line { display: flex; align-items: center; gap: var(--s-2); min-height:
|
|
62
|
-
.tb-row.is-sub .tb-row-line { padding-left: var(--s-
|
|
67
|
+
.tb-row-line { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: var(--s-1) var(--s-4); font-size: var(--fs-sm); min-width: 0; }
|
|
68
|
+
.tb-row.is-sub .tb-row-line { padding-left: calc(var(--s-4) * 2); }
|
|
63
69
|
.tb-row-main { flex-shrink: 0; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
|
|
64
70
|
.tb-row-text { flex: 1; display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
|
|
65
71
|
.tb-row-title { flex-shrink: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: var(--fw-medium); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
66
72
|
.tb-row-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
|
|
73
|
+
.tb-row-text > .tr-mark { flex: none; align-self: center; }
|
|
67
74
|
.tb-row-note { flex: 1 1 0; min-width: 0; font-size: var(--fs-xs); color: var(--danger); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
68
75
|
.tb-row-tags { display: inline-flex; align-items: center; gap: var(--s-1); flex-shrink: 0; }
|
|
69
76
|
.tb-row-progress { display: inline-flex; align-items: center; gap: var(--s-1); flex-shrink: 0; padding: 2px var(--s-1); border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font-size: var(--fs-xs); white-space: nowrap; }
|
|
@@ -73,14 +80,14 @@ button.tb-row-progress:hover { background: var(--surface-2); }
|
|
|
73
80
|
.tb-row-who { display: inline-flex; flex-shrink: 0; width: 140px; min-width: 0; font-size: var(--fs-xs); }
|
|
74
81
|
.tb-row-who .tb-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
75
82
|
.tb-row-time { flex-shrink: 0; width: 7em; font-size: var(--fs-xs); text-align: right; white-space: nowrap; }
|
|
76
|
-
.tb-row > .tb-subs { margin: 0 var(--s-
|
|
83
|
+
.tb-row > .tb-subs { margin: 0 var(--s-4) var(--s-2) calc(var(--s-4) * 2); }
|
|
77
84
|
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
|
|
78
85
|
/* A phone's row: number and title on the first line, the rest under them. */
|
|
79
86
|
.tb-row-line { flex-wrap: wrap; row-gap: var(--s-1); }
|
|
80
87
|
.tb-row-text { flex: 1 1 calc(100% - 96px); }
|
|
81
88
|
.tb-row-who { width: auto; }
|
|
82
89
|
.tb-row-time { width: auto; margin-left: auto; }
|
|
83
|
-
.tb-row.is-sub .tb-row-line { padding-left: var(--s-4); }
|
|
90
|
+
.tb-row.is-sub .tb-row-line { padding-left: calc(var(--s-4) + var(--s-3)); }
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
/* A card's menu at the pointer (fleet-task-menu.js): the app's menu, fixed where the right click was; and the card's
|
|
@@ -93,3 +100,394 @@ button.tb-row-progress:hover { background: var(--surface-2); }
|
|
|
93
100
|
@media (prefers-reduced-motion: reduce) {
|
|
94
101
|
.tb-row.flash { animation: none; }
|
|
95
102
|
}
|
|
103
|
+
|
|
104
|
+
/* ── The toolbar: board / list, search, Filter and Display in one row (fleet-task-view.js TaskToolbar) ─────────────── */
|
|
105
|
+
.tb-view-bar { gap: var(--s-2); }
|
|
106
|
+
/* A segmented switch (board / list, the phone's statuses, the timeline's filter): its own class, not the Fleet tabs' .seg-item,
|
|
107
|
+
which a phone shortens to its open tab's label. */
|
|
108
|
+
.tb-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: var(--r-full); background: var(--surface); }
|
|
109
|
+
.tb-seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 30px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-full); background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; }
|
|
110
|
+
.tb-seg-btn:hover { background: var(--surface-2); color: var(--text); }
|
|
111
|
+
.tb-seg-btn.active { background: var(--bg); color: var(--text); font-weight: var(--fw-semibold); box-shadow: var(--shadow-1); }
|
|
112
|
+
.tb-seg-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
113
|
+
.tb-find { flex: 0 1 260px; min-width: 160px; }
|
|
114
|
+
.tb-find input { min-height: 30px; }
|
|
115
|
+
|
|
116
|
+
/* ── The list: a header to sort by, folding groups, priority and ⋯ per row ─────────────────────────────────────── */
|
|
117
|
+
.tb-list-head { display: flex; align-items: center; gap: var(--s-2); padding: 12px var(--s-4); background: var(--surface-2); font-size: var(--fs-xs); color: var(--text-2); }
|
|
118
|
+
.tb-lh-dot { flex: none; width: 8px; }
|
|
119
|
+
.tb-lh { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: var(--fw-semibold); cursor: pointer; white-space: nowrap; }
|
|
120
|
+
.tb-lh:hover, .tb-lh.active { color: var(--text); }
|
|
121
|
+
.tb-lh:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
|
|
122
|
+
.tb-lh-code { flex: none; width: 4.5em; }
|
|
123
|
+
.tb-lh-title { flex: 1; min-width: 0; }
|
|
124
|
+
.tb-lh-prio { flex: none; width: 84px; }
|
|
125
|
+
.tb-lh-who { flex: none; width: 140px; }
|
|
126
|
+
.tb-lh-time { flex: none; width: 7em; justify-content: flex-end; }
|
|
127
|
+
.tb-lh-more { flex: none; width: 32px; }
|
|
128
|
+
.tb-row-code { flex: none; width: 4.5em; }
|
|
129
|
+
.tb-row-prio { flex: none; width: 84px; font-size: var(--fs-xs); color: var(--text-3); }
|
|
130
|
+
.tb-row-prio.p-urgent { color: var(--danger); font-weight: var(--fw-semibold); }
|
|
131
|
+
.tb-row-prio.p-high { color: var(--warn); font-weight: var(--fw-semibold); }
|
|
132
|
+
.tb-more { width: 32px; height: 32px; color: var(--text-3); }
|
|
133
|
+
.tb-row-line > .tb-more { flex: none; }
|
|
134
|
+
.tb-group-toggle { display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
135
|
+
.tb-group-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
|
|
136
|
+
.tb-group.shut .tb-group-head { margin-bottom: 0; }
|
|
137
|
+
|
|
138
|
+
/* A tile's ⋯: there for touch (no right click), quiet beside the title on a desk until the tile is pointed at. */
|
|
139
|
+
.tb-tile-more { margin: calc(-1 * var(--s-1)) calc(-1 * var(--s-2)) calc(-1 * var(--s-1)) 0; opacity: 0; }
|
|
140
|
+
.tb-tile:hover .tb-tile-more, .tb-tile:focus-within .tb-tile-more, .tb-tile-more:focus-visible { opacity: 1; }
|
|
141
|
+
.tb-status-seg { display: none; }
|
|
142
|
+
.tb-status-seg .tb-count { margin-left: 0; }
|
|
143
|
+
|
|
144
|
+
/* ── A card as a page ──────────────────────────────────────────────────────────────────────────────────────────── */
|
|
145
|
+
.tp { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
|
|
146
|
+
.tp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; }
|
|
147
|
+
/* Previous / Next, the link, Mark blocked and ⋯ stay together at the right edge — on their own line, right-aligned, when the bar wraps. */
|
|
148
|
+
.tp-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-2); margin-left: auto; min-width: 0; }
|
|
149
|
+
.tp-crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); min-width: 0; font-size: var(--fs-sm); color: var(--text-2); }
|
|
150
|
+
.tp-crumbs > .tp-crumb + .tp-crumb::before { content: "›"; margin-right: var(--s-2); color: var(--text-3); }
|
|
151
|
+
.tp-crumb { overflow-wrap: anywhere; }
|
|
152
|
+
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 460px); grid-template-rows: auto auto 1fr; grid-template-areas: "head side" "body side" "activity side"; column-gap: var(--s-6); row-gap: var(--s-4); align-items: start; }
|
|
153
|
+
.tp-head { grid-area: head; display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
|
|
154
|
+
.tp-body { grid-area: body; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
|
|
155
|
+
.tp-activity { grid-area: activity; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
|
|
156
|
+
/* Settings' card (.s-section-layout .card) — a thin border, --r-md, 20px inside — for the properties box. The activity is
|
|
157
|
+
not a box: it is a stream (below) of cards (what people and agents say) and thin rows (what the system did). */
|
|
158
|
+
.tp-side.card { border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: none; padding: var(--s-5); }
|
|
159
|
+
/* Above the title: the card's number and status, and (at the right edge) that the status follows the sub tasks. */
|
|
160
|
+
.tp-idrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); min-width: 0; }
|
|
161
|
+
.tp-idrow > .tp-derived { margin-left: auto; }
|
|
162
|
+
.tp-code { font-size: var(--fs-sm); }
|
|
163
|
+
.tp-derived { display: inline-flex; align-items: center; padding: 2px var(--s-2); border-radius: var(--r-full); background: var(--warn-bg); color: var(--warn); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
|
|
164
|
+
.tp-block-btn { border-radius: var(--r-full); }
|
|
165
|
+
/* The side column is the app's plain .card (surface, --r-md, its padding and gap); this only places it. */
|
|
166
|
+
.tp-side { grid-area: side; position: sticky; top: var(--s-2); margin: 0; min-width: 0; }
|
|
167
|
+
/* The properties in three groups — core state, project and people, flow — each under a small heading, a thin line between. */
|
|
168
|
+
.tp-side { gap: 0; }
|
|
169
|
+
.tp-group { display: flex; flex-direction: column; gap: var(--s-1); padding-block: var(--s-3); }
|
|
170
|
+
.tp-group:first-child { padding-top: 0; }
|
|
171
|
+
.tp-group + .tp-group { border-top: 1px solid var(--border); }
|
|
172
|
+
.tp-group-title { margin: 0; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
|
|
173
|
+
.tp-props { display: flex; flex-direction: column; gap: var(--s-1); margin: 0; }
|
|
174
|
+
.tp-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: var(--s-2); min-height: 34px; font-size: var(--fs-sm); }
|
|
175
|
+
.tp-row > dt { color: var(--text-2); }
|
|
176
|
+
.tp-row > dd { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; min-width: 0; }
|
|
177
|
+
.tp-opened { margin: 0; padding-top: var(--s-3); border-top: 1px solid var(--border); font-size: var(--fs-xs); }
|
|
178
|
+
.tp-static { display: inline-flex; align-items: center; min-height: 30px; padding: 0 var(--s-2); border: 1px solid transparent; }
|
|
179
|
+
.tp-prio.p-urgent { color: var(--danger); font-weight: var(--fw-semibold); }
|
|
180
|
+
.tp-prio.p-high { color: var(--warn); font-weight: var(--fw-semibold); }
|
|
181
|
+
/* A property is a chip: its value on a button; it shows a border on hover and when open. The menu opens under it. */
|
|
182
|
+
.tp-chip { display: inline-flex; align-items: center; gap: var(--s-1); max-width: 100%; min-height: 30px; padding: 0 var(--s-2); border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--text); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
|
|
183
|
+
.tp-chip:hover, .tp-chip[aria-expanded="true"] { border-color: var(--border); background: var(--bg); }
|
|
184
|
+
.tp-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
185
|
+
.tp-chip > .icon { flex: none; color: var(--text-3); }
|
|
186
|
+
.tp-chip-value { display: inline-flex; align-items: center; min-width: 0; overflow-wrap: anywhere; }
|
|
187
|
+
.tp-chip-menu { min-width: 0; max-width: 100%; }
|
|
188
|
+
.tp-chip-menu > .menu-list { left: 0; right: auto; min-width: 200px; max-height: min(60vh, 420px); overflow-y: auto; }
|
|
189
|
+
.tp-chip-menu > .menu-list.menu-up { top: auto; bottom: calc(100% + var(--s-1)); }
|
|
190
|
+
.tp-chip-menu > .menu-list.menu-compact { max-height: 180px; }
|
|
191
|
+
.tp-chip-menu > .menu-list.menu-short { max-height: 96px; }
|
|
192
|
+
.tp-chip-menu > .menu-list { transform: translateX(var(--menu-shift, 0px)); }
|
|
193
|
+
.tp-more > .menu-list { min-width: 200px; }
|
|
194
|
+
/* A row whose value is a sentence or a card (Now, Your confirmation) takes the full width, its name above it. */
|
|
195
|
+
.tp-row.tp-block { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; padding: var(--s-1) 0; }
|
|
196
|
+
.tp-row .tc-now { flex-wrap: wrap; }
|
|
197
|
+
.tp-row .tc-now .tc-child-title { flex-basis: 100%; order: 3; }
|
|
198
|
+
.tp-row .tb-check { align-items: flex-start; }
|
|
199
|
+
.tp-row .tb-check input { margin-top: 3px; }
|
|
200
|
+
/* Who hears the card (fleet-task-follow.js): each watcher a small chip — the instance and a ✕ — then Add; the leader is text. */
|
|
201
|
+
.tp-watchers { gap: var(--s-1) var(--s-2); padding-top: var(--s-1); }
|
|
202
|
+
.tp-watch-list { display: flex; flex-wrap: wrap; gap: var(--s-1); margin: 0; padding: 0; list-style: none; min-width: 0; }
|
|
203
|
+
.tp-watch { display: inline-flex; align-items: center; gap: var(--s-1); min-width: 0; max-width: 100%; padding-left: var(--s-2); border: 1px solid var(--border); border-radius: var(--r-full); background: var(--bg); }
|
|
204
|
+
.tp-watch-x { width: 26px; height: 26px; flex: none; }
|
|
205
|
+
.tp-watch-note { flex-basis: 100%; margin: 0; }
|
|
206
|
+
.tp-leader-via { font-size: var(--fs-xs); }
|
|
207
|
+
.tp-leader-note { order: 3; }
|
|
208
|
+
|
|
209
|
+
/* "Needs my confirmation" is a switch: the app's `.s-ui-toggle` (its rules are in app.css, which now covers the Fleet page too, as Settings and the Hub). */
|
|
210
|
+
.tp-switch { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; cursor: pointer; }
|
|
211
|
+
|
|
212
|
+
/* The spec (what people wrote): a field that holds text, and the quiet "+ Add" buttons for the ones that do not. */
|
|
213
|
+
.tp-spec { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
|
|
214
|
+
.tp-adders { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-width: 0; }
|
|
215
|
+
.tp-add { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 30px; padding: 0 var(--s-3) 0 var(--s-2); border: 1px solid var(--border); border-radius: var(--r-full); background: none; color: var(--text-2); font: inherit; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; }
|
|
216
|
+
.tp-add > .icon { color: var(--text-3); }
|
|
217
|
+
.tp-add:hover { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
|
|
218
|
+
.tp-add:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
219
|
+
|
|
220
|
+
/* What the agent wrote and does (state, result, activity): apart from the spec — the accent's straight bar and a tint. With
|
|
221
|
+
nothing to show it is one line (.is-strip). */
|
|
222
|
+
.tr-run.tp-agent { --lbar-color: var(--accent); margin: 0; border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); padding-left: calc(var(--s-3) + 3px); }
|
|
223
|
+
.tp-agent-icon { display: inline-flex; flex: none; color: var(--accent); }
|
|
224
|
+
.tp-agent-fields { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
|
|
225
|
+
.tp-agent-add { display: flex; }
|
|
226
|
+
.tp-agent .tc-text:hover { background: var(--bg); }
|
|
227
|
+
.tr-run.tp-agent.is-strip { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); min-height: 40px; padding: var(--s-1) var(--s-3); border-radius: var(--r-md); background: var(--accent-dim); color: var(--text-2); font-size: var(--fs-sm); }
|
|
228
|
+
.tp-agent-note { min-width: 0; overflow-wrap: anywhere; }
|
|
229
|
+
.tp-agent.is-strip .tp-add { min-height: 26px; background: var(--bg); font-size: var(--fs-xs); }
|
|
230
|
+
|
|
231
|
+
/* ── One invisible grid for the page ─────────────────────────────────────────────────────────────────────
|
|
232
|
+
Nothing is drawn: every row of the main column has the same two columns — a label (--tp-label), then its value — so the
|
|
233
|
+
texts of the spec, the agent's fields and the sub tasks start on one vertical line, and a label sits on its value's first
|
|
234
|
+
baseline. What a hover box or an edit box takes (its padding and border, --tp-inset) hangs out into the gutter on the left
|
|
235
|
+
(a negative margin), so the TEXT is on the line, not the box. The side column does the same: a label column and a value
|
|
236
|
+
column, a chip's text on the value column's edge. On a phone the label is above its value, the left edge the same. */
|
|
237
|
+
.tp { --tp-label: clamp(7rem, 6vw, 10rem); --tp-gap: var(--s-3); --tp-inset: calc(var(--s-2) + 1px); --tp-measure: 72rem; }
|
|
238
|
+
/* The page fills the content area. What grows with the width: the label column (7rem up to 10rem), the properties column
|
|
239
|
+
(300px up to 460px, a share of the window) and the main column, which takes the rest. What does not: the length of a line of PROSE (a
|
|
240
|
+
field's text, a comment's words) stops at --tp-measure, so a long text never becomes one line across a wide screen; the frames,
|
|
241
|
+
the checklist, the sub tasks and the activity cards keep the full width. */
|
|
242
|
+
.tp .tc-text, .tp .tl-body { max-width: var(--tp-measure); }
|
|
243
|
+
.tp .tc-field, .tp .tp-subs { display: grid; grid-template-columns: var(--tp-label) minmax(0, 1fr); column-gap: var(--tp-gap); align-items: start; min-width: 0; }
|
|
244
|
+
.tp .tc-field > h3, .tp .tp-subs > h3 { margin: 0; padding-top: var(--tp-inset); font-size: var(--fs-sm); line-height: var(--lh-sm); font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; color: var(--text-2); overflow-wrap: anywhere; }
|
|
245
|
+
.tp .tc-field.tone-blocked > h3 { color: var(--danger); }
|
|
246
|
+
.tp .tp-subs > h3 { font-weight: var(--fw-semibold); color: var(--text); }
|
|
247
|
+
.tc-field-body { min-width: 0; }
|
|
248
|
+
.tp .tc-text { width: calc(100% + var(--tp-inset)); margin-left: calc(-1 * var(--tp-inset)); line-height: var(--lh-sm); }
|
|
249
|
+
.tp .tc-text.empty { min-height: 0; padding-block: var(--s-2); font-size: var(--fs-sm); }
|
|
250
|
+
.tp .tc-edit { width: calc(100% + var(--tp-inset)); margin-left: calc(-1 * var(--tp-inset)); }
|
|
251
|
+
.tp .tc-title { margin-left: calc(-1 * var(--tp-inset)); }
|
|
252
|
+
.tp .tc-title-edit { margin-left: calc(-1 * var(--tp-inset)); }
|
|
253
|
+
/* The definition of done: its first row on the label's baseline, the checkboxes on the value column's edge. */
|
|
254
|
+
.tp .tc-checklist { gap: 0; padding-top: calc(var(--tp-inset) - 2px); }
|
|
255
|
+
.tp .tc-checklist li { padding-block: 2px; }
|
|
256
|
+
.tp .tc-checklist .tb-check { line-height: var(--lh-sm); }
|
|
257
|
+
.tp .tc-editlist { margin-left: calc(-1 * var(--s-3)); }
|
|
258
|
+
/* The agent's block: its fields share the page's value column — its own left padding (and bar and border) is taken off the label column. */
|
|
259
|
+
.tp-agent { --tp-agent-inset: calc(var(--s-3) + 4px); }
|
|
260
|
+
.tp-agent .tc-field { grid-template-columns: calc(var(--tp-label) - var(--tp-agent-inset)) minmax(0, 1fr); }
|
|
261
|
+
/* The sub tasks: a count and the bar, then a row each of four columns — status, number, title, who — and a line to add one. */
|
|
262
|
+
.tp-subs-head { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--tp-inset); min-height: calc(var(--lh-sm) + var(--tp-inset)); }
|
|
263
|
+
.tp-subs-count { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
|
|
264
|
+
.tp-subs-head > .tb-bar { flex: 0 1 12rem; margin-left: auto; }
|
|
265
|
+
.tp-subs .tc-children { gap: 0; margin: var(--s-1) 0 0; }
|
|
266
|
+
.tp-subs .tc-children button { display: grid; grid-template-columns: 6.5rem 3.5rem minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-2); width: calc(100% + var(--s-2)); min-height: 32px; margin-left: calc(-1 * var(--s-2)); padding: var(--s-1) 0 var(--s-1) var(--s-2); }
|
|
267
|
+
.tp-subs .tc-children .tb-pill { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
268
|
+
.tp-subs .tc-children .tb-who { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
|
|
269
|
+
.tp-subs .tc-quick-add { display: block; width: calc(100% + var(--tp-inset)); min-height: 32px; margin-left: calc(-1 * var(--tp-inset)); padding: var(--s-1) var(--s-2); border: 1px solid transparent; background: none; resize: none; }
|
|
270
|
+
.tp-subs .tc-quick-add:hover { background: var(--surface); }
|
|
271
|
+
.tp-subs .tc-quick-add:focus { border-color: var(--focus); background: var(--bg); }
|
|
272
|
+
/* The side column: a chip's (or a plain value's) text on the value column's edge. */
|
|
273
|
+
.tp-side .tp-row:not(.tp-block) .tp-chip-menu, .tp-side .tp-static { margin-left: calc(-1 * var(--tp-inset)); }
|
|
274
|
+
|
|
275
|
+
/* Text edited in place: the title, the fields, the checklist (fleet-task-edit.js). No buttons unless a conflict asks. */
|
|
276
|
+
.tc-title-edit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--s-1); }
|
|
277
|
+
.tc-title-edit .tc-title-input { width: 100%; }
|
|
278
|
+
.tc-edit-bar .err { color: var(--danger); }
|
|
279
|
+
.tc-text.empty { min-height: 0; padding-block: var(--s-1); font-size: var(--fs-xs); }
|
|
280
|
+
.tc-actions { border-bottom: 0; padding-bottom: 0; }
|
|
281
|
+
.tc-actions:empty { display: none; }
|
|
282
|
+
|
|
283
|
+
/* The timeline: comments, progress and history in one list; the comment box under it (fleet-task-activity.js). */
|
|
284
|
+
.tl { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
|
|
285
|
+
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
|
|
286
|
+
.tl-bar > h3 { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--text); text-transform: none; letter-spacing: 0; }
|
|
287
|
+
.tl-filter { padding: 0; background: none; }
|
|
288
|
+
.tl-filter .tb-seg-btn { min-height: 28px; padding: 0 var(--s-2); font-size: var(--fs-xs); }
|
|
289
|
+
.tl-filter .tb-seg-btn.active { background: var(--surface-2); box-shadow: none; }
|
|
290
|
+
/* The stream is a column — a comment or a progress note is a card of its own, the system's
|
|
291
|
+
lines between cards are thin rows, folded when there are many. The cards are 1px, --r-md, --surface, 16px inside, 12px apart; no
|
|
292
|
+
coloured bar at their edge, an agent's too (the badge says it). */
|
|
293
|
+
.tl-list { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
|
|
294
|
+
.tl-item { min-width: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }
|
|
295
|
+
.tl-card { padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
|
|
296
|
+
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); font-size: var(--fs-xs); }
|
|
297
|
+
.tl-head .tb-who { font-weight: var(--fw-semibold); color: var(--text); font-size: var(--fs-sm); max-width: none; }
|
|
298
|
+
/* The author: a bigger avatar (28px; its state dot grows with it), centred with the name, and one button for both — it opens the info
|
|
299
|
+
card (the board's own, fleet-task-owner.js) with the instance's Agent page. */
|
|
300
|
+
.tl-who-wrap { display: inline-flex; min-width: 0; }
|
|
301
|
+
.tl-who-btn { display: inline-flex; align-items: center; min-width: 0; padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
302
|
+
.tl-who-btn:hover .tb-who { text-decoration: underline; }
|
|
303
|
+
.tl-who-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
|
304
|
+
.tl-head .tb-person { align-items: center; gap: var(--s-2); }
|
|
305
|
+
.tl-head .tb-av { width: 28px; height: 28px; font-size: var(--fs-xs); }
|
|
306
|
+
.tl-head .tb-av-dot { width: 11px; height: 11px; right: -2px; bottom: -2px; }
|
|
307
|
+
.tl-time { margin-left: auto; font-size: var(--fs-xs); white-space: nowrap; }
|
|
308
|
+
.tl-body { white-space: pre-wrap; padding-left: 36px; } /* under the name: the avatar's width (28px) and the gap after it (8px) */
|
|
309
|
+
/* The chat's Markdown, in the card's text size. */
|
|
310
|
+
.tl-body.md { white-space: normal; }
|
|
311
|
+
/* The chat's Markdown, as the chat draws it (`.msg .md …` in app.css): the same values — a test compares them — so a comment and a
|
|
312
|
+
message read alike. The one difference: a table's header is --surface-2 (a card is --surface, as the page is for a message). */
|
|
313
|
+
.tl-body.md p { margin: 0 0 var(--s-3); }
|
|
314
|
+
.tl-body.md p:last-child, .tl-body.md > :last-child { margin-bottom: 0; }
|
|
315
|
+
.tl-body.md code { font-family: var(--font-mono); font-size: 0.88em; background: var(--inline-code); border-radius: 4px; padding: 1px 5px; }
|
|
316
|
+
.tl-body.md a { color: var(--accent); text-decoration: underline; }
|
|
317
|
+
.tl-body.md blockquote { margin: var(--s-2) 0; padding-left: var(--s-3); border-left: 3px solid var(--border-strong); color: var(--text-2); }
|
|
318
|
+
.tl-body.md ul, .tl-body.md ol { margin: var(--s-1) 0 var(--s-3); padding-left: 22px; }
|
|
319
|
+
.tl-body.md ul { list-style: disc; }
|
|
320
|
+
.tl-body.md ol { list-style: decimal; }
|
|
321
|
+
.tl-body.md li > ul, .tl-body.md li > ol { margin: 2px 0; }
|
|
322
|
+
.tl-body.md h3, .tl-body.md h4, .tl-body.md h5, .tl-body.md h6 { margin: var(--s-3) 0 var(--s-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
|
|
323
|
+
.tl-body.md hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-3) 0; }
|
|
324
|
+
.tl-body.md .codeblock pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; }
|
|
325
|
+
.tl-body.md .tbl { overflow-x: auto; margin: var(--s-2) 0 0; padding-bottom: var(--s-3); }
|
|
326
|
+
.tl-body.md table { border-collapse: collapse; font-size: var(--fs-sm); }
|
|
327
|
+
.tl-body.md th, .tl-body.md td { border: 1px solid var(--border); padding: 5px 9px; text-align: left; vertical-align: top; overflow-wrap: break-word; word-break: normal; min-width: 5em; }
|
|
328
|
+
.tl-body.md th { background: var(--surface-2); font-weight: var(--fw-semibold); }
|
|
329
|
+
.tl-body.md .al-c { text-align: center; } .tl-body.md .al-r { text-align: right; }
|
|
330
|
+
.tl-body.md .tk-k { color: var(--tk-k); } .tl-body.md .tk-s { color: var(--tk-s); } .tl-body.md .tk-n { color: var(--tk-n); } .tl-body.md .tk-c { color: var(--tk-c); font-style: italic; }
|
|
331
|
+
/* A day change: a thin rule with the day in a small pill (only when the list spans days). */
|
|
332
|
+
.tl-day { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3); margin-block: var(--s-2) var(--s-1); color: var(--text-3); font-size: var(--fs-xs); }
|
|
333
|
+
.tl-day::before, .tl-day::after { content: ""; border-top: 1px solid var(--border); }
|
|
334
|
+
.tl-day > span { padding: 1px var(--s-3); border: 1px solid var(--border); border-radius: var(--r-full); background: var(--bg); }
|
|
335
|
+
/* A system line: a small mark (a status change's is the status's), the sentence the name leads, the time at the right — smaller than a
|
|
336
|
+
comment and in the secondary colour, on the same 16px as a card's content so its mark is under the avatars. A run of them has
|
|
337
|
+
a gap of its own; more than three are one button, "› N activities". */
|
|
338
|
+
.tl-run { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
|
|
339
|
+
.tl-lines { display: flex; flex-direction: column; gap: var(--s-1); margin: 0; padding: 0; list-style: none; }
|
|
340
|
+
.tl-line, .tl-more { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--s-2); padding: 0 var(--s-4); color: var(--text-2); font-size: var(--fs-xs); }
|
|
341
|
+
.tl-mark { display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 20px; color: var(--text-3); }
|
|
342
|
+
.tl-sentence { min-width: 0; }
|
|
343
|
+
/* "› N activities" is an arrow and a word like the rows under it: no fill, no border, no rounding — pointing at it only turns the
|
|
344
|
+
text to the primary colour; the keyboard's focus still draws a ring. */
|
|
345
|
+
.tl-more { width: 100%; min-height: 28px; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: var(--fs-xs); text-align: left; cursor: pointer; }
|
|
346
|
+
.tl-more:hover, .tl-more:active { background: none; color: var(--text); }
|
|
347
|
+
.tl-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
348
|
+
.tl-more > span:last-child { grid-column: 2 / 4; }
|
|
349
|
+
.tl-event .tl-who > b { font-weight: var(--fw-regular); }
|
|
350
|
+
.tl-event > .tl-mark .tb-dot { opacity: 0.8; }
|
|
351
|
+
.tl-event .tr-by { background: none; color: var(--text-3); }
|
|
352
|
+
/* In a thin row an agent's badge is its robot mark on a desk (the word is its tooltip and its text for a screen reader); a phone has room for the word. */
|
|
353
|
+
@media (min-width: 900px) and (pointer: fine), (min-width: 900px) and (pointer: none), (min-width: 900px) and (min-height: 501px), (min-width: 1024px) { .tl-line .tr-by { font-size: 0; padding-inline: var(--s-1); } }
|
|
354
|
+
.tl-event .tl-time { color: var(--text-3); }
|
|
355
|
+
.tl-count { font-variant-numeric: tabular-nums; }
|
|
356
|
+
.tl-who { display: inline-flex; align-items: baseline; gap: var(--s-1); min-width: 0; max-width: 100%; }
|
|
357
|
+
.tl-who > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
358
|
+
.tl-who > .tb-tag { flex: none; }
|
|
359
|
+
/* A progress note's tag, and the badge on an instance's avatar. */
|
|
360
|
+
.tl-kind { background: var(--surface-2); color: var(--text-2); }
|
|
361
|
+
.tl-text { min-width: 0; }
|
|
362
|
+
.tl-none { margin: 0; }
|
|
363
|
+
/* The comment box is the last card of the stream: the same card, the text area without a box of its own, Send inside at the bottom right. */
|
|
364
|
+
.tc-composer { flex-direction: column; align-items: stretch; gap: var(--s-2); padding: var(--s-3) var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
|
|
365
|
+
.tc-composer:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-dim); }
|
|
366
|
+
.tc-compose-box { position: relative; flex: 1; min-width: 0; }
|
|
367
|
+
.tc-composer .tc-compose-box textarea { display: block; min-height: 56px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
|
|
368
|
+
.tc-composer .tc-compose-box textarea:focus { border-color: transparent; box-shadow: none; }
|
|
369
|
+
.tc-composer > .btn { align-self: flex-end; }
|
|
370
|
+
.tc-mentions { position: absolute; left: 0; bottom: calc(100% + var(--s-1)); z-index: 5; min-width: 220px; max-width: 100%; max-height: 220px; overflow-y: auto; margin: 0; padding: var(--s-1); list-style: none; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--bg); box-shadow: var(--shadow-2); }
|
|
371
|
+
.tc-mentions button { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; min-height: 32px; padding: 0 var(--s-2); border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font-size: var(--fs-sm); text-align: left; cursor: pointer; }
|
|
372
|
+
.tc-mentions li.active button, .tc-mentions button:hover:not(:disabled) { background: var(--surface-2); }
|
|
373
|
+
/* A board-off instance: --text-3 (at least 4.5:1 on the menu in every theme), never an opacity that drops it below. */
|
|
374
|
+
.tc-mentions button:disabled { color: var(--text-3); cursor: default; }
|
|
375
|
+
.tc-mention-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
376
|
+
|
|
377
|
+
/* The quick create: a title, three chips, the rest folded away (fleet-task-create.js). */
|
|
378
|
+
.tb-qc-title { width: 100%; min-height: 40px; padding: 0 var(--s-3); border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font-size: var(--fs-md); font-weight: var(--fw-semibold); }
|
|
379
|
+
.tb-qc-title:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px var(--accent-dim); }
|
|
380
|
+
.tb-qc-hint { margin: 0; }
|
|
381
|
+
.tb-qc-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
|
|
382
|
+
.tb-qc-chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; max-width: 100%; padding: 0 var(--s-2) 0 var(--s-3); border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); font-size: var(--fs-xs); color: var(--text-2); }
|
|
383
|
+
.tb-qc-chip > span { white-space: nowrap; }
|
|
384
|
+
.tb-qc-chip > select { min-width: 0; max-width: 16em; min-height: 28px; padding: 0 var(--s-1); border: 0; background: none; color: var(--text); font-size: var(--fs-sm); }
|
|
385
|
+
.tb-qc-more { display: flex; flex-direction: column; gap: var(--s-3); }
|
|
386
|
+
.tb-qc-more > summary { cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-3); }
|
|
387
|
+
.tb-qc-more > .field, .tb-qc-more > .tb-form-row, .tb-qc-more > .tb-check { margin-top: var(--s-3); }
|
|
388
|
+
|
|
389
|
+
/* ── A phone: one column (the properties right under the title), one status at a time, ⋯ on every card ───────── */
|
|
390
|
+
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
|
|
391
|
+
.tp-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "body" "side" "activity"; }
|
|
392
|
+
.tp-side { position: static; padding: var(--s-3); }
|
|
393
|
+
.tp-row { grid-template-columns: 88px minmax(0, 1fr); min-height: var(--tap); }
|
|
394
|
+
.tp-chip { min-height: var(--tap); }
|
|
395
|
+
.tp-watch-x { width: var(--tap); height: var(--tap); }
|
|
396
|
+
.tp-watch-add > .btn, .tp-watch-add > button { min-height: var(--tap); }
|
|
397
|
+
.tp-bar .icon-btn, .tp-bar .btn { min-height: var(--tap); }
|
|
398
|
+
.tp-bar .icon-btn { min-width: var(--tap); }
|
|
399
|
+
.tc-actions .btn { min-height: var(--tap); }
|
|
400
|
+
.tp-add { min-height: var(--tap); }
|
|
401
|
+
.tp-agent.is-strip .tp-add { min-height: var(--tap); }
|
|
402
|
+
.tp-subs .tc-children button, .tp-subs .tc-quick-add { min-height: var(--tap); }
|
|
403
|
+
/* The label above its value, the same left edge; the sub task's who under its title; a timeline line's actor above its words. */
|
|
404
|
+
.tp .tc-field, .tp .tp-subs, .tp-agent .tc-field { grid-template-columns: minmax(0, 1fr); }
|
|
405
|
+
.tp .tc-field > h3, .tp .tp-subs > h3 { padding-top: 0; }
|
|
406
|
+
.tp .tc-checklist { padding-top: 0; }
|
|
407
|
+
.tp-subs-head { padding-top: var(--s-1); min-height: 0; }
|
|
408
|
+
.tp-subs .tc-children button { grid-template-columns: 5.5rem 3rem minmax(0, 1fr); }
|
|
409
|
+
.tp-subs .tc-children .tb-who { grid-column: 3; justify-self: start; max-width: 100%; }
|
|
410
|
+
/* A phone: the cards and the rows keep their forms with less inside (12px), the time under a long sentence does not push it. */
|
|
411
|
+
.tl-card { padding: var(--s-3); }
|
|
412
|
+
.tl-line, .tl-more { padding: 0 var(--s-3); }
|
|
413
|
+
.tc-composer { padding: var(--s-3); }
|
|
414
|
+
.tc-composer > .btn { align-self: stretch; min-height: var(--tap); }
|
|
415
|
+
.tl-filter .tb-seg-btn { min-height: var(--tap); }
|
|
416
|
+
.tb-view-bar { gap: var(--s-2); }
|
|
417
|
+
.tb-view-toggle { order: -1; }
|
|
418
|
+
.tb-find { flex: 1 1 100%; order: 0; }
|
|
419
|
+
.tb-view-toggle .tb-seg-btn, .tb-view-bar .menu-text { min-height: var(--tap); }
|
|
420
|
+
.tb-list-head { display: none; }
|
|
421
|
+
.tb-row-code { width: auto; }
|
|
422
|
+
.tb-row-prio { width: auto; }
|
|
423
|
+
.tb-more { width: var(--tap); height: var(--tap); }
|
|
424
|
+
.tb-tile-more { opacity: 1; margin: calc(-1 * var(--s-3)) calc(-1 * var(--s-3)) 0 0; }
|
|
425
|
+
.tb-tile-top { min-height: 0; }
|
|
426
|
+
.tb-group-toggle { min-height: var(--tap); }
|
|
427
|
+
.tb-status-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); width: 100%; margin: 0 0 var(--s-3); border-radius: var(--r-md); }
|
|
428
|
+
.tb-status-seg .tb-seg-btn { min-height: var(--tap); padding: 0 var(--s-2); border-radius: var(--r-sm); font-size: var(--fs-xs); }
|
|
429
|
+
.tb-col:not(.is-current) { display: none; }
|
|
430
|
+
.tb-col > .tb-col-head { display: none; }
|
|
431
|
+
.tb-qc-chip { min-height: var(--tap); }
|
|
432
|
+
.tb-qc-chip > select { min-height: var(--tap); }
|
|
433
|
+
.tb-qc-more > summary { padding-block: calc((var(--tap) - 1lh) / 2); }
|
|
434
|
+
}
|
|
435
|
+
@media (prefers-reduced-motion: reduce) {
|
|
436
|
+
.tp-chip { transition: none; }
|
|
437
|
+
.p-fleet input.s-ui-toggle::after { transition: none; }
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/* ── what the agent is doing on a card ─────────────────────────────────────────────────────────────── */
|
|
441
|
+
/* The mark beside a tile's or a row's number, and the state on the card's page: a dot that breathes only while the
|
|
442
|
+
assignee is working (still, with reduced motion; the word says it either way). Busy with several cards: quiet grey. */
|
|
443
|
+
.tr-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
|
|
444
|
+
.tr-mark, .tr-state { display: inline-flex; align-items: center; gap: var(--s-1); padding: 1px var(--s-2); border-radius: var(--r-full); background: var(--accent-dim); color: var(--accent); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); white-space: nowrap; }
|
|
445
|
+
.tr-state { padding: 2px var(--s-2); font-size: var(--fs-xs); }
|
|
446
|
+
.tr-mark.s-working .tr-dot, .tr-state.s-working .tr-dot { animation: pulse 1.2s ease-in-out infinite; }
|
|
447
|
+
.tr-mark.shared { background: var(--surface-2); color: var(--text-2); }
|
|
448
|
+
.tr-mark.s-needs, .tr-state.s-needs { background: var(--warn-bg); color: var(--warn); }
|
|
449
|
+
.tr-mark.s-stuck, .tr-state.s-stuck { background: var(--danger-bg); color: var(--danger); }
|
|
450
|
+
.tr-state.s-idle { background: var(--surface-2); color: var(--text-2); }
|
|
451
|
+
/* On a tile the mark is in the status row, under the title (before the sub task at work, when there is one): the number, priority and size already fill a narrow column. */
|
|
452
|
+
.tb-tile-run { display: flex; align-items: center; gap: var(--s-2); }
|
|
453
|
+
.tb-tile-run > .tb-tile-now { flex: 1; min-width: 0; }
|
|
454
|
+
.tb-tile.running { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
|
|
455
|
+
/* The assignee on a tile or a row is a button (the card page's picker); pointing at it shows the instance's card. */
|
|
456
|
+
.tb-owner { display: inline-flex; min-width: 0; }
|
|
457
|
+
.tb-owner-btn { display: inline-flex; align-items: center; min-width: 0; margin: -2px; padding: 2px var(--s-2) 2px 2px; border: 1px solid transparent; border-radius: var(--r-full); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
458
|
+
button.tb-owner-btn:hover { border-color: var(--border); background: var(--surface); }
|
|
459
|
+
.tb-owner-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
|
|
460
|
+
.tb-owner-btn.is-static { cursor: inherit; }
|
|
461
|
+
.tb-owner-btn .tb-person { min-width: 0; }
|
|
462
|
+
.tb-tile-foot > .tb-owner { flex: 0 1 auto; }
|
|
463
|
+
.tb-tile-foot > .tb-people { flex: 1 1 0; display: flex; align-items: center; gap: var(--s-2); min-width: 0; overflow: hidden; }
|
|
464
|
+
.tb-people-sep { color: var(--text-3); }
|
|
465
|
+
.tb-tile-foot > .tb-tile-stats { margin-left: auto; }
|
|
466
|
+
.tb-owner-pop { position: fixed; left: 0; top: 0; z-index: 45; width: min(300px, calc(100vw - 16px)); }
|
|
467
|
+
.tb-owner-card { padding: var(--s-3); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-2); color: var(--text); font-size: var(--fs-xs); font-weight: var(--fw-regular); cursor: default; }
|
|
468
|
+
.toc-head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
|
|
469
|
+
.toc-spacer { flex: 1; }
|
|
470
|
+
/* The way to the instance's Agent page (a person's card has none). */
|
|
471
|
+
.toc-open { display: inline-flex; align-items: center; gap: 2px; margin-top: var(--s-2); color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-decoration: none; }
|
|
472
|
+
.toc-open:hover { text-decoration: underline; }
|
|
473
|
+
.toc-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
|
|
474
|
+
.toc-rows { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-1) var(--s-3); margin: 0; }
|
|
475
|
+
.toc-rows > dt { color: var(--text-2); }
|
|
476
|
+
.toc-rows > dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
|
|
477
|
+
.tb-row.running { background: color-mix(in srgb, var(--accent) 6%, transparent); }
|
|
478
|
+
.tb-row.running:hover { background: var(--accent-dim); }
|
|
479
|
+
/* The card's "Agent activity": who, their state, the way to their conversation, and (an admin, tool progress on) the steps. */
|
|
480
|
+
.tr-run { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3); }
|
|
481
|
+
.tr-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-width: 0; }
|
|
482
|
+
.tr-title { margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
|
|
483
|
+
.tr-note { margin: 0; font-size: var(--fs-sm); }
|
|
484
|
+
.tr-run .act-block { margin: 0; }
|
|
485
|
+
/* The timeline marks what an agent did: the shared straight bar (`.lbar`, app.css; the 3px it takes are added to the
|
|
486
|
+
padding) and an "Agent" tag after its name. */
|
|
487
|
+
.tr-by { background: var(--surface-2); color: var(--text-2); }
|
|
488
|
+
@media (max-width: 899px), (pointer: coarse) and (max-height: 500px) and (max-width: 1023px) {
|
|
489
|
+
.tr-open { min-height: var(--tap); }
|
|
490
|
+
}
|
|
491
|
+
@media (prefers-reduced-motion: reduce) {
|
|
492
|
+
.tr-mark.s-working .tr-dot, .tr-state.s-working .tr-dot { animation: none; }
|
|
493
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Completing a word after a trigger character — one function for the page's two lists.
|
|
2
|
+
// `@` in Fleet › Tasks' comment box (fleet-task-activity.js) offers the fleet's instance names, `#` in an instance's web chat
|
|
3
|
+
// (chat-task-refs.js) offers the board's cards. Both are the same three things: the trigger character being typed, the word
|
|
4
|
+
// typed after it up to the caret, and the replacement of that word once one is chosen. They differ only in what a word is
|
|
5
|
+
// made of, where the trigger may stand and whether code is skipped — a rule per trigger (TRIGGERS below), so a third
|
|
6
|
+
// trigger is one more row, not another copy. Pure: no DOM, no state; the callers keep the list, the keys and the caret.
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* What each trigger reads, each rule the board's / the renderer's own:
|
|
10
|
+
* word the characters the typed word is made of;
|
|
11
|
+
* max how many of them are read back from the caret (a longer run is not a word being typed);
|
|
12
|
+
* notBefore what may not stand right before the trigger (an address, a path, a word: `me@host`, `a/@x`, `page#top`);
|
|
13
|
+
* inCode false: the trigger inside inline code or a fenced block is no trigger (the board does not read it there);
|
|
14
|
+
* command true: a line that starts with "/" is a command, not a message — offered nothing.
|
|
15
|
+
*/
|
|
16
|
+
const TRIGGERS = {
|
|
17
|
+
// An instance's name may be CJK, so letters of any script; the board's rule (task-board-mentions.ts, NOT_BEFORE) is ASCII only,
|
|
18
|
+
// so a letter of another script before the `@` ("請@lead") is fine there and here.
|
|
19
|
+
"@": { word: /[\p{L}\p{N}_.\-]/u, max: Infinity, notBefore: /[A-Za-z0-9_.@/\\-]/, inCode: false, command: false },
|
|
20
|
+
// No space, no second `#`: a card number or a word of a title. What may not come before it is the renderer's and the server's
|
|
21
|
+
// rule (src/chat-task-refs.ts).
|
|
22
|
+
"#": { word: /[^\s#]/u, max: 60, notBefore: /[A-Za-z0-9_/&#@-]/, inCode: true, command: true },
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The text with fenced blocks and inline code blanked, as the board reads a comment (task-board-mentions.ts, withoutCode):
|
|
27
|
+
* an `@name` in code names an instance without waking it. A fence not closed runs to the end of the text; inline code
|
|
28
|
+
* is between two backticks on one line.
|
|
29
|
+
*/
|
|
30
|
+
export function withoutCode(text) {
|
|
31
|
+
const blank = (s) => s.replace(/[^\n]/g, " ");
|
|
32
|
+
return String(text).replace(/```[\s\S]*?(?:```|$)/g, blank).replace(/`[^`\n]*`/g, blank);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The `trigger` word being typed at the caret, or null: the trigger character must start the text or follow something not in
|
|
37
|
+
* the trigger's `notBefore` (and, for a trigger that skips code, not be in inline code or a fenced block), then the word's
|
|
38
|
+
* characters up to the caret. Null wherever the thing that reads the text would not read the word, so a list is never offered
|
|
39
|
+
* for a word that would do nothing. { start: where the trigger is, query: the characters after it }.
|
|
40
|
+
*/
|
|
41
|
+
export function triggerAt(text, caret, trigger) {
|
|
42
|
+
const rule = Object.prototype.hasOwnProperty.call(TRIGGERS, trigger) ? TRIGGERS[trigger] : null;
|
|
43
|
+
if (!rule) return null;
|
|
44
|
+
const s = String(text);
|
|
45
|
+
if (rule.command && /^\s*\//.test(s)) return null;
|
|
46
|
+
const end = Math.min(Math.max(0, caret), s.length);
|
|
47
|
+
let i = end;
|
|
48
|
+
while (i > 0 && rule.word.test(s[i - 1]) && end - i <= rule.max) i--;
|
|
49
|
+
if (i === 0 || s[i - 1] !== trigger) return null;
|
|
50
|
+
const start = i - 1;
|
|
51
|
+
const read = rule.inCode ? s : withoutCode(s);
|
|
52
|
+
if (read[start] !== trigger) return null;
|
|
53
|
+
if (start > 0 && rule.notBefore.test(read[start - 1])) return null;
|
|
54
|
+
return { start, query: s.slice(i, end) };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The text with the `trigger` word at `at` (what triggerAt returned) replaced by `<trigger><word> ` — one space after, unless one
|
|
59
|
+
* is already there or a line break follows — and where the caret goes. `names`: every word the list can offer, when the thing
|
|
60
|
+
* that reads the text reads the longest that fits: if the text after the caret would run the word on into a longer one
|
|
61
|
+
* (`@a` before " b", with an instance `a b` too), a space of its own is put in, so the word typed is the word read.
|
|
62
|
+
*/
|
|
63
|
+
export function insertAtTrigger(text, at, caret, trigger, word, names = []) {
|
|
64
|
+
const s = String(text);
|
|
65
|
+
const after = s.slice(Math.max(caret, at.start));
|
|
66
|
+
const lower = word.toLowerCase(), tail = after.toLowerCase();
|
|
67
|
+
const runsOn = names.some((n) => n.length > word.length && n.toLowerCase().startsWith(lower) && tail.startsWith(n.toLowerCase().slice(word.length)));
|
|
68
|
+
const spaced = after.startsWith(" ") && !runsOn;
|
|
69
|
+
const head = `${s.slice(0, at.start)}${trigger}${word}${after.startsWith("\n") || spaced ? "" : " "}`;
|
|
70
|
+
return { text: head + after, caret: head.length + (spaced ? 1 : 0) };
|
|
71
|
+
}
|