@activecollab/components 2.0.408 → 2.0.409
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/cjs/components/Icons/collection/Project.js +98 -0
- package/dist/cjs/components/Icons/collection/Project.js.map +1 -0
- package/dist/cjs/components/Icons/collection/Task.js +61 -0
- package/dist/cjs/components/Icons/collection/Task.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +14 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/presentation/stackedCard/content/NoteCard.js +7 -3
- package/dist/cjs/presentation/stackedCard/content/NoteCard.js.map +1 -1
- package/dist/cjs/presentation/stackedCard/content/ProjectCard.js +136 -0
- package/dist/cjs/presentation/stackedCard/content/ProjectCard.js.map +1 -0
- package/dist/cjs/presentation/stackedCard/content/TaskCard.js +183 -56
- package/dist/cjs/presentation/stackedCard/content/TaskCard.js.map +1 -1
- package/dist/cjs/presentation/stackedCard/content/index.js +11 -0
- package/dist/cjs/presentation/stackedCard/content/index.js.map +1 -1
- package/dist/cjs/presentation/stackedCard/content/shared.js +66 -19
- package/dist/cjs/presentation/stackedCard/content/shared.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/bottomDock.js +95 -32
- package/dist/cjs/presentation/whiteboard/bottomDock.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/canvasElements.js +196 -8
- package/dist/cjs/presentation/whiteboard/canvasElements.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/inspector.js +149 -47
- package/dist/cjs/presentation/whiteboard/inspector.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/outline.js +91 -18
- package/dist/cjs/presentation/whiteboard/outline.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/projectElements.js +883 -0
- package/dist/cjs/presentation/whiteboard/projectElements.js.map +1 -0
- package/dist/esm/components/Icons/collection/Project.d.ts +36 -0
- package/dist/esm/components/Icons/collection/Project.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Project.js +91 -0
- package/dist/esm/components/Icons/collection/Project.js.map +1 -0
- package/dist/esm/components/Icons/collection/Task.d.ts +32 -0
- package/dist/esm/components/Icons/collection/Task.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/Task.js +54 -0
- package/dist/esm/components/Icons/collection/Task.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +2 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +2 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/presentation/stackedCard/content/NoteCard.d.ts +8 -1
- package/dist/esm/presentation/stackedCard/content/NoteCard.d.ts.map +1 -1
- package/dist/esm/presentation/stackedCard/content/NoteCard.js +8 -4
- package/dist/esm/presentation/stackedCard/content/NoteCard.js.map +1 -1
- package/dist/esm/presentation/stackedCard/content/ProjectCard.d.ts +64 -0
- package/dist/esm/presentation/stackedCard/content/ProjectCard.d.ts.map +1 -0
- package/dist/esm/presentation/stackedCard/content/ProjectCard.js +128 -0
- package/dist/esm/presentation/stackedCard/content/ProjectCard.js.map +1 -0
- package/dist/esm/presentation/stackedCard/content/TaskCard.d.ts +64 -2
- package/dist/esm/presentation/stackedCard/content/TaskCard.d.ts.map +1 -1
- package/dist/esm/presentation/stackedCard/content/TaskCard.js +181 -58
- package/dist/esm/presentation/stackedCard/content/TaskCard.js.map +1 -1
- package/dist/esm/presentation/stackedCard/content/index.d.ts +1 -0
- package/dist/esm/presentation/stackedCard/content/index.d.ts.map +1 -1
- package/dist/esm/presentation/stackedCard/content/index.js +1 -0
- package/dist/esm/presentation/stackedCard/content/index.js.map +1 -1
- package/dist/esm/presentation/stackedCard/content/shared.d.ts +30 -0
- package/dist/esm/presentation/stackedCard/content/shared.d.ts.map +1 -1
- package/dist/esm/presentation/stackedCard/content/shared.js +66 -19
- package/dist/esm/presentation/stackedCard/content/shared.js.map +1 -1
- package/dist/esm/presentation/whiteboard/bottomDock.d.ts +30 -7
- package/dist/esm/presentation/whiteboard/bottomDock.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/bottomDock.js +79 -32
- package/dist/esm/presentation/whiteboard/bottomDock.js.map +1 -1
- package/dist/esm/presentation/whiteboard/canvasElements.d.ts +4 -1
- package/dist/esm/presentation/whiteboard/canvasElements.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/canvasElements.js +158 -7
- package/dist/esm/presentation/whiteboard/canvasElements.js.map +1 -1
- package/dist/esm/presentation/whiteboard/inspector.d.ts +35 -1
- package/dist/esm/presentation/whiteboard/inspector.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/inspector.js +170 -68
- package/dist/esm/presentation/whiteboard/inspector.js.map +1 -1
- package/dist/esm/presentation/whiteboard/outline.d.ts +23 -3
- package/dist/esm/presentation/whiteboard/outline.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/outline.js +89 -18
- package/dist/esm/presentation/whiteboard/outline.js.map +1 -1
- package/dist/esm/presentation/whiteboard/projectElements.d.ts +267 -0
- package/dist/esm/presentation/whiteboard/projectElements.d.ts.map +1 -0
- package/dist/esm/presentation/whiteboard/projectElements.js +824 -0
- package/dist/esm/presentation/whiteboard/projectElements.js.map +1 -0
- package/dist/index.js +629 -490
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import styled, { css } from "styled-components";
|
|
4
|
-
import { EntityDots, StyledClamp, coverManagement, playControl, Placeholder } from "./shared";
|
|
5
|
-
import { ChecklistSmallIcon,
|
|
4
|
+
import { CARD_FONT, CardProjectLine, EntityDots, StyledClamp, StyledTitleBlock, coverManagement, playControl, Placeholder } from "./shared";
|
|
5
|
+
import { ChecklistSmallIcon, DependencySmallIcon, EyeOffSmallIcon, MessageSmallIcon, PersonPlusIcon } from "../../../components/Icons";
|
|
6
6
|
import { SkeletonLoader } from "../../../components/Loaders";
|
|
7
|
+
import { Signifier } from "../../../components/Signifier";
|
|
7
8
|
import { STACKED_CARD_COVER_RATIO as COVER_RATIO, StackedCardCover as Cover, StackedCardRow as StackRow } from "../../../components/StackedCard";
|
|
9
|
+
import { Tag } from "../../../components/Tag";
|
|
8
10
|
import { Caption1 } from "../../../components/Typography";
|
|
9
11
|
import { Typography } from "../../../components/Typography/Typography";
|
|
10
12
|
import { RoundAvatar, AVATAR_COLORS } from "../../shared";
|
|
@@ -23,14 +25,58 @@ import { RoundAvatar, AVATAR_COLORS } from "../../shared";
|
|
|
23
25
|
* project default)
|
|
24
26
|
* - inline assignee affordance (avatar, or an add-assignee placeholder)
|
|
25
27
|
* - completed (teal tint, no "…" menu, no overdue colour)
|
|
28
|
+
* - assignees appear ONCE (in the info line when the card has no
|
|
29
|
+
* date range, in the date row when it
|
|
30
|
+
* has one — never in both)
|
|
26
31
|
*
|
|
27
32
|
* The pending/optimistic and priority states are SHELL states (dimmed +
|
|
28
33
|
* pointer-events off; red left bar), so the card is wrapped in a `<StackedCard
|
|
29
34
|
* pending>` / `<StackedCard priorityColor>` by the host — they are not the
|
|
30
35
|
* card's own concern and live on the shell, not here.
|
|
36
|
+
*
|
|
37
|
+
* Everything is measured against the app: `ColumnCardBody.jsx`,
|
|
38
|
+
* `ColumnCardBodyInfo.jsx`, `ColumnCardDate.jsx` and
|
|
39
|
+
* `view.project_tasks_column_mode.less`.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Eight labels, so the default card demonstrates the collapsed form. Colours are
|
|
44
|
+
* the labels' own, which is why they are literals.
|
|
31
45
|
*/
|
|
46
|
+
const DEMO_LABELS = [{
|
|
47
|
+
text: "DESIGN",
|
|
48
|
+
color: "#378ADD"
|
|
49
|
+
}, {
|
|
50
|
+
text: "BLOCKED",
|
|
51
|
+
color: "#D85A30"
|
|
52
|
+
}, {
|
|
53
|
+
text: "READY",
|
|
54
|
+
color: "#639922"
|
|
55
|
+
}, {
|
|
56
|
+
text: "REVIEW",
|
|
57
|
+
color: "#EF9F27"
|
|
58
|
+
}, {
|
|
59
|
+
text: "RESEARCH",
|
|
60
|
+
color: "#7F77DD"
|
|
61
|
+
}, {
|
|
62
|
+
text: "COPY",
|
|
63
|
+
color: "#8C5A2B"
|
|
64
|
+
}, {
|
|
65
|
+
text: "QA",
|
|
66
|
+
color: "#2F5DA8"
|
|
67
|
+
}, {
|
|
68
|
+
text: "RELEASE",
|
|
69
|
+
color: "#8A3E6B"
|
|
70
|
+
}];
|
|
32
71
|
|
|
33
|
-
|
|
72
|
+
/**
|
|
73
|
+
* How many labels read as text before the line has to collapse them, and how
|
|
74
|
+
* many dots stand in for the rest. Two colour-text `Tag`s fit a 260px card; past
|
|
75
|
+
* that the app's own answer (and the design system's mapping) is coloured dots
|
|
76
|
+
* plus an overflow count.
|
|
77
|
+
*/
|
|
78
|
+
const LABELS_AS_TEXT_MAX = 2;
|
|
79
|
+
const LABEL_DOTS_MAX = 5;
|
|
34
80
|
|
|
35
81
|
/* The completed tint fills the card body; the shell keeps the priority bar and
|
|
36
82
|
selection ring on top of it. */
|
|
@@ -41,10 +87,26 @@ const StyledBody = styled.div.withConfig({
|
|
|
41
87
|
let $completed = _ref.$completed;
|
|
42
88
|
return $completed && css(["background:var(--sc-completed-tint,rgba(72,201,176,0.16));"]);
|
|
43
89
|
});
|
|
44
|
-
|
|
45
|
-
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The info line — labels, then signifiers, then (only when the card has no date
|
|
93
|
+
* range) the assignees.
|
|
94
|
+
*
|
|
95
|
+
* The separator is the app's, rule for rule: a 2px round dot in
|
|
96
|
+
* `--color-theme-600` with `margin: 0 6px`, drawn by `::before` on every item
|
|
97
|
+
* EXCEPT the first (`view.project_tasks_column_mode.less`:
|
|
98
|
+
* `.c-signifier:not(:first-child):before`, `.label_single_container:not(:first-child)
|
|
99
|
+
* .label_item:before`, `.dot:before`). Because the rule keys off position rather
|
|
100
|
+
* than off "am I a signifier", a line that starts with a signifier — a task with
|
|
101
|
+
* counters but no labels — cannot open with a dangling dot.
|
|
102
|
+
*
|
|
103
|
+
* `font-size: 11px` is the `.labels` block's own; the vertical rhythm the app
|
|
104
|
+
* gets from `margin-top: 10px` comes from the `meta` row's role padding here.
|
|
105
|
+
*/
|
|
106
|
+
const StyledInfoLine = styled.div.withConfig({
|
|
107
|
+
displayName: "TaskCard__StyledInfoLine",
|
|
46
108
|
componentId: "sc-5iuhg8-1"
|
|
47
|
-
})(["display:flex;align-items:center;
|
|
109
|
+
})(["display:flex;flex-wrap:wrap;align-items:center;width:100%;font-size:11px;> *{display:flex;align-items:center;min-height:18px;}> *:not(:first-child):not(.sc-assignees)::before{content:\"\";flex-shrink:0;width:2px;height:2px;margin:0 6px;border-radius:100%;background-color:var(--color-theme-600);}.sc-label{max-width:74px;}.sc-label .c-tag > div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:60px;}.sc-dots{gap:4px;}.sc-assignees{flex:1 1 auto;justify-content:flex-end;}"]);
|
|
48
110
|
const StyledDot = styled.span.withConfig({
|
|
49
111
|
displayName: "TaskCard__StyledDot",
|
|
50
112
|
componentId: "sc-5iuhg8-2"
|
|
@@ -53,28 +115,39 @@ const StyledDot = styled.span.withConfig({
|
|
|
53
115
|
return $color;
|
|
54
116
|
});
|
|
55
117
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
118
|
+
/**
|
|
119
|
+
* The date row's text.
|
|
120
|
+
*
|
|
121
|
+
* A raw `<span>` in this Storybook inherits the browser's serif default at the
|
|
122
|
+
* ancestor's size, which is why the date used to read as huge serif type. The
|
|
123
|
+
* app sets the same four values in CSS on a plain `div` (`.due_date`: 13px,
|
|
124
|
+
* bold, 24px tall, `--color-theme-900`, `--red-alert` when `.overdue`), so the
|
|
125
|
+
* fix is to state them here — plus the font stack the missing reset does not
|
|
126
|
+
* supply.
|
|
127
|
+
*/
|
|
64
128
|
const StyledDate = styled.span.withConfig({
|
|
65
129
|
displayName: "TaskCard__StyledDate",
|
|
66
|
-
componentId: "sc-5iuhg8-
|
|
67
|
-
})(["font-weight:bold;color:", ";"], _ref3 => {
|
|
130
|
+
componentId: "sc-5iuhg8-3"
|
|
131
|
+
})(["height:24px;font-family:", ";font-size:13px;font-weight:bold;line-height:24px;letter-spacing:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:", ";"], CARD_FONT, _ref3 => {
|
|
68
132
|
let $overdue = _ref3.$overdue;
|
|
69
133
|
return $overdue ? "var(--red-alert)" : "var(--color-theme-900)";
|
|
70
134
|
});
|
|
71
135
|
|
|
136
|
+
/* Avatars are limited to 3 and overlap, as MultiAssigneesPicker does. */
|
|
137
|
+
const StyledAssignees = styled.span.withConfig({
|
|
138
|
+
displayName: "TaskCard__StyledAssignees",
|
|
139
|
+
componentId: "sc-5iuhg8-4"
|
|
140
|
+
})(["display:flex;align-items:center;justify-content:flex-end;"]);
|
|
141
|
+
|
|
72
142
|
/* Inline assignee affordance placeholder — a dashed add-assignee target that
|
|
73
143
|
stands in until the real picker is wired at integration. */
|
|
74
144
|
const StyledAddAssignee = styled.button.withConfig({
|
|
75
145
|
displayName: "TaskCard__StyledAddAssignee",
|
|
76
146
|
componentId: "sc-5iuhg8-5"
|
|
77
147
|
})(["display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:1.5px dashed var(--color-theme-400);border-radius:50%;background:transparent;color:var(--color-theme-600);cursor:pointer;svg{width:14px;height:14px;display:block;}&:hover{border-color:var(--sc-selection-ring);color:var(--color-theme-800);}"]);
|
|
148
|
+
|
|
149
|
+
/** The app's assignee limit (MultiAssigneesPicker `limit={3}`). */
|
|
150
|
+
const ASSIGNEE_LIMIT = 3;
|
|
78
151
|
export const TaskCard = _ref4 => {
|
|
79
152
|
let _ref4$title = _ref4.title,
|
|
80
153
|
title = _ref4$title === void 0 ? "Implement the design from the reference on this page" : _ref4$title,
|
|
@@ -88,6 +161,16 @@ export const TaskCard = _ref4 => {
|
|
|
88
161
|
showTaskId = _ref4$showTaskId === void 0 ? false : _ref4$showTaskId,
|
|
89
162
|
_ref4$taskId = _ref4.taskId,
|
|
90
163
|
taskId = _ref4$taskId === void 0 ? 4521 : _ref4$taskId,
|
|
164
|
+
_ref4$showProjectName = _ref4.showProjectName,
|
|
165
|
+
showProjectName = _ref4$showProjectName === void 0 ? false : _ref4$showProjectName,
|
|
166
|
+
_ref4$projectName = _ref4.projectName,
|
|
167
|
+
projectName = _ref4$projectName === void 0 ? "Marketing Site" : _ref4$projectName,
|
|
168
|
+
_ref4$labels = _ref4.labels,
|
|
169
|
+
labels = _ref4$labels === void 0 ? DEMO_LABELS : _ref4$labels,
|
|
170
|
+
_ref4$subtaskCount = _ref4.subtaskCount,
|
|
171
|
+
subtaskCount = _ref4$subtaskCount === void 0 ? 2 : _ref4$subtaskCount,
|
|
172
|
+
_ref4$commentCount = _ref4.commentCount,
|
|
173
|
+
commentCount = _ref4$commentCount === void 0 ? 7 : _ref4$commentCount,
|
|
91
174
|
_ref4$dateLabel = _ref4.dateLabel,
|
|
92
175
|
dateLabel = _ref4$dateLabel === void 0 ? "May 8 – Sep 10" : _ref4$dateLabel,
|
|
93
176
|
_ref4$overdue = _ref4.overdue,
|
|
@@ -102,12 +185,77 @@ export const TaskCard = _ref4 => {
|
|
|
102
185
|
projectDefaultHidden = _ref4$projectDefaultH === void 0 ? false : _ref4$projectDefaultH,
|
|
103
186
|
_ref4$assigned = _ref4.assigned,
|
|
104
187
|
assigned = _ref4$assigned === void 0 ? true : _ref4$assigned,
|
|
188
|
+
assignees = _ref4.assignees,
|
|
105
189
|
_ref4$completed = _ref4.completed,
|
|
106
190
|
completed = _ref4$completed === void 0 ? false : _ref4$completed;
|
|
107
191
|
// Signifier appears only when the task's visibility differs from the default.
|
|
108
192
|
const showHiddenSignifier = hiddenFromClients !== projectDefaultHidden;
|
|
109
193
|
// Overdue colour is suppressed on completed tasks.
|
|
110
194
|
const dateIsOverdue = overdue && !completed;
|
|
195
|
+
const hasDate = dateLabel != null && dateLabel !== "";
|
|
196
|
+
const collapseLabels = labels.length > LABELS_AS_TEXT_MAX;
|
|
197
|
+
|
|
198
|
+
/* The assignee slot: the real avatars when the host has them, the demo avatar
|
|
199
|
+
when it only says "assigned", the add affordance when it says nothing is. */
|
|
200
|
+
const assigneeSlot = assigned ? /*#__PURE__*/React.createElement(StyledAssignees, {
|
|
201
|
+
className: "sc-assignees",
|
|
202
|
+
"data-fixed": true
|
|
203
|
+
}, assignees ? assignees.slice(0, ASSIGNEE_LIMIT).map(person => /*#__PURE__*/React.createElement(RoundAvatar, {
|
|
204
|
+
key: person.name,
|
|
205
|
+
$bg: person.color,
|
|
206
|
+
$size: 24,
|
|
207
|
+
$overlap: true
|
|
208
|
+
}, person.initials)) : /*#__PURE__*/React.createElement(RoundAvatar, {
|
|
209
|
+
$bg: AVATAR_COLORS.teal,
|
|
210
|
+
$size: 24,
|
|
211
|
+
$bordered: false
|
|
212
|
+
}, "MS")) : /*#__PURE__*/React.createElement(StyledAssignees, {
|
|
213
|
+
className: "sc-assignees",
|
|
214
|
+
"data-fixed": true
|
|
215
|
+
}, /*#__PURE__*/React.createElement(StyledAddAssignee, {
|
|
216
|
+
type: "button",
|
|
217
|
+
"aria-label": "Assign task"
|
|
218
|
+
}, /*#__PURE__*/React.createElement(PersonPlusIcon, null)));
|
|
219
|
+
|
|
220
|
+
/* Signifiers in the app's fixed order: subtasks → comments → dependencies →
|
|
221
|
+
hidden-from-clients. Each is one child of the info line, so the line's own
|
|
222
|
+
separator rule spaces them. */
|
|
223
|
+
const signifiers = [];
|
|
224
|
+
if (subtaskCount > 0) {
|
|
225
|
+
signifiers.push(/*#__PURE__*/React.createElement(Signifier, {
|
|
226
|
+
key: "subtasks",
|
|
227
|
+
type: ChecklistSmallIcon,
|
|
228
|
+
value: subtaskCount,
|
|
229
|
+
tooltipText: "Subtasks"
|
|
230
|
+
}));
|
|
231
|
+
}
|
|
232
|
+
if (commentCount > 0) {
|
|
233
|
+
signifiers.push(/*#__PURE__*/React.createElement(Signifier, {
|
|
234
|
+
key: "comments",
|
|
235
|
+
type: MessageSmallIcon,
|
|
236
|
+
value: commentCount,
|
|
237
|
+
tooltipText: "Comments"
|
|
238
|
+
}));
|
|
239
|
+
}
|
|
240
|
+
if (showDependencies && dependencyCount > 0) {
|
|
241
|
+
signifiers.push(/*#__PURE__*/React.createElement(Signifier, {
|
|
242
|
+
key: "dependencies",
|
|
243
|
+
type: DependencySmallIcon,
|
|
244
|
+
value: dependencyCount,
|
|
245
|
+
tooltipText: "Dependencies"
|
|
246
|
+
}));
|
|
247
|
+
}
|
|
248
|
+
if (showHiddenSignifier) {
|
|
249
|
+
signifiers.push(/*#__PURE__*/React.createElement(Signifier, {
|
|
250
|
+
key: "hidden",
|
|
251
|
+
type: EyeOffSmallIcon,
|
|
252
|
+
tooltipText: "Hidden from clients"
|
|
253
|
+
}));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* The info line exists when it has something to say — labels, signifiers, or
|
|
257
|
+
the assignees it has to carry because there is no date row. */
|
|
258
|
+
const showInfoLine = labels.length > 0 || signifiers.length > 0 || !hasDate;
|
|
111
259
|
return /*#__PURE__*/React.createElement(StyledBody, {
|
|
112
260
|
$completed: completed
|
|
113
261
|
}, cover ? /*#__PURE__*/React.createElement(Cover, {
|
|
@@ -122,58 +270,33 @@ export const TaskCard = _ref4 => {
|
|
|
122
270
|
}
|
|
123
271
|
})) : null, /*#__PURE__*/React.createElement(StackRow, {
|
|
124
272
|
role: "title"
|
|
125
|
-
}, /*#__PURE__*/React.createElement(StyledClamp, null, showTaskId ? /*#__PURE__*/React.createElement(Typography, {
|
|
273
|
+
}, /*#__PURE__*/React.createElement(StyledTitleBlock, null, showProjectName ? /*#__PURE__*/React.createElement(CardProjectLine, null, projectName) : null, /*#__PURE__*/React.createElement(StyledClamp, null, showTaskId ? /*#__PURE__*/React.createElement(Typography, {
|
|
126
274
|
as: "span",
|
|
127
275
|
variant: "Caption 1",
|
|
128
276
|
color: "tertiary"
|
|
129
|
-
}, "#" + taskId + " ") : null, title), completed ? null : /*#__PURE__*/React.createElement(EntityDots, {
|
|
277
|
+
}, "#" + taskId + " ") : null, title)), completed ? null : /*#__PURE__*/React.createElement(EntityDots, {
|
|
130
278
|
"aria-label": "Task options"
|
|
131
|
-
})), /*#__PURE__*/React.createElement(StackRow, {
|
|
279
|
+
})), showInfoLine ? /*#__PURE__*/React.createElement(StackRow, {
|
|
132
280
|
role: "meta"
|
|
133
|
-
}, /*#__PURE__*/React.createElement(
|
|
281
|
+
}, /*#__PURE__*/React.createElement(StyledInfoLine, null, collapseLabels ? /*#__PURE__*/React.createElement("span", {
|
|
134
282
|
className: "sc-dots"
|
|
135
|
-
},
|
|
136
|
-
key:
|
|
137
|
-
$color: color
|
|
138
|
-
}))
|
|
139
|
-
color: "tertiary"
|
|
140
|
-
}, "+3"), /*#__PURE__*/React.createElement("span", {
|
|
141
|
-
className: "sc-sep"
|
|
142
|
-
}, "\xB7"), /*#__PURE__*/React.createElement("span", {
|
|
143
|
-
className: "sc-count"
|
|
144
|
-
}, /*#__PURE__*/React.createElement(MessageSmallIcon, null), /*#__PURE__*/React.createElement(Caption1, {
|
|
145
|
-
color: "tertiary"
|
|
146
|
-
}, "7")), /*#__PURE__*/React.createElement("span", {
|
|
147
|
-
className: "sc-sep"
|
|
148
|
-
}, "\xB7"), /*#__PURE__*/React.createElement("span", {
|
|
149
|
-
className: "sc-count"
|
|
150
|
-
}, /*#__PURE__*/React.createElement(ChecklistSmallIcon, null), /*#__PURE__*/React.createElement(Caption1, {
|
|
151
|
-
color: "tertiary"
|
|
152
|
-
}, "2")), showDependencies ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
153
|
-
className: "sc-sep"
|
|
154
|
-
}, "\xB7"), /*#__PURE__*/React.createElement("span", {
|
|
155
|
-
className: "sc-count",
|
|
156
|
-
title: "Dependencies"
|
|
157
|
-
}, /*#__PURE__*/React.createElement(InsertLinkIcon, null), /*#__PURE__*/React.createElement(Caption1, {
|
|
283
|
+
}, labels.slice(0, LABEL_DOTS_MAX).map(label => /*#__PURE__*/React.createElement(StyledDot, {
|
|
284
|
+
key: label.text,
|
|
285
|
+
$color: label.color
|
|
286
|
+
})), labels.length > LABEL_DOTS_MAX ? /*#__PURE__*/React.createElement(Caption1, {
|
|
158
287
|
color: "tertiary"
|
|
159
|
-
},
|
|
160
|
-
className: "sc-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
288
|
+
}, "+" + (labels.length - LABEL_DOTS_MAX)) : null) : labels.map(label => /*#__PURE__*/React.createElement("span", {
|
|
289
|
+
className: "sc-label",
|
|
290
|
+
key: label.text
|
|
291
|
+
}, /*#__PURE__*/React.createElement(Tag, {
|
|
292
|
+
name: label.text,
|
|
293
|
+
color: label.color,
|
|
294
|
+
showDot: false
|
|
295
|
+
}))), signifiers, hasDate ? null : assigneeSlot)) : null, hasDate ? /*#__PURE__*/React.createElement(StackRow, {
|
|
164
296
|
role: "footer"
|
|
165
297
|
}, /*#__PURE__*/React.createElement(StyledDate, {
|
|
166
298
|
$overdue: dateIsOverdue
|
|
167
|
-
}, dateLabel),
|
|
168
|
-
$bg: AVATAR_COLORS.teal,
|
|
169
|
-
$size: 24,
|
|
170
|
-
$bordered: false,
|
|
171
|
-
"data-fixed": true
|
|
172
|
-
}, "MS") : /*#__PURE__*/React.createElement(StyledAddAssignee, {
|
|
173
|
-
type: "button",
|
|
174
|
-
"aria-label": "Assign task",
|
|
175
|
-
"data-fixed": true
|
|
176
|
-
}, /*#__PURE__*/React.createElement(PersonPlusIcon, null))));
|
|
299
|
+
}, dateLabel), assigneeSlot) : null);
|
|
177
300
|
};
|
|
178
301
|
|
|
179
302
|
/* ---- placeholder + skeleton ---- */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskCard.js","names":["React","styled","css","EntityDots","StyledClamp","coverManagement","playControl","Placeholder","ChecklistSmallIcon","EyeOffIcon","InsertLinkIcon","MessageSmallIcon","PersonPlusIcon","SkeletonLoader","STACKED_CARD_COVER_RATIO","COVER_RATIO","StackedCardCover","Cover","StackedCardRow","StackRow","Caption1","Typography","RoundAvatar","AVATAR_COLORS","LABEL_DOTS","StyledBody","div","withConfig","displayName","componentId","_ref","$completed","StyledMetaCluster","StyledDot","span","_ref2","$color","StyledHiddenBadge","StyledDate","_ref3","$overdue","StyledAddAssignee","button","TaskCard","_ref4","_ref4$title","title","_ref4$cover","cover","_ref4$playable","playable","_ref4$coverControls","coverControls","_ref4$showTaskId","showTaskId","_ref4$taskId","taskId","_ref4$dateLabel","dateLabel","_ref4$overdue","overdue","_ref4$showDependencie","showDependencies","_ref4$dependencyCount","dependencyCount","_ref4$hiddenFromClien","hiddenFromClients","_ref4$projectDefaultH","projectDefaultHidden","_ref4$assigned","assigned","_ref4$completed","completed","showHiddenSignifier","dateIsOverdue","createElement","aspectRatio","centerSlot","undefined","topRightSlot","style","width","height","background","role","as","variant","color","className","map","key","Fragment","$bg","teal","$size","$bordered","type","TaskPlaceholder","props","_extends","icon","label","TaskSkeleton","borderRadius"],"sources":["../../../../../src/presentation/stackedCard/content/TaskCard.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled, { css } from \"styled-components\";\n\nimport {\n EntityDots,\n StyledClamp,\n coverManagement,\n playControl,\n Placeholder,\n} from \"./shared\";\nimport {\n ChecklistSmallIcon,\n EyeOffIcon,\n InsertLinkIcon,\n MessageSmallIcon,\n PersonPlusIcon,\n} from \"../../../components/Icons\";\nimport { SkeletonLoader } from \"../../../components/Loaders\";\nimport {\n STACKED_CARD_COVER_RATIO as COVER_RATIO,\n StackedCardCover as Cover,\n StackedCardRow as StackRow,\n} from \"../../../components/StackedCard\";\nimport { Caption1 } from \"../../../components/Typography\";\nimport { Typography } from \"../../../components/Typography/Typography\";\nimport { RoundAvatar, AVATAR_COLORS } from \"../../shared\";\n\n/**\n * TaskCard — the baseline-preservation card.\n *\n * This is the replacement for today's column card, so it must reproduce every\n * behavior that card has (note 52104 §B2) — none of them are optional, each is\n * a silent-regression risk. Every one is a prop here so the story can toggle it:\n *\n * - task-number prefix in the title (config-gated, mirrors `show_task_id`)\n * - overdue date colouring (red ONLY when overdue AND not completed)\n * - dependency counter (behind a feature-flag prop)\n * - hidden-from-clients signifier (shown only when it DIFFERS from the\n * project default)\n * - inline assignee affordance (avatar, or an add-assignee placeholder)\n * - completed (teal tint, no \"…\" menu, no overdue colour)\n *\n * The pending/optimistic and priority states are SHELL states (dimmed +\n * pointer-events off; red left bar), so the card is wrapped in a `<StackedCard\n * pending>` / `<StackedCard priorityColor>` by the host — they are not the\n * card's own concern and live on the shell, not here.\n */\n\nconst LABEL_DOTS = [\"#378ADD\", \"#D85A30\", \"#639922\", \"#EF9F27\", \"#7F77DD\"];\n\n/* The completed tint fills the card body; the shell keeps the priority bar and\n selection ring on top of it. */\nconst StyledBody = styled.div<{ $completed?: boolean }>`\n display: flex;\n flex-direction: column;\n\n ${({ $completed }) =>\n $completed &&\n css`\n background: var(--sc-completed-tint, rgba(72, 201, 176, 0.16));\n `}\n`;\n\nconst StyledMetaCluster = styled.div`\n display: flex;\n align-items: center;\n gap: 6px;\n color: var(--color-theme-600);\n\n .sc-dots {\n display: flex;\n gap: 4px;\n }\n\n .sc-sep {\n opacity: 0.6;\n }\n\n .sc-count {\n display: inline-flex;\n align-items: center;\n gap: 3px;\n }\n\n svg {\n width: 14px;\n height: 14px;\n }\n`;\n\nconst StyledDot = styled.span<{ $color: string }>`\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background: ${({ $color }) => $color};\n`;\n\n/* Hidden-from-clients signifier — an eye-off badge, shown only when the task's\n visibility differs from the project default. */\nconst StyledHiddenBadge = styled.span`\n display: inline-flex;\n align-items: center;\n gap: 3px;\n color: var(--color-theme-600);\n\n svg {\n width: 14px;\n height: 14px;\n }\n`;\n\n/* Date — bold; turns red only when overdue AND the task is not completed. */\nconst StyledDate = styled.span<{ $overdue?: boolean }>`\n font-weight: bold;\n color: ${({ $overdue }) =>\n $overdue ? \"var(--red-alert)\" : \"var(--color-theme-900)\"};\n`;\n\n/* Inline assignee affordance placeholder — a dashed add-assignee target that\n stands in until the real picker is wired at integration. */\nconst StyledAddAssignee = styled.button`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 1.5px dashed var(--color-theme-400);\n border-radius: 50%;\n background: transparent;\n color: var(--color-theme-600);\n cursor: pointer;\n\n svg {\n width: 14px;\n height: 14px;\n display: block;\n }\n\n &:hover {\n border-color: var(--sc-selection-ring);\n color: var(--color-theme-800);\n }\n`;\n\nexport interface TaskCardProps {\n title?: string;\n /** Optional cover — task cards in a column usually have none. */\n cover?: boolean;\n playable?: boolean;\n coverControls?: boolean;\n /** Config-gated task-number prefix (mirrors `show_task_id`). */\n showTaskId?: boolean;\n taskId?: number;\n dateLabel?: string;\n /** Overdue date — colours the date red, but only when NOT completed. */\n overdue?: boolean;\n /** Dependency counter, gated behind a feature flag. */\n showDependencies?: boolean;\n dependencyCount?: number;\n /** The task's hidden-from-clients flag. */\n hiddenFromClients?: boolean;\n /** The project default for client visibility; the signifier shows on a diff. */\n projectDefaultHidden?: boolean;\n /** Whether the task has an assignee (avatar) or shows the add affordance. */\n assigned?: boolean;\n /** Completed — teal tint, no \"…\" menu, no overdue colour. */\n completed?: boolean;\n}\n\nexport const TaskCard = ({\n title = \"Implement the design from the reference on this page\",\n cover = false,\n playable = false,\n coverControls = false,\n showTaskId = false,\n taskId = 4521,\n dateLabel = \"May 8 – Sep 10\",\n overdue = false,\n showDependencies = false,\n dependencyCount = 2,\n hiddenFromClients = false,\n projectDefaultHidden = false,\n assigned = true,\n completed = false,\n}: TaskCardProps): ReactElement => {\n // Signifier appears only when the task's visibility differs from the default.\n const showHiddenSignifier = hiddenFromClients !== projectDefaultHidden;\n // Overdue colour is suppressed on completed tasks.\n const dateIsOverdue = overdue && !completed;\n\n return (\n <StyledBody $completed={completed}>\n {cover ? (\n <Cover\n aspectRatio={COVER_RATIO}\n centerSlot={playable ? playControl : undefined}\n topRightSlot={coverControls ? coverManagement() : undefined}\n >\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n background: \"var(--color-theme-300)\",\n }}\n />\n </Cover>\n ) : null}\n\n <StackRow role=\"title\">\n <StyledClamp>\n {showTaskId ? (\n <Typography as=\"span\" variant=\"Caption 1\" color=\"tertiary\">\n {`#${taskId} `}\n </Typography>\n ) : null}\n {title}\n </StyledClamp>\n {/* Completed tasks drop the \"…\" menu. */}\n {completed ? null : <EntityDots aria-label=\"Task options\" />}\n </StackRow>\n\n <StackRow role=\"meta\">\n <StyledMetaCluster>\n <span className=\"sc-dots\">\n {LABEL_DOTS.map((color) => (\n <StyledDot key={color} $color={color} />\n ))}\n </span>\n <Caption1 color=\"tertiary\">+3</Caption1>\n <span className=\"sc-sep\">·</span>\n <span className=\"sc-count\">\n <MessageSmallIcon />\n <Caption1 color=\"tertiary\">7</Caption1>\n </span>\n <span className=\"sc-sep\">·</span>\n <span className=\"sc-count\">\n <ChecklistSmallIcon />\n <Caption1 color=\"tertiary\">2</Caption1>\n </span>\n {showDependencies ? (\n <>\n <span className=\"sc-sep\">·</span>\n <span className=\"sc-count\" title=\"Dependencies\">\n <InsertLinkIcon />\n <Caption1 color=\"tertiary\">{dependencyCount}</Caption1>\n </span>\n </>\n ) : null}\n {showHiddenSignifier ? (\n <>\n <span className=\"sc-sep\">·</span>\n <StyledHiddenBadge title=\"Hidden from clients\">\n <EyeOffIcon />\n </StyledHiddenBadge>\n </>\n ) : null}\n </StyledMetaCluster>\n </StackRow>\n\n <StackRow role=\"footer\">\n <StyledDate $overdue={dateIsOverdue}>{dateLabel}</StyledDate>\n <span />\n {assigned ? (\n <RoundAvatar\n $bg={AVATAR_COLORS.teal}\n $size={24}\n $bordered={false}\n data-fixed\n >\n MS\n </RoundAvatar>\n ) : (\n <StyledAddAssignee type=\"button\" aria-label=\"Assign task\" data-fixed>\n <PersonPlusIcon />\n </StyledAddAssignee>\n )}\n </StackRow>\n </StyledBody>\n );\n};\n\n/* ---- placeholder + skeleton ---- */\n\nexport const TaskPlaceholder = (\n props: React.ButtonHTMLAttributes<HTMLButtonElement>\n): ReactElement => (\n <Placeholder\n icon={<ChecklistSmallIcon />}\n label=\"Name this task\"\n {...props}\n />\n);\n\n/* Skeleton mirrors the task anatomy row for row: title, meta, footer. */\nexport const TaskSkeleton = (): ReactElement => (\n <>\n <StackRow role=\"title\">\n <SkeletonLoader style={{ height: 14, width: \"90%\" }} />\n </StackRow>\n <StackRow role=\"meta\">\n <SkeletonLoader style={{ height: 10, width: \"55%\" }} />\n </StackRow>\n <StackRow role=\"footer\">\n <SkeletonLoader style={{ height: 12, width: 64 }} data-fixed />\n <span />\n <SkeletonLoader\n data-fixed\n style={{ width: 24, height: 24, borderRadius: \"50%\" }}\n />\n </StackRow>\n </>\n);\n"],"mappings":";AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SACEC,UAAU,EACVC,WAAW,EACXC,eAAe,EACfC,WAAW,EACXC,WAAW,QACN,UAAU;AACjB,SACEC,kBAAkB,EAClBC,UAAU,EACVC,cAAc,EACdC,gBAAgB,EAChBC,cAAc,QACT,2BAA2B;AAClC,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SACEC,wBAAwB,IAAIC,WAAW,EACvCC,gBAAgB,IAAIC,KAAK,EACzBC,cAAc,IAAIC,QAAQ,QACrB,iCAAiC;AACxC,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,UAAU,QAAQ,2CAA2C;AACtE,SAASC,WAAW,EAAEC,aAAa,QAAQ,cAAc;;AAEzD;AACA;AACA;AACA;A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E;IAAEE,MAAM,EAAE,EAAE;IAAED,KAAK,EAAE;EAAM;AAAE,CAAE,CAC9C,CAAC,eACXjF,KAAA,CAAA2E,aAAA,CAACxD,QAAQ;EAACiE,IAAI,EAAC;AAAM,gBACnBpF,KAAA,CAAA2E,aAAA,CAAC9D,cAAc;EAACmE,KAAK,EAAE;IAAEE,MAAM,EAAE,EAAE;IAAED,KAAK,EAAE;EAAM;AAAE,CAAE,CAC9C,CAAC,eACXjF,KAAA,CAAA2E,aAAA,CAACxD,QAAQ;EAACiE,IAAI,EAAC;AAAQ,gBACrBpF,KAAA,CAAA2E,aAAA,CAAC9D,cAAc;EAACmE,KAAK,EAAE;IAAEE,MAAM,EAAE,EAAE;IAAED,KAAK,EAAE;EAAG,CAAE;EAAC;AAAU,CAAE,CAAC,eAC/DjF,KAAA,CAAA2E,aAAA,aAAO,CAAC,eACR3E,KAAA,CAAA2E,aAAA,CAAC9D,cAAc;EACb,kBAAU;EACVmE,KAAK,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEqB,YAAY,EAAE;EAAM;AAAE,CACvD,CACO,CACV,CACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"TaskCard.js","names":["React","styled","css","CARD_FONT","CardProjectLine","EntityDots","StyledClamp","StyledTitleBlock","coverManagement","playControl","Placeholder","ChecklistSmallIcon","DependencySmallIcon","EyeOffSmallIcon","MessageSmallIcon","PersonPlusIcon","SkeletonLoader","Signifier","STACKED_CARD_COVER_RATIO","COVER_RATIO","StackedCardCover","Cover","StackedCardRow","StackRow","Tag","Caption1","Typography","RoundAvatar","AVATAR_COLORS","DEMO_LABELS","text","color","LABELS_AS_TEXT_MAX","LABEL_DOTS_MAX","StyledBody","div","withConfig","displayName","componentId","_ref","$completed","StyledInfoLine","StyledDot","span","_ref2","$color","StyledDate","_ref3","$overdue","StyledAssignees","StyledAddAssignee","button","ASSIGNEE_LIMIT","TaskCard","_ref4","_ref4$title","title","_ref4$cover","cover","_ref4$playable","playable","_ref4$coverControls","coverControls","_ref4$showTaskId","showTaskId","_ref4$taskId","taskId","_ref4$showProjectName","showProjectName","_ref4$projectName","projectName","_ref4$labels","labels","_ref4$subtaskCount","subtaskCount","_ref4$commentCount","commentCount","_ref4$dateLabel","dateLabel","_ref4$overdue","overdue","_ref4$showDependencie","showDependencies","_ref4$dependencyCount","dependencyCount","_ref4$hiddenFromClien","hiddenFromClients","_ref4$projectDefaultH","projectDefaultHidden","_ref4$assigned","assigned","assignees","_ref4$completed","completed","showHiddenSignifier","dateIsOverdue","hasDate","collapseLabels","length","assigneeSlot","createElement","className","slice","map","person","key","name","$bg","$size","$overlap","initials","teal","$bordered","type","signifiers","push","value","tooltipText","showInfoLine","aspectRatio","centerSlot","undefined","topRightSlot","style","width","height","background","role","as","variant","label","showDot","TaskPlaceholder","props","_extends","icon","TaskSkeleton","Fragment","borderRadius"],"sources":["../../../../../src/presentation/stackedCard/content/TaskCard.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport styled, { css } from \"styled-components\";\n\nimport {\n CARD_FONT,\n CardProjectLine,\n EntityDots,\n StyledClamp,\n StyledTitleBlock,\n coverManagement,\n playControl,\n Placeholder,\n} from \"./shared\";\nimport {\n ChecklistSmallIcon,\n DependencySmallIcon,\n EyeOffSmallIcon,\n MessageSmallIcon,\n PersonPlusIcon,\n} from \"../../../components/Icons\";\nimport { SkeletonLoader } from \"../../../components/Loaders\";\nimport { Signifier } from \"../../../components/Signifier\";\nimport {\n STACKED_CARD_COVER_RATIO as COVER_RATIO,\n StackedCardCover as Cover,\n StackedCardRow as StackRow,\n} from \"../../../components/StackedCard\";\nimport { Tag } from \"../../../components/Tag\";\nimport { Caption1 } from \"../../../components/Typography\";\nimport { Typography } from \"../../../components/Typography/Typography\";\nimport { RoundAvatar, AVATAR_COLORS } from \"../../shared\";\n\n/**\n * TaskCard — the baseline-preservation card.\n *\n * This is the replacement for today's column card, so it must reproduce every\n * behavior that card has (note 52104 §B2) — none of them are optional, each is\n * a silent-regression risk. Every one is a prop here so the story can toggle it:\n *\n * - task-number prefix in the title (config-gated, mirrors `show_task_id`)\n * - overdue date colouring (red ONLY when overdue AND not completed)\n * - dependency counter (behind a feature-flag prop)\n * - hidden-from-clients signifier (shown only when it DIFFERS from the\n * project default)\n * - inline assignee affordance (avatar, or an add-assignee placeholder)\n * - completed (teal tint, no \"…\" menu, no overdue colour)\n * - assignees appear ONCE (in the info line when the card has no\n * date range, in the date row when it\n * has one — never in both)\n *\n * The pending/optimistic and priority states are SHELL states (dimmed +\n * pointer-events off; red left bar), so the card is wrapped in a `<StackedCard\n * pending>` / `<StackedCard priorityColor>` by the host — they are not the\n * card's own concern and live on the shell, not here.\n *\n * Everything is measured against the app: `ColumnCardBody.jsx`,\n * `ColumnCardBodyInfo.jsx`, `ColumnCardDate.jsx` and\n * `view.project_tasks_column_mode.less`.\n */\n\nexport interface TaskCardLabel {\n text: string;\n /** The label's own colour — data, not theme. */\n color: string;\n}\n\nexport interface TaskCardPerson {\n name: string;\n initials: string;\n /** Avatar colours stand in for the server-rendered avatar: data, not theme. */\n color: string;\n}\n\n/**\n * Eight labels, so the default card demonstrates the collapsed form. Colours are\n * the labels' own, which is why they are literals.\n */\nconst DEMO_LABELS: TaskCardLabel[] = [\n { text: \"DESIGN\", color: \"#378ADD\" },\n { text: \"BLOCKED\", color: \"#D85A30\" },\n { text: \"READY\", color: \"#639922\" },\n { text: \"REVIEW\", color: \"#EF9F27\" },\n { text: \"RESEARCH\", color: \"#7F77DD\" },\n { text: \"COPY\", color: \"#8C5A2B\" },\n { text: \"QA\", color: \"#2F5DA8\" },\n { text: \"RELEASE\", color: \"#8A3E6B\" },\n];\n\n/**\n * How many labels read as text before the line has to collapse them, and how\n * many dots stand in for the rest. Two colour-text `Tag`s fit a 260px card; past\n * that the app's own answer (and the design system's mapping) is coloured dots\n * plus an overflow count.\n */\nconst LABELS_AS_TEXT_MAX = 2;\nconst LABEL_DOTS_MAX = 5;\n\n/* The completed tint fills the card body; the shell keeps the priority bar and\n selection ring on top of it. */\nconst StyledBody = styled.div<{ $completed?: boolean }>`\n display: flex;\n flex-direction: column;\n\n ${({ $completed }) =>\n $completed &&\n css`\n background: var(--sc-completed-tint, rgba(72, 201, 176, 0.16));\n `}\n`;\n\n/**\n * The info line — labels, then signifiers, then (only when the card has no date\n * range) the assignees.\n *\n * The separator is the app's, rule for rule: a 2px round dot in\n * `--color-theme-600` with `margin: 0 6px`, drawn by `::before` on every item\n * EXCEPT the first (`view.project_tasks_column_mode.less`:\n * `.c-signifier:not(:first-child):before`, `.label_single_container:not(:first-child)\n * .label_item:before`, `.dot:before`). Because the rule keys off position rather\n * than off \"am I a signifier\", a line that starts with a signifier — a task with\n * counters but no labels — cannot open with a dangling dot.\n *\n * `font-size: 11px` is the `.labels` block's own; the vertical rhythm the app\n * gets from `margin-top: 10px` comes from the `meta` row's role padding here.\n */\nconst StyledInfoLine = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n font-size: 11px;\n\n > * {\n display: flex;\n align-items: center;\n min-height: 18px;\n }\n\n /* The assignees are excluded: they end the line rather than continuing the\n enumeration, and the app draws no dot before them either. */\n > *:not(:first-child):not(.sc-assignees)::before {\n content: \"\";\n flex-shrink: 0;\n width: 2px;\n height: 2px;\n margin: 0 6px;\n border-radius: 100%;\n background-color: var(--color-theme-600);\n }\n\n /* Labels truncate rather than push the line wider: 74px for the item, 60px\n for the text inside it — the app's two numbers. */\n .sc-label {\n max-width: 74px;\n }\n\n .sc-label .c-tag > div {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 60px;\n }\n\n .sc-dots {\n gap: 4px;\n }\n\n /* The assignees end the line, right-aligned, when there is no date row to\n carry them. */\n .sc-assignees {\n flex: 1 1 auto;\n justify-content: flex-end;\n }\n`;\n\nconst StyledDot = styled.span<{ $color: string }>`\n width: 11px;\n height: 11px;\n border-radius: 50%;\n background: ${({ $color }) => $color};\n`;\n\n/**\n * The date row's text.\n *\n * A raw `<span>` in this Storybook inherits the browser's serif default at the\n * ancestor's size, which is why the date used to read as huge serif type. The\n * app sets the same four values in CSS on a plain `div` (`.due_date`: 13px,\n * bold, 24px tall, `--color-theme-900`, `--red-alert` when `.overdue`), so the\n * fix is to state them here — plus the font stack the missing reset does not\n * supply.\n */\nconst StyledDate = styled.span<{ $overdue?: boolean }>`\n height: 24px;\n font-family: ${CARD_FONT};\n font-size: 13px;\n font-weight: bold;\n line-height: 24px;\n letter-spacing: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n color: ${({ $overdue }) =>\n $overdue ? \"var(--red-alert)\" : \"var(--color-theme-900)\"};\n`;\n\n/* Avatars are limited to 3 and overlap, as MultiAssigneesPicker does. */\nconst StyledAssignees = styled.span`\n display: flex;\n align-items: center;\n justify-content: flex-end;\n`;\n\n/* Inline assignee affordance placeholder — a dashed add-assignee target that\n stands in until the real picker is wired at integration. */\nconst StyledAddAssignee = styled.button`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 1.5px dashed var(--color-theme-400);\n border-radius: 50%;\n background: transparent;\n color: var(--color-theme-600);\n cursor: pointer;\n\n svg {\n width: 14px;\n height: 14px;\n display: block;\n }\n\n &:hover {\n border-color: var(--sc-selection-ring);\n color: var(--color-theme-800);\n }\n`;\n\n/** The app's assignee limit (MultiAssigneesPicker `limit={3}`). */\nconst ASSIGNEE_LIMIT = 3;\n\nexport interface TaskCardProps {\n title?: string;\n /** Optional cover — task cards in a column usually have none. */\n cover?: boolean;\n playable?: boolean;\n coverControls?: boolean;\n /** Config-gated task-number prefix (mirrors `show_task_id`). */\n showTaskId?: boolean;\n taskId?: number;\n /**\n * The project the task lives in, above the title. Off by default: in a column\n * the column already says it, and only a surface that mixes projects (a\n * canvas) needs the line.\n */\n showProjectName?: boolean;\n projectName?: string;\n /**\n * The task's labels. Up to two read as colour text (`Tag`, the column card's\n * treatment); more collapse to coloured dots plus an overflow count, which is\n * what the design system maps \">2 labels\" to. An empty array means the card\n * has no labels — and then the info line must not open with a separator.\n */\n labels?: TaskCardLabel[];\n /** Open-subtask and comment counters; each shows only when it is non-zero. */\n subtaskCount?: number;\n commentCount?: number;\n /**\n * The date range. `null` (or empty) means the task has none — the date row\n * disappears and the assignees move up into the info line, so they still\n * appear exactly once.\n */\n dateLabel?: string | null;\n /** Overdue date — colours the date red, but only when NOT completed. */\n overdue?: boolean;\n /** Dependency counter, gated behind a feature flag. */\n showDependencies?: boolean;\n dependencyCount?: number;\n /** The task's hidden-from-clients flag. */\n hiddenFromClients?: boolean;\n /** The project default for client visibility; the signifier shows on a diff. */\n projectDefaultHidden?: boolean;\n /** Whether the task has an assignee (avatar) or shows the add affordance. */\n assigned?: boolean;\n /** The actual assignees, when the host has them. Limited to 3, as in the app. */\n assignees?: TaskCardPerson[];\n /** Completed — teal tint, no \"…\" menu, no overdue colour. */\n completed?: boolean;\n}\n\nexport const TaskCard = ({\n title = \"Implement the design from the reference on this page\",\n cover = false,\n playable = false,\n coverControls = false,\n showTaskId = false,\n taskId = 4521,\n showProjectName = false,\n projectName = \"Marketing Site\",\n labels = DEMO_LABELS,\n subtaskCount = 2,\n commentCount = 7,\n dateLabel = \"May 8 – Sep 10\",\n overdue = false,\n showDependencies = false,\n dependencyCount = 2,\n hiddenFromClients = false,\n projectDefaultHidden = false,\n assigned = true,\n assignees,\n completed = false,\n}: TaskCardProps): ReactElement => {\n // Signifier appears only when the task's visibility differs from the default.\n const showHiddenSignifier = hiddenFromClients !== projectDefaultHidden;\n // Overdue colour is suppressed on completed tasks.\n const dateIsOverdue = overdue && !completed;\n const hasDate = dateLabel != null && dateLabel !== \"\";\n const collapseLabels = labels.length > LABELS_AS_TEXT_MAX;\n\n /* The assignee slot: the real avatars when the host has them, the demo avatar\n when it only says \"assigned\", the add affordance when it says nothing is. */\n const assigneeSlot = assigned ? (\n <StyledAssignees className=\"sc-assignees\" data-fixed>\n {assignees ? (\n assignees.slice(0, ASSIGNEE_LIMIT).map((person) => (\n <RoundAvatar key={person.name} $bg={person.color} $size={24} $overlap>\n {person.initials}\n </RoundAvatar>\n ))\n ) : (\n <RoundAvatar $bg={AVATAR_COLORS.teal} $size={24} $bordered={false}>\n MS\n </RoundAvatar>\n )}\n </StyledAssignees>\n ) : (\n <StyledAssignees className=\"sc-assignees\" data-fixed>\n <StyledAddAssignee type=\"button\" aria-label=\"Assign task\">\n <PersonPlusIcon />\n </StyledAddAssignee>\n </StyledAssignees>\n );\n\n /* Signifiers in the app's fixed order: subtasks → comments → dependencies →\n hidden-from-clients. Each is one child of the info line, so the line's own\n separator rule spaces them. */\n const signifiers: ReactElement[] = [];\n if (subtaskCount > 0) {\n signifiers.push(\n <Signifier\n key=\"subtasks\"\n type={ChecklistSmallIcon}\n value={subtaskCount}\n tooltipText=\"Subtasks\"\n />\n );\n }\n if (commentCount > 0) {\n signifiers.push(\n <Signifier\n key=\"comments\"\n type={MessageSmallIcon}\n value={commentCount}\n tooltipText=\"Comments\"\n />\n );\n }\n if (showDependencies && dependencyCount > 0) {\n signifiers.push(\n <Signifier\n key=\"dependencies\"\n type={DependencySmallIcon}\n value={dependencyCount}\n tooltipText=\"Dependencies\"\n />\n );\n }\n if (showHiddenSignifier) {\n signifiers.push(\n <Signifier\n key=\"hidden\"\n type={EyeOffSmallIcon}\n tooltipText=\"Hidden from clients\"\n />\n );\n }\n\n /* The info line exists when it has something to say — labels, signifiers, or\n the assignees it has to carry because there is no date row. */\n const showInfoLine = labels.length > 0 || signifiers.length > 0 || !hasDate;\n\n return (\n <StyledBody $completed={completed}>\n {cover ? (\n <Cover\n aspectRatio={COVER_RATIO}\n centerSlot={playable ? playControl : undefined}\n topRightSlot={coverControls ? coverManagement() : undefined}\n >\n <div\n style={{\n width: \"100%\",\n height: \"100%\",\n background: \"var(--color-theme-300)\",\n }}\n />\n </Cover>\n ) : null}\n\n <StackRow role=\"title\">\n <StyledTitleBlock>\n {showProjectName ? (\n <CardProjectLine>{projectName}</CardProjectLine>\n ) : null}\n <StyledClamp>\n {showTaskId ? (\n <Typography as=\"span\" variant=\"Caption 1\" color=\"tertiary\">\n {`#${taskId} `}\n </Typography>\n ) : null}\n {title}\n </StyledClamp>\n </StyledTitleBlock>\n {/* Completed tasks drop the \"…\" menu. */}\n {completed ? null : <EntityDots aria-label=\"Task options\" />}\n </StackRow>\n\n {showInfoLine ? (\n <StackRow role=\"meta\">\n <StyledInfoLine>\n {collapseLabels ? (\n <span className=\"sc-dots\">\n {labels.slice(0, LABEL_DOTS_MAX).map((label) => (\n <StyledDot key={label.text} $color={label.color} />\n ))}\n {labels.length > LABEL_DOTS_MAX ? (\n <Caption1 color=\"tertiary\">{`+${\n labels.length - LABEL_DOTS_MAX\n }`}</Caption1>\n ) : null}\n </span>\n ) : (\n labels.map((label) => (\n <span className=\"sc-label\" key={label.text}>\n <Tag name={label.text} color={label.color} showDot={false} />\n </span>\n ))\n )}\n {signifiers}\n {/* Key invariant: assignees are here ONLY when the card has no date\n row to hold them. */}\n {hasDate ? null : assigneeSlot}\n </StyledInfoLine>\n </StackRow>\n ) : null}\n\n {hasDate ? (\n <StackRow role=\"footer\">\n <StyledDate $overdue={dateIsOverdue}>{dateLabel}</StyledDate>\n {assigneeSlot}\n </StackRow>\n ) : null}\n </StyledBody>\n );\n};\n\n/* ---- placeholder + skeleton ---- */\n\nexport const TaskPlaceholder = (\n props: React.ButtonHTMLAttributes<HTMLButtonElement>\n): ReactElement => (\n <Placeholder\n icon={<ChecklistSmallIcon />}\n label=\"Name this task\"\n {...props}\n />\n);\n\n/* Skeleton mirrors the task anatomy row for row: title, meta, footer. */\nexport const TaskSkeleton = (): ReactElement => (\n <>\n <StackRow role=\"title\">\n <SkeletonLoader style={{ height: 14, width: \"90%\" }} />\n </StackRow>\n <StackRow role=\"meta\">\n <SkeletonLoader style={{ height: 10, width: \"55%\" }} />\n </StackRow>\n <StackRow role=\"footer\">\n <SkeletonLoader style={{ height: 12, width: 64 }} data-fixed />\n <span />\n <SkeletonLoader\n data-fixed\n style={{ width: 24, height: 24, borderRadius: \"50%\" }}\n />\n </StackRow>\n </>\n);\n"],"mappings":";AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SACEC,SAAS,EACTC,eAAe,EACfC,UAAU,EACVC,WAAW,EACXC,gBAAgB,EAChBC,eAAe,EACfC,WAAW,EACXC,WAAW,QACN,UAAU;AACjB,SACEC,kBAAkB,EAClBC,mBAAmB,EACnBC,eAAe,EACfC,gBAAgB,EAChBC,cAAc,QACT,2BAA2B;AAClC,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,SAASC,SAAS,QAAQ,+BAA+B;AACzD,SACEC,wBAAwB,IAAIC,WAAW,EACvCC,gBAAgB,IAAIC,KAAK,EACzBC,cAAc,IAAIC,QAAQ,QACrB,iCAAiC;AACxC,SAASC,GAAG,QAAQ,yBAAyB;AAC7C,SAASC,QAAQ,QAAQ,gCAAgC;AACzD,SAASC,UAAU,QAAQ,2CAA2C;AACtE,SAASC,WAAW,EAAEC,aAAa,QAAQ,cAAc;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACA;AACA,MAAMC,WAA4B,GAAG,CACnC;EAAEC,IAAI,EAAE,QAAQ;EAAEC,KAAK,EAAE;AAAU,CAAC,EACpC;EAAED,IAAI,EAAE,SAAS;EAAEC,KAAK,EAAE;AAAU,CAAC,EACrC;EAAED,IAAI,EAAE,OAAO;EAAEC,KAAK,EAAE;AAAU,CAAC,EACnC;EAAED,IAAI,EAAE,QAAQ;EAAEC,KAAK,EAAE;AAAU,CAAC,EACpC;EAAED,IAAI,EAAE,UAAU;EAAEC,KAAK,EAAE;AAAU,CAAC,EACtC;EAAED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AE;EAAC;AAAU,CAAE,CAAC,eAC/D5H,KAAA,CAAAoG,aAAA,aAAO,CAAC,eACRpG,KAAA,CAAAoG,aAAA,CAACpF,cAAc;EACb,kBAAU;EACV2G,KAAK,EAAE;IAAEC,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEa,YAAY,EAAE;EAAM;AAAE,CACvD,CACO,CACV,CACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/stackedCard/content/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/stackedCard/content/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/presentation/stackedCard/content/index.ts"],"sourcesContent":["export * from \"./shared\";\nexport * from \"./unfurl\";\nexport * from \"./TaskCard\";\nexport * from \"./LinkCard\";\nexport * from \"./ImageCard\";\nexport * from \"./SwatchCard\";\nexport * from \"./NoteCard\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/presentation/stackedCard/content/index.ts"],"sourcesContent":["export * from \"./shared\";\nexport * from \"./unfurl\";\nexport * from \"./ProjectCard\";\nexport * from \"./TaskCard\";\nexport * from \"./LinkCard\";\nexport * from \"./ImageCard\";\nexport * from \"./SwatchCard\";\nexport * from \"./NoteCard\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,YAAY","ignoreList":[]}
|
|
@@ -13,6 +13,15 @@ import React, { ReactElement, ReactNode } from "react";
|
|
|
13
13
|
* vocabulary (Cover, StackRow, …) so the spec prose and the code keep using
|
|
14
14
|
* the same words.
|
|
15
15
|
*/
|
|
16
|
+
/**
|
|
17
|
+
* There is no global CSS reset in this Storybook, so a raw element (a `<span>`
|
|
18
|
+
* holding a date, a `<button>` holding a word) falls back to the browser default
|
|
19
|
+
* — a SERIF face at the UA's own size. Anything that is not a DS `Typography`
|
|
20
|
+
* has to name the font itself. Use a DS Typography where one fits; use this
|
|
21
|
+
* where the app itself sets the size in CSS (the column card's date row is a
|
|
22
|
+
* plain `div` in `view.project_tasks_column_mode.less`, not a Typography).
|
|
23
|
+
*/
|
|
24
|
+
export declare const CARD_FONT = "-apple-system, BlinkMacSystemFont, \"Roboto\",\n \"Helvetica Neue\", Arial, sans-serif";
|
|
16
25
|
/**
|
|
17
26
|
* The design system ships one default cover ratio
|
|
18
27
|
* (`STACKED_CARD_COVER_RATIO`). How tall a cover reads is a decision of the
|
|
@@ -37,6 +46,27 @@ export declare const coverManagement: ({ removeLabel, onCollapse, onRemove, }?:
|
|
|
37
46
|
export declare const EntityDots: (props: React.ButtonHTMLAttributes<HTMLButtonElement>) => ReactElement;
|
|
38
47
|
/** Two-line title clamp — the card's name row content. */
|
|
39
48
|
export declare const StyledClamp: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("../../..").IBodyProps & Omit<import("../../../components/Typography/Typography").ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
49
|
+
/**
|
|
50
|
+
* The title block — everything the title row stacks to the LEFT of the "…"
|
|
51
|
+
* menu. A card that only has a title puts the clamp straight in the row; a card
|
|
52
|
+
* that puts a line above or below it (the project a task belongs to, the client
|
|
53
|
+
* a project is for) stacks them here so the row keeps its two-child shape:
|
|
54
|
+
* text block, then the fixed-width menu.
|
|
55
|
+
*/
|
|
56
|
+
export declare const StyledTitleBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
57
|
+
/**
|
|
58
|
+
* The project a card's entity lives in, above the title.
|
|
59
|
+
*
|
|
60
|
+
* On a canvas a task card has lost the column that used to say which project it
|
|
61
|
+
* came from, so the card says it itself. One line, one treatment, shared by
|
|
62
|
+
* every content type that can carry it (the whiteboard's own task face already
|
|
63
|
+
* wrote it this way: `Caption 2` tertiary, tight above the title, ellipsis on
|
|
64
|
+
* overflow — a project name is a reference, never a second title).
|
|
65
|
+
*/
|
|
66
|
+
export declare const StyledProjectLine: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("../../..").ICaptionProps & Omit<import("../../../components/Typography/Typography").ITypographyProps, "variant" | "weight"> & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
67
|
+
export declare const CardProjectLine: ({ children, }: {
|
|
68
|
+
children: ReactNode;
|
|
69
|
+
}) => ReactElement;
|
|
40
70
|
/** A favicon square — a solid data colour stands in for the real favicon. */
|
|
41
71
|
export declare const StyledFavicon: import("styled-components").StyledComponent<"span", any, {
|
|
42
72
|
$bg: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/stackedCard/content/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAA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