@skillre/dsh-plugin-work-dashboard 0.6.0 → 0.9.0

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.
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Shared display formatters.
3
+ *
4
+ * `formatWan` and `formatDate` had three copies each (overview, detail,
5
+ * insights), and `stageLabel` had two. Identical copies are not a style problem:
6
+ * three `formatDate` bodies meant three places to fix a timezone bug, and they
7
+ * had already drifted — the insights copy accepted `''` where the detail copy
8
+ * accepted `null`. One module, one behaviour.
9
+ *
10
+ * Everything here is pure and locale-explicit: the caller passes the active
11
+ * locale, so the result never depends on ambient state (and a replay or a test
12
+ * renders the same string as the live page).
13
+ */
14
+ import { STAGES } from '../types.js';
15
+ /**
16
+ * Format a 万元 figure with thousands separators.
17
+ *
18
+ * Rounds to one decimal: the ledger stores whole 万元, so a decimal only ever
19
+ * appears from an average, and two decimals would imply a precision the data
20
+ * does not have.
21
+ */
22
+ export function formatWan(value) {
23
+ const rounded = Math.round(value * 10) / 10;
24
+ return rounded.toLocaleString('zh-CN', { maximumFractionDigits: 1 });
25
+ }
26
+ /** `true` when the value is a calendar date (`YYYY-MM-DD`), not an instant. */
27
+ function isCalendarDate(value) {
28
+ return /^\d{4}-\d{2}-\d{2}$/.test(value);
29
+ }
30
+ /**
31
+ * Format a ledger date for the active locale.
32
+ *
33
+ * The ledger stores calendar dates, not instants, so a bare `new Date('2026-11-01')`
34
+ * parses as UTC midnight and prints the previous day west of Greenwich. The
35
+ * string is therefore read as local midnight. Anything that is not a calendar
36
+ * date is returned verbatim: showing the raw value is honest, and inventing a
37
+ * parse would hide a hand-edited typo.
38
+ *
39
+ * @param value the raw field, `null`, or `''`
40
+ * @param locale the active locale id
41
+ * @param fallback what to return for an absent value; defaults to `''`
42
+ */
43
+ export function formatDate(value, locale, fallback = '') {
44
+ if (value === null || value === '')
45
+ return fallback;
46
+ if (!isCalendarDate(value))
47
+ return value;
48
+ const stamp = new Date(`${value}T00:00:00`);
49
+ if (Number.isNaN(stamp.getTime()))
50
+ return value;
51
+ return stamp.toLocaleDateString(locale.toLowerCase().startsWith('zh') ? 'zh-CN' : 'en-US', {
52
+ year: 'numeric',
53
+ month: '2-digit',
54
+ day: '2-digit',
55
+ });
56
+ }
57
+ /** Format an ISO instant (not a calendar date) as `HH:MM` for the status bar. */
58
+ export function clockOf(value, locale) {
59
+ if (value === null)
60
+ return '';
61
+ const stamp = new Date(value);
62
+ if (Number.isNaN(stamp.getTime()))
63
+ return '';
64
+ return stamp.toLocaleTimeString(locale.toLowerCase().startsWith('zh') ? 'zh-CN' : 'en-US', {
65
+ hour: '2-digit',
66
+ minute: '2-digit',
67
+ });
68
+ }
69
+ /**
70
+ * The dictionary label for a raw stage bucket key.
71
+ *
72
+ * Accepts the two sentinels `closed` / `unknown` alongside the five gate ids,
73
+ * because every stage-shaped surface (funnel, board column, filter chip) has to
74
+ * render all seven. An unrecognized value falls through unchanged rather than
75
+ * disappearing.
76
+ */
77
+ export function stageLabel(t, key) {
78
+ if (key === 'closed')
79
+ return t('stageClosed');
80
+ if (key === 'unknown')
81
+ return t('stageUnknown');
82
+ if (STAGES.includes(key))
83
+ return t(`stage${key}`);
84
+ return key;
85
+ }
86
+ /**
87
+ * A stage bucket key for one project: `closed` wins over the normalized stage.
88
+ *
89
+ * Kept here rather than inline so the funnel, the board and the blocker list
90
+ * bucket a project identically.
91
+ */
92
+ export function stageBucketKey(project) {
93
+ if (project.closed)
94
+ return 'closed';
95
+ return project.stage ?? 'unknown';
96
+ }
@@ -13,10 +13,12 @@
13
13
  * another surface's rules.
