@yankeguo/dsh-client-ui-devlead 0.4.2-rc.9 → 0.4.2

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 +173 -108
  2. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -1572,25 +1572,23 @@ window.__ModuleLoader__.load({
1572
1572
  const text = relative.unit === "now" ? t("board.time.now") : t(`board.time.${relative.unit}`, { count: relative.n });
1573
1573
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("time", { dateTime: iso, title: label === void 0 ? iso : `${label}: ${iso}`, "aria-label": label === void 0 ? void 0 : `${label} ${text}`, children: text });
1574
1574
  }
1575
- function ProjectField({ label, text, className = "", arrow }) {
1576
- if (text.trim().length === 0) return null;
1577
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: `devlead-board-field ${className}`.trim(), "aria-label": label, children: [
1578
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: label }),
1579
- arrow !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-field-arrow", "aria-hidden": "true", children: arrow }),
1580
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { title: text, children: text })
1581
- ] });
1582
- }
1583
- function statusDot(status) {
1584
- switch (status) {
1585
- case "blocked":
1586
- return "warning";
1587
- case "active":
1588
- return "ongoing";
1589
- case "done":
1590
- return "done";
1591
- case "paused":
1592
- return "idle";
1593
- }
1575
+ function ProjectField({ label, text, section, className = "", arrow }) {
1576
+ const empty = text.trim().length === 0;
1577
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1578
+ "div",
1579
+ {
1580
+ className: `devlead-board-field ${className}`.trim(),
1581
+ "data-devlead-board-section": section,
1582
+ "data-empty": empty ? "true" : "false",
1583
+ "aria-label": empty ? void 0 : label,
1584
+ "aria-hidden": empty ? true : void 0,
1585
+ children: [
1586
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: label }),
1587
+ arrow !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-field-arrow", "aria-hidden": "true", children: arrow }),
1588
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { title: text, children: text })
1589
+ ]
1590
+ }
1591
+ );
1594
1592
  }
1595
1593
  function ProjectStatusIcon({ status }) {
1596
1594
  switch (status) {
@@ -1604,6 +1602,24 @@ window.__ModuleLoader__.load({
1604
1602
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconCheckCircleOutlineRegular, { size: 13 });
1605
1603
  }
1606
1604
  }
1605
+ function ProjectPriorityIcon({ priority, t }) {
1606
+ const label = t(`board.priority.${priority}`);
1607
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label, side: "left", delayMs: 300, openOnClick: true, portal: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1608
+ "span",
1609
+ {
1610
+ className: "devlead-board-priority",
1611
+ "data-devlead-board-priority": priority,
1612
+ role: "img",
1613
+ "aria-label": label,
1614
+ title: label,
1615
+ tabIndex: 0,
1616
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-priority-glyph", "aria-hidden": "true", children: priority === "low" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronDownOutlineRegular, { size: 14 }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
1617
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronUpOutlineRegular, { size: 14 }),
1618
+ priority === "high" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconChevronUpOutlineRegular, { size: 14 })
1619
+ ] }) })
1620
+ }
1621
+ ) });
1622
+ }
1607
1623
  function ProjectCard({ project, now, t, notesProject, onOpenNotes }) {
1608
1624
  const idPrefix = (0, import_react5.useId)();
1609
1625
  const [tasksOpen, setTasksOpen] = (0, import_react5.useState)(false);
@@ -1619,38 +1635,37 @@ window.__ModuleLoader__.load({
1619
1635
  "data-priority": project.priority,
1620
1636
  "aria-labelledby": `${idPrefix}-title`,
1621
1637
  children: [
1622
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("header", { className: "devlead-board-card-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-heading", children: [
1623
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-card-status", title: t(`board.status.${project.status}`), "aria-label": t(`board.status.${project.status}`), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.StateDot, { state: statusDot(project.status), size: 8 }) }),
1624
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
1625
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-project-id", title: project.id, children: project.id })
1626
- ] }) }),
1627
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-workspace", title: project.workspace.path, children: project.workspace.path }),
1628
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-badges", children: [
1629
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "outline", children: t(`board.priority.${project.priority}`) }),
1630
- latestNote !== void 0 && onOpenNotes !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1631
- "button",
1632
- {
1633
- type: "button",
1634
- className: "devlead-board-notes-chip",
1635
- "data-devlead-notes-chip": project.id,
1636
- "aria-label": t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1637
- title: t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1638
- onClick: () => {
1639
- onOpenNotes(project.id);
1640
- },
1641
- children: [
1642
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlanOutlineRegular, { size: 13 }),
1643
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-notes-chip-label", children: t("board.notes.short") }),
1644
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: notesProject?.notes.length ?? 0 }),
1645
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: latestNote.title, children: latestNote.title })
1646
- ]
1647
- }
1648
- )
1638
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-board-card-header", "data-devlead-board-section": "title", children: [
1639
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-card-heading", children: [
1640
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h5", { id: `${idPrefix}-title`, title: project.workspace.title, children: project.workspace.title }),
1641
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-project-id", title: project.id, children: project.id })
1642
+ ] }),
1643
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectPriorityIcon, { priority: project.priority, t })
1649
1644
  ] }),
