@yankeguo/dsh-client-ui-devlead 0.3.0-rc.2 → 0.4.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/client.js +202 -49
  2. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -128,11 +128,21 @@ window.__ModuleLoader__.load({
128
128
  function transitionLabelKey(transition) {
129
129
  return isDevLeadTransition(transition) ? TRANSITION_LABEL_KEYS[transition] : "transition.unknown";
130
130
  }
131
+ var WAKE_SUPPRESSION_KEYS = {
132
+ "merged-into-pending-wake": "notification.wake.merged",
133
+ "included-in-sent-wake": "notification.wake.included"
134
+ };
135
+ var WAKE_SUPPRESSION_SET = new Set(Object.keys(WAKE_SUPPRESSION_KEYS));
136
+ function wakeSuppressionReasonKey(reason) {
137
+ return typeof reason === "string" && WAKE_SUPPRESSION_SET.has(reason) ? WAKE_SUPPRESSION_KEYS[reason] : "notification.wake.unknown";
138
+ }
131
139
  function notificationSummary(notification) {
132
140
  const title = typeof notification.sessionTitle === "string" ? excerptLine(notification.sessionTitle, DEVLEAD_ERROR_EXCERPT_MAX) : void 0;
133
141
  const who = title ?? notification.sessionId;
134
142
  const turn = Number.isInteger(notification.turn) && notification.turn > 0 ? notification.turn : 0;
135
- const tooltip = isDevLeadTransition(notification.transition) ? notificationLine(notification) : `${who} \u2014 ${String(notification.transition)}`;
143
+ const baseTooltip = isDevLeadTransition(notification.transition) ? notificationLine(notification) : `${who} \u2014 ${String(notification.transition)}`;
144
+ const wakeSuppressedBy = typeof notification.wakeSuppressedByReportId === "string" ? excerptLine(notification.wakeSuppressedByReportId, DEVLEAD_ERROR_EXCERPT_MAX) : void 0;
145
+ const tooltip = wakeSuppressedBy === void 0 ? baseTooltip : `${baseTooltip} (wake suppressed by ${wakeSuppressedBy})`;
136
146
  const error = typeof notification.error === "string" ? excerptLine(notification.error, DEVLEAD_ERROR_EXCERPT_MAX) : void 0;
137
147
  const summary = typeof notification.summary === "string" ? excerptLine(notification.summary, DEVLEAD_ERROR_EXCERPT_MAX) : void 0;
138
148
  return {
@@ -142,7 +152,9 @@ window.__ModuleLoader__.load({
142
152
  transition: String(notification.transition),
143
153
  labelKey: transitionLabelKey(notification.transition),
144
154
  error,
145
- summary
155
+ summary,
156
+ wakeSuppressedBy,
157
+ wakeSuppressionKey: wakeSuppressedBy === void 0 ? void 0 : wakeSuppressionReasonKey(notification.wakeSuppressionReason)
146
158
  };
147
159
  }
148
160
  function latestNotification(notifications) {
@@ -175,20 +187,66 @@ window.__ModuleLoader__.load({
175
187
  function reportLabelKey(kind) {
176
188
  return isDevLeadReportKind(kind) ? REPORT_LABEL_KEYS[kind] : "report.kind.unknown";
177
189
  }
190
+ var REPORT_LANES = {
191
+ progress: "background",
192
+ blocked: "action-required",
193
+ decision: "action-required",
194
+ question: "action-required",
195
+ fyi: "background"
196
+ };
197
+ function reportLane(kind) {
198
+ return isDevLeadReportKind(kind) ? REPORT_LANES[kind] : "unknown";
199
+ }
200
+ var QUESTION_STATUS_LABEL_KEYS = {
201
+ open: "report.question.open",
202
+ answered: "report.question.answered",
203
+ expired: "report.question.expired",
204
+ cancelled: "report.question.cancelled"
205
+ };
206
+ var QUESTION_STATUS_SET = new Set(Object.keys(QUESTION_STATUS_LABEL_KEYS));
207
+ function questionStatusLabelKey(status) {
208
+ return QUESTION_STATUS_SET.has(status) ? QUESTION_STATUS_LABEL_KEYS[status] : "report.question.unknown";
209
+ }
210
+ var ANSWER_STATUS_LABEL_KEYS = {
211
+ admitted: "report.answer.admitted",
212
+ claimed: "report.answer.claimed",
213
+ presented: "report.answer.presented",
214
+ discarded: "report.answer.discarded",
215
+ failed: "report.answer.failed"
216
+ };
217
+ var ANSWER_STATUS_SET = new Set(Object.keys(ANSWER_STATUS_LABEL_KEYS));
218
+ function answerStatusLabelKey(status) {
219
+ return ANSWER_STATUS_SET.has(status) ? ANSWER_STATUS_LABEL_KEYS[status] : "report.answer.unknown";
220
+ }
178
221
  function epochMillis(value) {
179
222
  return typeof value === "number" && Number.isFinite(value) ? value : 0;
180
223
  }
224
+ function statusLine(value) {
225
+ return typeof value === "string" ? excerptLine(value, DEVLEAD_ERROR_EXCERPT_MAX) : void 0;
226
+ }
181
227
  function reportSummary(report) {
182
228
  const title = typeof report.senderSessionTitle === "string" ? excerptLine(report.senderSessionTitle, DEVLEAD_ERROR_EXCERPT_MAX) : void 0;
183
229
  const who = title ?? report.senderSessionId;
184
230
  const detail = typeof report.summary === "string" ? excerptLine(report.summary, DEVLEAD_ERROR_EXCERPT_MAX) : typeof report.message === "string" ? excerptLine(report.message, DEVLEAD_ERROR_EXCERPT_MAX) : void 0;
231
+ const isQuestion = report.kind === "question";
232
+ const questionStatus = isQuestion ? statusLine(report.questionStatus) : void 0;
233
+ const answerStatus = isQuestion ? statusLine(report.answerStatus) : void 0;
234
+ const repairPending = isQuestion && "repairPending" in report && report.repairPending === true;
235
+ const lifecycle = [questionStatus, answerStatus, repairPending ? "provisional" : void 0].filter((value) => value !== void 0).join(" \xB7 ");
236
+ const baseTooltip = isDevLeadReportKind(report.kind) ? reportLine(report) : `${who} \u2014 report ${String(report.kind)}`;
185
237
  return {
186
- tooltip: isDevLeadReportKind(report.kind) ? reportLine(report) : `${who} \u2014 report ${String(report.kind)}`,
238
+ tooltip: lifecycle.length === 0 ? baseTooltip : `${baseTooltip} (${lifecycle})`,
187
239
  who,
188
240
  kind: String(report.kind),
189
241
  labelKey: reportLabelKey(report.kind),
242
+ lane: reportLane(report.kind),
190
243
  detail,
191
- at: epochMillis(report.at)
244
+ at: epochMillis(report.at),
245
+ questionStatus,
246
+ questionStatusKey: questionStatus === void 0 ? void 0 : questionStatusLabelKey(questionStatus),
247
+ answerStatus,
248
+ answerStatusKey: answerStatus === void 0 ? void 0 : answerStatusLabelKey(answerStatus),
249
+ repairPending
192
250
  };
193
251
  }
194
252
  function latestReport(reports) {
@@ -260,43 +318,78 @@ window.__ModuleLoader__.load({
260
318
  "aria-live": "polite",
261
319
  "aria-atomic": "true",
262
320
  title: tooltip,
263
- children: reportNotice !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "devlead-notification", "data-report": "true", children: [
264
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
265
- "span",
266
- {
267
- className: "devlead-notification-dot",
268
- "data-report-kind": reportNotice.kind,
269
- "aria-hidden": "true"
270
- }
271
- ),
272
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-who", children: reportNotice.who }),
273
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-label", children: t(reportNotice.labelKey) }),
274
- reportNotice.detail !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-detail", children: reportNotice.detail })
275
- ] }) : notice === null ? (
321
+ children: reportNotice !== null ? (
322
+ // The lane attribute carries the delivery semantics to CSS:
323
+ // action-required kinds wear the warning ink, background kinds
324
+ // read one step quieter, and a drifted kind stays neutral.
325
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "devlead-notification", "data-report": "true", "data-lane": reportNotice.lane, children: [
326
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
327
+ "span",
328
+ {
329
+ className: "devlead-notification-dot",
330
+ "data-report-kind": reportNotice.kind,
331
+ "aria-hidden": "true"
332
+ }
333
+ ),
334
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-who", children: reportNotice.who }),
335
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-label", children: t(reportNotice.labelKey) }),
336
+ (reportNotice.questionStatusKey !== void 0 || reportNotice.answerStatusKey !== void 0 || reportNotice.repairPending) && // Fold-derived question lifecycle (question reports only): a
337
+ // compact "answered · presented" suffix. A repair-pending row
338
+ // adds "provisional" so a stale status is not read as final.
339
+ // Raw literals ride data attributes so a drifted status stays
340
+ // inspectable while its label degrades to neutral copy.
341
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
342
+ "span",
343
+ {
344
+ className: "devlead-notification-status",
345
+ "data-question-status": reportNotice.questionStatus,
346
+ "data-answer-status": reportNotice.answerStatus,
347
+ "data-repair-pending": reportNotice.repairPending ? "true" : void 0,
348
+ children: [
349
+ reportNotice.questionStatusKey === void 0 ? void 0 : t(reportNotice.questionStatusKey),
350
+ reportNotice.answerStatusKey === void 0 ? void 0 : t(reportNotice.answerStatusKey),
351
+ reportNotice.repairPending ? t("report.question.provisional") : void 0
352
+ ].filter((part) => part !== void 0).join(" \xB7 ")
353
+ }
354
+ ),
355
+ reportNotice.detail !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-detail", children: reportNotice.detail })
356
+ ] })
357
+ ) : notice === null ? (
276
358
  // An enabled Session with no retained notification keeps the help
277
359
  // hint visible instead of leaving the row visually empty.
278
360
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-hint", children: t("hint.enabled") })
279
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "devlead-notification", children: [
280
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
281
- "span",
282
- {
283
- className: "devlead-notification-dot",
284
- "data-transition": notice.transition,
285
- "aria-hidden": "true"
286
- }
287
- ),
288
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-who", children: notice.who }),
289
- notice.turn > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-turn", children: t("notification.turn", { turn: notice.turn }) }),
290
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-label", children: t(notice.labelKey) }),
291
- notice.error !== void 0 ? (
292
- // Only a real Host failure excerpt wears the error ink.
293
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-error", children: notice.error })
294
- ) : notice.summary !== void 0 ? (
295
- // A settled turn's assistant excerpt is neutral detail, like a
296
- // report's summary: the dot and label carry the outcome.
297
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-detail", children: notice.summary })
298
- ) : null
299
- ] })
361
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
362
+ "span",
363
+ {
364
+ className: "devlead-notification",
365
+ "data-wake-suppressed": notice.wakeSuppressedBy === void 0 ? void 0 : "true",
366
+ "data-wake-suppressed-by": notice.wakeSuppressedBy,
367
+ children: [
368
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
369
+ "span",
370
+ {
371
+ className: "devlead-notification-dot",
372
+ "data-transition": notice.transition,
373
+ "aria-hidden": "true"
374
+ }
375
+ ),
376
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-who", children: notice.who }),
377
+ notice.turn > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-turn", children: t("notification.turn", { turn: notice.turn }) }),
378
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-label", children: t(notice.labelKey) }),
379
+ notice.wakeSuppressionKey !== void 0 && // The separate turn-end wake was merged into an action-required
380
+ // report wake; the muted marker's title explains which rule hit.
381
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-wake", title: t(notice.wakeSuppressionKey), children: t("notification.wake.suppressed") }),
382
+ notice.error !== void 0 ? (
383
+ // Only a real Host failure excerpt wears the error ink.
384
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-error", children: notice.error })
385
+ ) : notice.summary !== void 0 ? (
386
+ // A settled turn's assistant excerpt is neutral detail, like a
387
+ // report's summary: the dot and label carry the outcome.
388
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "devlead-notification-detail", children: notice.summary })
389
+ ) : null
390
+ ]
391
+ }
392
+ )
300
393
  }
