@skillre/dsh-plugin-work-dashboard 0.0.0-stage → 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.
Files changed (73) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +259 -0
  3. package/README.md +371 -2
  4. package/UNINSTALL.md +7 -0
  5. package/compatibility.json +195 -0
  6. package/cordis.patch.yml +24 -0
  7. package/docs/DESIGN-0.3.md +122 -0
  8. package/docs/DETAIL.md +1 -0
  9. package/docs/DETAIL.zh.md +1 -0
  10. package/docs/PLAN-0.7-0.9.md +230 -0
  11. package/docs/preview.svg +254 -0
  12. package/docs/preview.zh.svg +254 -0
  13. package/icon.svg +17 -0
  14. package/lib/blockers.d.ts +45 -0
  15. package/lib/blockers.js +160 -0
  16. package/lib/client/api.d.ts +42 -0
  17. package/lib/client/api.js +45 -0
  18. package/lib/client/contracts.d.ts +94 -0
  19. package/lib/client/contracts.js +21 -0
  20. package/lib/client/css/base.d.ts +31 -0
  21. package/lib/client/css/base.js +461 -0
  22. package/lib/client/css/blockers.d.ts +18 -0
  23. package/lib/client/css/blockers.js +196 -0
  24. package/lib/client/css/charts.d.ts +14 -0
  25. package/lib/client/css/charts.js +191 -0
  26. package/lib/client/css/detail.d.ts +21 -0
  27. package/lib/client/css/detail.js +423 -0
  28. package/lib/client/css/insights.d.ts +27 -0
  29. package/lib/client/css/insights.js +660 -0
  30. package/lib/client/css/overview.d.ts +23 -0
  31. package/lib/client/css/overview.js +327 -0
  32. package/lib/client/css/summary.d.ts +13 -0
  33. package/lib/client/css/summary.js +187 -0
  34. package/lib/client/format.d.ts +57 -0
  35. package/lib/client/format.js +96 -0
  36. package/lib/client/preferences.d.ts +56 -0
  37. package/lib/client/preferences.js +118 -0
  38. package/lib/client/styles.d.ts +17 -0
  39. package/lib/client/styles.js +24 -0
  40. package/lib/client/text.d.ts +32 -0
  41. package/lib/client/text.js +1112 -0
  42. package/lib/client/view-contract.d.ts +118 -0
  43. package/lib/client/view-contract.js +28 -0
  44. package/lib/client.js +6599 -0
  45. package/lib/config.d.ts +61 -0
  46. package/lib/config.js +67 -0
  47. package/lib/form.d.ts +218 -0
  48. package/lib/form.js +1075 -0
  49. package/lib/gap.d.ts +60 -0
  50. package/lib/gap.js +227 -0
  51. package/lib/index.d.ts +40 -0
  52. package/lib/index.js +159 -0
  53. package/lib/repo.d.ts +124 -0
  54. package/lib/repo.js +407 -0
  55. package/lib/risks.d.ts +24 -0
  56. package/lib/risks.js +85 -0
  57. package/lib/skill.d.ts +94 -0
  58. package/lib/skill.js +220 -0
  59. package/lib/store.d.ts +63 -0
  60. package/lib/store.js +505 -0
  61. package/lib/timeline.d.ts +23 -0
  62. package/lib/timeline.js +93 -0
  63. package/lib/transport.d.ts +67 -0
  64. package/lib/transport.js +131 -0
  65. package/lib/types.d.ts +701 -0
  66. package/lib/types.js +78 -0
  67. package/locale/en.json +7 -0
  68. package/locale/zh.json +7 -0
  69. package/package.json +117 -4
  70. package/skills/poc-export/SKILL.md +81 -0
  71. package/skills/poc-export/scripts/export-form.mjs +654 -0
  72. package/skills/poc-ledger/SKILL.md +171 -0
  73. package/skills/poc-submit/SKILL.md +186 -0
