dsh-config-manager 0.1.6 → 0.1.7

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/lib/client.js CHANGED
@@ -364,13 +364,10 @@ function renderImportReport(result) {
364
364
  }
365
365
  return lines.join("\n");
366
366
  }
367
- /** 结果页动作按钮(§22:Fix Issues / View Details / Done) */
368
- function suggestedActions(result) {
369
- const actions = [];
370
- if (result.executed.some((e) => e.status === "failed")) actions.push("fixIssues");
371
- if (result.executed.length > 0 || result.warnings.length > 0) actions.push("viewDetails");
372
- actions.push("done");
373
- return actions;
367
+ /** 结果页动作按钮(§22)。报告已内联展示全部失败/警告项的原因与回滚详情(§23),
368
+ * 不再提供空操作的 Fix Issues / View Details 按钮——仅保留「完成」。 */
369
+ function suggestedActions(_result) {
370
+ return ["done"];
374
371
  }
375
372
  /** 回滚报告渲染(full / partial + 人工恢复清单) */
376
373
  function renderRollbackReport(rr) {
@@ -562,93 +559,93 @@ if (typeof document !== "undefined" && document.querySelector("style[data-tag=\"
562
559
  document.head.appendChild(tag);
563
560
  }
564
561
  var config_manager_module_css_default = {
565
- "badgeOk": "_367UGW_badgeOk",
566
- "errorActionLabel": "_367UGW_errorActionLabel",
567
- "iconButton": "_367UGW_iconButton",
568
- "errorBanner": "_367UGW_errorBanner",
569
- "progressPercent": "_367UGW_progressPercent",
570
- "categoryDesc": "_367UGW_categoryDesc",
571
- "optionsCard": "_367UGW_optionsCard",
572
- "categoryItem": "_367UGW_categoryItem",
573
- "conflictOptions": "_367UGW_conflictOptions",
574
- "pathOld": "_367UGW_pathOld",
575
- "dangerButton": "_367UGW_dangerButton",
576
- "pathNew": "_367UGW_pathNew",
577
- "checkboxRow": "_367UGW_checkboxRow",
578
- "secretFields": "_367UGW_secretFields",
579
- "rollbackBox": "_367UGW_rollbackBox",
580
- "errorTitle": "_367UGW_errorTitle",
581
- "errorAction": "_367UGW_errorAction",
582
- "conflictList": "_367UGW_conflictList",
583
- "warnList": "_367UGW_warnList",
584
- "formError": "_367UGW_formError",
585
- "badgeInfo": "_367UGW_badgeInfo",
586
- "groupHeader": "_367UGW_groupHeader",
587
- "conflictId": "_367UGW_conflictId",
588
- "secretsList": "_367UGW_secretsList",
562
+ "modeTab": "_367UGW_modeTab",
563
+ "badgeWarn": "_367UGW_badgeWarn",
564
+ "progressIndeterminate": "_367UGW_progressIndeterminate",
589
565
  "viewBody": "_367UGW_viewBody",
590
- "statRow": "_367UGW_statRow",
591
- "pathRow": "_367UGW_pathRow",
592
- "modeHint": "_367UGW_modeHint",
593
566
  "spinnerWrap": "_367UGW_spinnerWrap",
594
- "pathValue": "_367UGW_pathValue",
595
- "sectionHeader": "_367UGW_sectionHeader",
596
- "ghostButton": "_367UGW_ghostButton",
597
- "card": "_367UGW_card",
598
- "errorList": "_367UGW_errorList",
599
- "viewTab": "_367UGW_viewTab",
600
- "badgeError": "_367UGW_badgeError",
567
+ "sectionSubtitle": "_367UGW_sectionSubtitle",
568
+ "hint": "_367UGW_hint",
569
+ "progressBarDone": "_367UGW_progressBarDone",
570
+ "progressBlock": "_367UGW_progressBlock",
601
571
  "reportText": "_367UGW_reportText",
572
+ "empty": "_367UGW_empty",
602
573
  "dshCmSpin": "_367UGW_dshCmSpin",
603
- "categoryName": "_367UGW_categoryName",
604
- "pathIssueKind": "_367UGW_pathIssueKind",
605
- "progressMeta": "_367UGW_progressMeta",
606
- "progressBlock": "_367UGW_progressBlock",
607
- "hint": "_367UGW_hint",
608
- "sectionSubtitle": "_367UGW_sectionSubtitle",
609
- "errorReason": "_367UGW_errorReason",
610
- "sectionTitle": "_367UGW_sectionTitle",
611
- "errorLine": "_367UGW_errorLine",
574
+ "sectionBody": "_367UGW_sectionBody",
575
+ "categoryItem": "_367UGW_categoryItem",
576
+ "conflictOptions": "_367UGW_conflictOptions",
612
577
  "conflictItem": "_367UGW_conflictItem",
613
- "progressDetail": "_367UGW_progressDetail",
614
- "dshCmIndeterminate": "_367UGW_dshCmIndeterminate",
615
- "progressLabel": "_367UGW_progressLabel",
578
+ "viewTabs": "_367UGW_viewTabs",
579
+ "ghostButton": "_367UGW_ghostButton",
580
+ "sectionTitleBlock": "_367UGW_sectionTitleBlock",
581
+ "dangerButton": "_367UGW_dangerButton",
616
582
  "banner": "_367UGW_banner",
617
- "radioLabel": "_367UGW_radioLabel",
618
- "groupNote": "_367UGW_groupNote",
619
- "progressBarDone": "_367UGW_progressBarDone",
583
+ "card": "_367UGW_card",
584
+ "iconButton": "_367UGW_iconButton",
585
+ "categoryDesc": "_367UGW_categoryDesc",
586
+ "statRow": "_367UGW_statRow",
587
+ "reportFooter": "_367UGW_reportFooter",
588
+ "conflictId": "_367UGW_conflictId",
589
+ "conflictList": "_367UGW_conflictList",
590
+ "groupList": "_367UGW_groupList",
591
+ "secretsList": "_367UGW_secretsList",
620
592
  "spinner": "_367UGW_spinner",
621
- "modeTabs": "_367UGW_modeTabs",
622
- "empty": "_367UGW_empty",
623
- "reportView": "_367UGW_reportView",
624
- "groupLabel": "_367UGW_groupLabel",
625
- "progressIndeterminate": "_367UGW_progressIndeterminate",
626
- "sectionBody": "_367UGW_sectionBody",
627
- "badge": "_367UGW_badge",
593
+ "progressMeta": "_367UGW_progressMeta",
594
+ "input": "_367UGW_input",
595
+ "viewTab": "_367UGW_viewTab",
596
+ "pathRow": "_367UGW_pathRow",
628
597
  "section": "_367UGW_section",
629
- "progressBar": "_367UGW_progressBar",
630
- "errorItem": "_367UGW_errorItem",
631
- "fieldLabel": "_367UGW_fieldLabel",
632
- "groupCard": "_367UGW_groupCard",
598
+ "formError": "_367UGW_formError",
599
+ "progressTrack": "_367UGW_progressTrack",
633
600
  "severityError": "_367UGW_severityError",
601
+ "radioLabel": "_367UGW_radioLabel",
602
+ "conflictDetail": "_367UGW_conflictDetail",
603
+ "errorFooter": "_367UGW_errorFooter",
604
+ "badgeInfo": "_367UGW_badgeInfo",
605
+ "primaryButton": "_367UGW_primaryButton",
606
+ "errorBanner": "_367UGW_errorBanner",
607
+ "groupNote": "_367UGW_groupNote",
608
+ "errorLine": "_367UGW_errorLine",
609
+ "conflictHead": "_367UGW_conflictHead",
634
610
  "hiddenFile": "_367UGW_hiddenFile",
635
- "sectionTitleBlock": "_367UGW_sectionTitleBlock",
636
- "input": "_367UGW_input",
637
- "groupList": "_367UGW_groupList",
638
- "reportFooter": "_367UGW_reportFooter",
639
- "progressTrack": "_367UGW_progressTrack",
640
- "badgeWarn": "_367UGW_badgeWarn",
641
- "spinnerLabel": "_367UGW_spinnerLabel",
642
- "actionRow": "_367UGW_actionRow",
643
611
  "groupItems": "_367UGW_groupItems",
644
- "errorFooter": "_367UGW_errorFooter",
612
+ "progressBar": "_367UGW_progressBar",
613
+ "errorReason": "_367UGW_errorReason",
614
+ "dshCmIndeterminate": "_367UGW_dshCmIndeterminate",
615
+ "errorActionLabel": "_367UGW_errorActionLabel",
616
+ "groupHeader": "_367UGW_groupHeader",
617
+ "errorAction": "_367UGW_errorAction",
618
+ "fieldLabel": "_367UGW_fieldLabel",
619
+ "progressPercent": "_367UGW_progressPercent",
620
+ "rollbackBox": "_367UGW_rollbackBox",
621
+ "reportView": "_367UGW_reportView",
622
+ "errorItem": "_367UGW_errorItem",
645
623
  "field": "_367UGW_field",
646
- "primaryButton": "_367UGW_primaryButton",
647
- "modeTab": "_367UGW_modeTab",
648
- "conflictDetail": "_367UGW_conflictDetail",
624
+ "errorList": "_367UGW_errorList",
649
625
  "pathMappingList": "_367UGW_pathMappingList",
650
- "conflictHead": "_367UGW_conflictHead",
651
- "viewTabs": "_367UGW_viewTabs"
626
+ "pathOld": "_367UGW_pathOld",
627
+ "pathValue": "_367UGW_pathValue",
628
+ "badge": "_367UGW_badge",
629
+ "categoryName": "_367UGW_categoryName",
630
+ "actionRow": "_367UGW_actionRow",
631
+ "badgeError": "_367UGW_badgeError",
632
+ "modeHint": "_367UGW_modeHint",
633
+ "groupLabel": "_367UGW_groupLabel",
634
+ "secretFields": "_367UGW_secretFields",
635
+ "progressDetail": "_367UGW_progressDetail",
636
+ "pathIssueKind": "_367UGW_pathIssueKind",
637
+ "sectionHeader": "_367UGW_sectionHeader",
638
+ "modeTabs": "_367UGW_modeTabs",
639
+ "warnList": "_367UGW_warnList",
640
+ "errorTitle": "_367UGW_errorTitle",
641
+ "pathNew": "_367UGW_pathNew",
642
+ "spinnerLabel": "_367UGW_spinnerLabel",
643
+ "badgeOk": "_367UGW_badgeOk",
644
+ "groupCard": "_367UGW_groupCard",
645
+ "optionsCard": "_367UGW_optionsCard",
646
+ "progressLabel": "_367UGW_progressLabel",
647
+ "checkboxRow": "_367UGW_checkboxRow",
648
+ "sectionTitle": "_367UGW_sectionTitle"
652
649
  };
653
650
  //#endregion
654
651
  //#region src/client/common/ui.tsx
@@ -2336,15 +2333,7 @@ function ImportWizardView({ api, t }) {
2336
2333
  kind: "warn",
2337
2334
  children: t("report.needsRestart")
2338
2335
  }),
2339
- error !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ErrorBanner, { error }),
2340
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
2341
- className: config_manager_module_css_default.actionRow,
2342
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
2343
- variant: "ghost",
2344
- onClick: resetWizard,
2345
- children: t("common.done")
2346
- })
2347
- })
2336
+ error !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ErrorBanner, { error })
2348
2337
  ]
2349
2338
  });
2350
2339
  }