1650
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.focus"), text: project.focus, className: "devlead-board-field-focus" }),
1651
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.next"), text: project.next, className: "devlead-board-field-next", arrow: "\u2192" }),
1652
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.goal"), text: project.goal, className: "devlead-board-field-goal" }),
1653
- project.blockers.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("section", { className: "devlead-board-blockers", "aria-label": t("board.blockers"), children: [
1645
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("code", { className: "devlead-board-workspace", "data-devlead-board-section": "workspace", title: project.workspace.path, children: project.workspace.path }),
1646
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "devlead-board-card-badges", "data-devlead-board-section": "meta", children: latestNote !== void 0 && onOpenNotes !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1647
+ "button",
1648
+ {
1649
+ type: "button",
1650
+ className: "devlead-board-notes-chip",
1651
+ "data-devlead-notes-chip": project.id,
1652
+ "aria-label": t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1653
+ title: t("board.notes.open", { count: notesProject?.notes.length ?? 0, title: latestNote.title }),
1654
+ onClick: () => {
1655
+ onOpenNotes(project.id);
1656
+ },
1657
+ children: [
1658
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconPlanOutlineRegular, { size: 13 }),
1659
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-notes-chip-label", children: t("board.notes.short") }),
1660
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("strong", { children: notesProject?.notes.length ?? 0 }),
1661
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: latestNote.title, children: latestNote.title })
1662
+ ]
1663
+ }
1664
+ ) }),
1665
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.focus"), text: project.focus, section: "focus", className: "devlead-board-field-focus" }),
1666
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.next"), text: project.next, section: "next", className: "devlead-board-field-next", arrow: "\u2192" }),
1667
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProjectField, { label: t("board.field.goal"), text: project.goal, section: "goal", className: "devlead-board-field-goal" }),
1668
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "devlead-board-blockers-slot", "data-devlead-board-section": "blockers", "data-empty": project.blockers.length === 0 ? "true" : "false", children: project.blockers.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("section", { className: "devlead-board-blockers", "aria-label": t("board.blockers"), children: [
1654
1669
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("h6", { children: [
1655
1670
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconWarningOutlineRegular, { size: 14 }),
1656
1671
  t("board.blockers")
@@ -1659,8 +1674,8 @@ window.__ModuleLoader__.load({
1659
1674
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: blocker.text, children: blocker.text }),
1660
1675
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-blocker-since", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: blocker.since, now, t, label: t("board.blocker.since") }) })
1661
1676
  ] }, blocker.id)) })
1662
- ] }),
1663
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-progress", title: progressText, children: [
1677
+ ] }) }),
1678
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-progress", "data-devlead-board-section": "progress", title: progressText, children: [
1664
1679
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-sr-only", children: progressText }),
1665
1680
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1666
1681
  "progress",
