tavi-interaction-chain 0.3.0 → 0.3.1

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.
@@ -87,7 +87,7 @@ export function mountWorkflow(panel, root, options = {}) {
87
87
  }
88
88
  if (!issue)
89
89
  return;
90
- el('progress').textContent = '来源:Tavi Web 自动化运行台账';
90
+ el('progress').textContent = options.issue ? '' : '来源:Tavi Web 自动化运行台账';
91
91
  }
92
92
  async function loadRuns() {
93
93
  el('progress').textContent = '正在读取运行台账…';
@@ -112,9 +112,10 @@ export function mountWorkflow(panel, root, options = {}) {
112
112
  picker.value = issue.run;
113
113
  show(issue);
114
114
  }
115
- show();
116
- loadRuns().catch(() => { if (!controller.signal.aborted)
117
- el('progress').textContent = ''; });
115
+ show(options.issue);
116
+ if (options.boardUrl && !options.issue)
117
+ loadRuns().catch(() => { if (!controller.signal.aborted)
118
+ el('progress').textContent = ''; });
118
119
  function theme(light) {
119
120
  root.dataset.theme = light ? 'light' : 'dark';
120
121
  el('chain').dataset.workflowTheme = root.dataset.theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tavi-interaction-chain",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Framework-independent SVG interaction chains for Tavi",
6
6
  "exports": {