@skillre/dsh-plugin-work-dashboard 0.10.0 → 0.11.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.
- package/docs/DESIGN-/345/257/274/345/207/272/350/241/250/345/215/225/351/207/215/350/256/276/350/256/241.md +330 -0
- package/docs/DESIGN-/346/217/220/351/206/222/344/270/216Gate/350/257/204/345/256/241.md +518 -0
- package/docs/DESIGN-/350/241/250/345/215/225/345/210/206/351/230/266/346/256/265.md +420 -0
- package/lib/client/api.d.ts +1 -1
- package/lib/client/api.js +3 -1
- package/lib/client/css/base.d.ts +1 -1
- package/lib/client/css/base.js +30 -0
- package/lib/client/css/detail.d.ts +1 -1
- package/lib/client/css/detail.js +190 -18
- package/lib/client/text.js +50 -4
- package/lib/client.js +588 -584
- package/lib/form.d.ts +189 -9
- package/lib/form.js +1038 -188
- package/lib/index.js +5 -3
- package/lib/transport.d.ts +5 -2
- package/lib/transport.js +4 -1
- package/lib/types.d.ts +16 -2
- package/package.json +1 -1
- package/skills/poc-export/SKILL.md +18 -5
- package/skills/poc-submit/SKILL.md +62 -13
package/lib/client.js
CHANGED
|
@@ -99,7 +99,10 @@ window.__ModuleLoader__.load({
|
|
|
99
99
|
detail: (pocId, signal) => call({ action: "detail", pocId }, signal),
|
|
100
100
|
risks: (signal) => call({ action: "risks" }, signal),
|
|
101
101
|
timeline: (signal) => call({ action: "timeline" }, signal),
|
|
102
|
-
exportForm: (mode, pocIds, signal) => call(
|
|
102
|
+
exportForm: (mode, pocIds, intent, signal) => call(
|
|
103
|
+
intent === void 0 ? { action: "export-form", mode, pocIds: [...pocIds] } : { action: "export-form", mode, pocIds: [...pocIds], intent },
|
|
104
|
+
signal
|
|
105
|
+
)
|
|
103
106
|
};
|
|
104
107
|
}
|
|
105
108
|
|
|
@@ -252,12 +255,25 @@ window.__ModuleLoader__.load({
|
|
|
252
255
|
exportSelectNone: "\u6E05\u7A7A",
|
|
253
256
|
exportSelected: "\u5DF2\u9009 {count} \u4E2A\u9879\u76EE",
|
|
254
257
|
exportBlank: "\u53EA\u5BFC\u51FA\u7A7A\u767D\u8868\u5355\uFF08\u65B0\u5EFA\u9879\u76EE\u7528\uFF09",
|
|
255
|
-
exportBlankHint: "\
|
|
258
|
+
exportBlankHint: "\u8FD8\u6CA1\u52FE\u9009\u9879\u76EE\u3002\u81F3\u5C11\u9009\u4E00\u4E2A\uFF0C\u5426\u5219\u8868\u5355\u91CC\u6CA1\u6709\u53EF\u8865\u5145\u7684\u5BF9\u8C61\u3002",
|
|
259
|
+
// The three intents. They differ in WHAT the form asks, not just how much it
|
|
260
|
+
// shows, so each carries a one-line explanation rather than a bare label.
|
|
261
|
+
exportIntentLabel: "\u8FD9\u6B21\u8981\u505A\u4EC0\u4E48",
|
|
262
|
+
exportIntentNew: "\u65B0\u5EFA\u9879\u76EE",
|
|
263
|
+
exportIntentNewHint: "\u7ACB\u9879\u767B\u8BB0\uFF1A\u8EAB\u4EFD + G0 \u4E94\u5FC5\u586B",
|
|
264
|
+
exportIntentSupplement: "\u8865\u5145\u4FE1\u606F",
|
|
265
|
+
exportIntentSupplementHint: "\u53EA\u586B\u5F53\u524D\u9636\u6BB5\u8BE5\u586B\u7684\uFF0C\u5176\u4F59\u53EA\u8BFB",
|
|
266
|
+
exportIntentProgress: "\u8BB0\u5F55\u8FDB\u5C55",
|
|
267
|
+
exportIntentProgressHint: "\u53EA\u586B\u8FD9\u4E00\u8F6E\uFF0C\u4E00\u5C4F\u5B8C\u6210",
|
|
268
|
+
exportNewHint: "\u65B0\u5EFA\u9879\u76EE\u8868\u5355\u53EA\u95EE\u4E24\u4EF6\u4E8B\uFF1A\u9879\u76EE\u8EAB\u4EFD\uFF0C\u548C G0 \u7684\u4E94\u4E2A\u5FC5\u586B\u9879\u3002\u8BA1\u5212\uFF08\u6307\u6807\u3001\u573A\u666F\uFF09\u7559\u5230 G1 \u518D\u586B\u2014\u2014\u53F0\u8D26\u4E5F\u662F G0 \u901A\u8FC7\u4E4B\u540E\u624D\u8981\u6C42\u8BA1\u5212\u3002",
|
|
269
|
+
exportStageFilterLabel: "\u6309\u9636\u6BB5\u7B5B\u9009",
|
|
270
|
+
exportStageAll: "\u5168\u90E8\u9636\u6BB5",
|
|
271
|
+
exportStageEmpty: "\u8FD9\u4E2A\u9636\u6BB5\u4E0B\u6CA1\u6709\u9879\u76EE\u3002",
|
|
272
|
+
exportHint: "\u8868\u5355\u5B8C\u5168\u79BB\u7EBF\u53EF\u7528\uFF1A\u6CA1\u6709 CDN\u3001\u6CA1\u6709\u5916\u90E8\u5B57\u4F53\u3001\u6CA1\u6709\u670D\u52A1\u5668\u3002\u586B\u5B8C\u4E0B\u8F7D\u7684\u53D8\u66F4\u96C6\uFF08.json\uFF09\u53D1\u7ED9\u9879\u76EE\u8D1F\u8D23\u4EBA\uFF0C\u7531\u4ED6\u5408\u5E76\u8FDB\u53F0\u8D26\u3002",
|
|
256
273
|
exportGenerate: "\u751F\u6210\u5E76\u4E0B\u8F7D",
|
|
257
274
|
exportGenerating: "\u6B63\u5728\u751F\u6210\u2026",
|
|
258
275
|
exportDone: "\u5DF2\u4E0B\u8F7D {name}",
|
|
259
276
|
exportSize: "{kb} KB",
|
|
260
|
-
exportHint: "\u8868\u5355\u5B8C\u5168\u79BB\u7EBF\u53EF\u7528\uFF1A\u6CA1\u6709 CDN\u3001\u6CA1\u6709\u5916\u90E8\u5B57\u4F53\u3001\u6CA1\u6709\u670D\u52A1\u5668\u3002\u586B\u5B8C\u5BFC\u51FA\u7684 .yaml \u53EF\u4EE5\u76F4\u63A5\u62D6\u8FDB\u672C\u63D2\u4EF6\u7684\u5BFC\u5165\u9875\u3002",
|
|
261
277
|
exportNoProjects: "\u5148\u70B9\u3010\u5237\u65B0\u3011\u62C9\u5230\u6570\u636E\uFF0C\u624D\u80FD\u5BFC\u51FA\u5DF2\u6709\u9879\u76EE\u7684\u8868\u5355\u3002",
|
|
262
278
|
exportFailed: "\u751F\u6210\u8868\u5355\u5931\u8D25",
|
|
263
279
|
// Milestone 3: risk board
|
|
@@ -610,6 +626,17 @@ window.__ModuleLoader__.load({
|
|
|
610
626
|
dtPlanScenarioEvidence: "{count} \u9879\u8BC1\u636E",
|
|
611
627
|
dtProgressCountLabel: "{count} \u6761",
|
|
612
628
|
dtPlanScenarioDetail: "\u8BE6\u60C5",
|
|
629
|
+
dtG0GridTitle: "Gate 0 \xB7 \u5173\u952E\u4FE1\u606F\u533A",
|
|
630
|
+
dtG0ReviewTitle: "G0 Review",
|
|
631
|
+
dtG0Answered: "{answered} / {total} \u5DF2\u586B",
|
|
632
|
+
dtG0MissingNote: "\u8FD8\u6709 {count} \u9879\u5FC5\u586B\u6CA1\u5199\u3002G0 \u4E0D\u9F50\uFF0C\u540E\u9762\u6240\u6709\u5224\u65AD\u90FD\u4E0D\u53EF\u4FE1\u3002",
|
|
633
|
+
dtNextActionsTitle: "\u4E0B\u4E00\u6B65\u5DE5\u4F5C\u76EE\u6807\u53CA\u8BA1\u5212",
|
|
634
|
+
dtNextActionsKicker: "\u627F\u63A5 outcome.business.milestone \uFF0F progress[].next",
|
|
635
|
+
dtNextActionsNone: "\u8FD8\u6CA1\u6709\u4E0B\u4E00\u6B65\u3002POC \u505A\u6210\u4E86\u5374\u6CA1\u6709\u4E0B\u4E00\u6B65\uFF0C\u662F\u6700\u5BB9\u6613\u6F0F\u6389\u3001\u5546\u4E1A\u4EF7\u503C\u6700\u9AD8\u7684\u7F3A\u53E3\u3002",
|
|
636
|
+
dtNextGoal: "\u76EE\u6807",
|
|
637
|
+
dtNextOwner: "\u8D1F\u8D23\u4EBA",
|
|
638
|
+
dtNextDeadline: "\u622A\u6B62",
|
|
639
|
+
dtNextStatus: "\u72B6\u6001",
|
|
613
640
|
dtScenarioBack: "\u8FD4\u56DE\u603B\u89C8",
|
|
614
641
|
dtScenarioTitle: "\u573A\u666F\u8BE6\u60C5",
|
|
615
642
|
dtScenarioGoal: "\u6210\u529F\u76EE\u6807",
|
|
@@ -815,12 +842,23 @@ window.__ModuleLoader__.load({
|
|
|
815
842
|
exportSelectNone: "Clear",
|
|
816
843
|
exportSelected: "{count} project(s) selected",
|
|
817
844
|
exportBlank: "Export a blank form only (for a new project)",
|
|
818
|
-
exportBlankHint:
|
|
845
|
+
exportBlankHint: "Nothing selected yet. Pick at least one project, or there is nothing to fill in.",
|
|
846
|
+
exportIntentLabel: "What is this for",
|
|
847
|
+
exportIntentNew: "New project",
|
|
848
|
+
exportIntentNewHint: "Registration: identity + the five G0 requirements",
|
|
849
|
+
exportIntentSupplement: "Fill in a stage",
|
|
850
|
+
exportIntentSupplementHint: "Only the current stage is editable",
|
|
851
|
+
exportIntentProgress: "Record progress",
|
|
852
|
+
exportIntentProgressHint: "One round, one screen",
|
|
853
|
+
exportNewHint: "A new-project form asks only two things: the project identity, and the five Gate 0 requirements. The plan (criteria, scenarios) waits for G1 \u2014 the ledger only demands a plan after G0 passes.",
|
|
854
|
+
exportStageFilterLabel: "Filter by stage",
|
|
855
|
+
exportStageAll: "All stages",
|
|
856
|
+
exportStageEmpty: "No projects at this stage.",
|
|
857
|
+
exportHint: "The form works fully offline: no CDN, no external fonts, no server. The change set (.json) it produces goes to the project owner, who merges it into the ledger.",
|
|
819
858
|
exportGenerate: "Generate and download",
|
|
820
859
|
exportGenerating: "Generating\u2026",
|
|
821
860
|
exportDone: "Downloaded {name}",
|
|
822
861
|
exportSize: "{kb} KB",
|
|
823
|
-
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.",
|
|
824
862
|
exportNoProjects: "Refresh first to pull the ledger before exporting an existing project.",
|
|
825
863
|
exportFailed: "Could not generate the form",
|
|
826
864
|
// Milestone 3: risk board
|
|
@@ -1174,6 +1212,17 @@ window.__ModuleLoader__.load({
|
|
|
1174
1212
|
dtPlanScenarioEvidence: "{count} evidence",
|
|
1175
1213
|
dtProgressCountLabel: "{count} entries",
|
|
1176
1214
|
dtPlanScenarioDetail: "Detail",
|
|
1215
|
+
dtG0GridTitle: "Gate 0 \xB7 key information",
|
|
1216
|
+
dtG0ReviewTitle: "G0 review",
|
|
1217
|
+
dtG0Answered: "{answered} / {total} answered",
|
|
1218
|
+
dtG0MissingNote: "{count} required answer(s) still missing. Until G0 is complete, nothing downstream is trustworthy.",
|
|
1219
|
+
dtNextActionsTitle: "Next steps",
|
|
1220
|
+
dtNextActionsKicker: "outcome.business.milestone \uFF0F progress[].next",
|
|
1221
|
+
dtNextActionsNone: "No next step yet. A pilot that worked with nothing following is the most expensive gap.",
|
|
1222
|
+
dtNextGoal: "Goal",
|
|
1223
|
+
dtNextOwner: "Owner",
|
|
1224
|
+
dtNextDeadline: "Due",
|
|
1225
|
+
dtNextStatus: "Status",
|
|
1177
1226
|
dtScenarioBack: "Back to overview",
|
|
1178
1227
|
dtScenarioTitle: "Scenario detail",
|
|
1179
1228
|
dtScenarioGoal: "Success goal",
|
|
@@ -4092,107 +4141,9 @@ window.__ModuleLoader__.load({
|
|
|
4092
4141
|
] }, group.pocId)) })
|
|
4093
4142
|
] });
|
|
4094
4143
|
}
|
|
4095
|
-
var G0_WORK_LABEL = {
|
|
4096
|
-
why_customer: "whyCustomerTest",
|
|
4097
|
-
why_us: "whyWeTest",
|
|
4098
|
-
decision_chain: "decisionChain",
|
|
4099
|
-
post_poc_decision: "postPocDecision",
|
|
4100
|
-
tech_owner: "customerTechOwner"
|
|
4101
|
-
};
|
|
4102
|
-
function Worklist({ detail, rows, t }) {
|
|
4103
|
-
const items = (0, import_react.useMemo)(() => {
|
|
4104
|
-
const next = [];
|
|
4105
|
-
const missing = detail.gate0.checklist.filter((item) => !item.present);
|
|
4106
|
-
for (const [index, item] of missing.entries()) {
|
|
4107
|
-
const label = t(G0_WORK_LABEL[item.field] ?? item.field);
|
|
4108
|
-
next.push({
|
|
4109
|
-
key: `g0:${item.field}`,
|
|
4110
|
-
label: format(t("worklistG0Field"), { field: label }),
|
|
4111
|
-
// The count is a fact about the group, not about this row: repeating it
|
|
4112
|
-
// on all five lines turned the most actionable block on the page into a
|
|
4113
|
-
// wall of identical sentences. It is said once, on the first row.
|
|
4114
|
-
copy: index === 0 ? t("worklistG0Intro", { count: String(missing.length) }) : "",
|
|
4115
|
-
action: index === 0 ? t("worklistG0Hint") : ""
|
|
4116
|
-
});
|
|
4117
|
-
}
|
|
4118
|
-
const has = (source) => (rows ?? []).some((row) => row.source === source);
|
|
4119
|
-
if (has("missing-amount")) {
|
|
4120
|
-
next.push({
|
|
4121
|
-
key: "amount",
|
|
4122
|
-
label: t("worklistMissingAmountAction"),
|
|
4123
|
-
copy: t("worklistMissingAmountIntro"),
|
|
4124
|
-
action: ""
|
|
4125
|
-
});
|
|
4126
|
-
}
|
|
4127
|
-
if (has("no-stage-since")) {
|
|
4128
|
-
next.push({
|
|
4129
|
-
key: "stage-since",
|
|
4130
|
-
label: t("worklistMissingStageSinceAction"),
|
|
4131
|
-
copy: t("worklistMissingStageSinceIntro"),
|
|
4132
|
-
action: ""
|
|
4133
|
-
});
|
|
4134
|
-
}
|
|
4135
|
-
if (has("no-progress")) {
|
|
4136
|
-
next.push({
|
|
4137
|
-
key: "progress",
|
|
4138
|
-
label: t("worklistNoProgressAction"),
|
|
4139
|
-
copy: t("worklistNoProgressIntro"),
|
|
4140
|
-
action: ""
|
|
4141
|
-
});
|
|
4142
|
-
}
|
|
4143
|
-
if (detail.plan.criteria.length === 0) {
|
|
4144
|
-
next.push({
|
|
4145
|
-
key: "plan",
|
|
4146
|
-
label: t("worklistNoPlanAction"),
|
|
4147
|
-
copy: t("worklistNoPlanIntro"),
|
|
4148
|
-
action: ""
|
|
4149
|
-
});
|
|
4150
|
-
}
|
|
4151
|
-
if (detail.outcome.overall === "" && detail.outcome.achievement === "") {
|
|
4152
|
-
next.push({
|
|
4153
|
-
key: "outcome",
|
|
4154
|
-
label: t("worklistNoOutcomeAction"),
|
|
4155
|
-
copy: t("worklistNoOutcomeIntro"),
|
|
4156
|
-
action: ""
|
|
4157
|
-
});
|
|
4158
|
-
}
|
|
4159
|
-
return next;
|
|
4160
|
-
}, [detail, rows, t]);
|
|
4161
|
-
if (items.length === 0) {
|
|
4162
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "worklist", "data-empty": "true", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "worklist-done", children: t("worklistDone") }) });
|
|
4163
|
-
}
|
|
4164
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "worklist", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { className: "worklist-items", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("li", { className: "worklist-item", children: [
|
|
4165
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "worklist-mark", "aria-hidden": "true", children: "\u25A1" }),
|
|
4166
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "worklist-text", children: [
|
|
4167
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "worklist-label", children: item.label }),
|
|
4168
|
-
item.copy === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "worklist-copy", children: item.copy }),
|
|
4169
|
-
item.action === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "worklist-action", children: item.action })
|
|
4170
|
-
] })
|
|
4171
|
-
] }, item.key)) }) });
|
|
4172
|
-
}
|
|
4173
4144
|
|
|
4174
4145
|
// src/client/detail.tsx
|
|
4175
4146
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
4176
|
-
var DIMENSION_TEXT = {
|
|
4177
|
-
achievement: "dimAchievement",
|
|
4178
|
-
evidence: "dimEvidence",
|
|
4179
|
-
recognition: "dimRecognition",
|
|
4180
|
-
nextMilestone: "dimNextMilestone"
|
|
4181
|
-
};
|
|
4182
|
-
var DIMENSION_ORIGIN = {
|
|
4183
|
-
achievement: "auto",
|
|
4184
|
-
evidence: "manual",
|
|
4185
|
-
recognition: "auto",
|
|
4186
|
-
nextMilestone: "manual"
|
|
4187
|
-
};
|
|
4188
|
-
var G0_LABEL = {
|
|
4189
|
-
why_customer: "whyCustomerTest",
|
|
4190
|
-
why_us: "whyWeTest",
|
|
4191
|
-
decision_chain: "decisionChain",
|
|
4192
|
-
post_poc_decision: "postPocDecision",
|
|
4193
|
-
tech_owner: "customerTechOwner"
|
|
4194
|
-
};
|
|
4195
|
-
var G0_PROSE = /* @__PURE__ */ new Set(["why_customer", "why_us"]);
|
|
4196
4147
|
function recognitionTone(value) {
|
|
4197
4148
|
if (value === "\u8BA4\u53EF") return "green";
|
|
4198
4149
|
if (value === "\u90E8\u5206\u8BA4\u53EF" || value === "\u5F85\u786E\u8BA4") return "amber";
|
|
@@ -4252,42 +4203,6 @@ window.__ModuleLoader__.load({
|
|
|
4252
4203
|
if (!Number.isFinite(parsed)) return null;
|
|
4253
4204
|
return Math.min(1, Math.max(0, parsed / 100));
|
|
4254
4205
|
}
|
|
4255
|
-
var SKELETON_FOR = {
|
|
4256
|
-
G0: { sections: ["basic", "gate0", "plan"], title: "dtStageG0Title", copy: "dtStageG0Copy", next: "dtStageG0Next" },
|
|
4257
|
-
G1: { sections: ["basic", "plan", "progress"], title: "dtStageG1Title", copy: "dtStageG1Copy", next: "dtStageG1Next" },
|
|
4258
|
-
G2: { sections: ["basic", "plan", "progress"], title: "dtStageG2Title", copy: "dtStageG2Copy", next: "dtStageG2Next" },
|
|
4259
|
-
G3: { sections: ["progress", "dimensions", "basic"], title: "dtStageG3Title", copy: "dtStageG3Copy", next: "dtStageG3Next" },
|
|
4260
|
-
G4: { sections: ["dimensions", "outcome", "basic"], title: "dtStageG4Title", copy: "dtStageG4Copy", next: "dtStageG4Next" },
|
|
4261
|
-
closed: { sections: ["outcome", "dimensions", "basic"], title: "dtStageClosedTitle", copy: "dtStageClosedCopy", next: "dtStageG4Next" },
|
|
4262
|
-
unknown: {
|
|
4263
|
-
sections: ["basic", "progress", "dimensions", "gate0", "plan", "outcome"],
|
|
4264
|
-
title: "dtStageUnknownTitle",
|
|
4265
|
-
copy: "dtStageUnknownCopy",
|
|
4266
|
-
next: "dtStageUnknownCopy"
|
|
4267
|
-
}
|
|
4268
|
-
};
|
|
4269
|
-
function stageStateOf(detail) {
|
|
4270
|
-
const stage = detail.summary.stage;
|
|
4271
|
-
if (detail.summary.closed) return { done: true, pending: false };
|
|
4272
|
-
if (stage === null) return { done: false, pending: true };
|
|
4273
|
-
const index = STAGES.indexOf(stage);
|
|
4274
|
-
if (index === -1) return { done: false, pending: true };
|
|
4275
|
-
const done = detail.summary.stageDone[index] === true;
|
|
4276
|
-
return { done, pending: !done };
|
|
4277
|
-
}
|
|
4278
|
-
function StageContext({ stage, done, pending, t }) {
|
|
4279
|
-
const key = stage ?? "unknown";
|
|
4280
|
-
const skeleton = SKELETON_FOR[key] ?? SKELETON_FOR.unknown;
|
|
4281
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("section", { className: "dt-stage-context", "data-done": done, "aria-label": t("dtStageSkeleton"), children: [
|
|
4282
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-stage-context-head", children: [
|
|
4283
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-stage-context-title", children: t(skeleton.title) }),
|
|
4284
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-context-kicker", children: t("dtStageSkeleton") })
|
|
4285
|
-
] }),
|
|
4286
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dt-stage-context-copy", children: t(skeleton.copy) }),
|
|
4287
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dt-stage-context-next", children: t(skeleton.next) }),
|
|
4288
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-context-state", children: pending ? t("dtStagePending") : t("dtStageDone") })
|
|
4289
|
-
] });
|
|
4290
|
-
}
|
|
4291
4206
|
function Section({ title, kicker, children }) {
|
|
4292
4207
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("section", { className: "dsec", children: [
|
|
4293
4208
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "dsec-head", children: [
|
|
@@ -4306,196 +4221,26 @@ window.__ModuleLoader__.load({
|
|
|
4306
4221
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dt-prose-body prose", children: value === "" ? t("emptyField") : value })
|
|
4307
4222
|
] });
|
|
4308
4223
|
}
|
|
4309
|
-
function RailMeta({ label, value, t }) {
|
|
4310
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-meta-row", children: [
|
|
4311
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-meta-label", children: label }),
|
|
4312
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-meta-value", "data-empty": value === "", children: value === "" ? t("dtUnset") : value })
|
|
4313
|
-
] });
|
|
4314
|
-
}
|
|
4315
|
-
function StageTrackVertical({ detail, t }) {
|
|
4316
|
-
const currentIndex = detail.summary.stage === null ? -1 : STAGES.indexOf(detail.summary.stage);
|
|
4317
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ol", { className: "dt-stages", "aria-label": t("stageTrack"), children: STAGES.map((stage, index) => {
|
|
4318
|
-
const done = detail.summary.closed ? true : detail.summary.stageDone[index] === true;
|
|
4319
|
-
const current = !detail.summary.closed && index === currentIndex;
|
|
4320
|
-
const state = done ? t("stageDone") : current ? t("stageCurrent") : t("stagePending");
|
|
4321
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "dt-stage", "data-done": done, "data-current": current, "aria-current": current ? "step" : void 0, children: [
|
|
4322
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-marker", "aria-hidden": "true", children: done ? "\u2713" : current ? "\u25C9" : index + 1 }),
|
|
4323
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "dt-stage-text", children: [
|
|
4324
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-label", children: t(`stage${stage}`) }),
|
|
4325
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-stage-state", children: state })
|
|
4326
|
-
] })
|
|
4327
|
-
] }, stage);
|
|
4328
|
-
}) });
|
|
4329
|
-
}
|
|
4330
|
-
function IdentityRail({ props }) {
|
|
4331
|
-
const { detail, gaps, t, position, onPrev, onNext, onBack, locale } = props;
|
|
4332
|
-
const summary = detail.summary;
|
|
4333
|
-
const resolved = {
|
|
4334
|
-
achievement: detail.outcome.achievement,
|
|
4335
|
-
evidence: detail.outcome.ourProof,
|
|
4336
|
-
recognition: detail.outcome.customerRecognition,
|
|
4337
|
-
nextMilestone: detail.outcome.milestone
|
|
4338
|
-
};
|
|
4339
|
-
const present = {
|
|
4340
|
-
achievement: detail.outcome.achievement !== "",
|
|
4341
|
-
evidence: detail.outcome.ourProof !== "",
|
|
4342
|
-
recognition: detail.outcome.customerRecognition !== "",
|
|
4343
|
-
nextMilestone: detail.outcome.milestone !== ""
|
|
4344
|
-
};
|
|
4345
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("aside", { className: "dt-rail", "aria-label": t("dtRailTitle"), children: [
|
|
4346
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-head", children: [
|
|
4347
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: "btn btn-small dt-rail-back", onClick: onBack, children: t("back") }),
|
|
4348
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { className: "dt-rail-title", children: summary.name }),
|
|
4349
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-id mono", children: summary.pocId }),
|
|
4350
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-pills", children: [
|
|
4351
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "status-pill tone-blue", children: [
|
|
4352
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
|
|
4353
|
-
summary.closed ? t("stageClosed") : summary.stageLabel === "" ? t("stageUnknown") : summary.stageLabel
|
|
4354
|
-
] }),
|
|
4355
|
-
summary.status === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-pill tone-slate", children: summary.status }),
|
|
4356
|
-
summary.priority === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: `status-pill tone-${summary.priority === "strategic" ? "amber" : summary.priority === "high" ? "amber" : "slate"}`, children: t(priorityLabelKey(summary.priority)) })
|
|
4357
|
-
] })
|
|
4358
|
-
] }),
|
|
4359
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-amount", children: [
|
|
4360
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-amount-label", children: t("dtAmountLabel") }),
|
|
4361
|
-
summary.amountWan === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-amount-value", "data-empty": "true", children: t("dtUnset") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "dt-rail-amount-value", children: [
|
|
4362
|
-
formatWan(summary.amountWan),
|
|
4363
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-amount-unit", children: t("statAmountUnit") })
|
|
4364
|
-
] })
|
|
4365
|
-
] }),
|
|
4366
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-block", children: [
|
|
4367
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-rail-block-title", children: t("dtStageSection") }),
|
|
4368
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StageTrackVertical, { detail, t })
|
|
4369
|
-
] }),
|
|
4370
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-block", children: [
|
|
4371
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-rail-block-title", children: t("dtDimensionSection") }),
|
|
4372
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "dt-rail-dims", children: DIMENSIONS.map((key) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dim-mini", "data-present": present[key], "data-origin": DIMENSION_ORIGIN[key], title: `${t(DIMENSION_TEXT[key])}: ${present[key] ? resolved[key] : t("dimMissing")}`, children: [
|
|
4373
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-mini-mark", "aria-hidden": "true", children: present[key] ? "\u2713" : "\u2717" }),
|
|
4374
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-mini-label", children: t(DIMENSION_TEXT[key]) })
|
|
4375
|
-
] }, key)) })
|
|
4376
|
-
] }),
|
|
4377
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-block", children: [
|
|
4378
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-rail-block-title", children: t("dtGapSection") }),
|
|
4379
|
-
gaps.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dt-rail-empty", children: t("dtNoGaps") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "dt-rail-gaps", children: gaps.map((item) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "dt-rail-gap", "data-level": item.level, children: [
|
|
4380
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "dt-rail-gap-no", children: [
|
|
4381
|
-
"R",
|
|
4382
|
-
item.ruleNo
|
|
4383
|
-
] }),
|
|
4384
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-gap-title", children: format(t(`gap.${item.rule}.title`), { ...item.params ?? {} }) })
|
|
4385
|
-
] }, item.rule)) })
|
|
4386
|
-
] }),
|
|
4387
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-block", children: [
|
|
4388
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h2", { className: "dt-rail-block-title", children: t("sectionIdentity") }),
|
|
4389
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-meta", children: [
|
|
4390
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtCustomerCompany"), value: orgText(detail.org.company), t }),
|
|
4391
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtCustomerSystem"), value: orgText(detail.org.system), t }),
|
|
4392
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtOwnerLabel"), value: summary.owner, t }),
|
|
4393
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtTechOwnerLabel"), value: summary.techOwner, t }),
|
|
4394
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtSalesLabel"), value: detail.sales, t }),
|
|
4395
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtSponsorLabel"), value: detail.execSponsor, t }),
|
|
4396
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("type"), value: summary.pocType, t }),
|
|
4397
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtStageSinceLabel"), value: summary.stageSince === null ? "" : `${formatDate(summary.stageSince, locale)}${summary.daysInStage === null ? "" : ` \xB7 ${format(t("daysInStage"), { days: summary.daysInStage })}`}`, t }),
|
|
4398
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RailMeta, { label: t("dtPriorityLabel"), value: summary.priority === "" ? "" : t(priorityLabelKey(summary.priority)), t })
|
|
4399
|
-
] })
|
|
4400
|
-
] }),
|
|
4401
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-rail-nav", children: [
|
|
4402
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { type: "button", className: "btn btn-small", disabled: onPrev === null, onClick: onPrev ?? void 0, children: [
|
|
4403
|
-
"\u2190 ",
|
|
4404
|
-
t("dtPrevProject")
|
|
4405
|
-
] }),
|
|
4406
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-rail-position", children: format(t("dtPosition"), { index: position.index, total: position.total }) }),
|
|
4407
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { type: "button", className: "btn btn-small", disabled: onNext === null, onClick: onNext ?? void 0, children: [
|
|
4408
|
-
t("dtNextProject"),
|
|
4409
|
-
" \u2192"
|
|
4410
|
-
] })
|
|
4411
|
-
] })
|
|
4412
|
-
] });
|
|
4413
|
-
}
|
|
4414
4224
|
function ProgressItem({ entry, index, t, locale, detail }) {
|
|
4415
4225
|
const tone = recognitionTone(entry.customer.recognition);
|
|
4416
4226
|
const ratio = completionRatio(entry.completion);
|
|
4417
|
-
const hasNext = entry.next.goal !== "" || entry.next.owner !== "" || entry.next.deadline !== "";
|
|
4418
4227
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "prog-item", "data-tone": tone, "data-latest": index === 0, children: [
|
|
4419
4228
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "prog-gutter", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-node", "data-tone": tone }) }),
|
|
4420
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("article", { className: "prog-card", children: [
|
|
4229
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("article", { className: "prog-card prog-card-compact", children: [
|
|
4421
4230
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "prog-head", children: [
|
|
4422
4231
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("time", { className: "prog-date", dateTime: entry.date, children: formatDate(entry.date, locale) || "\u2014" }),
|
|
4423
4232
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-type", children: entry.type === "" ? t("progressTypeUnset") : entry.type }),
|
|
4424
|
-
entry.
|
|
4425
|
-
ratio === null ? entry.completion === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.
|
|
4426
|
-
t("dtProgressCompletion"),
|
|
4427
|
-
" ",
|
|
4428
|
-
entry.completion
|
|
4429
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "prog-meter", children: [
|
|
4430
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-meter-label", children: t("dtProgressCompletion") }),
|
|
4233
|
+
entry.change === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-change", children: entry.change }),
|
|
4234
|
+
ratio === null ? entry.completion === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-chip", children: entry.completion }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "prog-meter", children: [
|
|
4431
4235
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InlineMeter, { value: ratio, max: 1, tone: ratio >= 1 ? "green" : "blue" }),
|
|
4432
4236
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-meter-value", children: entry.completion })
|
|
4433
4237
|
] })
|
|
4434
4238
|
] }),
|
|
4435
|
-
entry.
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
entry.actual === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-actual", children: [
|
|
4441
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-pair-label", children: t("dtProgressActual") }),
|
|
4442
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-pair-value", children: entry.actual })
|
|
4443
|
-
] })
|
|
4444
|
-
] }),
|
|
4445
|
-
entry.scenarioIds.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-scope", children: [
|
|
4446
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-scope-label", children: t("dtProgressScope") }),
|
|
4447
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "chip-row", children: entry.scenarioIds.map((id, itemIndex) => {
|
|
4448
|
-
const linked = scenarioNameOf(detail, id);
|
|
4449
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: linked === "" ? id : linked }, `${id}:${itemIndex}`);
|
|
4450
|
-
}) })
|
|
4451
|
-
] }),
|
|
4452
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-evidence", children: [
|
|
4453
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-block-label", children: t("dtProgressEvidence") }),
|
|
4454
|
-
entry.evidence.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-missing", children: t("dtProgressEvidenceNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "chip-row", children: entry.evidence.map((item, itemIndex) => {
|
|
4455
|
-
const label = `${item.type === "" ? "" : `${item.type} \xB7 `}${item.title === "" ? t("emptyField") : item.title}`;
|
|
4456
|
-
return item.link === "" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: label }, `${item.title}:${itemIndex}`) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("a", { className: "chip prog-evidence-link", href: item.link, target: "_blank", rel: "noreferrer", title: item.link, children: [
|
|
4457
|
-
label,
|
|
4458
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-external", "aria-hidden": "true", children: "\u2197" })
|
|
4459
|
-
] }, `${item.title}:${itemIndex}`);
|
|
4460
|
-
}) })
|
|
4461
|
-
] }),
|
|
4462
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-customer", children: [
|
|
4463
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-block-label", children: t("dtProgressCustomer") }),
|
|
4464
|
-
entry.customer.syncedWith === "" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-missing", children: t("dtProgressCustomerNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: entry.customer.syncedWith }),
|
|
4465
|
-
entry.customer.recognition === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
|
|
4466
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
|
|
4467
|
-
entry.customer.recognition
|
|
4468
|
-
] }),
|
|
4469
|
-
entry.gate3_1 === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
|
|
4470
|
-
t("gate3_1Label"),
|
|
4471
|
-
"\uFF1A",
|
|
4472
|
-
entry.gate3_1
|
|
4473
|
-
] }),
|
|
4474
|
-
entry.gate3_2 === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
|
|
4475
|
-
t("gate3_2Label"),
|
|
4476
|
-
"\uFF1A",
|
|
4477
|
-
entry.gate3_2
|
|
4478
|
-
] })
|
|
4479
|
-
] }),
|
|
4480
|
-
entry.customer.feedback === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-feedback", children: [
|
|
4481
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-block-label", children: t("dtProgressFeedback") }),
|
|
4482
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-feedback-copy prose", children: entry.customer.feedback })
|
|
4483
|
-
] }),
|
|
4484
|
-
hasNext ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-next", children: [
|
|
4485
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-next-label", children: t("dtProgressNext") }),
|
|
4486
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "prog-next-body", children: [
|
|
4487
|
-
entry.next.goal === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-next-goal", children: entry.next.goal }),
|
|
4488
|
-
entry.next.owner === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
|
|
4489
|
-
"@ ",
|
|
4490
|
-
entry.next.owner
|
|
4491
|
-
] }),
|
|
4492
|
-
entry.next.deadline === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
|
|
4493
|
-
t("dtProgressDeadline"),
|
|
4494
|
-
" ",
|
|
4495
|
-
formatDate(entry.next.deadline, locale)
|
|
4496
|
-
] })
|
|
4497
|
-
] })
|
|
4498
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "prog-next prog-next-empty", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "prog-missing", children: t("dtProgressNextNone") }) })
|
|
4239
|
+
entry.actual === "" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "prog-actual-line", "data-empty": "true", children: t("emptyField") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "prog-actual-line", children: entry.actual }),
|
|
4240
|
+
entry.scenarioIds.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "chip-row prog-scope-row", children: entry.scenarioIds.map((id, itemIndex) => {
|
|
4241
|
+
const linked = scenarioNameOf(detail, id);
|
|
4242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: linked === "" ? id : linked }, `${id}:${itemIndex}`);
|
|
4243
|
+
}) })
|
|
4499
4244
|
] })
|
|
4500
4245
|
] });
|
|
4501
4246
|
}
|
|
@@ -4509,55 +4254,6 @@ window.__ModuleLoader__.load({
|
|
|
4509
4254
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "dsec-empty-copy", children: t("dtProgressEmptyCopy") })
|
|
4510
4255
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ol", { className: "prog-stream", children: ordered.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProgressItem, { entry, index, t, locale, detail }, `${entry.date}:${entry.seq ?? index}`)) }) });
|
|
4511
4256
|
}
|
|
4512
|
-
function DimensionGrid({ detail, t }) {
|
|
4513
|
-
const values = {
|
|
4514
|
-
achievement: detail.outcome.achievement,
|
|
4515
|
-
evidence: detail.outcome.ourProof,
|
|
4516
|
-
recognition: detail.outcome.customerRecognition,
|
|
4517
|
-
nextMilestone: detail.outcome.milestone
|
|
4518
|
-
};
|
|
4519
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtDimensionSection"), kicker: format(t("dimensionCount"), { count: detail.summary.dimensionCount }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "dim-grid-detail", children: DIMENSIONS.map((key) => {
|
|
4520
|
-
const present = values[key] !== "";
|
|
4521
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dim-card", "data-present": present, "data-origin": DIMENSION_ORIGIN[key], children: [
|
|
4522
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-label", children: t(DIMENSION_TEXT[key]) }),
|
|
4523
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-mark", "aria-hidden": "true", children: present ? "\u2713" : "\u2717" }),
|
|
4524
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-value", children: present ? values[key] : t("dimMissing") }),
|
|
4525
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-origin", children: DIMENSION_ORIGIN[key] === "auto" ? t("dtDimensionAuto") : t("dtDimensionManual") }),
|
|
4526
|
-
present ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dim-card-reason", children: t("dtDimensionEmptyReason") })
|
|
4527
|
-
] }, key);
|
|
4528
|
-
}) }) });
|
|
4529
|
-
}
|
|
4530
|
-
function Gate0Meter({ detail, t }) {
|
|
4531
|
-
const checklist = detail.gate0.checklist;
|
|
4532
|
-
const presentCount = checklist.filter((item) => item.present).length;
|
|
4533
|
-
const review = detail.gate0.conclusion === "" ? t("dtG0Unreviewed") : format(t("dtG0ReviewLine"), {
|
|
4534
|
-
reviewer: detail.gate0.reviewer === "" ? t("dtUnset") : detail.gate0.reviewer,
|
|
4535
|
-
date: detail.gate0.reviewedAt === "" ? t("dtUnset") : detail.gate0.reviewedAt,
|
|
4536
|
-
conclusion: detail.gate0.conclusion
|
|
4537
|
-
});
|
|
4538
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Section, { title: t("dtG0Title"), kicker: format(t("dtG0FiveRequired"), { present: presentCount }), children: [
|
|
4539
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "g0-meter", role: "group", "aria-label": t("dtG0Title"), children: checklist.map((item) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-cell", "data-present": item.present, title: `${t(G0_LABEL[item.field] ?? item.field)}: ${item.present ? t("dtG0Present") : t("dtG0Missing")}`, children: [
|
|
4540
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-cell-mark", "aria-hidden": "true", children: item.present ? "\u2713" : "\u2717" }),
|
|
4541
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-cell-label", children: t(G0_LABEL[item.field] ?? item.field) })
|
|
4542
|
-
] }, item.field)) }),
|
|
4543
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "g0-fields", children: checklist.map((item) => {
|
|
4544
|
-
const label = t(G0_LABEL[item.field] ?? item.field);
|
|
4545
|
-
const prose = G0_PROSE.has(item.field);
|
|
4546
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-field", "data-present": item.present, "data-prose": prose, children: [
|
|
4547
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-field-label", children: label }),
|
|
4548
|
-
item.present ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "g0-field-value prose", children: item.value }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "g0-field-missing", children: t("dtG0Missing") })
|
|
4549
|
-
] }, item.field);
|
|
4550
|
-
}) }),
|
|
4551
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-foot", children: [
|
|
4552
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-review", "data-empty": detail.gate0.conclusion === "", children: review }),
|
|
4553
|
-
detail.gate0.competitor === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "chip", children: [
|
|
4554
|
-
t("competitor"),
|
|
4555
|
-
"\uFF1A",
|
|
4556
|
-
detail.gate0.competitor
|
|
4557
|
-
] })
|
|
4558
|
-
] })
|
|
4559
|
-
] });
|
|
4560
|
-
}
|
|
4561
4257
|
function orgText(value) {
|
|
4562
4258
|
return value === null || value === void 0 ? "" : value;
|
|
4563
4259
|
}
|
|
@@ -4682,205 +4378,227 @@ window.__ModuleLoader__.load({
|
|
|
4682
4378
|
] })
|
|
4683
4379
|
] });
|
|
4684
4380
|
}
|
|
4685
|
-
function
|
|
4686
|
-
const
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4381
|
+
function PageHeader({ props }) {
|
|
4382
|
+
const { detail, t, position, onPrev, onNext, onBack } = props;
|
|
4383
|
+
const summary = detail.summary;
|
|
4384
|
+
const org = [orgText(detail.org.system), orgText(detail.org.company), summary.pocType].filter((part) => part !== "");
|
|
4385
|
+
const owner = summary.owner === "" ? "" : `${t("dtOwnerLabel")} ${summary.owner}`;
|
|
4386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "dt-header", children: [
|
|
4387
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-main", children: [
|
|
4388
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: "btn btn-small dt-header-back", onClick: onBack, children: t("back") }),
|
|
4389
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { className: "dt-header-title", children: summary.name }),
|
|
4390
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-meta", children: [
|
|
4391
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-id mono", children: summary.pocId }),
|
|
4392
|
+
org.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-org", children: org.join(" \xB7 ") }),
|
|
4393
|
+
owner === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-org", children: owner })
|
|
4394
|
+
] })
|
|
4692
4395
|
] }),
|
|
4693
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "
|
|
4694
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("
|
|
4695
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.
|
|
4696
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-strip-value", children: plan.timelineStart === "" && plan.timelineEnd === "" ? t("dtUnset") : `${plan.timelineStart === "" ? "\u2014" : plan.timelineStart} \u2192 ${plan.timelineEnd === "" ? "\u2014" : plan.timelineEnd}` })
|
|
4697
|
-
] }),
|
|
4698
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-strip-item", children: [
|
|
4699
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-strip-label", children: t("dtPlanGate1") }),
|
|
4700
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${plan.gate1Conclusion === "\u901A\u8FC7" ? "green" : "slate"}`, children: [
|
|
4396
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-side", children: [
|
|
4397
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-pills", children: [
|
|
4398
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "status-pill tone-blue", children: [
|
|
4701
4399
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
|
|
4702
|
-
|
|
4703
|
-
] })
|
|
4400
|
+
summary.closed ? t("stageClosed") : summary.stageLabel === "" ? t("stageUnknown") : summary.stageLabel
|
|
4401
|
+
] }),
|
|
4402
|
+
summary.status === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-pill tone-slate", children: summary.status }),
|
|
4403
|
+
summary.priority === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: `status-pill tone-${summary.priority === "normal" ? "slate" : "amber"}`, children: t(priorityLabelKey(summary.priority)) })
|
|
4704
4404
|
] }),
|
|
4705
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("
|
|
4706
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "
|
|
4707
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.
|
|
4708
|
-
|
|
4709
|
-
|
|
4405
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-header-amount", children: [
|
|
4406
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-amount-label", children: t("dtAmountLabel") }),
|
|
4407
|
+
summary.amountWan === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-amount-value", "data-empty": "true", children: t("dtUnset") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "dt-header-amount-value", children: [
|
|
4408
|
+
formatWan(summary.amountWan),
|
|
4409
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-amount-unit", children: t("statAmountUnit") })
|
|
4710
4410
|
] })
|
|
4711
|
-
] }),
|
|
4712
|
-
plan.reportNodes.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-strip-item", children: [
|
|
4713
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-strip-label", children: t("dtPlanReportNodes") }),
|
|
4714
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip-row", children: plan.reportNodes.map((node, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "chip", children: node }, `${node}:${index}`)) })
|
|
4715
4411
|
] })
|
|
4716
4412
|
] }),
|
|
4717
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("
|
|
4718
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("
|
|
4719
|
-
|
|
4720
|
-
|
|
4413
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("nav", { className: "dt-header-nav", "aria-label": t("dtRailTitle"), children: [
|
|
4414
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { type: "button", className: "btn btn-small", disabled: onPrev === null, onClick: onPrev ?? void 0, children: [
|
|
4415
|
+
"\u2190 ",
|
|
4416
|
+
t("dtPrevProject")
|
|
4721
4417
|
] }),
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanBaseline") }),
|
|
4727
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanTarget") }),
|
|
4728
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanCriteriaStatus") })
|
|
4729
|
-
] }) }),
|
|
4730
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: plan.criteria.map((criterion, index) => {
|
|
4731
|
-
const status = criterion.status;
|
|
4732
|
-
const tone = criterionTone(status);
|
|
4733
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
|
|
4734
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-name", children: criterion.name === "" ? t("emptyField") : criterion.name }),
|
|
4735
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { children: criterion.metric === "" ? t("emptyField") : criterion.metric }),
|
|
4736
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-num", children: criterion.baseline === "" ? "\u2014" : criterion.baseline }),
|
|
4737
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-target", children: criterion.target === "" ? "\u2014" : criterion.target }),
|
|
4738
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-status", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
|
|
4739
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
|
|
4740
|
-
t(`dtCrit${CRITERION_STATUS_KEY[status] ?? "Unverified"}`)
|
|
4741
|
-
] }) })
|
|
4742
|
-
] }, criterion.id === "" ? `${criterion.name}:${index}` : criterion.id);
|
|
4743
|
-
}) })
|
|
4418
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-header-position", children: format(t("dtPosition"), { index: position.index, total: position.total }) }),
|
|
4419
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("button", { type: "button", className: "btn btn-small", disabled: onNext === null, onClick: onNext ?? void 0, children: [
|
|
4420
|
+
t("dtNextProject"),
|
|
4421
|
+
" \u2192"
|
|
4744
4422
|
] })
|
|
4745
|
-
] })
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
] }),
|
|
4771
|
-
scenario.id === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4772
|
-
"button",
|
|
4773
|
-
{
|
|
4774
|
-
type: "button",
|
|
4775
|
-
className: "plan-scenario-open",
|
|
4776
|
-
onClick: () => onOpenScenario(scenario.id),
|
|
4777
|
-
"aria-label": `${t("dtPlanScenarioDetail")}: ${scenario.name}`,
|
|
4778
|
-
children: [
|
|
4779
|
-
t("dtPlanScenarioDetail"),
|
|
4780
|
-
" \u203A"
|
|
4781
|
-
]
|
|
4782
|
-
}
|
|
4783
|
-
)
|
|
4784
|
-
] })
|
|
4785
|
-
] }, scenario.id === "" ? `${scenario.name}:${index}` : scenario.id);
|
|
4786
|
-
}) })
|
|
4787
|
-
] }),
|
|
4788
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "plan-block", children: [
|
|
4789
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("header", { className: "plan-block-head", children: [
|
|
4790
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h3", { className: "plan-block-title", children: t("dtPlanRisks") }),
|
|
4791
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-block-note", children: plan.risks.length === 0 ? t("dtPlanRisksNone") : format(t("dtPlanRisksCount"), { count: plan.risks.length }) })
|
|
4423
|
+
] })
|
|
4424
|
+
] });
|
|
4425
|
+
}
|
|
4426
|
+
function Gate0Grid({ detail, t }) {
|
|
4427
|
+
const gate0 = detail.gate0;
|
|
4428
|
+
const answered = gate0.checklist.filter((item) => item.present).length;
|
|
4429
|
+
const cards = [
|
|
4430
|
+
{ key: "why_customer", label: t("whyCustomerTest"), value: gate0.whyCustomer, present: gate0.whyCustomer !== "", prose: true },
|
|
4431
|
+
{ key: "why_us", label: t("whyWeTest"), value: gate0.whyUs, present: gate0.whyUs !== "", prose: true },
|
|
4432
|
+
{ key: "post_poc_decision", label: t("postPocDecision"), value: gate0.postPocDecision, present: gate0.postPocDecision !== "", prose: false },
|
|
4433
|
+
{ key: "decision_chain", label: t("decisionChain"), value: gate0.decisionChain, present: gate0.decisionChain !== "", prose: false },
|
|
4434
|
+
{ key: "competitor", label: t("competitor"), value: gate0.competitor, present: gate0.competitor !== "", prose: false },
|
|
4435
|
+
{
|
|
4436
|
+
key: "review",
|
|
4437
|
+
label: t("dtG0ReviewTitle"),
|
|
4438
|
+
value: gate0.conclusion === "" ? "" : [gate0.conclusion, gate0.reviewer, gate0.reviewedAt].filter((part) => part !== "").join(" \xB7 "),
|
|
4439
|
+
present: gate0.conclusion !== "",
|
|
4440
|
+
prose: false
|
|
4441
|
+
}
|
|
4442
|
+
];
|
|
4443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Section, { title: t("dtG0GridTitle"), kicker: format(t("dtG0Answered"), { answered, total: gate0.checklist.length }), children: [
|
|
4444
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "g0-grid", children: cards.map((card) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-card", "data-present": card.present, "data-prose": card.prose, children: [
|
|
4445
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "g0-card-head", children: [
|
|
4446
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-card-label", children: card.label }),
|
|
4447
|
+
card.present ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "g0-card-missing", children: t("dtG0Missing") })
|
|
4792
4448
|
] }),
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4449
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "g0-card-body", "data-empty": !card.present, children: card.present ? card.value : t("emptyField") })
|
|
4450
|
+
] }, card.key)) }),
|
|
4451
|
+
gate0.missing.length === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "g0-grid-note", children: format(t("dtG0MissingNote"), { count: gate0.missing.length }) })
|
|
4452
|
+
] });
|
|
4453
|
+
}
|
|
4454
|
+
function CriteriaPanel({ detail, t }) {
|
|
4455
|
+
const plan = detail.plan;
|
|
4456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtPlanCriteria"), kicker: plan.criteria.length === 0 ? void 0 : format(t("dtPlanCriteriaCount"), { count: plan.criteria.length }), children: plan.criteria.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanCriteriaNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("table", { className: "plan-criteria", children: [
|
|
4457
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
|
|
4458
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanCriteria") }),
|
|
4459
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanMetric") }),
|
|
4460
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanBaseline") }),
|
|
4461
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanTarget") }),
|
|
4462
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtPlanCriteriaStatus") })
|
|
4463
|
+
] }) }),
|
|
4464
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: plan.criteria.map((criterion, index) => {
|
|
4465
|
+
const status = criterion.status;
|
|
4466
|
+
const tone = criterionTone(status);
|
|
4467
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
|
|
4468
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-name", children: criterion.name === "" ? t("emptyField") : criterion.name }),
|
|
4469
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { children: criterion.metric === "" ? t("emptyField") : criterion.metric }),
|
|
4470
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-num", children: criterion.baseline === "" ? "\u2014" : criterion.baseline }),
|
|
4471
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-target", children: criterion.target === "" ? "\u2014" : criterion.target }),
|
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "plan-criterion-status", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
|
|
4473
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
|
|
4474
|
+
t(`dtCrit${CRITERION_STATUS_KEY[status] ?? "Unverified"}`)
|
|
4475
|
+
] }) })
|
|
4476
|
+
] }, criterion.id === "" ? `${criterion.name}:${index}` : criterion.id);
|
|
4477
|
+
}) })
|
|
4478
|
+
] }) });
|
|
4479
|
+
}
|
|
4480
|
+
function ScenarioPanel({ detail, t, onOpenScenario }) {
|
|
4481
|
+
const plan = detail.plan;
|
|
4482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtPlanScenarios"), kicker: plan.scenarios.length === 0 ? void 0 : format(t("dtPlanScenariosCount"), { count: plan.scenarios.length }), children: plan.scenarios.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanScenariosNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ol", { className: "plan-scenarios", children: plan.scenarios.map((scenario, index) => {
|
|
4483
|
+
const tone = scenarioTone(scenario.status);
|
|
4484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "plan-scenario", "data-tone": tone, children: [
|
|
4485
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-no", children: String(index + 1).padStart(2, "0") }),
|
|
4486
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-body", children: [
|
|
4487
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-name", children: scenario.name === "" ? t("emptyField") : scenario.name }),
|
|
4488
|
+
scenario.goal === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-goal", children: [
|
|
4489
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-goal-label", children: t("dtPlanScenarioGoal") }),
|
|
4490
|
+
scenario.goal
|
|
4803
4491
|
] })
|
|
4804
|
-
] },
|
|
4492
|
+
] }),
|
|
4493
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-scenario-tail", children: [
|
|
4494
|
+
scenario.status === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
4495
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-glyph", "aria-hidden": "true", children: scenarioGlyph(scenario.status) }),
|
|
4496
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${tone}`, children: [
|
|
4497
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
|
|
4498
|
+
t(`dtStatus${SCENARIO_STATUS_KEY[scenario.status] ?? "NoEvidence"}`)
|
|
4499
|
+
] }),
|
|
4500
|
+
scenario.evidenceCount === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-scenario-evidence", children: format(t("dtPlanScenarioEvidence"), { count: scenario.evidenceCount }) })
|
|
4501
|
+
] }),
|
|
4502
|
+
scenario.id === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4503
|
+
"button",
|
|
4504
|
+
{
|
|
4505
|
+
type: "button",
|
|
4506
|
+
className: "plan-scenario-open",
|
|
4507
|
+
onClick: () => onOpenScenario(scenario.id),
|
|
4508
|
+
"aria-label": `${t("dtPlanScenarioDetail")}: ${scenario.name}`,
|
|
4509
|
+
children: [
|
|
4510
|
+
t("dtPlanScenarioDetail"),
|
|
4511
|
+
" \u203A"
|
|
4512
|
+
]
|
|
4513
|
+
}
|
|
4514
|
+
)
|
|
4515
|
+
] })
|
|
4516
|
+
] }, scenario.id === "" ? `${scenario.name}:${index}` : scenario.id);
|
|
4517
|
+
}) }) });
|
|
4518
|
+
}
|
|
4519
|
+
function RiskPanel({ detail, t }) {
|
|
4520
|
+
const risks = detail.plan.risks;
|
|
4521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtPlanRisks"), kicker: risks.length === 0 ? void 0 : format(t("dtPlanRisksCount"), { count: risks.length }), children: risks.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtPlanRisksNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "plan-risks", children: risks.map((risk, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("li", { className: "plan-risk", "data-tone": riskTone(risk.level), children: [
|
|
4522
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-dot", "aria-hidden": "true" }),
|
|
4523
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-risk-text", children: [
|
|
4524
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-name", children: risk.name === "" ? t("emptyField") : risk.name }),
|
|
4525
|
+
risk.level === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "plan-risk-level", children: risk.level }),
|
|
4526
|
+
risk.mitigation === "" ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "plan-risk-mitigation", children: [
|
|
4527
|
+
t("dtPlanMitigation"),
|
|
4528
|
+
"\uFF1A",
|
|
4529
|
+
risk.mitigation
|
|
4530
|
+
] })
|
|
4805
4531
|
] })
|
|
4806
|
-
] });
|
|
4532
|
+
] }, `${risk.name}:${index}`)) }) });
|
|
4807
4533
|
}
|
|
4808
|
-
function
|
|
4534
|
+
function NextActionsPanel({ detail, t }) {
|
|
4809
4535
|
const outcome = detail.outcome;
|
|
4810
|
-
const
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4536
|
+
const newestNext = detail.progress.find((entry) => entry.next.goal !== "" || entry.next.owner !== "" || entry.next.deadline !== "");
|
|
4537
|
+
const rows = [];
|
|
4538
|
+
if (outcome.milestone !== "" || outcome.businessOwner !== "" || outcome.businessDeadline !== "") {
|
|
4539
|
+
rows.push({
|
|
4540
|
+
goal: outcome.milestone,
|
|
4541
|
+
owner: outcome.businessOwner,
|
|
4542
|
+
deadline: outcome.businessDeadline,
|
|
4543
|
+
status: outcome.businessStatus,
|
|
4544
|
+
tone: outcome.businessStatus === "\u5DF2\u8FDB\u5165\u4E0B\u4E00\u91CC\u7A0B\u7891" ? "green" : outcome.businessStatus === "" ? "slate" : "amber"
|
|
4545
|
+
});
|
|
4546
|
+
}
|
|
4547
|
+
if (newestNext !== void 0) {
|
|
4548
|
+
rows.push({
|
|
4549
|
+
goal: newestNext.next.goal,
|
|
4550
|
+
owner: newestNext.next.owner,
|
|
4551
|
+
deadline: newestNext.next.deadline,
|
|
4552
|
+
status: t("dtStatusNotStarted"),
|
|
4553
|
+
tone: "slate"
|
|
4554
|
+
});
|
|
4555
|
+
}
|
|
4556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Section, { title: t("dtNextActionsTitle"), kicker: t("dtNextActionsKicker"), children: rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Blank, { text: t("dtNextActionsNone") }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("table", { className: "next-table", children: [
|
|
4557
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
|
|
4558
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtNextGoal") }),
|
|
4559
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtNextOwner") }),
|
|
4560
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtNextDeadline") }),
|
|
4561
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("th", { children: t("dtNextStatus") })
|
|
4562
|
+
] }) }),
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tbody", { children: rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { children: [
|
|
4564
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "next-goal", children: row.goal === "" ? t("emptyField") : row.goal }),
|
|
4565
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { children: row.owner === "" ? "\u2014" : row.owner }),
|
|
4566
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: "next-deadline", children: row.deadline === "" ? "\u2014" : row.deadline }),
|
|
4567
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: `status-pill tone-${row.tone}`, children: [
|
|
4568
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "status-dot" }),
|
|
4569
|
+
row.status === "" ? t("dtUnset") : row.status
|
|
4570
|
+
] }) })
|
|
4571
|
+
] }, `${row.goal}:${index}`)) })
|
|
4572
|
+
] }) });
|
|
4833
4573
|
}
|
|
4834
4574
|
function DetailPage(props) {
|
|
4835
4575
|
const { detail, t, locale } = props;
|
|
4836
|
-
const stage = detail.summary.closed ? "closed" : detail.summary.stage;
|
|
4837
|
-
const skeleton = SKELETON_FOR[stage] ?? SKELETON_FOR.unknown;
|
|
4838
|
-
const [foldOpen, setFoldOpen] = (0, import_react2.useState)(false);
|
|
4839
4576
|
const [scenarioId, setScenarioId] = (0, import_react2.useState)(null);
|
|
4840
|
-
const sections = {
|
|
4841
|
-
basic: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BasicInfo, { detail, t }, "basic"),
|
|
4842
|
-
progress: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProgressStream, { detail, t, locale }, "progress"),
|
|
4843
|
-
dimensions: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DimensionGrid, { detail, t }, "dimensions"),
|
|
4844
|
-
gate0: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Gate0Meter, { detail, t }, "gate0"),
|
|
4845
|
-
plan: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PlanPanels, { detail, t, onOpenScenario: setScenarioId }, "plan"),
|
|
4846
|
-
outcome: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OutcomePanel, { detail, t }, "outcome")
|
|
4847
|
-
};
|
|
4848
|
-
const primary = skeleton.sections;
|
|
4849
|
-
const secondary = ["basic", "progress", "dimensions", "gate0", "plan", "outcome"].filter((key) => !primary.includes(key));
|
|
4850
|
-
const stageState = stageStateOf(detail);
|
|
4851
|
-
const projectBlockers = props.blockers ?? [];
|
|
4852
4577
|
if (scenarioId !== null) {
|
|
4853
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-
|
|
4854
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4855
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "dt-
|
|
4578
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-shell", children: [
|
|
4579
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PageHeader, { props }),
|
|
4580
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "dt-body", children: [
|
|
4856
4581
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: "sd-back", onClick: () => setScenarioId(null), children: t("dtScenarioBack") }),
|
|
4857
4582
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ScenarioDetail, { detail, scenarioId, t })
|
|
4858
4583
|
] })
|
|
4859
4584
|
] });
|
|
4860
4585
|
}
|
|
4861
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-
|
|
4862
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4863
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "dt-
|
|
4864
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-fold-hint", children: t("dtOtherSectionsHint") }),
|
|
4878
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dt-fold-arrow", "aria-hidden": "true", children: foldOpen ? "\u25B4" : "\u25BE" })
|
|
4879
|
-
]
|
|
4880
|
-
}
|
|
4881
|
-
),
|
|
4882
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "dt-fold-body", children: secondary.map((key) => sections[key]) })
|
|
4883
|
-
] })
|
|
4586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-shell", children: [
|
|
4587
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PageHeader, { props }),
|
|
4588
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("main", { className: "dt-body", children: [
|
|
4589
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-columns", children: [
|
|
4590
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-col-main", children: [
|
|
4591
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Gate0Grid, { detail, t }),
|
|
4592
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CriteriaPanel, { detail, t }),
|
|
4593
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ScenarioPanel, { detail, t, onOpenScenario: setScenarioId })
|
|
4594
|
+
] }),
|
|
4595
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dt-col-side", children: [
|
|
4596
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(BasicInfo, { detail, t }),
|
|
4597
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProgressStream, { detail, t, locale }),
|
|
4598
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RiskPanel, { detail, t })
|
|
4599
|
+
] })
|
|
4600
|
+
] }),
|
|
4601
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(NextActionsPanel, { detail, t })
|
|
4884
4602
|
] })
|
|
4885
4603
|
] });
|
|
4886
4604
|
}
|
|
@@ -4888,11 +4606,31 @@ window.__ModuleLoader__.load({
|
|
|
4888
4606
|
// src/client/export-form.tsx
|
|
4889
4607
|
var import_react3 = require("react");
|
|
4890
4608
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
4609
|
+
var STAGE_FILTERS = [
|
|
4610
|
+
{ key: "G0", label: "G0" },
|
|
4611
|
+
{ key: "G1", label: "G1" },
|
|
4612
|
+
{ key: "G2", label: "G2" },
|
|
4613
|
+
{ key: "G3", label: "G3" },
|
|
4614
|
+
{ key: "G4", label: "G4" },
|
|
4615
|
+
{ key: "closed", label: "\u5DF2\u7ED3\u675F" }
|
|
4616
|
+
];
|
|
4891
4617
|
function ExportFormDialog({ api, projects, t, onClose, onError }) {
|
|
4892
4618
|
const rows = (0, import_react3.useMemo)(
|
|
4893
|
-
() => projects.map((project) => ({
|
|
4619
|
+
() => projects.map((project) => ({
|
|
4620
|
+
pocId: project.pocId,
|
|
4621
|
+
name: project.name,
|
|
4622
|
+
company: project.company,
|
|
4623
|
+
stage: project.stageLabel,
|
|
4624
|
+
stageKey: project.closed ? "closed" : project.stage ?? "unknown"
|
|
4625
|
+
})),
|
|
4894
4626
|
[projects]
|
|
4895
4627
|
);
|
|
4628
|
+
const [intent, setIntent] = (0, import_react3.useState)("supplement");
|
|
4629
|
+
const [stageFilter, setStageFilter] = (0, import_react3.useState)(null);
|
|
4630
|
+
const visibleRows = (0, import_react3.useMemo)(
|
|
4631
|
+
() => stageFilter === null ? rows : rows.filter((row) => row.stageKey === stageFilter),
|
|
4632
|
+
[rows, stageFilter]
|
|
4633
|
+
);
|
|
4896
4634
|
const [selected, setSelected] = (0, import_react3.useState)(() => new Set(rows.map((row) => row.pocId)));
|
|
4897
4635
|
const [busy, setBusy] = (0, import_react3.useState)(false);
|
|
4898
4636
|
const toggle = (pocId) => {
|
|
@@ -4903,13 +4641,13 @@ window.__ModuleLoader__.load({
|
|
|
4903
4641
|
return next;
|
|
4904
4642
|
});
|
|
4905
4643
|
};
|
|
4906
|
-
const selectAll = () => setSelected(new Set(
|
|
4644
|
+
const selectAll = () => setSelected(new Set(visibleRows.map((row) => row.pocId)));
|
|
4907
4645
|
const selectNone = () => setSelected(/* @__PURE__ */ new Set());
|
|
4908
4646
|
const generate = async () => {
|
|
4909
4647
|
setBusy(true);
|
|
4910
4648
|
try {
|
|
4911
|
-
const mode =
|
|
4912
|
-
const result = await api.exportForm(mode, mode === "blank" ? [] : [...selected]);
|
|
4649
|
+
const mode = intent === "new" ? "blank" : "fill";
|
|
4650
|
+
const result = await api.exportForm(mode, mode === "blank" ? [] : [...selected], intent);
|
|
4913
4651
|
const blob = new Blob([result.html], { type: "text/html;charset=utf-8" });
|
|
4914
4652
|
const url = URL.createObjectURL(blob);
|
|
4915
4653
|
const anchor = document.createElement("a");
|
|
@@ -4948,12 +4686,66 @@ window.__ModuleLoader__.load({
|
|
|
4948
4686
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "modal-header", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("h2", { className: "modal-title", children: t("exportTitle") }) }),
|
|
4949
4687
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "modal-content", children: [
|
|
4950
4688
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "modal-lead", children: t("exportSubtitle") }),
|
|
4951
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4689
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "export-intent", role: "group", "aria-label": t("exportIntentLabel"), children: [
|
|
4690
|
+
{ key: "new", label: t("exportIntentNew"), hint: t("exportIntentNewHint") },
|
|
4691
|
+
{ key: "supplement", label: t("exportIntentSupplement"), hint: t("exportIntentSupplementHint") },
|
|
4692
|
+
{ key: "progress", label: t("exportIntentProgress"), hint: t("exportIntentProgressHint") }
|
|
4693
|
+
].map((option) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
4694
|
+
"button",
|
|
4695
|
+
{
|
|
4696
|
+
type: "button",
|
|
4697
|
+
className: "export-intent-btn",
|
|
4698
|
+
"data-active": intent === option.key,
|
|
4699
|
+
title: option.hint,
|
|
4700
|
+
disabled: busy,
|
|
4701
|
+
onClick: () => setIntent(option.key),
|
|
4702
|
+
children: [
|
|
4703
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-intent-label", children: option.label }),
|
|
4704
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-intent-hint", children: option.hint })
|
|
4705
|
+
]
|
|
4706
|
+
},
|
|
4707
|
+
option.key
|
|
4708
|
+
)) }),
|
|
4709
|
+
intent === "new" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "helper-box", children: t("exportNewHint") }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
4710
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "export-stage-filter", role: "group", "aria-label": t("exportStageFilterLabel"), children: [
|
|
4711
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4712
|
+
"button",
|
|
4713
|
+
{
|
|
4714
|
+
type: "button",
|
|
4715
|
+
className: "btn btn-small",
|
|
4716
|
+
"data-active": stageFilter === null,
|
|
4717
|
+
onClick: () => setStageFilter(null),
|
|
4718
|
+
disabled: busy,
|
|
4719
|
+
children: t("exportStageAll")
|
|
4720
|
+
}
|
|
4721
|
+
),
|
|
4722
|
+
STAGE_FILTERS.map((bucket) => {
|
|
4723
|
+
const count = rows.filter((row) => row.stageKey === bucket.key).length;
|
|
4724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
4725
|
+
"button",
|
|
4726
|
+
{
|
|
4727
|
+
type: "button",
|
|
4728
|
+
className: "btn btn-small",
|
|
4729
|
+
"data-active": stageFilter === bucket.key,
|
|
4730
|
+
"data-zero": count === 0,
|
|
4731
|
+
disabled: busy || count === 0 && stageFilter !== bucket.key,
|
|
4732
|
+
onClick: () => setStageFilter(stageFilter === bucket.key ? null : bucket.key),
|
|
4733
|
+
children: [
|
|
4734
|
+
bucket.label,
|
|
4735
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-stage-count", children: count })
|
|
4736
|
+
]
|
|
4737
|
+
},
|
|
4738
|
+
bucket.key
|
|
4739
|
+
);
|
|
4740
|
+
})
|
|
4741
|
+
] }),
|
|
4742
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "export-toolbar", children: [
|
|
4743
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn btn-small", onClick: selectAll, disabled: busy, children: t("exportSelectAll") }),
|
|
4744
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn btn-small", onClick: selectNone, disabled: busy, children: t("exportSelectNone") }),
|
|
4745
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-count", children: format(t("exportSelected"), { count: selected.size }) })
|
|
4746
|
+
] })
|
|
4955
4747
|
] }),
|
|
4956
|
-
rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "modal-lead", children: t("exportNoProjects") }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { className: "export-list", children:
|
|
4748
|
+
intent !== "new" && (rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "modal-lead", children: t("exportNoProjects") }) : visibleRows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "modal-lead", children: t("exportStageEmpty") }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { className: "export-list", children: visibleRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("label", { className: "export-row", "data-selected": selected.has(row.pocId), children: [
|
|
4957
4749
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4958
4750
|
"input",
|
|
4959
4751
|
{
|
|
@@ -4967,22 +4759,32 @@ window.__ModuleLoader__.load({
|
|
|
4967
4759
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "export-row-name", children: row.name === "" ? row.pocId : row.name }),
|
|
4968
4760
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: "export-row-meta", children: [
|
|
4969
4761
|
row.pocId,
|
|
4970
|
-
row.company === "" ? "" : ` \xB7 ${row.company}
|
|
4762
|
+
row.company === "" ? "" : ` \xB7 ${row.company}`,
|
|
4763
|
+
row.stage === "" ? "" : ` \xB7 ${row.stage}`
|
|
4971
4764
|
] })
|
|
4972
4765
|
] })
|
|
4973
|
-
] }) }, row.pocId)) }),
|
|
4974
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "helper-box", children: selected.size === 0 ? t("exportBlankHint") : t("exportHint") })
|
|
4766
|
+
] }) }, row.pocId)) })),
|
|
4767
|
+
intent === "new" ? null : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "helper-box", children: selected.size === 0 ? t("exportBlankHint") : t("exportHint") })
|
|
4975
4768
|
] }),
|
|
4976
4769
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "modal-footer", children: [
|
|
4977
4770
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "spacer" }),
|
|
4978
4771
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("button", { type: "button", className: "btn", onClick: onClose, disabled: busy, children: t("cancel") }),
|
|
4979
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4772
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4773
|
+
"button",
|
|
4774
|
+
{
|
|
4775
|
+
type: "button",
|
|
4776
|
+
className: "btn btn-primary",
|
|
4777
|
+
onClick: () => {
|
|
4778
|
+
void generate();
|
|
4779
|
+
},
|
|
4780
|
+
disabled: busy || intent !== "new" && selected.size === 0,
|
|
4781
|
+
children: busy ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
4782
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "spinner" }),
|
|
4783
|
+
" ",
|
|
4784
|
+
t("exportGenerating")
|
|
4785
|
+
] }) : t("exportGenerate")
|
|
4786
|
+
}
|
|
4787
|
+
)
|
|
4986
4788
|
] })
|
|
4987
4789
|
]
|
|
4988
4790
|
}
|
|
@@ -5206,7 +5008,7 @@ window.__ModuleLoader__.load({
|
|
|
5206
5008
|
|
|
5207
5009
|
// src/client/overview.tsx
|
|
5208
5010
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
5209
|
-
var
|
|
5011
|
+
var DIMENSION_TEXT = {
|
|
5210
5012
|
achievement: "dimAchievement",
|
|
5211
5013
|
evidence: "dimEvidence",
|
|
5212
5014
|
recognition: "dimRecognition",
|
|
@@ -5222,9 +5024,9 @@ window.__ModuleLoader__.load({
|
|
|
5222
5024
|
function DimensionMarks({ project, t }) {
|
|
5223
5025
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "pcard-dims", role: "group", "aria-label": t("colDimensions"), children: DIMENSIONS.map((key) => {
|
|
5224
5026
|
const present = project.dimensions[key];
|
|
5225
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "pcard-dim", "data-present": present, title: `${t(
|
|
5027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "pcard-dim", "data-present": present, title: `${t(DIMENSION_TEXT[key])}: ${present ? t("dimPresent") : t("dimMissing")}`, children: [
|
|
5226
5028
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-dim-mark", "aria-hidden": "true", children: present ? "\u2713" : "\u2717" }),
|
|
5227
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-dim-label", children: t(
|
|
5029
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "pcard-dim-label", children: t(DIMENSION_TEXT[key]) })
|
|
5228
5030
|
] }, key);
|
|
5229
5031
|
}) });
|
|
5230
5032
|
}
|
|
@@ -5534,11 +5336,11 @@ window.__ModuleLoader__.load({
|
|
|
5534
5336
|
RadialMeter,
|
|
5535
5337
|
{
|
|
5536
5338
|
ratio: row.ratio,
|
|
5537
|
-
label: t(
|
|
5339
|
+
label: t(DIMENSION_TEXT[row.key]),
|
|
5538
5340
|
value: format(t("coveragePresent"), { present: row.present, total: row.present + row.missing }),
|
|
5539
5341
|
...row.missing > 0 ? { note: format(t("coverageMissingNote"), { count: row.missing }) } : {},
|
|
5540
5342
|
tone: dimensionTone(row.key),
|
|
5541
|
-
ariaLabel: `${t(
|
|
5343
|
+
ariaLabel: `${t(DIMENSION_TEXT[row.key])} ${row.present}/${row.present + row.missing}`
|
|
5542
5344
|
},
|
|
5543
5345
|
row.key
|
|
5544
5346
|
)) })
|
|
@@ -6390,6 +6192,36 @@ window.__ModuleLoader__.load({
|
|
|
6390
6192
|
margin: 0 0 4px; font-size: 12px; line-height: 18px;
|
|
6391
6193
|
color: var(--dsw-alias-label-secondary);
|
|
6392
6194
|
}
|
|
6195
|
+
/* ---------- export intents: the choice that decides what the form asks ---- */
|
|
6196
|
+
.wd-shell .export-intent {
|
|
6197
|
+
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
6198
|
+
gap: 8px; margin: 10px 0 4px;
|
|
6199
|
+
}
|
|
6200
|
+
.wd-shell .export-intent-btn {
|
|
6201
|
+
display: flex; flex-direction: column; gap: 2px; text-align: left;
|
|
6202
|
+
padding: 9px 11px; border-radius: 8px; cursor: pointer;
|
|
6203
|
+
background: var(--wd-surface); border: 1px solid var(--wd-hairline);
|
|
6204
|
+
font-family: inherit; transition: border-color .11s ease, background .11s ease;
|
|
6205
|
+
}
|
|
6206
|
+
.wd-shell .export-intent-btn:hover { border-color: var(--wd-primary); }
|
|
6207
|
+
.wd-shell .export-intent-btn[data-active="true"] {
|
|
6208
|
+
background: var(--wd-primary-soft); border-color: var(--wd-primary);
|
|
6209
|
+
}
|
|
6210
|
+
.wd-shell .export-intent-label { font-size: 12px; line-height: 17px; font-weight: 650; color: var(--wd-text); }
|
|
6211
|
+
.wd-shell .export-intent-hint { font-size: 10px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
|
|
6212
|
+
.wd-shell .export-stage-filter {
|
|
6213
|
+
display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
|
|
6214
|
+
padding: 6px 0 2px;
|
|
6215
|
+
}
|
|
6216
|
+
.wd-shell .export-stage-filter .btn[data-active="true"] {
|
|
6217
|
+
background: var(--wd-primary-soft); border-color: var(--wd-primary); color: var(--wd-primary);
|
|
6218
|
+
}
|
|
6219
|
+
.wd-shell .export-stage-filter .btn[data-zero="true"] { opacity: .45; }
|
|
6220
|
+
.wd-shell .export-stage-count {
|
|
6221
|
+
margin-left: 5px; font-size: 9.5px; font-variant-numeric: tabular-nums;
|
|
6222
|
+
color: var(--dsw-alias-label-tertiary);
|
|
6223
|
+
}
|
|
6224
|
+
|
|
6393
6225
|
.wd-shell .export-toolbar {
|
|
6394
6226
|
display: flex; align-items: center; gap: 7px;
|
|
6395
6227
|
padding: 8px 0 6px;
|
|
@@ -6818,30 +6650,90 @@ window.__ModuleLoader__.load({
|
|
|
6818
6650
|
|
|
6819
6651
|
// src/client/css/detail.ts
|
|
6820
6652
|
var DETAIL_CSS = `
|
|
6821
|
-
/* ---------- two
|
|
6822
|
-
.wd-shell .dt-
|
|
6823
|
-
display:
|
|
6824
|
-
|
|
6825
|
-
|
|
6653
|
+
/* ---------- page shell: banner + fixed two columns ---------- */
|
|
6654
|
+
.wd-shell .dt-shell {
|
|
6655
|
+
display: flex; flex-direction: column;
|
|
6656
|
+
gap: 16px;
|
|
6657
|
+
padding: 20px 28px 44px;
|
|
6826
6658
|
min-height: 100%;
|
|
6827
6659
|
}
|
|
6828
|
-
|
|
6660
|
+
.wd-shell .dt-body { display: flex; flex-direction: column; gap: 18px; }
|
|
6829
6661
|
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6662
|
+
/* ---------- banner ---------- */
|
|
6663
|
+
.wd-shell .dt-header {
|
|
6664
|
+
display: grid;
|
|
6665
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
6666
|
+
grid-template-areas: "main side" "nav nav";
|
|
6667
|
+
gap: 10px 18px;
|
|
6668
|
+
padding: 16px 20px;
|
|
6835
6669
|
background: var(--wd-surface);
|
|
6836
|
-
border
|
|
6837
|
-
|
|
6670
|
+
border: 1px solid var(--wd-hairline);
|
|
6671
|
+
border-radius: 10px;
|
|
6838
6672
|
}
|
|
6839
|
-
|
|
6840
|
-
.wd-shell .dt-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6673
|
+
.wd-shell .dt-header-main { grid-area: main; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
6674
|
+
.wd-shell .dt-header-back { align-self: flex-start; margin-bottom: 2px; }
|
|
6675
|
+
.wd-shell .dt-header-title {
|
|
6676
|
+
margin: 0; font-size: 20px; line-height: 28px; font-weight: 700;
|
|
6677
|
+
letter-spacing: -.01em; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere;
|
|
6678
|
+
}
|
|
6679
|
+
.wd-shell .dt-header-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
|
|
6680
|
+
.wd-shell .dt-header-id {
|
|
6681
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
6682
|
+
font-size: 10px; line-height: 15px; color: var(--dsw-alias-label-tertiary);
|
|
6683
|
+
}
|
|
6684
|
+
.wd-shell .dt-header-org { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
|
|
6685
|
+
.wd-shell .dt-header-side { grid-area: side; display: flex; align-items: flex-start; gap: 18px; }
|
|
6686
|
+
.wd-shell .dt-header-pills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
|
|
6687
|
+
.wd-shell .dt-header-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
|
|
6688
|
+
.wd-shell .dt-header-amount-label {
|
|
6689
|
+
font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase;
|
|
6690
|
+
font-weight: 600; color: var(--wd-amber);
|
|
6691
|
+
}
|
|
6692
|
+
.wd-shell .dt-header-amount-value {
|
|
6693
|
+
font-size: 22px; line-height: 28px; font-weight: 700;
|
|
6694
|
+
font-variant-numeric: tabular-nums; color: var(--wd-amber); letter-spacing: -.02em;
|
|
6695
|
+
}
|
|
6696
|
+
.wd-shell .dt-header-amount-value[data-empty="true"] { font-size: 12px; font-weight: 500; font-style: italic; color: var(--dsw-alias-label-tertiary); }
|
|
6697
|
+
.wd-shell .dt-header-amount-unit { margin-left: 3px; font-size: 10.5px; font-weight: 500; }
|
|
6698
|
+
.wd-shell .dt-header-nav {
|
|
6699
|
+
grid-area: nav; display: flex; align-items: center; gap: 10px;
|
|
6700
|
+
padding-top: 10px; border-top: 1px solid var(--wd-hairline);
|
|
6844
6701
|
}
|
|
6702
|
+
.wd-shell .dt-header-position { margin: 0 auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
|
|
6703
|
+
|
|
6704
|
+
/* ---------- the fixed two-column contract ---------- */
|
|
6705
|
+
.wd-shell .dt-columns {
|
|
6706
|
+
display: grid;
|
|
6707
|
+
grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
|
|
6708
|
+
gap: 18px;
|
|
6709
|
+
align-items: start;
|
|
6710
|
+
}
|
|
6711
|
+
@media (max-width: 1180px) { .wd-shell .dt-columns { grid-template-columns: minmax(0, 1fr); } }
|
|
6712
|
+
.wd-shell .dt-col-main,
|
|
6713
|
+
.wd-shell .dt-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
|
|
6714
|
+
|
|
6715
|
+
/* ---------- Gate 0 card grid ---------- */
|
|
6716
|
+
.wd-shell .g0-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
|
|
6717
|
+
.wd-shell .g0-card {
|
|
6718
|
+
display: flex; flex-direction: column; gap: 5px;
|
|
6719
|
+
padding: 10px 12px; border-radius: 8px;
|
|
6720
|
+
background: var(--wd-surface); border: 1px solid var(--wd-hairline);
|
|
6721
|
+
}
|
|
6722
|
+
.wd-shell .g0-card[data-present="false"] { background: var(--wd-inset); border-style: dashed; }
|
|
6723
|
+
.wd-shell .g0-card-head { display: flex; align-items: baseline; gap: 8px; }
|
|
6724
|
+
.wd-shell .g0-card-label { font-size: 11px; line-height: 16px; font-weight: 650; color: var(--dsw-alias-label-primary); }
|
|
6725
|
+
.wd-shell .g0-card-missing {
|
|
6726
|
+
margin-left: auto; font-size: 9px; line-height: 13px; font-weight: 650;
|
|
6727
|
+
color: var(--wd-amber); background: var(--wd-amber-soft);
|
|
6728
|
+
padding: 1px 5px; border-radius: 4px; white-space: nowrap;
|
|
6729
|
+
}
|
|
6730
|
+
.wd-shell .g0-card-body {
|
|
6731
|
+
margin: 0; font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary);
|
|
6732
|
+
overflow-wrap: anywhere;
|
|
6733
|
+
}
|
|
6734
|
+
.wd-shell .g0-card[data-prose="true"] .g0-card-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
6735
|
+
.wd-shell .g0-card-body[data-empty="true"] { font-style: italic; color: var(--dsw-alias-label-tertiary); }
|
|
6736
|
+
.wd-shell .g0-grid-note { margin: 0; font-size: 10px; line-height: 15px; color: var(--wd-amber); }
|
|
6845
6737
|
|
|
6846
6738
|
/* ---------- rail ---------- */
|
|
6847
6739
|
.wd-shell .dt-rail-head { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
|
|
@@ -7211,6 +7103,34 @@ window.__ModuleLoader__.load({
|
|
|
7211
7103
|
}
|
|
7212
7104
|
.wd-shell .plan-criterion-status { white-space: nowrap; }
|
|
7213
7105
|
|
|
7106
|
+
/* ---------- scenario legend ---------- */
|
|
7107
|
+
.wd-shell .plan-scenario-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2px; }
|
|
7108
|
+
.wd-shell .plan-scenario-legend-item { font-size: 9.5px; line-height: 14px; color: var(--dsw-alias-label-tertiary); }
|
|
7109
|
+
.wd-shell .plan-scenario-legend-item[data-tone="green"] { color: var(--wd-green); }
|
|
7110
|
+
.wd-shell .plan-scenario-legend-item[data-tone="amber"] { color: var(--wd-amber); }
|
|
7111
|
+
.wd-shell .plan-scenario-legend-item[data-tone="red"] { color: var(--wd-red); }
|
|
7112
|
+
|
|
7113
|
+
/* ---------- next actions ---------- */
|
|
7114
|
+
.wd-shell .next-table {
|
|
7115
|
+
width: 100%; border-collapse: collapse;
|
|
7116
|
+
border: 1px solid var(--wd-hairline); border-radius: 9px; overflow: hidden;
|
|
7117
|
+
background: var(--wd-surface);
|
|
7118
|
+
}
|
|
7119
|
+
.wd-shell .next-table th {
|
|
7120
|
+
padding: 7px 10px; text-align: left;
|
|
7121
|
+
font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase;
|
|
7122
|
+
font-weight: 600; color: var(--dsw-alias-label-tertiary);
|
|
7123
|
+
background: var(--wd-inset); border-bottom: 1px solid var(--wd-hairline);
|
|
7124
|
+
}
|
|
7125
|
+
.wd-shell .next-table td {
|
|
7126
|
+
padding: 8px 10px; font-size: 11.5px; line-height: 17px;
|
|
7127
|
+
color: var(--dsw-alias-label-secondary); border-bottom: 1px solid var(--wd-hairline);
|
|
7128
|
+
vertical-align: top;
|
|
7129
|
+
}
|
|
7130
|
+
.wd-shell .next-table tbody tr:last-child td { border-bottom: 0; }
|
|
7131
|
+
.wd-shell .next-goal { font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
|
|
7132
|
+
.wd-shell .next-deadline { font-variant-numeric: tabular-nums; }
|
|
7133
|
+
|
|
7214
7134
|
/* ---------- scenario detail (layer two) ---------- */
|
|
7215
7135
|
.wd-shell .plan-scenario-open {
|
|
7216
7136
|
flex: none; margin-left: 2px; padding: 2px 6px;
|
|
@@ -7298,6 +7218,90 @@ window.__ModuleLoader__.load({
|
|
|
7298
7218
|
@media (prefers-reduced-motion: reduce) {
|
|
7299
7219
|
.wd-shell .dim-card, .wd-shell .prog-card { transition: none; }
|
|
7300
7220
|
}
|
|
7221
|
+
|
|
7222
|
+
/* ================= v3.1 layout: banner + fixed two columns ================= */
|
|
7223
|
+
.wd-shell .dt-shell { display: flex; flex-direction: column; gap: 16px; padding: 20px 28px 44px; min-height: 100%; }
|
|
7224
|
+
.wd-shell .dt-body { display: flex; flex-direction: column; gap: 18px; }
|
|
7225
|
+
|
|
7226
|
+
.wd-shell .dt-header {
|
|
7227
|
+
display: grid; grid-template-columns: minmax(0, 1fr) auto;
|
|
7228
|
+
grid-template-areas: "main side" "nav nav"; gap: 10px 18px;
|
|
7229
|
+
padding: 16px 20px; background: var(--wd-surface);
|
|
7230
|
+
border: 1px solid var(--wd-hairline); border-radius: 10px;
|
|
7231
|
+
}
|
|
7232
|
+
.wd-shell .dt-header-main { grid-area: main; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
7233
|
+
.wd-shell .dt-header-back { align-self: flex-start; margin-bottom: 2px; }
|
|
7234
|
+
.wd-shell .dt-header-title {
|
|
7235
|
+
margin: 0; font-size: 20px; line-height: 28px; font-weight: 700;
|
|
7236
|
+
letter-spacing: -.01em; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere;
|
|
7237
|
+
}
|
|
7238
|
+
.wd-shell .dt-header-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
|
|
7239
|
+
.wd-shell .dt-header-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
|
|
7240
|
+
.wd-shell .dt-header-org { font-size: 10.5px; line-height: 15px; color: var(--dsw-alias-label-tertiary); }
|
|
7241
|
+
.wd-shell .dt-header-side { grid-area: side; display: flex; align-items: flex-start; gap: 18px; }
|
|
7242
|
+
.wd-shell .dt-header-pills { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
|
|
7243
|
+
.wd-shell .dt-header-amount { display: flex; flex-direction: column; align-items: flex-end; }
|
|
7244
|
+
.wd-shell .dt-header-amount-label { font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: var(--wd-amber); }
|
|
7245
|
+
.wd-shell .dt-header-amount-value { font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--wd-amber); letter-spacing: -.02em; }
|
|
7246
|
+
.wd-shell .dt-header-amount-value[data-empty="true"] { font-size: 12px; font-weight: 500; font-style: italic; color: var(--dsw-alias-label-tertiary); }
|
|
7247
|
+
.wd-shell .dt-header-amount-unit { margin-left: 3px; font-size: 10.5px; font-weight: 500; }
|
|
7248
|
+
.wd-shell .dt-header-nav { grid-area: nav; display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--wd-hairline); }
|
|
7249
|
+
.wd-shell .dt-header-position { margin: 0 auto; font-size: 10px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }
|
|
7250
|
+
|
|
7251
|
+
.wd-shell .dt-columns { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: 18px; align-items: start; }
|
|
7252
|
+
@media (max-width: 1180px) { .wd-shell .dt-columns { grid-template-columns: minmax(0, 1fr); } }
|
|
7253
|
+
.wd-shell .dt-col-main,
|
|
7254
|
+
.wd-shell .dt-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
|
|
7255
|
+
|
|
7256
|
+
.wd-shell .g0-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
|
|
7257
|
+
.wd-shell .g0-card { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 8px; background: var(--wd-surface); border: 1px solid var(--wd-hairline); }
|
|
7258
|
+
.wd-shell .g0-card[data-present="false"] { background: var(--wd-inset); border-style: dashed; }
|
|
7259
|
+
.wd-shell .g0-card-head { display: flex; align-items: baseline; gap: 8px; }
|
|
7260
|
+
.wd-shell .g0-card-label { font-size: 11px; line-height: 16px; font-weight: 650; color: var(--dsw-alias-label-primary); }
|
|
7261
|
+
.wd-shell .g0-card-missing { margin-left: auto; font-size: 9px; line-height: 13px; font-weight: 650; color: var(--wd-amber); background: var(--wd-amber-soft); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
|
|
7262
|
+
.wd-shell .g0-card-body { margin: 0; font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
|
|
7263
|
+
.wd-shell .g0-card[data-prose="true"] .g0-card-body { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
|
7264
|
+
.wd-shell .g0-card-body[data-empty="true"] { font-style: italic; color: var(--dsw-alias-label-tertiary); }
|
|
7265
|
+
.wd-shell .g0-grid-note { margin: 0; font-size: 10px; line-height: 15px; color: var(--wd-amber); }
|
|
7266
|
+
|
|
7267
|
+
.wd-shell .next-table { width: 100%; border-collapse: collapse; border: 1px solid var(--wd-hairline); border-radius: 9px; overflow: hidden; background: var(--wd-surface); }
|
|
7268
|
+
.wd-shell .next-table th { padding: 7px 10px; text-align: left; font-size: 9.5px; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; color: var(--dsw-alias-label-tertiary); background: var(--wd-inset); border-bottom: 1px solid var(--wd-hairline); }
|
|
7269
|
+
.wd-shell .next-table td { padding: 8px 10px; font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-secondary); border-bottom: 1px solid var(--wd-hairline); vertical-align: top; }
|
|
7270
|
+
.wd-shell .next-table tbody tr:last-child td { border-bottom: 0; }
|
|
7271
|
+
.wd-shell .next-goal { font-weight: 600; color: var(--dsw-alias-label-primary); overflow-wrap: anywhere; }
|
|
7272
|
+
.wd-shell .next-deadline { font-variant-numeric: tabular-nums; }
|
|
7273
|
+
|
|
7274
|
+
/*
|
|
7275
|
+
* Balance the columns.
|
|
7276
|
+
*
|
|
7277
|
+
* The progress stream grows without limit (one card per round), while the left
|
|
7278
|
+
* column holds a fixed set of commitments. Left alone, a project with ten rounds
|
|
7279
|
+
* leaves the commitments column looking half-empty. Capping the stream keeps the
|
|
7280
|
+
* two columns visually comparable and gives the reader an obvious scroll target,
|
|
7281
|
+
* while every round stays reachable.
|
|
7282
|
+
*/
|
|
7283
|
+
.wd-shell .dt-col-side .prog-stream {
|
|
7284
|
+
max-height: none; overflow-y: visible;
|
|
7285
|
+
padding-right: 4px;
|
|
7286
|
+
scrollbar-width: thin;
|
|
7287
|
+
}
|
|
7288
|
+
.wd-shell .dt-col-side .prog-stream::-webkit-scrollbar { width: 6px; }
|
|
7289
|
+
.wd-shell .dt-col-side .prog-stream::-webkit-scrollbar-thumb { background: var(--wd-hairline); border-radius: 3px; }
|
|
7290
|
+
|
|
7291
|
+
/* ---------- compact timeline row ---------- */
|
|
7292
|
+
.wd-shell .prog-card-compact { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; }
|
|
7293
|
+
.wd-shell .prog-card-compact .prog-head { gap: 8px; }
|
|
7294
|
+
.wd-shell .prog-change {
|
|
7295
|
+
font-size: 9px; line-height: 13px; font-weight: 650;
|
|
7296
|
+
color: var(--wd-primary); background: var(--wd-primary-soft);
|
|
7297
|
+
padding: 1px 5px; border-radius: 4px; white-space: nowrap;
|
|
7298
|
+
}
|
|
7299
|
+
.wd-shell .prog-actual-line {
|
|
7300
|
+
margin: 0; font-size: 11.5px; line-height: 17px;
|
|
7301
|
+
color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere;
|
|
7302
|
+
}
|
|
7303
|
+
.wd-shell .prog-actual-line[data-empty="true"] { font-style: italic; color: var(--dsw-alias-label-tertiary); }
|
|
7304
|
+
.wd-shell .prog-scope-row { margin-top: 1px; }
|
|
7301
7305
|
`;
|
|
7302
7306
|
|
|
7303
7307
|
// src/client/css/insights.ts
|