@loupekit/sdk 0.10.20 → 0.10.21-next.67

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.
@@ -639,6 +639,12 @@ var Loupe = (() => {
639
639
  .prchip.st-merged { border-color: #8250df; color: #8250df; }
640
640
  .prchip.st-merged:hover { background: #8250df; color: #fff; }
641
641
  .prchip.st-closed { border-color: var(--line); color: var(--muted); }
642
+ /* a revision of another thread \u2014 the conversation carried over */
643
+ .iterchip {
644
+ padding: 1px 6px; border-radius: 999px; white-space: nowrap;
645
+ border: 1px dashed var(--line); background: var(--bg); color: var(--muted);
646
+ font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
647
+ }
642
648
  /* a preview that is actually live \u2014 never shown optimistically */
643
649
  .previewchip {
644
650
  padding: 1px 6px; border-radius: 6px; text-decoration: none; white-space: nowrap;
@@ -3170,6 +3176,13 @@ var Loupe = (() => {
3170
3176
  return isPending(record) ? { ...record, state: "idle", request: null } : record;
3171
3177
  }
3172
3178
 
3179
+ // ../shared/dist/thread.js
3180
+ function iterationLabel(link) {
3181
+ if (!link.parentThreadId || link.iterationType !== "revision")
3182
+ return null;
3183
+ return `Iteration ${link.iterationNumber ?? 2}`;
3184
+ }
3185
+
3173
3186
  // ../shared/dist/index.js
3174
3187
  var COMMENT_STAGES = ["queue", "todo", "in_progress", "in_review", "resolved"];
3175
3188
  var STAGE_LABELS = {
@@ -3217,7 +3230,7 @@ var Loupe = (() => {
3217
3230
  }
3218
3231
 
3219
3232
  // src/app.ts
3220
- var SDK_VERSION = true ? "0.10.20" : "dev";
3233
+ var SDK_VERSION = true ? "0.10.21" : "dev";
3221
3234
  var ACCENTS = [
3222
3235
  { id: "indigo", dark: "#6b73e6", light: "#4a55d6", soft: "rgba(107,115,230,0.12)" },
3223
3236
  { id: "violet", dark: "#a06be6", light: "#7c3fd4", soft: "rgba(160,107,230,0.14)" },
@@ -5309,6 +5322,12 @@ var Loupe = (() => {
5309
5322
  top.appendChild(preview);
5310
5323
  }
5311
5324
  }
5325
+ const iteration = iterationLabel(c);
5326
+ if (iteration) {
5327
+ const chip = el("span", "iterchip", iteration);
5328
+ chip.title = `Revision of thread #${c.parentThreadId}`;
5329
+ top.appendChild(chip);
5330
+ }
5312
5331
  if (this.showPaths && this.scope === "all" && c.url) {
5313
5332
  top.appendChild(el("span", "pathtag", shortPath(c.url)));
5314
5333
  }