14
14
  */
15
15
  import { BASE_CSS } from './css/base.js';
16
+ import { BLOCKERS_CSS } from './css/blockers.js';
16
17
  import { CHARTS_CSS } from './css/charts.js';
17
18
  import { DETAIL_CSS } from './css/detail.js';
18
19
  import { INSIGHTS_CSS } from './css/insights.js';
19
20
  import { OVERVIEW_CSS } from './css/overview.js';
20
- export const CONSOLE_CSS = [BASE_CSS, CHARTS_CSS, OVERVIEW_CSS, DETAIL_CSS, INSIGHTS_CSS].join('\n');
21
+ import { SUMMARY_CSS } from './css/summary.js';
22
+ export const CONSOLE_CSS = [BASE_CSS, CHARTS_CSS, OVERVIEW_CSS, SUMMARY_CSS, DETAIL_CSS, INSIGHTS_CSS, BLOCKERS_CSS].join('\n');
21
23
  /** The scoped root class, re-exported for tests that assert the scope. */
22
24
  export const ROOT_CLASS = 'wd-shell';
@@ -18,6 +18,7 @@ export const zh = {
18
18
  title: '工作看板',
19
19
  subtitle: '多模块运营看板:先把正在推进的事情看清楚,再决定下一步补什么。',
20
20
  dataSource: '数据源',
21
+ dataSourceLine: '数据源:github.com/{repository}',
21
22
  eyebrow: '工作看板 · 只读',
22
23
  modulePoc: 'POC 运营',
23
24
  modulePocHint: '项目阶段、四维结果与缺口清单',
@@ -53,10 +54,6 @@ export const zh = {
53
54
  loading: '加载中…',
54
55
  loadingDetail: '正在读取项目…',
55
56
  // Stats
56
- statActive: '进行中',
57
- statG0: '待补 G0',
58
- statRisk: '有风险',
59
- statConvertible: '可转化',
60
57
  statTotal: '项目总数',
61
58
  statClosed: '已关闭',
62
59
  // Table
@@ -91,9 +88,6 @@ export const zh = {
91
88
  stagePending: '未开始',
92
89
  stageUnknown: '阶段未识别',
93
90
  // Pending list
94
- pendingTitle: '待处理',
95
- pendingEmpty: '没有扫出缺口,继续保持。',
96
- pendingCount: '{count} 项',
97
91
  gapPriority: '优先级 {value}',
98
92
  // Detail page
99
93
  back: '← 返回',
@@ -195,13 +189,6 @@ export const zh = {
195
189
  timelineNoFeedback: '无客户反馈',
196
190
  timelineActual: '实际结果',
197
191
  timelineRoundShort: '第 {round} 轮',
198
- statTotalProjects: 'POC 总数',
199
- statTotalNote: '台账内全部项目',
200
- statG0Passed: 'G0 通过',
201
- statG0CompleteNote: 'G0 完整',
202
- statInProgress: '进行中',
203
- statStoppedNote: '暂停/关闭/取消',
204
- statAmount: '金额合计',
205
192
  statAmountUnit: '万元',
206
193
  colOrg: '体系/公司',
207
194
  colAmount: '金额',
@@ -332,6 +319,7 @@ export const zh = {
332
319
  filterLabel: '筛选',
333
320
  filterAll: '全部',
334
321
  filterSystem: '体系',
322
+ filterCompany: '公司',
335
323
  filterStage: '阶段',
336
324
  filterStatus: '状态',
337
325
  filterType: '类型',
@@ -366,13 +354,114 @@ export const zh = {
366
354
  tableProgressCell: '{date} · {count} 次',
367
355
  tableStageSince: '{days} 天',
368
356
  tableSortByThis: '按此列排序',
369
- pendingGrouped: '按规则分组',
370
- pendingUngrouped: '平铺列表',
371
- pendingRuleCount: '{count} 个项目命中',
372
357
  pendingExpand: '展开',
373
358
  pendingCollapse: '收起',
374
- pendingMoreProjects: '还有 {count} 个项目',
375
- pendingEmptyFiltered: '当前筛选下没有缺口。',
359
+ // ---------- 0.7 · 阻障(统一口径) ----------
360
+ blockerTitle: '阻障',
361
+ blockerSubtitle: '卡住的地方,五类来源合在一起看。',
362
+ blockerCount: '{count} 项',
363
+ blockerProjectsNote: '{blocked} / {total} 个项目有阻障',
364
+ blockerAll: '全部',
365
+ blockerSourceGap: '缺口规则',
366
+ blockerSourceStalled: '阶段停滞',
367
+ blockerSourceMissingAmount: '未填金额',
368
+ blockerSourceNoProgress: '无进展记录',
369
+ blockerSourceNoStageSince: '缺阶段起始日',
370
+ blockerEmpty: '没有扫出阻障,继续保持。',
371
+ blockerEmptyFiltered: '当前筛选下没有阻障。',
372
+ blockerStalledCopy: '已在当前阶段停留 {days} 天(阈值 {stallDays} 天),没有任何推进。',
373
+ blockerMissingAmountCopy: '没有填金额,无法排序、估算,也无法判断是否触及大额规则。',
374
+ blockerNoProgressCopy: '一条进展记录都没有:这个项目推进过没有,说不清。',
375
+ blockerNoStageSinceCopy: '没有填进入阶段的时间,停滞天数无法计算。',
376
+ blockerMoreProjects: '还有 {count} 个项目',
377
+ blockerOpen: '查看',
378
+ blockerLegendHint: '点任意一类只看它,再点一次取消。',
379
+ // ---------- 0.7 · 阶段感知详情页 ----------
380
+ dtStageSkeleton: '当前阶段视图',
381
+ dtStageG0Title: 'G0 工作台',
382
+ dtStageG0Copy: '先把这个项目值不值得做讲清楚,再谈计划与进展。',
383
+ dtStageG0Next: '五项必填齐了、评审通过后,才进入 G1 方案设计。',
384
+ dtStageG1Title: 'G1 方案设计',
385
+ dtStageG1Copy: '怎么赢:痛点、指标、场景、优势,还有 G1 结论。',
386
+ dtStageG1Next: 'G1 通过并确认前置条件就绪后,进入 G2 方案验证。',
387
+ dtStageG2Title: 'G2 方案验证',
388
+ dtStageG2Copy: '前置条件是否就绪,验证过程产生了哪些进展与证据。',
389
+ dtStageG2Next: 'G2 Ready 且验证有证据后,进入 G3 结果验证。',
390
+ dtStageG3Title: 'G3 结果验证',
391
+ dtStageG3Copy: '证据链与客户认可:证明了什么,客户承认了什么。',
392
+ dtStageG3Next: 'G3-2 已确认后,进入 G4 结果转化。',
393
+ dtStageG4Title: 'G4 结果转化',
394
+ dtStageG4Copy: '四维结论与下一步里程碑:价值做出来了,要把它落下来。',
395
+ dtStageG4Next: '里程碑有了负责人与截止日,才算真正完成。',
396
+ dtStageClosedTitle: '已关闭',
397
+ dtStageClosedCopy: '归档视图:结论与四维结果,进展流留作复盘。',
398
+ dtStageUnknownTitle: '阶段未识别',
399
+ dtStageUnknownCopy: '台账里的阶段值无法识别,按全量顺序展示。',
400
+ dtStageDone: '本阶段已记录完成',
401
+ dtStagePending: '本阶段还有待补项',
402
+ dtOtherSections: '其他区块',
403
+ dtOtherSectionsHint: '全部字段都还在,只是按当前阶段排到了后面。',
404
+ // ---------- 0.7 · 工作清单(空态改成可执行) ----------
405
+ worklistTitle: '待补清单',
406
+ worklistEmpty: '这项已经齐了。',
407
+ worklistG0Intro: '补齐下面 {count} 项,G0 才算完整。',
408
+ worklistG0Done: '五项必填已齐,可以推进 G0 评审。',
409
+ worklistG0Field: '补 {field}',
410
+ worklistG0Hint: '在台账里补完后点刷新;也可以导出收集表单交给组员填。',
411
+ worklistNoProgressIntro: '还没有第一条进展记录。一次进展至少要写清目标、实际结果和下一步。',
412
+ worklistNoProgressAction: '补第一条进展',
413
+ worklistNoPlanIntro: '计划还是空的:没有成功指标,后面无法验收。',
414
+ worklistNoPlanAction: '补计划(指标 / 场景 / 风险)',
415
+ worklistNoOutcomeIntro: '结论还没写:做成了什么、客户认可什么、下一步做什么。',
416
+ worklistNoOutcomeAction: '补结论',
417
+ worklistMissingAmountIntro: '没有填金额,这个项目在预算视图里会缺席。',
418
+ worklistMissingAmountAction: '补金额',
419
+ worklistMissingStageSinceIntro: '没有填进入阶段的时间,停滞天数算不出来。',
420
+ worklistMissingStageSinceAction: '补阶段起始日',
421
+ worklistFixAll: '共 {count} 项待补',
422
+ worklistDone: '没有待补项,继续保持。',
423
+ // ---------- 0.8 · KPI 顶条 ----------
424
+ kpiTitle: '整体情况',
425
+ kpiTotal: '项目总数',
426
+ kpiActive: '进行中',
427
+ kpiBudget: '预算合计',
428
+ kpiBlocked: '有阻障',
429
+ kpiG0Passed: 'G0 已通过',
430
+ kpiStageBreakdown: '各阶段',
431
+ kpiBlockedNote: '{count} 个项目',
432
+ kpiClickHint: '点任意一项按该条件筛选',
433
+ kpiAllNote: '全部 {count} 个项目',
434
+ // ---------- 0.8 · 预算面板 ----------
435
+ budgetTitle: '预算',
436
+ budgetNote: '按评审状态拆分',
437
+ budgetTotal: '预算合计',
438
+ budgetApproved: 'G0 已通过',
439
+ budgetPending: '待评审',
440
+ budgetUnset: '未填金额',
441
+ budgetApprovedNote: '{count} 个项目 · {amount} 万',
442
+ budgetPendingNote: '{count} 个项目 · {amount} 万',
443
+ budgetUnsetNote: '{count} 个项目',
444
+ budgetByOrg: '按体系',
445
+ budgetConcentration: '集中度',
446
+ budgetConcentrationCopy: '最大单项目占 {share}%',
447
+ budgetEmpty: '台账里还没有金额数据。',
448
+ budgetUnsetWarning: '{count} 个项目没有金额,预算合计偏低。',
449
+ // ---------- 0.8 · 阶段内完成度 ----------
450
+ stageProgressLabel: '阶段内完成',
451
+ stageProgressNote: '{done} / {total} 已完成',
452
+ stageNoData: '本阶段没有项目',
453
+ // ---------- 0.8 · 基本信息 ----------
454
+ dtBasicTitle: '基本信息',
455
+ dtCustomerName: '客户名',
456
+ dtCustomerSystem: '体系',
457
+ dtCustomerCompany: '客户公司',
458
+ dtCustomerDepartment: '部门',
459
+ dtCustomerTech: '客户技术人',
460
+ dtCustomerSponsor: '客户业务决策人',
461
+ dtBasicDecisionChain: '决策链',
462
+ dtBasicDecisionChainNone: '还没有写清谁拍板、按什么流程走。',
463
+ dtBasicPostPoc: '测后决策',
464
+ dtBasicPostPocNone: '还没有写清测完之后客户会做什么决定。',
376
465
  // ---------- 0.3 · 详情页 ----------
377
466
  dtRailTitle: '项目档案',
378
467
  dtStageSection: '阶段',
@@ -474,6 +563,7 @@ export const en = {
474
563
  title: 'Work Dashboard',
475
564
  subtitle: 'A multi-module operations dashboard: see what is actually moving before deciding what to fix next.',
476
565
  dataSource: 'Data source',
566
+ dataSourceLine: 'Source: github.com/{repository}',
477
567
  eyebrow: 'Work Dashboard · read-only',
478
568
  modulePoc: 'POC Operations',
479
569
  modulePocHint: 'Stage, four dimensions and gaps',
@@ -506,10 +596,6 @@ export const en = {
506
596
  failureHint: 'Check the network and gh login, then retry.',
507
597
  loading: 'Loading…',
508
598
  loadingDetail: 'Reading the project…',
509
- statActive: 'Active',
510
- statG0: 'Missing G0',
511
- statRisk: 'At risk',
512
- statConvertible: 'Convertible',
513
599
  statTotal: 'Total',
514
600
  statClosed: 'Closed',
515
601
  tableTitle: 'Projects',
@@ -540,9 +626,6 @@ export const en = {
540
626
  stageCurrent: 'Current',
541
627
  stagePending: 'Not started',
542
628
  stageUnknown: 'Unrecognized stage',
543
- pendingTitle: 'Pending',
544
- pendingEmpty: 'No gaps found. Keep it up.',
545
- pendingCount: '{count} items',
546
629
  gapPriority: 'Priority {value}',
547
630
  back: '← Back',
548
631
  detailIdentity: '{pocId} · {stage} · {org}',
@@ -640,13 +723,6 @@ export const en = {
640
723
  timelineNoFeedback: 'No customer feedback',
641
724
  timelineActual: 'Actual result',
642
725
  timelineRoundShort: 'Round {round}',
643
- statTotalProjects: 'POCs',
644
- statTotalNote: 'All projects in the ledger',
645
- statG0Passed: 'G0 passed',
646
- statG0CompleteNote: 'G0 complete',
647
- statInProgress: 'In progress',
648
- statStoppedNote: 'Paused/closed/cancelled',
649
- statAmount: 'Total amount',
650
726
  statAmountUnit: '10k CNY',
651
727
  colOrg: 'System / company',
652
728
  colAmount: 'Amount',
@@ -778,6 +854,7 @@ export const en = {
778
854
  filterLabel: 'Filters',
779
855
  filterAll: 'All',
780
856
  filterSystem: 'System',
857
+ filterCompany: 'Company',
781
858
  filterStage: 'Stage',
782
859
  filterStatus: 'Status',
783
860
  filterType: 'Type',
@@ -812,13 +889,114 @@ export const en = {
812
889
  tableProgressCell: '{date} · {count} entries',
813
890
  tableStageSince: '{days} days',
814
891
  tableSortByThis: 'Sort by this column',
815
- pendingGrouped: 'Group by rule',
816
- pendingUngrouped: 'Flat list',
817
- pendingRuleCount: '{count} project(s) hit',
818
892
  pendingExpand: 'Expand',
819
893
  pendingCollapse: 'Collapse',
820
- pendingMoreProjects: '{count} more project(s)',
821
- pendingEmptyFiltered: 'No gaps under the current filters.',
894
+ // ---------- 0.7 · blockers (one story) ----------
895
+ blockerTitle: 'Blockers',
896
+ blockerSubtitle: 'Every way a project is stuck, from five sources in one list.',
897
+ blockerCount: '{count} item(s)',
898
+ blockerProjectsNote: '{blocked} of {total} project(s) blocked',
899
+ blockerAll: 'All',
900
+ blockerSourceGap: 'Gap rules',
901
+ blockerSourceStalled: 'Stalled',
902
+ blockerSourceMissingAmount: 'No amount',
903
+ blockerSourceNoProgress: 'No progress',
904
+ blockerSourceNoStageSince: 'No stage date',
905
+ blockerEmpty: 'No blockers found. Keep it up.',
906
+ blockerEmptyFiltered: 'No blockers under the current filters.',
907
+ blockerStalledCopy: 'In stage for {days} days (threshold {stallDays}) with no movement.',
908
+ blockerMissingAmountCopy: 'No amount recorded: it cannot be ranked, estimated, or checked against the large-amount rule.',
909
+ blockerNoProgressCopy: 'Not a single progress entry, so whether this project moved at all is unknown.',
910
+ blockerNoStageSinceCopy: 'No stage start date, so the stall clock never started.',
911
+ blockerMoreProjects: '{count} more project(s)',
912
+ blockerOpen: 'View',
913
+ blockerLegendHint: 'Pick a source to see only it; pick it again to clear.',
914
+ // ---------- 0.7 · stage-aware detail ----------
915
+ dtStageSkeleton: 'Stage view',
916
+ dtStageG0Title: 'G0 workbench',
917
+ dtStageG0Copy: 'Settle whether this project is worth doing before plan and progress.',
918
+ dtStageG0Next: 'Once the five requirements are present and the review passes, G1 design starts.',
919
+ dtStageG1Title: 'G1 design',
920
+ dtStageG1Copy: 'How to win: pain, metrics, scenarios, edge, and the G1 conclusion.',
921
+ dtStageG1Next: 'After G1 passes and the prerequisites are ready, G2 validation starts.',
922
+ dtStageG2Title: 'G2 validation',
923
+ dtStageG2Copy: 'Whether the prerequisites are ready, and which progress and evidence the run produced.',
924
+ dtStageG2Next: 'Once G2 is Ready with evidence, G3 result validation starts.',
925
+ dtStageG3Title: 'G3 result validation',
926
+ dtStageG3Copy: 'The proof chain: what we proved, and what the customer accepted.',
927
+ dtStageG3Next: 'Once G3-2 is confirmed, G4 conversion starts.',
928
+ dtStageG4Title: 'G4 conversion',
929
+ dtStageG4Copy: 'The four dimensions and the next milestone: value exists, now bank it.',
930
+ dtStageG4Next: 'It is only complete with a milestone owner and a deadline.',
931
+ dtStageClosedTitle: 'Closed',
932
+ dtStageClosedCopy: 'Archive view: the conclusion and the four dimensions, with the stream for review.',
933
+ dtStageUnknownTitle: 'Unrecognized stage',
934
+ dtStageUnknownCopy: 'The ledger value is not a known stage, so every section keeps its full order.',
935
+ dtStageDone: 'This stage is recorded as done',
936
+ dtStagePending: 'This stage still has gaps',
937
+ dtOtherSections: 'Other sections',
938
+ dtOtherSectionsHint: 'Every field is still here; the current stage just moved them down.',
939
+ // ---------- 0.7 · worklist (empty states that say what to do) ----------
940
+ worklistTitle: 'To fill in',
941
+ worklistEmpty: 'This one is complete.',
942
+ worklistG0Intro: 'Fill in the {count} item(s) below to make G0 complete.',
943
+ worklistG0Done: 'All five requirements are present; G0 review can proceed.',
944
+ worklistG0Field: 'Add {field}',
945
+ worklistG0Hint: 'Fill it in the ledger, then refresh; or export the collection form for a colleague.',
946
+ worklistNoProgressIntro: 'No progress entry yet. One entry needs a goal, an actual result and a next step.',
947
+ worklistNoProgressAction: 'Add the first entry',
948
+ worklistNoPlanIntro: 'The plan is empty: without success criteria nothing can be accepted later.',
949
+ worklistNoPlanAction: 'Add the plan (criteria / scenarios / risks)',
950
+ worklistNoOutcomeIntro: 'No conclusion yet: what was proved, what the customer accepted, what comes next.',
951
+ worklistNoOutcomeAction: 'Add the conclusion',
952
+ worklistMissingAmountIntro: 'No amount, so this project is missing from the budget view.',
953
+ worklistMissingAmountAction: 'Add the amount',
954
+ worklistMissingStageSinceIntro: 'No stage start date, so the stall clock cannot run.',
955
+ worklistMissingStageSinceAction: 'Add the stage start date',
956
+ worklistFixAll: '{count} item(s) to fill in',
957
+ worklistDone: 'Nothing to fill in. Keep it up.',
958
+ // ---------- 0.8 · KPI strip ----------
959
+ kpiTitle: 'At a glance',
960
+ kpiTotal: 'Projects',
961
+ kpiActive: 'In progress',
962
+ kpiBudget: 'Budget',
963
+ kpiBlocked: 'Blocked',
964
+ kpiG0Passed: 'G0 passed',
965
+ kpiStageBreakdown: 'By stage',
966
+ kpiBlockedNote: '{count} project(s)',
967
+ kpiClickHint: 'Pick a figure to filter by it',
968
+ kpiAllNote: 'All {count} project(s)',
969
+ // ---------- 0.8 · budget panel ----------
970
+ budgetTitle: 'Budget',
971
+ budgetNote: 'Split by review state',
972
+ budgetTotal: 'Total budget',
973
+ budgetApproved: 'G0 passed',
974
+ budgetPending: 'Awaiting review',
975
+ budgetUnset: 'No amount',
976
+ budgetApprovedNote: '{count} project(s) · {amount}',
977
+ budgetPendingNote: '{count} project(s) · {amount}',
978
+ budgetUnsetNote: '{count} project(s)',
979
+ budgetByOrg: 'By system',
980
+ budgetConcentration: 'Concentration',
981
+ budgetConcentrationCopy: 'Largest project is {share}%',
982
+ budgetEmpty: 'No amount recorded in the ledger yet.',
983
+ budgetUnsetWarning: '{count} project(s) have no amount, so the total understates the budget.',
984
+ // ---------- 0.8 · in-stage completion ----------
985
+ stageProgressLabel: 'Stage progress',
986
+ stageProgressNote: '{done} of {total} done',
987
+ stageNoData: 'No project at this stage',
988
+ // ---------- 0.8 · basic info ----------
989
+ dtBasicTitle: 'Basic information',
990
+ dtCustomerName: 'Customer',
991
+ dtCustomerSystem: 'System',
992
+ dtCustomerCompany: 'Company',
993
+ dtCustomerDepartment: 'Department',
994
+ dtCustomerTech: 'Customer tech contact',
995
+ dtCustomerSponsor: 'Customer business sponsor',
996
+ dtBasicDecisionChain: 'Decision chain',
997
+ dtBasicDecisionChainNone: 'Who signs off, and by what process, is not written down.',
998
+ dtBasicPostPoc: 'Post-POC decision',
999
+ dtBasicPostPocNone: 'What the customer does after the POC is not written down.',
822
1000
  // ---------- 0.3 · detail ----------
823
1001
  dtRailTitle: 'Project file',
824
1002
  dtStageSection: 'Stage',
@@ -10,7 +10,7 @@
10
10
  * re-filters: if the cards say "12 projects" and the table says "12 projects",
11
11
  * that has to be the same twelve, computed once.
12
12
  */
13
- import type { GapItem, PortfolioAnalysis, ProjectDetail, ProjectSummary, RiskBoard, GlobalTimeline, Snapshot, SortKey, StageId, ViewMode } from '../types.js';
13
+ import type { BlockerRow, GapItem, PortfolioAnalysis, ProjectDetail, ProjectSummary, RiskBoard, GlobalTimeline, Snapshot, SortKey, StageId, ViewMode } from '../types.js';
14
14
  import type { Translate } from './text.js';
15
15
  /** The filter dimensions the toolbar exposes. `null` means "not filtered". */
16
16
  export interface ActiveFilters {
@@ -77,6 +77,14 @@ export interface DetailProps {
77
77
  detail: ProjectDetail;
78
78
  /** Gaps of this project only. */
79
79
  gaps: GapItem[];
80
+ /**
81
+ * This project's blocker rows, taken from the portfolio board.
82
+ *
83
+ * Passed in rather than recomputed so the detail worklist and the overview
84
+ * panel can never disagree about what a project is missing. `null` when the
85
+ * caller has no board (a detail opened before the first snapshot).
86
+ */
87
+ blockers: BlockerRow[] | null;
80
88
  locale: string;
81
89
  t: Translate;
82
90
  /** Position within the shell's current list, for the prev/next affordance. */