@takagaki/cortex-decisions-viewer 0.12.126 → 0.12.127

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.
@@ -620,6 +620,18 @@ function prunePendingOps(list, ctx) {
620
620
  return false;
621
621
  if (pendingOpLiveAgrees(e, c.live, c.liveAt))
622
622
  return false;
623
+ // 🔴 **remove・update は、保存から 5 分過ぎて出した live が食い違っても捨てる(cortex-engine #1328 c-11)。**
624
+ // 据え置き(60 秒)の窓を過ぎた live は保存の後の本当の状態で、食い違うなら**サーバ側で効いていない**
625
+ // (連続で押した削除の取りこぼしで、消した行がサーバに戻った 10/10 の実機)。残すと、消えたように見せた
626
+ // まま 24 時間(またはビルドが追いつくまで)隠し続け、画面からは気づけない。捨てて本物の行を出す。
627
+ // add は捨てない(「反映を確認できていません」の印が食い違いを見せる)。その kind の一覧が読めない live では
628
+ // 判断しない(今の壁のまま)。🔴 ここに直書きする——関数を足すとクライアントへの流し込み(render.ts)に漏れる
629
+ if (e.action !== "add" && c.live && typeof c.live === "object" && typeof c.liveAt === "number" &&
630
+ c.liveAt >= e.committedAt + PENDING_OPS_SETTLE_MS) {
631
+ const meta = PENDING_KINDS[e.kind];
632
+ if (meta && Array.isArray(c.live[meta.reg]))
633
+ return false;
634
+ }
623
635
  return true;
624
636
  });
625
637
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takagaki/cortex-decisions-viewer",
3
- "version": "0.12.126",
3
+ "version": "0.12.127",
4
4
  "description": "Cortexの意思決定記録(Decisions/*.md)を静的サイトにビルドして閲覧する。各レコードに「Edit on GitHub」リンクを付与する。",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,