301
394
  )
302
395
  ]
@@ -574,14 +667,14 @@ window.__ModuleLoader__.load({
574
667
  "meta.description": "DevLead \u6A21\u5F0F\u7684 Web \u754C\u9762\uFF1A\u8F93\u5165\u6846\u5DE5\u5177\u6761\u7684 DevLead \u5F00\u5173\uFF08\u4E24\u6001\u5747\u53EF\u5207\u6362\uFF09\u3001\u6A21\u5F0F\u5F00\u542F\u540E\u663E\u793A\u7684\u72B6\u6001\u6761\uFF0C\u4EE5\u53CA\u4FA7\u8FB9\u680F\u4E2D\u6FC0\u6D3B DevLead \u884C\u4E0E\u5DF2\u5173\u6CE8\u4F1A\u8BDD\u7684\u6807\u8BB0\u3002",
575
668
  "bar.aria": "DevLead \u72B6\u6001\u680F",
576
669
  "label": "DevLead",
577
- "hint.enabled": "DevLead \u5DF2\u5F00\u542F\uFF1A\u5DF2\u5173\u6CE8\u4F1A\u8BDD\u7684\u8F6E\u6B21\u7ED3\u675F\u4E0E\u4E2D\u9014\u6C47\u62A5\uFF08\u542B\u63D0\u95EE\uFF09\u4F1A\u901A\u77E5\u5E76\u5524\u9192\u672C\u4F1A\u8BDD\u3002",
670
+ "hint.enabled": "DevLead \u5DF2\u5F00\u542F\uFF1A\u5DF2\u5173\u6CE8\u4F1A\u8BDD\u7684\u8F6E\u6B21\u7ED3\u675F\u4E0E\u4E2D\u9014\u6C47\u62A5\u4F1A\u901A\u77E5\u672C\u4F1A\u8BDD\uFF1B\u963B\u585E/\u5F85\u51B3\u7B56/\u63D0\u95EE\u4F1A\u8BF7\u6C42\u5524\u9192\uFF0C\u8FDB\u5EA6/\u544A\u77E5\u4EC5\u4F5C\u80CC\u666F\u3001\u4E0D\u5524\u9192\u3002",
578
671
  "count.watched": "\u5DF2\u5173\u6CE8 {count} \u4E2A\u4F1A\u8BDD",
579
672
  "count.running": "\u8FD0\u884C\u4E2D {count}",
580
673
  "count.missing": "{count} \u4E2A\u5DF2\u4E0D\u53EF\u7528",
581
674
  "row.mark.aria": "\u5F53\u524D\u6FC0\u6D3B\u7684 DevLead \u4F1A\u8BDD",
582
675
  "row.watched.aria": "\u88AB\u5F53\u524D DevLead \u5173\u6CE8",
583
676
  "row.hover.enabled": "\u5F53\u524D\u6FC0\u6D3B\u7684 DevLead \u4F1A\u8BDD\uFF1A\u53EF\u8C03\u5EA6\u5E76\u5173\u6CE8\u5176\u4ED6\u4F1A\u8BDD\u3002",
584
- "row.hover.watched": "\u88AB\u5F53\u524D DevLead \u5173\u6CE8\uFF1A\u5B83\u7684\u8F6E\u6B21\u7ED3\u675F\u4E0E\u4E2D\u9014\u6C47\u62A5\uFF08\u542B\u63D0\u95EE\uFF09\u4F1A\u901A\u77E5\u5E76\u5524\u9192 lead\u3002",
677
+ "row.hover.watched": "\u88AB\u5F53\u524D DevLead \u5173\u6CE8\uFF1A\u5B83\u7684\u8F6E\u6B21\u7ED3\u675F\u4E0E\u4E2D\u9014\u6C47\u62A5\u4F1A\u901A\u77E5 lead\uFF1B\u963B\u585E/\u5F85\u51B3\u7B56/\u63D0\u95EE\u4F1A\u8BF7\u6C42\u5524\u9192\uFF0C\u8FDB\u5EA6/\u544A\u77E5\u4EC5\u4F5C\u80CC\u666F\u3001\u4E0D\u5524\u9192\u3002",
585
678
  "toggle.label": "DevLead",
586
679
  "toggle.enable": "\u5F00\u542F DevLead \u6A21\u5F0F",
587
680
  "toggle.disable": "\u5173\u95ED DevLead \u6A21\u5F0F",
@@ -597,6 +690,22 @@ window.__ModuleLoader__.load({
597
690
  "report.kind.question": "\u63D0\u95EE",
598
691
  "report.kind.fyi": "\u544A\u77E5",
599
692
  "report.kind.unknown": "\u62A5\u544A",
693
+ "report.question.open": "\u5F85\u56DE\u7B54",
694
+ "report.question.answered": "\u5DF2\u56DE\u7B54",
695
+ "report.question.expired": "\u5DF2\u8FC7\u671F",
696
+ "report.question.cancelled": "\u5DF2\u53D6\u6D88",
697
+ "report.question.unknown": "\u72B6\u6001\u672A\u77E5",
698
+ "report.question.provisional": "\u6682\u5B9A",
699
+ "report.answer.admitted": "\u5DF2\u63A5\u6536",
700
+ "report.answer.claimed": "\u5DF2\u8BA4\u9886",
701
+ "report.answer.presented": "\u5DF2\u5448\u73B0",
702
+ "report.answer.discarded": "\u5DF2\u4E22\u5F03",
703
+ "report.answer.failed": "\u6295\u9012\u5931\u8D25",
704
+ "report.answer.unknown": "\u72B6\u6001\u672A\u77E5",
705
+ "notification.wake.suppressed": "\u5E76\u5165\u62A5\u544A\u5524\u9192",
706
+ "notification.wake.merged": "\u672C\u6B21\u8F6E\u6B21\u7ED3\u675F\u5DF2\u5E76\u5165\u5C1A\u672A\u53D1\u9001\u7684\u9700\u5904\u7406\u62A5\u544A\u5524\u9192\uFF0C\u4E0D\u518D\u5355\u72EC\u5524\u9192\u3002",
707
+ "notification.wake.included": "\u5DF2\u53D1\u9001\u7684\u9700\u5904\u7406\u62A5\u544A\u5524\u9192\u5DF2\u5305\u542B\u672C\u6B21\u8F6E\u6B21\u7ED3\u675F\uFF0C\u4E0D\u518D\u5355\u72EC\u5524\u9192\u3002",
708
+ "notification.wake.unknown": "\u9700\u5904\u7406\u62A5\u544A\u7684\u5524\u9192\u5DF2\u8986\u76D6\u672C\u6B21\u8F6E\u6B21\u7ED3\u675F\uFF0C\u4E0D\u518D\u5355\u72EC\u5524\u9192\u3002",
600
709
  "transition.completed": "\u5B8C\u6210",
601
710
  "transition.error": "\u5931\u8D25",
602
711
  "transition.blocked": "\u963B\u585E",
@@ -616,14 +725,14 @@ window.__ModuleLoader__.load({
616
725
  "meta.description": "Web UI for DevLead mode: the composer-toolbar toggle that switches the mode on or off, the status strip shown while the mode is on, and the active-DevLead and watched-session marks in the sidebar.",
617
726
  "bar.aria": "DevLead status bar",
618
727
  "label": "DevLead",
619
- "hint.enabled": "DevLead is on: watched-session turn ends and mid-turn reports (including questions) notify and wake this session.",
728
+ "hint.enabled": "DevLead is on: watched-session turn ends and mid-turn reports notify this session; blocked/decision reports and questions request a wake, while progress/fyi are background context and do not wake.",
620
729
  "count.watched": "{count} watched",
621
730
  "count.running": "{count} running",
622
731
  "count.missing": "{count} unavailable",
623
732
  "row.mark.aria": "Active DevLead Session",
624
733
  "row.watched.aria": "Watched by the active DevLead",
625
734
  "row.hover.enabled": "Active DevLead Session: this session can dispatch and watch other Sessions.",
626
- "row.hover.watched": "Watched by the active DevLead: its turn ends and mid-turn reports (including questions) notify and wake the lead.",
735
+ "row.hover.watched": "Watched by the active DevLead: its turn ends and mid-turn reports notify the lead; blocked/decision reports and questions request a wake, while progress/fyi are background context and do not wake.",
627
736
  "toggle.label": "DevLead",
628
737
  "toggle.enable": "Turn on DevLead mode",
629
738
  "toggle.disable": "Turn off DevLead mode",
@@ -639,6 +748,22 @@ window.__ModuleLoader__.load({
639
748
  "report.kind.question": "question",
640
749
  "report.kind.fyi": "fyi",
641
750
  "report.kind.unknown": "report",
751
+ "report.question.open": "open",
752
+ "report.question.answered": "answered",
753
+ "report.question.expired": "expired",
754
+ "report.question.cancelled": "cancelled",
755
+ "report.question.unknown": "unknown status",
756
+ "report.question.provisional": "provisional",
757
+ "report.answer.admitted": "admitted",
758
+ "report.answer.claimed": "claimed",
759
+ "report.answer.presented": "presented",
760
+ "report.answer.discarded": "discarded",
761
+ "report.answer.failed": "failed",
762
+ "report.answer.unknown": "unknown status",
763
+ "notification.wake.suppressed": "wake merged",
764
+ "notification.wake.merged": "This turn end was merged into a pending action-required report wake; no separate wake was sent.",
765
+ "notification.wake.included": "The sent action-required report wake already included this turn end; no separate wake was sent.",
766
+ "notification.wake.unknown": "An action-required report wake covers this turn end; no separate wake was sent.",
642
767
  "transition.completed": "completed",
643
768
  "transition.error": "failed",
644
769
  "transition.blocked": "blocked",
@@ -893,17 +1018,28 @@ window.__ModuleLoader__.load({
893
1018
  background: var(--dsw-alias-state-warn-primary, #a15c00);
894
1019
  }
895
1020
 
896
- .devlead-notification-dot[data-report-kind="progress"] {
897
- background: var(--dsw-alias-state-success-primary, #2e7d32);
1021
+ /* Report dots follow the delivery lane: the action-required kinds (blocked/
1022
+ decision/question) share the warning ink \u2014 a blocked report is a scheduling
1023
+ fact, not a Host failure, so it must not wear the error red. Background
1024
+ kinds (progress/fyi) keep the default tertiary dot: a non-urgent update
1025
+ reads quieter than a settled outcome. */
1026
+ .devlead-notification-dot[data-report-kind="blocked"],
1027
+ .devlead-notification-dot[data-report-kind="decision"],
1028
+ .devlead-notification-dot[data-report-kind="question"] {
1029
+ background: var(--dsw-alias-state-warn-primary, #a15c00);
898
1030
  }
899
1031
 
900
- .devlead-notification-dot[data-report-kind="blocked"] {
901
- background: var(--dsw-alias-state-error-primary, #c0392b);
1032
+ /* Action-required chips wear the warning ink on the kind label so the strip
1033
+ reads "the lead must act" at a glance; colour only, never layout. */
1034
+ .devlead-notification[data-lane="action-required"] .devlead-notification-label {
1035
+ color: var(--dsw-alias-state-warn-primary, #a15c00);
902
1036
  }
903
1037
 
904
- .devlead-notification-dot[data-report-kind="decision"],
905
- .devlead-notification-dot[data-report-kind="question"] {
906
- background: var(--dsw-alias-state-warn-primary, #a15c00);
1038
+ /* Background chips are non-urgent: one uniform opacity step weakens the whole
1039
+ chip (dot, who, label, detail) without touching any box, mirroring the
1040
+ watched-row mark's quieter-ink idiom. */
1041
+ .devlead-notification[data-lane="background"] {
1042
+ opacity: 0.72;
907
1043
  }
908
1044
 
909
1045
  .devlead-notification-who {
@@ -919,6 +1055,23 @@ window.__ModuleLoader__.load({
919
1055
  flex: none;
920
1056
  }
921
1057
 
1058
+ /* Fold-derived question/answer lifecycle suffix ("answered \xB7 presented"):
1059
+ compact neutral copy \u2014 the kind dot and label carry the urgency, the suffix
1060
+ only states the lifecycle fact. */
1061
+ .devlead-notification-status {
1062
+ flex: none;
1063
+ color: var(--dsw-alias-label-secondary, GrayText);
1064
+ }
1065
+
1066
+ /* A suppressed turn-end wake keeps its transition row; only this marker is
1067
+ weakened. Tertiary ink at the detail size reads as an annotation, and the
1068
+ marker's title carries the localized explanation of which merge rule hit. */
1069
+ .devlead-notification-wake {
1070
+ flex: none;
1071
+ color: var(--dsw-alias-label-tertiary, GrayText);
1072
+ font-size: 12px;
1073
+ }
1074
+
922
1075
  /* A turn failure excerpt keeps the error ink; a report's summary/message
923
1076
  detail is neutral copy \u2014 the kind dot and localized label carry the
924
1077
  semantics, so progress/fyi/question text must not read as a failure. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-client-ui-devlead",
3
- "version": "0.3.0-rc.2",
3
+ "version": "0.4.0-rc.1",
4
4
  "description": "DevLead surfaces: the composer-toolbar toggle that switches the mode on or off, the status strip above the composer while the mode is on, and a DevLead mark on the Session's sidebar row.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "@deepseek-ai/cordis": "~4.1.0"
37
37
  },
38
38
  "dependencies": {
39
- "@yankeguo/dsh-devlead-protocol": "0.3.0-rc.2"
39
+ "@yankeguo/dsh-devlead-protocol": "0.4.0-rc.1"
40
40
  },
41
41
  "engines": {
42
42
  "dsh": ">=0.2.2-rc.1 <0.3.0"