@@ -0,0 +1,1112 @@
1
+ /**
2
+ * Client dictionaries.
3
+ *
4
+ * Two locales ship with the bundle: Simplified Chinese (the authoring language
5
+ * and the language the ledger itself is written in) and English. Keys are flat
6
+ * and dot-namespaced, resolved through the shared `locale` service, so switching
7
+ * the GUI language re-renders the console without a reload.
8
+ *
9
+ * Rule and dimension copy is keyed by the stable ids the Host sends
10
+ * (`gap.G0-why-customer.title`, `dim.evidence`) rather than by prose, so a new
11
+ * rule id only needs a dictionary entry on both halves of the same bundle.
12
+ */
13
+ /** The namespace registered with the Client locale service. */
14
+ export const NAMESPACE = 'skillreWorkDashboard';
15
+ /** Chinese dictionary; the key set is the source of truth. */
16
+ export const zh = {
17
+ nav: '工作看板',
18
+ title: '工作看板',
19
+ subtitle: '多模块运营看板:先把正在推进的事情看清楚,再决定下一步补什么。',
20
+ dataSource: '数据源',
21
+ dataSourceLine: '数据源:github.com/{repository}',
22
+ eyebrow: '工作看板 · 只读',
23
+ modulePoc: 'POC 运营',
24
+ modulePocHint: '项目阶段、四维结果与缺口清单',
25
+ moduleMore: '更多模块陆续加入',
26
+ // Toolbar / refresh
27
+ refresh: '刷新',
28
+ refreshing: '正在拉取…',
29
+ refreshingHint: '首次拉取需要几秒',
30
+ refreshSettings: '刷新设置',
31
+ refreshedAt: '已刷新 {time}',
32
+ neverRefreshed: '尚未拉取',
33
+ autoRefresh: '自动刷新',
34
+ intervalOff: '关闭(仅手动)',
35
+ interval10m: '每 10 分钟',
36
+ interval1h: '每 1 小时',
37
+ intervalCustom: '自定义',
38
+ customMinutes: '分钟',
39
+ save: '保存',
40
+ cancel: '取消',
41
+ customMinutesError: '请输入 {min}–{max} 之间的整数分钟数',
42
+ autoRefreshOn: '自动刷新:每 {minutes} 分钟(仅本页打开时生效)',
43
+ autoRefreshOff: '自动刷新:关闭',
44
+ autoRefreshFailed: '定时刷新失败,将在下一周期重试',
45
+ // Empty / error states
46
+ emptyTitle: '还没有数据',
47
+ emptyCopy: '点【刷新】从 GitHub 拉取 POC 台账',
48
+ emptyRefresh: '立即刷新',
49
+ emptyPath: '缓存位置',
50
+ failureTitle: '拉取失败',
51
+ failureReason: '原因',
52
+ failureRetry: '重试',
53
+ failureHint: '检查网络与 gh 登录状态后重试。',
54
+ loading: '加载中…',
55
+ loadingDetail: '正在读取项目…',
56
+ // Stats
57
+ statTotal: '项目总数',
58
+ statClosed: '已关闭',
59
+ // Table
60
+ tableTitle: '项目总览',
61
+ colProject: '项目',
62
+ colStage: '阶段',
63
+ colDimensions: '四维状态',
64
+ colGaps: '缺口',
65
+ colAction: '操作',
66
+ detail: '详情',
67
+ openDetail: '查看详情',
68
+ noProjects: '仓库里还没有项目',
69
+ warningsTitle: '解析提示',
70
+ // Dimensions
71
+ dimAchievement: '目标达成',
72
+ dimEvidence: '证据',
73
+ dimRecognition: '客户认可',
74
+ dimNextMilestone: '下一步',
75
+ dimPresent: '已有',
76
+ dimMissing: '缺',
77
+ dimensionCount: '{count}/4',
78
+ // Stage rail
79
+ stageTrack: '阶段轨道',
80
+ stageG0: 'G0 立项',
81
+ stageG1: 'G1 方案设计',
82
+ stageG2: 'G2 方案验证',
83
+ stageG3: 'G3 结果验证',
84
+ stageG4: 'G4 结果转化',
85
+ stageClosed: '已关闭',
86
+ stageDone: '已完成',
87
+ stageCurrent: '当前',
88
+ stagePending: '未开始',
89
+ stageUnknown: '阶段未识别',
90
+ // Pending list
91
+ gapPriority: '优先级 {value}',
92
+ // Detail page
93
+ back: '← 返回',
94
+ detailIdentity: '{pocId} · {stage} · {org}',
95
+ detailMissing: '项目不存在',
96
+ detailMissingCopy: '仓库里没有 poc_id 为 {pocId} 的项目,可能已被移除。请刷新后重试。',
97
+ sectionFourDim: '四维结果',
98
+ sectionG0: 'G0 立项三必填',
99
+ sectionGates: '阶段记录',
100
+ sectionScope: '指标 / 场景 / 风险',
101
+ sectionResult: '结果与下一步',
102
+ sectionTimeline: '时间线',
103
+ sectionGaps: '本项目缺口',
104
+ whyCustomerTest: '客户为什么测',
105
+ whyWeTest: '我们为什么测',
106
+ nextActionGoal: '下一步动作目标',
107
+ customerTechOwner: '客户技术责任人',
108
+ owner: '我方负责人',
109
+ salesInitiator: '发起销售',
110
+ type: '项目类型',
111
+ tier: '项目级别',
112
+ gateDate: '完成日期',
113
+ gateCounts: '指标 {indicators} · 场景 {scenarios} · 风险 {risks}',
114
+ gatePrereq: '前置就绪 {ready}',
115
+ gateEngineers: '已投人力 {invested}',
116
+ yes: '是',
117
+ no: '否',
118
+ criteriaTitle: '成功指标',
119
+ scenariosTitle: '验证场景',
120
+ risksTitle: '风险',
121
+ criteriaCount: '{count} 个',
122
+ scenariosCount: '{count} 个',
123
+ risksCount: '{count} 个',
124
+ criteriaLimitHint: '要求 2–3 个',
125
+ scenariosLimitHint: '要求 3–5 个',
126
+ risksLimitHint: '上限 3 个',
127
+ emptyField: '(空)',
128
+ riskLevel: '等级',
129
+ riskMitigation: '应对',
130
+ round: '第 {round} 轮',
131
+ roundUnnumbered: '记录',
132
+ noTimeline: '还没有时间线记录',
133
+ evidenceLabel: '证据',
134
+ feedbackLabel: '客户反馈',
135
+ recognitionLabel: '认可范围',
136
+ // Gap rules (keyed by the stable rule ids the Host sends)
137
+ // Errors the Host can report
138
+ 'error.network': '无法连接 github.com,请检查网络。',
139
+ 'error.not-found': '仓库不存在,或当前账号看不到它。',
140
+ 'error.timeout': '拉取超时,请稍后重试。',
141
+ 'error.git-missing': '本机找不到 git 命令。',
142
+ 'error.busy': '已有一次刷新正在进行,请稍后再试。',
143
+ 'error.no-projects': '仓库里没有 projects/ 目录。',
144
+ 'error.cache-not-owned': '缓存目录已存在且不是本插件创建的,已拒绝清空。',
145
+ 'error.unknown-project': '项目不存在。',
146
+ 'error.internal': 'Host 内部错误,请查看 DSH 日志。',
147
+ 'error.failed': '操作失败。',
148
+ // Submit errors the Host can report
149
+ // Milestone 3: export form
150
+ exportNav: '导出表单',
151
+ exportTitle: '导出给组员填写的表单',
152
+ exportSubtitle: '勾选项目,生成一个自包含 HTML 文件:双击即可填写,自动保存,实时校验,填完下载 YAML。',
153
+ exportSelectAll: '全选',
154
+ exportSelectNone: '清空',
155
+ exportSelected: '已选 {count} 个项目',
156
+ exportBlank: '只导出空白表单(新建项目用)',
157
+ exportBlankHint: '不勾选任何项目时,会生成一个空白的「新建项目」表单。',
158
+ exportGenerate: '生成并下载',
159
+ exportGenerating: '正在生成…',
160
+ exportDone: '已下载 {name}',
161
+ exportSize: '{kb} KB',
162
+ exportHint: '表单完全离线可用:没有 CDN、没有外部字体、没有服务器。填完导出的 .yaml 可以直接拖进本插件的导入页。',
163
+ exportNoProjects: '先点【刷新】拉到数据,才能导出已有项目的表单。',
164
+ exportFailed: '生成表单失败',
165
+ // Milestone 3: risk board
166
+ risksNav: '风险看板',
167
+ risksBoardTitle: '风险看板',
168
+ risksSubtitle: '所有项目的风险,按等级从高到低排。',
169
+ riskHigh: '高',
170
+ riskMedium: '中',
171
+ riskLow: '低',
172
+ riskUnset: '未评级',
173
+ riskNoRisks: '没有任何项目登记风险——这本身值得怀疑。',
174
+ riskCounts: '高 {high} · 中 {medium} · 低 {low} · 未评级 {unset}',
175
+ riskProjects: '{withRisks} / {total} 个项目有风险登记',
176
+ riskUnsetHint: '「未评级」不是「不严重」,而是还没判断;排序时放在最后。',
177
+ riskGapContext: '同项目还有 {count} 处缺口({high} 处高危)',
178
+ // Milestone 3: global timeline
179
+ timelineNav: '时间线',
180
+ timelineTitle: '全局时间线',
181
+ timelineSubtitle: '所有项目的复盘记录,按日期从新到旧。',
182
+ timelineRange: '{from} 至 {to}',
183
+ timelineCount: '{count} 条记录',
184
+ timelineEmpty: '还没有任何复盘记录。',
185
+ timelineSilent: '{count} 个项目完全没有时间线记录',
186
+ timelineSilentHint: '没有时间线,就说不清这些项目到底推进过没有。',
187
+ timelineMonth: '{month}:{count} 条',
188
+ timelineNoEvidence: '无证据',
189
+ timelineNoFeedback: '无客户反馈',
190
+ timelineActual: '实际结果',
191
+ timelineRoundShort: '第 {round} 轮',
192
+ statAmountUnit: '万元',
193
+ colOrg: '体系/公司',
194
+ colAmount: '金额',
195
+ colLatestProgress: '最新进展',
196
+ noProgressYet: '尚无进展',
197
+ progressGoal: '目标',
198
+ progressItems: '范围',
199
+ progressActual: '实际',
200
+ progressSyncedWith: '同步对象',
201
+ progressNext: '下一步',
202
+ progressDeadline: '截止',
203
+ progressTypeUnset: '未分类',
204
+ progressCount: '{count} 次进展',
205
+ sectionProgress: '进展流',
206
+ progressEmptyTitle: '还没有进展记录',
207
+ progressEmptyCopy: '第一次进展后,这里会显示完整时间线。',
208
+ sectionIdentity: '身份',
209
+ sectionPlan: '计划(G1/G2)',
210
+ sectionOutcome: '结论',
211
+ dimAuto: '自动推导',
212
+ dimManual: '人工填',
213
+ g0Complete: 'G0 完整',
214
+ g0Missing: '缺 {count} 项必填',
215
+ g0Conclusion: 'G0 评审结论',
216
+ g0Reviewer: 'G0 评审人',
217
+ g0ReviewedAt: '评审日期',
218
+ decisionChain: '项目流程/决策链',
219
+ postPocDecision: '测后客户决策',
220
+ competitor: '主要竞争对手',
221
+ customerPain: '客户核心痛点',
222
+ expectedRecognition: '期望客户认可',
223
+ ourEdge: '我方优势/赢点',
224
+ gate1Conclusion: 'G1 结论',
225
+ gate2Ready: 'G2 Ready 状态',
226
+ timelineWindow: '计划起止',
227
+ outcomeAchievement: '达成情况',
228
+ outcomeRecognition: '客户认可',
229
+ outcomeOurProof: '我方证据',
230
+ outcomeRemainingRisks: '剩余风险',
231
+ outcomeProved: '证明了什么',
232
+ outcomeRecognized: '客户认可了什么',
233
+ outcomeNextBusiness: '下一步业务动作',
234
+ outcomeMilestone: 'Next Milestone',
235
+ outcomeBusinessOwner: '里程碑负责人',
236
+ outcomeBusinessDeadline: '里程碑截止',
237
+ outcomeBusinessStatus: '里程碑状态',
238
+ outcomeOverall: 'POC 总体结论',
239
+ outcomeReviewedAt: '复盘日期',
240
+ execSponsor: '客户业务决策人',
241
+ priority: '优先级',
242
+ stageSince: '进入当前阶段',
243
+ daysInStage: '已停留 {days} 天',
244
+ completionLabel: '完成度',
245
+ gate3_1Label: 'G3-1',
246
+ gate3_2Label: 'G3-2',
247
+ 'gap.R1-gate0-missing.title': 'G0 必填未齐',
248
+ 'gap.R1-gate0-missing.copy': 'G0 五必填缺 {count} 项:{missing}。',
249
+ 'gap.R2-large-amount-no-g0.title': '{amountWan} 万项目 G0 未通过',
250
+ 'gap.R2-large-amount-no-g0.copy': '金额达到 300 万以上,G0 结论却是「{conclusion}」,承诺走在判断前面。',
251
+ 'gap.R3-g0-passed-no-plan.title': 'G0 通过但无成功标准',
252
+ 'gap.R3-g0-passed-no-plan.copy': '评审已通过,却没有定义「怎样算成功」,后面无法验收。',
253
+ 'gap.R4-criteria-count.title': '成功指标 {count} 个(要求 {min}–{max})',
254
+ 'gap.R4-criteria-count.copy': '指标 {count} 个,不在 {min}–{max} 区间;测得多等于没重点。',
255
+ 'gap.R5-scenarios-count.title': '场景 {count} 个(要求 {min}–{max})',
256
+ 'gap.R5-scenarios-count.copy': '场景 {count} 个,不在 {min}–{max} 区间;范围失控会拖长周期。',
257
+ 'gap.R6-risks-overflow.title': '风险 {count} 个(上限 {max})',
258
+ 'gap.R6-risks-overflow.copy': '列出 {count} 个风险,超过上限 {max};风险清单过长等于没有优先级。',
259
+ 'gap.R7-g2-not-ready.title': 'G2 未 Ready 但已有进展',
260
+ 'gap.R7-g2-not-ready.copy': '前置条件状态是「{ready}」,却已经开始产生进展,投入可能打水漂。',
261
+ 'gap.R8-progress-no-evidence.title': '有进展无证据',
262
+ 'gap.R8-progress-no-evidence.copy': '第 {seq} 次进展写了实际结果,但没有任何可点开的凭据。',
263
+ 'gap.R9-evidence-no-recognition.title': '有证据无客户认可',
264
+ 'gap.R9-evidence-no-recognition.copy': '证据齐了,客户认可度却是「{recognition}」,只是我们觉得好。',
265
+ 'gap.R10-g3-1-without-g3-2.title': 'G3-1 可证明但 G3-2 未确认',
266
+ 'gap.R10-g3-1-without-g3-2.copy': '结论标为「可证明」,但确认状态是「{gate3_2}」,还差客户书面确认。',
267
+ 'gap.R11-no-next-milestone.title': '已达成但无下一步里程碑',
268
+ 'gap.R11-no-next-milestone.copy': '结果已达成,却没有下一个里程碑:价值做出来了,没有转化路径。',
269
+ 'gap.R12-stage-stalled.title': '已在 {stage} 停留 {days} 天',
270
+ 'gap.R12-stage-stalled.copy': '当前阶段已停留 {days} 天(阈值 {stallDays} 天),没有任何推进。',
271
+ // ---------- 0.3 · 组合面板 ----------
272
+ bandTitle: '组合视图',
273
+ bandNote: '{count} 个项目 · {amount} 万元',
274
+ bandStages: '阶段分布',
275
+ bandStagesNote: '按当前阶段',
276
+ bandOrgs: '体系 / 公司',
277
+ bandOrgsNote: '按金额',
278
+ bandTypes: '项目类型',
279
+ bandTypesNote: '按数量',
280
+ bandAmounts: '金额集中度',
281
+ bandAmountsNote: '前 5 名',
282
+ bandDims: '四维覆盖',
283
+ bandDimsNote: '有值项目占比',
284
+ bandGapRules: '缺口规则命中',
285
+ bandGapRulesNote: '共 {count} 条',
286
+ bandActivity: '进展活跃度',
287
+ bandActivityNote: '每月进展条数',
288
+ chartNoData: '暂无数据',
289
+ stageCountLabel: '{count} 个',
290
+ stageAmountLabel: '{amount} 万',
291
+ stageHighLabel: '{count} 个有高危缺口',
292
+ orgProjectLabel: '{count} 个',
293
+ orgAmountLabel: '{amount} 万',
294
+ orgHighLabel: '{count} 个高危',
295
+ typeLegendNote: '{count} 个 · {amount} 万',
296
+ amountShareLabel: '{share}%',
297
+ amountConcentrationLabel: '最大单项目占 {share}%',
298
+ amountMissingLabel: '{count} 个项目未填金额',
299
+ concentrationHigh: '高度集中:一个项目的金额超过了总额的三分之一,风险没有分散。',
300
+ concentrationNormal: '分布正常:没有单项目超过总额的三分之一。',
301
+ coveragePresent: '{present} / {total}',
302
+ coverageMissingNote: '{count} 个缺',
303
+ activityLastLabel: '最近进展 {date}',
304
+ activityNoneLabel: '全库还没有任何进展记录',
305
+ gapRuleFiresLabel: '{count} 次',
306
+ gapRuleLegendHigh: '高危',
307
+ gapRuleLegendMedium: '提示',
308
+ // ---------- 0.3 · 工具栏 ----------
309
+ viewLabel: '视图',
310
+ viewCards: '卡片',
311
+ viewBoard: '看板',
312
+ viewTable: '表格',
313
+ viewCardsHint: '一屏看清每个项目缺什么',
314
+ viewBoardHint: '按阶段分列,看整体堆积',
315
+ viewTableHint: '紧凑列表,适合逐行对比',
316
+ searchLabel: '搜索',
317
+ searchPlaceholder: '项目名 / 编号 / 负责人 / 公司',
318
+ searchClear: '清除搜索',
319
+ filterLabel: '筛选',
320
+ filterAll: '全部',
321
+ filterSystem: '体系',
322
+ filterCompany: '公司',
323
+ filterStage: '阶段',
324
+ filterStatus: '状态',
325
+ filterType: '类型',
326
+ filterClear: '清除筛选',
327
+ filterActiveNote: '{count} 个条件',
328
+ filterResult: '筛出 {shown} / {total} 个项目',
329
+ sortLabel: '排序',
330
+ sortAttention: '按待处理',
331
+ sortAmount: '按金额',
332
+ sortProgress: '按最新进展',
333
+ sortStage: '按阶段',
334
+ sortDirection: '切换升/降序',
335
+ keyboardHint: '↑↓ 选择 · Enter 打开 · Esc 返回 · / 搜索',
336
+ filteredEmptyTitle: '没有符合条件的项目',
337
+ filteredEmptyCopy: '把搜索词或筛选条件放宽一点,或者点「清除筛选」。',
338
+ filteredEmptyReset: '清除筛选',
339
+ // ---------- 0.3 · 卡片 / 看板 ----------
340
+ cardAmountLabel: '金额',
341
+ cardStageSince: '{days} 天未动',
342
+ cardNoStageSince: '阶段未填',
343
+ cardLatestProgress: '最新进展',
344
+ cardNoProgress: '还没有进展',
345
+ cardGapBadge: '{count} 处缺口',
346
+ cardGapBadgeHigh: '{count} 处高危',
347
+ cardOpen: '打开详情',
348
+ cardProgressCount: '{count} 次进展',
349
+ boardColumnCount: '{count} 个 · {amount} 万',
350
+ boardEmptyColumn: '这一列还没有项目',
351
+ boardClosedColumn: '已关闭',
352
+ boardUnknownColumn: '阶段未识别',
353
+ boardHighBadge: '{count} 高危',
354
+ tableProgressCell: '{date} · {count} 次',
355
+ tableStageSince: '{days} 天',
356
+ tableSortByThis: '按此列排序',
357
+ pendingExpand: '展开',
358
+ pendingCollapse: '收起',
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: '还没有写清测完之后客户会做什么决定。',
465
+ // ---------- 0.3 · 详情页 ----------
466
+ dtRailTitle: '项目档案',
467
+ dtStageSection: '阶段',
468
+ dtDimensionSection: '四维结果',
469
+ dtGapSection: '缺口',
470
+ dtNoGaps: '这个项目没有扫出缺口。',
471
+ dtPrevProject: '上一个',
472
+ dtNextProject: '下一个',
473
+ dtPosition: '第 {index} / {total} 个',
474
+ dtAmountLabel: '金额',
475
+ dtOwnerLabel: '负责人',
476
+ dtTechOwnerLabel: '客户技术责任人',
477
+ dtSalesLabel: '销售',
478
+ dtSponsorLabel: '业务决策人',
479
+ dtStageSinceLabel: '进入阶段',
480
+ dtPriorityLabel: '优先级',
481
+ dtUnset: '未填',
482
+ dtProgressTitle: '进展流',
483
+ dtProgressEmptyTitle: '还没有进展记录',
484
+ dtProgressEmptyCopy: '第一次进展后,这里会显示完整时间线。',
485
+ dtProgressGoal: '目标',
486
+ dtProgressScope: '范围',
487
+ dtProgressActual: '实际',
488
+ dtProgressCompletion: '完成度',
489
+ dtProgressEvidence: '证据',
490
+ dtProgressEvidenceNone: '无证据',
491
+ dtProgressCustomer: '客户',
492
+ dtProgressCustomerNone: '未同步客户',
493
+ dtProgressFeedback: '反馈',
494
+ dtProgressNext: '下一步',
495
+ dtProgressNextNone: '没有安排下一步',
496
+ dtProgressDeadline: '截止',
497
+ dtProgressSeq: '第 {seq} 次',
498
+ dtProgressCount: '共 {count} 次',
499
+ dtDimensionAuto: '自动推导',
500
+ dtDimensionManual: '人工填',
501
+ dtDimensionEmptyReason: '结论里没有填,也没有从进展推导出来',
502
+ dtG0Title: 'G0 必填完整度',
503
+ dtG0Present: '已填',
504
+ dtG0Missing: '缺失',
505
+ dtG0FiveRequired: '{present} / 5 已填',
506
+ dtG0ReviewLine: '{reviewer} 于 {date} 评审,结论「{conclusion}」',
507
+ dtG0Unreviewed: '还没有评审结论',
508
+ dtPlanTitle: '计划(G1 / G2)',
509
+ dtPlanCriteria: '成功指标',
510
+ dtPlanCriteriaNone: '还没有定义成功指标',
511
+ dtPlanCriteriaCount: '{count} 项(要求 2–3)',
512
+ dtPlanMetric: '指标',
513
+ dtPlanBaseline: '基线',
514
+ dtPlanTarget: '目标',
515
+ dtPlanScenarios: '验证场景',
516
+ dtPlanScenariosNone: '还没有定义验证场景',
517
+ dtPlanScenariosCount: '{count} 个(要求 3–5)',
518
+ dtPlanRisks: '风险',
519
+ dtPlanRisksNone: '没有登记风险',
520
+ dtPlanRisksCount: '{count} 个(上限 3)',
521
+ dtPlanMitigation: '应对',
522
+ dtPlanPain: '客户痛点',
523
+ dtPlanRecognition: '期望认可',
524
+ dtPlanEdge: '我方赢点',
525
+ dtPlanWindow: '计划起止',
526
+ dtPlanReportNodes: '汇报节点',
527
+ dtPlanGate1: 'G1 结论',
528
+ dtPlanGate2: 'G2 Ready',
529
+ dtOutcomeTitle: '结论',
530
+ dtOutcomeProved: '我们证明了什么',
531
+ dtOutcomeRecognized: '客户认可了什么',
532
+ dtOutcomeNext: '下一步业务动作',
533
+ dtOutcomeMilestone: 'Next Milestone',
534
+ dtOutcomeMilestoneNone: '没有下一步里程碑——价值做出来了,没有转化路径',
535
+ dtOutcomeMilestoneOwner: '负责人 {owner}',
536
+ dtOutcomeMilestoneDeadline: '截止 {date}',
537
+ dtOutcomeMilestoneStatus: '状态 {status}',
538
+ dtOutcomeProof: '我方证据',
539
+ dtOutcomeRemaining: '剩余风险',
540
+ dtOutcomeOverall: '总体结论',
541
+ dtOutcomeReviewed: '复盘日期',
542
+ dtSectionNav: '跳到区块',
543
+ // ---------- 0.3 · 风险 / 时间线 ----------
544
+ riskLaneTitle: '严重度分布',
545
+ riskLaneNote: '高 {high} · 中 {medium} · 低 {low} · 未评级 {unset}',
546
+ riskBoardNote: '共 {count} 条风险,来自 {projects} 个项目',
547
+ riskSourceProject: '来源项目',
548
+ riskSeverityColumn: '等级',
549
+ riskMitigationColumn: '应对措施',
550
+ tlLaneTitle: '月度分布',
551
+ tlLaneNote: '共 {count} 条进展',
552
+ tlEntryGoal: '目标',
553
+ tlEntryActual: '实际',
554
+ tlEntryEvidence: '证据',
555
+ tlEntryCustomer: '客户',
556
+ tlEntryNext: '下一步',
557
+ tlSilentTitle: '完全没有进展记录的项目',
558
+ tlSilentNote: '{count} 个',
559
+ };
560
+ /** English dictionary; every key mirrors {@link zh}. */
561
+ export const en = {
562
+ nav: 'Work Dashboard',
563
+ title: 'Work Dashboard',
564
+ subtitle: 'A multi-module operations dashboard: see what is actually moving before deciding what to fix next.',
565
+ dataSource: 'Data source',
566
+ dataSourceLine: 'Source: github.com/{repository}',
567
+ eyebrow: 'Work Dashboard · read-only',
568
+ modulePoc: 'POC Operations',
569
+ modulePocHint: 'Stage, four dimensions and gaps',
570
+ moduleMore: 'More modules to come',
571
+ refresh: 'Refresh',
572
+ refreshing: 'Pulling…',
573
+ refreshingHint: 'The first pull takes a few seconds',
574
+ refreshSettings: 'Refresh settings',
575
+ refreshedAt: 'Refreshed {time}',
576
+ neverRefreshed: 'Not pulled yet',
577
+ autoRefresh: 'Auto refresh',
578
+ intervalOff: 'Off (manual only)',
579
+ interval10m: 'Every 10 minutes',
580
+ interval1h: 'Every hour',
581
+ intervalCustom: 'Custom',
582
+ customMinutes: 'minutes',
583
+ save: 'Save',
584
+ cancel: 'Cancel',
585
+ customMinutesError: 'Enter a whole number of minutes between {min} and {max}',
586
+ autoRefreshOn: 'Auto refresh: every {minutes} min (only while this page is open)',
587
+ autoRefreshOff: 'Auto refresh: off',
588
+ autoRefreshFailed: 'Scheduled refresh failed; retrying next cycle',
589
+ emptyTitle: 'No data yet',
590
+ emptyCopy: 'Hit Refresh to pull the POC ledger from GitHub',
591
+ emptyRefresh: 'Refresh now',
592
+ emptyPath: 'Cache location',
593
+ failureTitle: 'Pull failed',
594
+ failureReason: 'Reason',
595
+ failureRetry: 'Retry',
596
+ failureHint: 'Check the network and gh login, then retry.',
597
+ loading: 'Loading…',
598
+ loadingDetail: 'Reading the project…',
599
+ statTotal: 'Total',
600
+ statClosed: 'Closed',
601
+ tableTitle: 'Projects',
602
+ colProject: 'Project',
603
+ colStage: 'Stage',
604
+ colDimensions: 'Four dimensions',
605
+ colGaps: 'Gaps',
606
+ colAction: 'Action',
607
+ detail: 'Detail',
608
+ openDetail: 'Open detail',
609
+ noProjects: 'The repository has no projects yet',
610
+ warningsTitle: 'Parse notes',
611
+ dimAchievement: 'Goal met',
612
+ dimEvidence: 'Evidence',
613
+ dimRecognition: 'Recognition',
614
+ dimNextMilestone: 'Next step',
615
+ dimPresent: 'Present',
616
+ dimMissing: 'Missing',
617
+ dimensionCount: '{count}/4',
618
+ stageTrack: 'Stage track',
619
+ stageG0: 'G0 Intake',
620
+ stageG1: 'G1 Design',
621
+ stageG2: 'G2 Validation',
622
+ stageG3: 'G3 Results',
623
+ stageG4: 'G4 Conversion',
624
+ stageClosed: 'Closed',
625
+ stageDone: 'Done',
626
+ stageCurrent: 'Current',
627
+ stagePending: 'Not started',
628
+ stageUnknown: 'Unrecognized stage',
629
+ gapPriority: 'Priority {value}',
630
+ back: '← Back',
631
+ detailIdentity: '{pocId} · {stage} · {org}',
632
+ detailMissing: 'Project not found',
633
+ detailMissingCopy: 'No project with poc_id {pocId} exists in the repository; it may have been removed. Refresh and retry.',
634
+ sectionG0: 'G0 intake prerequisites',
635
+ sectionGates: 'Stage records',
636
+ sectionScope: 'Indicators / scenarios / risks',
637
+ sectionResult: 'Result and next step',
638
+ sectionTimeline: 'Timeline',
639
+ sectionGaps: 'Gaps in this project',
640
+ whyCustomerTest: 'Why the customer tests',
641
+ whyWeTest: 'Why we test',
642
+ nextActionGoal: 'Next action goal',
643
+ customerTechOwner: 'Customer tech owner',
644
+ owner: 'Our owner',
645
+ salesInitiator: 'Sales initiator',
646
+ type: 'Project type',
647
+ tier: 'Tier',
648
+ gateDate: 'Completed',
649
+ gateCounts: 'Indicators {indicators} · Scenarios {scenarios} · Risks {risks}',
650
+ gatePrereq: 'Prerequisites ready {ready}',
651
+ gateEngineers: 'Engineers invested {invested}',
652
+ yes: 'yes',
653
+ no: 'no',
654
+ criteriaTitle: 'Success criteria',
655
+ scenariosTitle: 'Validation scenarios',
656
+ risksTitle: 'Risks',
657
+ criteriaCount: '{count}',
658
+ scenariosCount: '{count}',
659
+ risksCount: '{count}',
660
+ criteriaLimitHint: '2–3 required',
661
+ scenariosLimitHint: '3–5 required',
662
+ risksLimitHint: 'At most 3',
663
+ emptyField: '(empty)',
664
+ riskLevel: 'Level',
665
+ riskMitigation: 'Mitigation',
666
+ round: 'Round {round}',
667
+ roundUnnumbered: 'Entry',
668
+ noTimeline: 'No timeline entries yet',
669
+ evidenceLabel: 'Evidence',
670
+ feedbackLabel: 'Customer feedback',
671
+ recognitionLabel: 'Recognition scope',
672
+ 'error.network': 'Cannot reach github.com; check the network.',
673
+ 'error.not-found': 'The repository does not exist, or this account cannot see it.',
674
+ 'error.timeout': 'The pull timed out; try again shortly.',
675
+ 'error.git-missing': 'The git command is not available on this machine.',
676
+ 'error.busy': 'A refresh is already running; try again in a moment.',
677
+ 'error.no-projects': 'The repository has no projects/ directory.',
678
+ 'error.cache-not-owned': 'The cache directory exists and was not created by this plugin; refusing to clear it.',
679
+ 'error.unknown-project': 'Project not found.',
680
+ 'error.internal': 'Internal Host error; check the DSH log.',
681
+ 'error.failed': 'The operation failed.',
682
+ // Submit errors the Host can report
683
+ // Milestone 3: export form
684
+ exportNav: 'Export form',
685
+ exportTitle: 'Export a form for a colleague',
686
+ exportSubtitle: 'Pick projects and generate one self-contained HTML file: open it, fill it in, auto-saved, live-validated, then download the YAML.',
687
+ exportSelectAll: 'Select all',
688
+ exportSelectNone: 'Clear',
689
+ exportSelected: '{count} project(s) selected',
690
+ exportBlank: 'Export a blank form only (for a new project)',
691
+ exportBlankHint: 'With nothing selected, a blank "new project" form is generated.',
692
+ exportGenerate: 'Generate and download',
693
+ exportGenerating: 'Generating…',
694
+ exportDone: 'Downloaded {name}',
695
+ exportSize: '{kb} KB',
696
+ exportHint: 'The form works fully offline: no CDN, no external fonts, no server. The .yaml it produces can be dropped straight into this plugin\'s import page.',
697
+ exportNoProjects: 'Refresh first to pull the ledger before exporting an existing project.',
698
+ exportFailed: 'Could not generate the form',
699
+ // Milestone 3: risk board
700
+ risksNav: 'Risk board',
701
+ risksBoardTitle: 'Risk board',
702
+ risksSubtitle: 'Every project\'s risks, highest severity first.',
703
+ riskHigh: 'High',
704
+ riskMedium: 'Medium',
705
+ riskLow: 'Low',
706
+ riskUnset: 'Unrated',
707
+ riskNoRisks: 'No project registered a risk — which is itself worth questioning.',
708
+ riskCounts: 'High {high} · Medium {medium} · Low {low} · Unrated {unset}',
709
+ riskProjects: '{withRisks} / {total} project(s) have risks on record',
710
+ riskUnsetHint: '"Unrated" is not "harmless": it means nobody judged it yet, so it sorts last.',
711
+ riskGapContext: '{count} gap(s) in the same project ({high} high)',
712
+ // Milestone 3: global timeline
713
+ timelineNav: 'Timeline',
714
+ timelineTitle: 'Global timeline',
715
+ timelineSubtitle: 'Every review round of every project, newest first.',
716
+ timelineRange: '{from} to {to}',
717
+ timelineCount: '{count} entries',
718
+ timelineEmpty: 'No review rounds recorded yet.',
719
+ timelineSilent: '{count} project(s) have no timeline at all',
720
+ timelineSilentHint: 'Without a timeline there is no way to tell whether those projects moved.',
721
+ timelineMonth: '{month}: {count}',
722
+ timelineNoEvidence: 'No evidence',
723
+ timelineNoFeedback: 'No customer feedback',
724
+ timelineActual: 'Actual result',
725
+ timelineRoundShort: 'Round {round}',
726
+ statAmountUnit: '10k CNY',
727
+ colOrg: 'System / company',
728
+ colAmount: 'Amount',
729
+ colLatestProgress: 'Latest progress',
730
+ noProgressYet: 'No progress yet',
731
+ progressGoal: 'Goal',
732
+ progressItems: 'Scope',
733
+ progressActual: 'Actual',
734
+ progressSyncedWith: 'Synced with',
735
+ progressNext: 'Next',
736
+ progressDeadline: 'Due',
737
+ progressTypeUnset: 'Unclassified',
738
+ progressCount: '{count} entries',
739
+ sectionProgress: 'Progress stream',
740
+ sectionFourDim: 'Four dimensions',
741
+ progressEmptyTitle: 'No progress yet',
742
+ progressEmptyCopy: 'After the first update, the full timeline appears here.',
743
+ sectionIdentity: 'Identity',
744
+ sectionPlan: 'Plan (G1/G2)',
745
+ sectionOutcome: 'Outcome',
746
+ dimAuto: 'derived',
747
+ dimManual: 'manual',
748
+ g0Complete: 'G0 complete',
749
+ g0Missing: '{count} required fields missing',
750
+ g0Conclusion: 'G0 conclusion',
751
+ g0Reviewer: 'G0 reviewer',
752
+ g0ReviewedAt: 'Reviewed at',
753
+ decisionChain: 'Process / decision chain',
754
+ postPocDecision: 'Post-POC decision',
755
+ competitor: 'Main competitor',
756
+ customerPain: 'Customer pain',
757
+ expectedRecognition: 'Expected recognition',
758
+ ourEdge: 'Our edge',
759
+ gate1Conclusion: 'G1 conclusion',
760
+ gate2Ready: 'G2 ready state',
761
+ timelineWindow: 'Planned window',
762
+ outcomeAchievement: 'Achievement',
763
+ outcomeRecognition: 'Customer recognition',
764
+ outcomeOurProof: 'Our proof',
765
+ outcomeRemainingRisks: 'Remaining risks',
766
+ outcomeProved: 'What we proved',
767
+ outcomeRecognized: 'What was recognised',
768
+ outcomeNextBusiness: 'Next business action',
769
+ outcomeMilestone: 'Next milestone',
770
+ outcomeBusinessOwner: 'Milestone owner',
771
+ outcomeBusinessDeadline: 'Milestone due',
772
+ outcomeBusinessStatus: 'Milestone status',
773
+ outcomeOverall: 'Overall conclusion',
774
+ outcomeReviewedAt: 'Review date',
775
+ execSponsor: 'Exec sponsor',
776
+ priority: 'Priority',
777
+ stageSince: 'In current stage since',
778
+ daysInStage: '{days} days here',
779
+ completionLabel: 'Completion',
780
+ gate3_1Label: 'G3-1',
781
+ gate3_2Label: 'G3-2',
782
+ 'gap.R1-gate0-missing.title': 'G0 required fields missing',
783
+ 'gap.R1-gate0-missing.copy': '{count} of the five G0 fields are missing: {missing}.',
784
+ 'gap.R2-large-amount-no-g0.title': '{amountWan}k project has no G0 clearance',
785
+ 'gap.R2-large-amount-no-g0.copy': 'The amount reaches the large-project threshold while the G0 conclusion is "{conclusion}" — commitment ahead of judgement.',
786
+ 'gap.R3-g0-passed-no-plan.title': 'G0 passed but no success criteria',
787
+ 'gap.R3-g0-passed-no-plan.copy': 'The gate passed, yet nobody defined what success means, so acceptance is impossible.',
788
+ 'gap.R4-criteria-count.title': '{count} criteria (need {min}-{max})',
789
+ 'gap.R4-criteria-count.copy': '{count} criteria, outside the {min}-{max} range; measuring everything means measuring nothing.',
790
+ 'gap.R5-scenarios-count.title': '{count} scenarios (need {min}-{max})',
791
+ 'gap.R5-scenarios-count.copy': '{count} scenarios, outside the {min}-{max} range; an unbounded scope drags the cycle out.',
792
+ 'gap.R6-risks-overflow.title': '{count} risks (max {max})',
793
+ 'gap.R6-risks-overflow.copy': '{count} risks listed, above the {max} limit; an over-long risk list has no priority.',
794
+ 'gap.R7-g2-not-ready.title': 'Progress exists while G2 is not ready',
795
+ 'gap.R7-g2-not-ready.copy': 'Prerequisites are "{ready}" but progress has already been recorded, so effort may be wasted.',
796
+ 'gap.R8-progress-no-evidence.title': 'Progress without evidence',
797
+ 'gap.R8-progress-no-evidence.copy': 'Entry {seq} claims an actual result with nothing verifiable behind it.',
798
+ 'gap.R9-evidence-no-recognition.title': 'Evidence without customer recognition',
799
+ 'gap.R9-evidence-no-recognition.copy': 'Evidence exists while recognition is "{recognition}" — only we think it went well.',
800
+ 'gap.R10-g3-1-without-g3-2.title': 'G3-1 provable but G3-2 unconfirmed',
801
+ 'gap.R10-g3-1-without-g3-2.copy': 'The result is marked provable while confirmation is "{gate3_2}"; written customer sign-off is missing.',
802
+ 'gap.R11-no-next-milestone.title': 'Achieved but no next milestone',
803
+ 'gap.R11-no-next-milestone.copy': 'The result was achieved with no next milestone: value created, none banked.',
804
+ 'gap.R12-stage-stalled.title': '{days} days in {stage}',
805
+ 'gap.R12-stage-stalled.copy': 'The project has sat in its current stage for {days} days (threshold {stallDays}) with no movement.',
806
+ // ---------- 0.3 · portfolio band ----------
807
+ bandTitle: 'Portfolio view',
808
+ bandNote: '{count} projects · {amount} (10k CNY)',
809
+ bandStages: 'Stage distribution',
810
+ bandStagesNote: 'by current stage',
811
+ bandOrgs: 'System / company',
812
+ bandOrgsNote: 'by amount',
813
+ bandTypes: 'Project types',
814
+ bandTypesNote: 'by count',
815
+ bandAmounts: 'Amount concentration',
816
+ bandAmountsNote: 'top 5',
817
+ bandDims: 'Dimension coverage',
818
+ bandDimsNote: 'share of projects with a value',
819
+ bandGapRules: 'Gap rules fired',
820
+ bandGapRulesNote: '{count} findings',
821
+ bandActivity: 'Progress activity',
822
+ bandActivityNote: 'entries per month',
823
+ chartNoData: 'No data',
824
+ stageCountLabel: '{count}',
825
+ stageAmountLabel: '{amount} (10k)',
826
+ stageHighLabel: '{count} with a high gap',
827
+ orgProjectLabel: '{count}',
828
+ orgAmountLabel: '{amount} (10k)',
829
+ orgHighLabel: '{count} high',
830
+ typeLegendNote: '{count} · {amount} (10k)',
831
+ amountShareLabel: '{share}%',
832
+ amountConcentrationLabel: 'Largest project is {share}% of the total',
833
+ amountMissingLabel: '{count} project(s) have no amount',
834
+ concentrationHigh: 'Highly concentrated: one project holds more than a third of the total, so the risk is not spread.',
835
+ concentrationNormal: 'Normal spread: no single project holds more than a third of the total.',
836
+ coveragePresent: '{present} / {total}',
837
+ coverageMissingNote: '{count} missing',
838
+ activityLastLabel: 'Latest progress {date}',
839
+ activityNoneLabel: 'No progress recorded anywhere yet',
840
+ gapRuleFiresLabel: '{count}×',
841
+ gapRuleLegendHigh: 'High',
842
+ gapRuleLegendMedium: 'Notice',
843
+ // ---------- 0.3 · toolbar ----------
844
+ viewLabel: 'View',
845
+ viewCards: 'Cards',
846
+ viewBoard: 'Board',
847
+ viewTable: 'Table',
848
+ viewCardsHint: 'See what each project lacks, at a glance',
849
+ viewBoardHint: 'Columns by stage, to read the pile-up',
850
+ viewTableHint: 'Compact rows for line-by-line comparison',
851
+ searchLabel: 'Search',
852
+ searchPlaceholder: 'Name / id / owner / company',
853
+ searchClear: 'Clear search',
854
+ filterLabel: 'Filters',
855
+ filterAll: 'All',
856
+ filterSystem: 'System',
857
+ filterCompany: 'Company',
858
+ filterStage: 'Stage',
859
+ filterStatus: 'Status',
860
+ filterType: 'Type',
861
+ filterClear: 'Clear filters',
862
+ filterActiveNote: '{count} active',
863
+ filterResult: '{shown} of {total} projects',
864
+ sortLabel: 'Sort',
865
+ sortAttention: 'By attention',
866
+ sortAmount: 'By amount',
867
+ sortProgress: 'By latest progress',
868
+ sortStage: 'By stage',
869
+ sortDirection: 'Toggle ascending / descending',
870
+ keyboardHint: '↑↓ select · Enter open · Esc back · / search',
871
+ filteredEmptyTitle: 'No project matches',
872
+ filteredEmptyCopy: 'Loosen the search term or filters, or hit "Clear filters".',
873
+ filteredEmptyReset: 'Clear filters',
874
+ // ---------- 0.3 · cards / board ----------
875
+ cardAmountLabel: 'Amount',
876
+ cardStageSince: '{days} days idle',
877
+ cardNoStageSince: 'No stage date',
878
+ cardLatestProgress: 'Latest progress',
879
+ cardNoProgress: 'No progress yet',
880
+ cardGapBadge: '{count} gaps',
881
+ cardGapBadgeHigh: '{count} high',
882
+ cardOpen: 'Open detail',
883
+ cardProgressCount: '{count} entries',
884
+ boardColumnCount: '{count} · {amount} (10k)',
885
+ boardEmptyColumn: 'No project in this column',
886
+ boardClosedColumn: 'Closed',
887
+ boardUnknownColumn: 'Unrecognized stage',
888
+ boardHighBadge: '{count} high',
889
+ tableProgressCell: '{date} · {count} entries',
890
+ tableStageSince: '{days} days',
891
+ tableSortByThis: 'Sort by this column',
892
+ pendingExpand: 'Expand',
893
+ pendingCollapse: 'Collapse',
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.',
1000
+ // ---------- 0.3 · detail ----------
1001
+ dtRailTitle: 'Project file',
1002
+ dtStageSection: 'Stage',
1003
+ dtDimensionSection: 'Four dimensions',
1004
+ dtGapSection: 'Gaps',
1005
+ dtNoGaps: 'No gap found for this project.',
1006
+ dtPrevProject: 'Previous',
1007
+ dtNextProject: 'Next',
1008
+ dtPosition: '{index} of {total}',
1009
+ dtAmountLabel: 'Amount',
1010
+ dtOwnerLabel: 'Owner',
1011
+ dtTechOwnerLabel: 'Customer tech owner',
1012
+ dtSalesLabel: 'Sales',
1013
+ dtSponsorLabel: 'Business sponsor',
1014
+ dtStageSinceLabel: 'In stage since',
1015
+ dtPriorityLabel: 'Priority',
1016
+ dtUnset: 'Not set',
1017
+ dtProgressTitle: 'Progress stream',
1018
+ dtProgressEmptyTitle: 'No progress yet',
1019
+ dtProgressEmptyCopy: 'After the first update, the full timeline appears here.',
1020
+ dtProgressGoal: 'Goal',
1021
+ dtProgressScope: 'Scope',
1022
+ dtProgressActual: 'Actual',
1023
+ dtProgressCompletion: 'Completion',
1024
+ dtProgressEvidence: 'Evidence',
1025
+ dtProgressEvidenceNone: 'No evidence',
1026
+ dtProgressCustomer: 'Customer',
1027
+ dtProgressCustomerNone: 'Not synced yet',
1028
+ dtProgressFeedback: 'Feedback',
1029
+ dtProgressNext: 'Next',
1030
+ dtProgressNextNone: 'No next step scheduled',
1031
+ dtProgressDeadline: 'Due',
1032
+ dtProgressSeq: 'Entry {seq}',
1033
+ dtProgressCount: '{count} entries',
1034
+ dtDimensionAuto: 'derived',
1035
+ dtDimensionManual: 'manual',
1036
+ dtDimensionEmptyReason: 'Not in the conclusion, and not derivable from progress',
1037
+ dtG0Title: 'G0 completeness',
1038
+ dtG0Present: 'Present',
1039
+ dtG0Missing: 'Missing',
1040
+ dtG0FiveRequired: '{present} of 5 present',
1041
+ dtG0ReviewLine: 'Reviewed by {reviewer} on {date}: "{conclusion}"',
1042
+ dtG0Unreviewed: 'No review conclusion yet',
1043
+ dtPlanTitle: 'Plan (G1 / G2)',
1044
+ dtPlanCriteria: 'Success criteria',
1045
+ dtPlanCriteriaNone: 'No success criterion defined yet',
1046
+ dtPlanCriteriaCount: '{count} (2–3 required)',
1047
+ dtPlanMetric: 'Metric',
1048
+ dtPlanBaseline: 'Baseline',
1049
+ dtPlanTarget: 'Target',
1050
+ dtPlanScenarios: 'Validation scenarios',
1051
+ dtPlanScenariosNone: 'No validation scenario defined yet',
1052
+ dtPlanScenariosCount: '{count} (3–5 required)',
1053
+ dtPlanRisks: 'Risks',
1054
+ dtPlanRisksNone: 'No risk registered',
1055
+ dtPlanRisksCount: '{count} (max 3)',
1056
+ dtPlanMitigation: 'Mitigation',
1057
+ dtPlanPain: 'Customer pain',
1058
+ dtPlanRecognition: 'Expected recognition',
1059
+ dtPlanEdge: 'Our edge',
1060
+ dtPlanWindow: 'Planned window',
1061
+ dtPlanReportNodes: 'Report nodes',
1062
+ dtPlanGate1: 'G1 conclusion',
1063
+ dtPlanGate2: 'G2 ready',
1064
+ dtOutcomeTitle: 'Conclusion',
1065
+ dtOutcomeProved: 'What we proved',
1066
+ dtOutcomeRecognized: 'What the customer recognised',
1067
+ dtOutcomeNext: 'Next business action',
1068
+ dtOutcomeMilestone: 'Next milestone',
1069
+ dtOutcomeMilestoneNone: 'No next milestone — value was created, but none of it was banked',
1070
+ dtOutcomeMilestoneOwner: 'Owner {owner}',
1071
+ dtOutcomeMilestoneDeadline: 'Due {date}',
1072
+ dtOutcomeMilestoneStatus: 'Status {status}',
1073
+ dtOutcomeProof: 'Our proof',
1074
+ dtOutcomeRemaining: 'Remaining risks',
1075
+ dtOutcomeOverall: 'Overall conclusion',
1076
+ dtOutcomeReviewed: 'Reviewed',
1077
+ dtSectionNav: 'Jump to section',
1078
+ // ---------- 0.3 · risks / timeline ----------
1079
+ riskLaneTitle: 'Severity distribution',
1080
+ riskLaneNote: 'High {high} · Medium {medium} · Low {low} · Unrated {unset}',
1081
+ riskBoardNote: '{count} risks from {projects} projects',
1082
+ riskSourceProject: 'Source project',
1083
+ riskSeverityColumn: 'Level',
1084
+ riskMitigationColumn: 'Mitigation',
1085
+ tlLaneTitle: 'Monthly distribution',
1086
+ tlLaneNote: '{count} entries',
1087
+ tlEntryGoal: 'Goal',
1088
+ tlEntryActual: 'Actual',
1089
+ tlEntryEvidence: 'Evidence',
1090
+ tlEntryCustomer: 'Customer',
1091
+ tlEntryNext: 'Next',
1092
+ tlSilentTitle: 'Projects with no progress at all',
1093
+ tlSilentNote: '{count}',
1094
+ };
1095
+ /** Read one key from a dictionary, falling back to the key itself. */
1096
+ export function textOf(dict, key) {
1097
+ return dict[key] ?? key;
1098
+ }
1099
+ /** Pick the dictionary for a locale id, falling back to English. */
1100
+ export function dictFor(locale) {
1101
+ return locale.toLowerCase().startsWith('zh') ? zh : en;
1102
+ }
1103
+ /**
1104
+ * Fill `{name}` placeholders from a parameter bag.
1105
+ *
1106
+ * The Client-side locale service interpolates the same way, but this helper is
1107
+ * also used for dictionary lookups that bypass the service (the initial paint
1108
+ * before the service's snapshot is available), and for the tests.
1109
+ */
1110
+ export function format(template, params = {}) {
1111
+ return template.replace(/\{([A-Za-z0-9_]+)\}/g, (whole, key) => (key in params ? String(params[key]) : whole));
1112
+ }