@unhingged/vizu-core 0.1.18 → 0.1.19

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/dist/auto.js CHANGED
@@ -2302,7 +2302,7 @@ var Sidebar = class {
2302
2302
  const orphans = comments.filter((c) => conf.get(c.id) === "orphaned");
2303
2303
  const anchored = comments.filter((c) => conf.get(c.id) !== "orphaned");
2304
2304
  const statusOf = (c) => c.status ?? "open";
2305
- const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) === "resolved") : anchored;
2305
+ const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) !== "open") : anchored;
2306
2306
  const visibleOrphans = this.filter === "all" ? orphans : [];
2307
2307
  const counts = countByStatus(comments);
2308
2308
  if (visible.length === 0 && visibleOrphans.length === 0) {
@@ -2413,7 +2413,7 @@ var Sidebar = class {
2413
2413
  Open <span class="vz-sidebar-filter-count">${counts.open}</span>
2414
2414
  </button>
2415
2415
  <button class="vz-sidebar-filter ${this.filter === "resolved" ? "is-active" : ""}" data-vz="filter" data-filter="resolved" role="tab" aria-selected="${this.filter === "resolved"}">
2416
- Resolved <span class="vz-sidebar-filter-count">${counts.resolved}</span>
2416
+ Resolved <span class="vz-sidebar-filter-count">${counts.resolved + counts.wontfix}</span>
2417
2417
  </button>
2418
2418
  <button class="vz-sidebar-filter ${this.filter === "all" ? "is-active" : ""}" data-vz="filter" data-filter="all" role="tab" aria-selected="${this.filter === "all"}">
2419
2419
  All <span class="vz-sidebar-filter-count">${total}</span>