@takagaki/cortex-decisions-viewer 0.4.13 → 0.4.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/render.js +16 -1
  2. package/package.json +1 -1
package/dist/render.js CHANGED
@@ -370,6 +370,10 @@ button.ops-card-btn:disabled { opacity: .6; cursor: default; }
370
370
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
371
371
  }
372
372
  .modal-cancel:hover { background: var(--bg); }
373
+ .modal-ok { color: #047857; font-weight: 600; }
374
+ .modal-paths { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
375
+ .modal-paths-label { font-size: 12px; color: var(--muted); }
376
+ .modal-path { font-size: 12.5px; word-break: break-all; color: var(--accent); }
373
377
  .summary-box { background: var(--accent-weak); border: 1px solid #dce6fb; border-radius: var(--radius); padding: 12px 16px; color: #1e3a8a; }
374
378
  .deciders { display: flex; flex-wrap: wrap; gap: 8px; }
375
379
  .refs { margin: 0; padding-left: 18px; }
@@ -718,7 +722,18 @@ const CLIENT_JS = `
718
722
  }).then(function (r) { return r.json().then(function (j) { return { ok: r.ok, j: j }; }); });
719
723
  } catch (net3) { return fail("サーバーに接続できませんでした。もう一度お試しください。"); }
720
724
  if (!sub.ok) return fail((sub.j && sub.j.message) || "取り込みに失敗しました。時間をおいて再度お試しください。");
721
- status.textContent = "✓ 送信しました。数分後に" + (kind === "transcript" ? "議事録" : "資料") + "が反映されます。閉じて構いません。";
725
+ status.textContent = "";
726
+ status.appendChild(el("div", { class: "modal-ok", text: "✓ 送信しました。数分後に" + (kind === "transcript" ? "議事録" : "資料") + "が反映されます。" }));
727
+ var paths = (sub.j && sub.j.committed) || [];
728
+ if (paths.length && sub.j.repo) {
729
+ var br = SITE.branch || "main";
730
+ var box = el("div", { class: "modal-paths" }, [el("div", { class: "modal-paths-label", text: "保存先(GitHub):" })]);
731
+ paths.forEach(function (p) {
732
+ var href = "https://github.com/" + sub.j.repo + "/blob/" + encodeURIComponent(br) + "/" + p.split("/").map(encodeURIComponent).join("/");
733
+ box.appendChild(el("a", { class: "modal-path", href: href, target: "_blank", rel: "noopener", text: p }));
734
+ });
735
+ status.appendChild(box);
736
+ }
722
737
  submitBtn.textContent = "完了";
723
738
  } catch (e) {
724
739
  fail(e && e.message ? e.message : "予期しないエラーが発生しました。");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takagaki/cortex-decisions-viewer",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "Cortexの意思決定記録(Decisions/*.md)を静的サイトにビルドして閲覧する。各レコードに「Edit on GitHub」リンクを付与する。",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,