@@ -1677,6 +1692,7 @@ window.__ModuleLoader__.load({
1677
1692
  "details",
1678
1693
  {
1679
1694
  className: "devlead-board-tasks",
1695
+ "data-devlead-board-section": "tasks",
1680
1696
  "data-devlead-board-tasks": project.id,
1681
1697
  "aria-labelledby": `${idPrefix}-tasks`,
1682
1698
  open: tasksOpen,
@@ -1701,7 +1717,7 @@ window.__ModuleLoader__.load({
1701
1717
  ]
1702
1718
  }
1703
1719
  ),
1704
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("footer", { className: "devlead-board-card-footer", children: [
1720
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("footer", { className: "devlead-board-card-footer", "data-devlead-board-section": "footer", children: [
1705
1721
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 12 }),
1706
1722
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: project.updatedAt, now, t, label: t("board.project.updated") })
1707
1723
  ] })
@@ -1820,27 +1836,8 @@ window.__ModuleLoader__.load({
1820
1836
  const announcementText = state.status === "error" ? t("board.refresh.error") : watch === "ended" ? t(endedKey) : autoRefresh === "paused" ? t("board.autoRefresh.paused") : watch === "connecting" ? t("board.watch.connecting") : t(`board.autoRefresh.${autoRefresh}`);
1821
1837
  const readerProject = notes?.selection === void 0 || board === void 0 ? void 0 : board.projects.find((project) => project.id === notes.selection?.projectId);
1822
1838
  const readerNotesProject = readerProject === void 0 || notes?.index.value === void 0 ? void 0 : devLeadNotesForProject(notes.index.value, readerProject);
1823
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board", "data-devlead-board": "true", "data-state": state.status, children: [
1839
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board", "data-devlead-board": "true", "data-state": state.status, "aria-label": t("board.title"), children: [
1824
1840
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("header", { className: "devlead-board-header", children: [
1825
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-title-row", children: [
1826
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-title-group", children: [
1827
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h3", { children: t("board.title") }),
1828
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tag, { tone: "quiet", children: t("board.readonly") })
1829
- ] }),
1830
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label: t("board.refresh.action"), side: "left", delayMs: 300, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1831
- import_dsh_client_ui_primitives3.Button,
1832
- {
1833
- variant: "ghost",
1834
- size: "sm",
1835
- className: "devlead-board-refresh",
1836
- "aria-label": t("board.refresh.action"),
1837
- "aria-busy": state.refreshing,
1838
- disabled: state.refreshing,
1839
- onClick: onRefresh,
1840
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
1841
- }
1842
- ) })
1843
- ] }),
1844
1841
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-header-strip", children: [
1845
1842
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-live", "data-auto-refresh": autoRefresh, title: `${t("board.live")}: ${statusText}`, children: [
1846
1843
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.StateDot, { state: refreshState, size: 8 }),
@@ -1858,12 +1855,27 @@ window.__ModuleLoader__.load({
1858
1855
  }
1859
1856
  )
1860
1857
  ] }),
1861
- board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-meta", children: [
1862
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "devlead-board-updated", title: `${t("board.updated")}: ${board.updatedAt}`, children: [
1863
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 11 }),
1864
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: board.updatedAt, now, t, label: t("board.updated") })
1858
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-header-actions", children: [
1859
+ board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "devlead-board-meta", children: [
1860
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "devlead-board-updated", title: `${t("board.updated")}: ${board.updatedAt}`, children: [
1861
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconClockOutlineRegular, { size: 11 }),
1862
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelativeTime, { iso: board.updatedAt, now, t, label: t("board.updated") })
1863
+ ] }),
1864
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-revision", title: t("board.revision.full", { revision: board.revision }), children: t("board.revision", { revision: board.revision }) })
1865
1865
  ] }),
1866
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "devlead-board-revision", title: t("board.revision.full", { revision: board.revision }), children: t("board.revision", { revision: board.revision }) })
1866
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.Tooltip, { label: t("board.refresh.action"), side: "left", delayMs: 300, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1867
+ import_dsh_client_ui_primitives3.Button,
1868
+ {
1869
+ variant: "ghost",
1870
+ size: "sm",
1871
+ className: "devlead-board-refresh",
1872
+ "aria-label": t("board.refresh.action"),
1873
+ "aria-busy": state.refreshing,
1874
+ disabled: state.refreshing,
1875
+ onClick: onRefresh,
1876
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_dsh_client_ui_primitives3.IconRefreshOutlineRegular, { size: 15 })
1877
+ }
1878
+ ) })
1867
1879
  ] })
1868
1880
  ] }),
1869
1881
  board !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dl", { className: "devlead-board-kpis", "aria-label": t("board.kpi.aria"), tabIndex: 0, children: ["blocked", "active", "paused", "done"].map((status) => {
