@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.cjs CHANGED
@@ -2328,7 +2328,7 @@ var Sidebar = class {
2328
2328
  const orphans = comments.filter((c) => conf.get(c.id) === "orphaned");
2329
2329
  const anchored = comments.filter((c) => conf.get(c.id) !== "orphaned");
2330
2330
  const statusOf = (c) => c.status ?? "open";
2331
- const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) === "resolved") : anchored;
2331
+ const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) !== "open") : anchored;
2332
2332
  const visibleOrphans = this.filter === "all" ? orphans : [];
2333
2333
  const counts = countByStatus(comments);
2334
2334
  if (visible.length === 0 && visibleOrphans.length === 0) {
@@ -2439,7 +2439,7 @@ var Sidebar = class {
2439
2439
  Open <span class="vz-sidebar-filter-count">${counts.open}</span>
2440
2440
  </button>
2441
2441
  <button class="vz-sidebar-filter ${this.filter === "resolved" ? "is-active" : ""}" data-vz="filter" data-filter="resolved" role="tab" aria-selected="${this.filter === "resolved"}">
2442
- Resolved <span class="vz-sidebar-filter-count">${counts.resolved}</span>
2442
+ Resolved <span class="vz-sidebar-filter-count">${counts.resolved + counts.wontfix}</span>
2443
2443
  </button>
2444
2444
  <button class="vz-sidebar-filter ${this.filter === "all" ? "is-active" : ""}" data-vz="filter" data-filter="all" role="tab" aria-selected="${this.filter === "all"}">
2445
2445
  All <span class="vz-sidebar-filter-count">${total}</span>