@@ -2920,9 +2932,8 @@ window.__ModuleLoader__.load({
2920
2932
  background: var(--dsw-specific-menu, Canvas);
2921
2933
  }
2922
2934
 
2923
- .devlead-board-title-row,
2924
- .devlead-board-title-group,
2925
2935
  .devlead-board-header-strip,
2936
+ .devlead-board-header-actions,
2926
2937
  .devlead-board-live,
2927
2938
  .devlead-board-meta,
2928
2939
  .devlead-board-card-header,
@@ -2935,17 +2946,6 @@ window.__ModuleLoader__.load({
2935
2946
  align-items: center;
2936
2947
  }
2937
2948
 
2938
- .devlead-board-title-row {
2939
- justify-content: space-between;
2940
- gap: 8px;
2941
- }
2942
-
2943
- .devlead-board-title-group {
2944
- flex: 1 1 auto;
2945
- gap: 7px;
2946
- }
2947
-
2948
- .devlead-board-title-group h3,
2949
2949
  .devlead-board-card-heading h5,
2950
2950
  .devlead-board-group h4,
2951
2951
  .devlead-board-placeholder h4,
@@ -2958,15 +2958,6 @@ window.__ModuleLoader__.load({
2958
2958
  font-weight: 650;
2959
2959
  }
2960
2960
 
2961
- .devlead-board-title-group h3 {
2962
- overflow: hidden;
2963
- font-size: 15px;
2964
- line-height: 22px;
2965
- letter-spacing: -0.015em;
2966
- text-overflow: ellipsis;
2967
- white-space: nowrap;
2968
- }
2969
-
2970
2961
  .devlead-board-refresh,
2971
2962
  .devlead-notes-back {
2972
2963
  flex: none;
@@ -2988,7 +2979,13 @@ window.__ModuleLoader__.load({
2988
2979
  flex-wrap: wrap;
2989
2980
  justify-content: space-between;
2990
2981
  gap: 3px 10px;
2991
- margin-top: 2px;
2982
+ }
2983
+
2984
+ .devlead-board-header-actions {
2985
+ flex: 0 1 auto;
2986
+ justify-content: flex-end;
2987
+ gap: 5px;
2988
+ margin-left: auto;
2992
2989
  }
2993
2990
 
2994
2991
  .devlead-board-live {
@@ -3293,14 +3290,18 @@ window.__ModuleLoader__.load({
3293
3290
  .devlead-board-cards {
3294
3291
  display: grid;
3295
3292
  grid-template-columns: minmax(0, 1fr);
3293
+ grid-auto-rows: 1fr;
3296
3294
  gap: 8px;
3297
3295
  min-width: 0;
3298
3296
  }
3299
3297
 
3300
3298
  .devlead-board-card {
3301
3299
  position: relative;
3300
+ display: flex;
3301
+ flex-direction: column;
3302
3302
  min-width: 0;
3303
3303
  max-width: 100%;
3304
+ height: 100%;
3304
3305
  padding: 9px 10px 8px;
3305
3306
  overflow: hidden;
3306
3307
  border: 1px solid var(--dsw-alias-border-l1, rgba(127, 127, 127, 0.24));
@@ -3334,22 +3335,52 @@ window.__ModuleLoader__.load({
3334
3335
  }
3335
3336
 
3336
3337
  .devlead-board-card-header {
3337
- align-items: flex-start;
3338
+ align-items: center;
3339
+ gap: 6px;
3338
3340
  }
3339
3341
 
3340
3342
  .devlead-board-card-heading {
3341
3343
  display: grid;
3342
3344
  flex: 1 1 auto;
3343
- grid-template-columns: 10px minmax(0, auto) minmax(0, 1fr);
3345
+ grid-template-columns: minmax(0, auto) minmax(0, 1fr);
3344
3346
  align-items: center;
3345
3347
  gap: 5px;
3346
3348
  min-width: 0;
3347
3349
  }
3348
3350
 
3349
- .devlead-board-card-status {
3351
+ .devlead-board-priority {
3350
3352
  display: inline-flex;
3353
+ flex: none;
3351
3354
  align-items: center;
3352
3355
  justify-content: center;
3356
+ width: 16px;
3357
+ height: 19px;
3358
+ color: var(--dsw-alias-label-tertiary, GrayText);
3359
+ }
3360
+
3361
+ .devlead-board-priority-glyph {
3362
+ display: inline-flex;
3363
+ flex-direction: column;
3364
+ align-items: center;
3365
+ justify-content: center;
3366
+ width: 16px;
3367
+ height: 19px;
3368
+ }
3369
+
3370
+ .devlead-board-priority-glyph > svg {
3371
+ flex: none;
3372
+ }
3373
+
3374
+ .devlead-board-priority-glyph > svg + svg {
3375
+ margin-top: -9px;
3376
+ }
3377
+
3378
+ .devlead-board-priority[data-devlead-board-priority="high"] {
3379
+ color: var(--dsw-alias-state-warn-primary, #a15c00);
3380
+ }
3381
+
3382
+ .devlead-board-priority[data-devlead-board-priority="medium"] {
3383
+ color: var(--dsw-alias-state-business-primary, #4176e6);
3353
3384
  }
3354
3385
 
3355
3386
  .devlead-board-card-heading h5 {
@@ -3371,7 +3402,7 @@ window.__ModuleLoader__.load({
3371
3402
 
3372
3403
  .devlead-board-workspace {
3373
3404
  display: block;
3374
- margin: 1px 0 0 15px;
3405
+ margin: 1px 0 0;
3375
3406
  overflow: hidden;
3376
3407
  color: var(--dsw-alias-label-tertiary, GrayText);
3377
3408
  font-family: inherit;
@@ -3385,8 +3416,14 @@ window.__ModuleLoader__.load({
3385
3416
  flex-wrap: wrap;
3386
3417
  gap: 4px;
3387
3418
  min-width: 0;
3419
+ min-height: 28px;
3388
3420
  max-width: 100%;
3389
- margin-top: 5px;
3421
+ padding-top: 5px;
3422
+ }
3423
+
3424
+ .devlead-board-card-badges:empty {
3425
+ min-height: 0;
3426
+ padding-top: 0;
3390
3427
  }
3391
3428
 
3392
3429
  .devlead-board-card-badges > span {
@@ -3440,9 +3477,14 @@ window.__ModuleLoader__.load({
3440
3477
  margin-top: 7px;
3441
3478
  }
3442
3479
 
3480
+ .devlead-board-field[data-empty="true"] {
3481
+ visibility: hidden;
3482
+ }
3483
+
3443
3484
  .devlead-board-field p {
3444
3485
  display: -webkit-box;
3445
3486
  min-width: 0;
3487
+ min-height: 19px;
3446
3488
  margin: 0;
3447
3489
  overflow: hidden;
3448
3490
  overflow-wrap: anywhere;
@@ -3456,6 +3498,7 @@ window.__ModuleLoader__.load({
3456
3498
  }
3457
3499
 
3458
3500
  .devlead-board-field-focus p {
3501
+ min-height: 20px;
3459
3502
  color: var(--dsw-alias-label-primary, CanvasText);
3460
3503
  font-size: 14px;
3461
3504
  font-weight: 600;
@@ -3489,6 +3532,10 @@ window.__ModuleLoader__.load({
3489
3532
  font-size: 12px;
3490
3533
  }
3491
3534
 
3535
+ .devlead-board-blockers-slot {
3536
+ min-width: 0;
3537
+ }
3538
+
3492
3539
  .devlead-board-blockers {
3493
3540
  margin-top: 8px;
3494
3541
  padding: 7px 8px;
@@ -3688,7 +3735,8 @@ window.__ModuleLoader__.load({
3688
3735
  align-items: center;
3689
3736
  justify-content: flex-end;
3690
3737
  gap: 3px;
3691
- margin-top: 5px;
3738
+ margin-top: auto;
3739
+ padding-top: 5px;
3692
3740
  color: var(--dsw-alias-label-tertiary, GrayText);
3693
3741
  font-size: 10px;
3694
3742
  line-height: 14px;
@@ -4028,11 +4076,28 @@ window.__ModuleLoader__.load({
4028
4076
  box-shadow: 0 0 0 2px var(--dsw-alias-state-business-tertiary, rgba(65, 118, 230, 0.12));
4029
4077
  }
4030
4078
 
4031
- .devlead-board-card:focus-visible {
4079
+ .devlead-board-card:focus-visible,
4080
+ .devlead-board-priority:focus-visible {
4032
4081
  outline: 2px solid var(--dsw-alias-state-business-primary, #4176e6);
4033
4082
  outline-offset: 2px;
4034
4083
  }
4035
4084
 
4085
+ /* Chromium shares each of the ten card-section tracks across one visual row.
4086
+ The flex column above remains the equal-height/footer fallback elsewhere. */
4087
+ @supports (grid-template-rows: subgrid) {
4088
+ .devlead-board-cards {
4089
+ grid-auto-rows: auto;
4090
+ }
4091
+
4092
+ .devlead-board-card {
4093
+ display: grid;
4094
+ grid-row: span 10;
4095
+ grid-template-rows: subgrid;
4096
+ row-gap: 0;
4097
+ height: auto;
4098
+ }
4099
+ }
4100
+
4036
4101
  @media (hover: hover) {
4037
4102
  .devlead-board-refresh:hover:not(:disabled),
4038
4103
  .devlead-notes-back:hover:not(:disabled),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-client-ui-devlead",
3
- "version": "0.4.2-rc.9",
3
+ "version": "0.4.2",
4
4
  "description": "DevLead surfaces: the mode toggle and status strip, Session sidebar marks, and a read-only right-Sidebar project board.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -43,7 +43,7 @@
43
43
  "@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.1 <0.3.0"
44
44
  },
45
45
  "dependencies": {
46
- "@yankeguo/dsh-devlead-protocol": "0.4.2-rc.9"
46
+ "@yankeguo/dsh-devlead-protocol": "0.4.2"
47
47
  },
48
48
  "engines": {
49
49
  "dsh": ">=0.2.2-rc.1 <0.3.0"