@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/index.cjs CHANGED
@@ -2338,7 +2338,7 @@ var Sidebar = class {
2338
2338
  const orphans = comments.filter((c) => conf.get(c.id) === "orphaned");
2339
2339
  const anchored = comments.filter((c) => conf.get(c.id) !== "orphaned");
2340
2340
  const statusOf = (c) => c.status ?? "open";
2341
- const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) === "resolved") : anchored;
2341
+ const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) !== "open") : anchored;
2342
2342
  const visibleOrphans = this.filter === "all" ? orphans : [];
2343
2343
  const counts = countByStatus(comments);
2344
2344
  if (visible.length === 0 && visibleOrphans.length === 0) {
@@ -2449,7 +2449,7 @@ var Sidebar = class {
2449
2449
  Open <span class="vz-sidebar-filter-count">${counts.open}</span>
2450
2450
  </button>
2451
2451
  <button class="vz-sidebar-filter ${this.filter === "resolved" ? "is-active" : ""}" data-vz="filter" data-filter="resolved" role="tab" aria-selected="${this.filter === "resolved"}">
2452
- Resolved <span class="vz-sidebar-filter-count">${counts.resolved}</span>
2452
+ Resolved <span class="vz-sidebar-filter-count">${counts.resolved + counts.wontfix}</span>
2453
2453
  </button>
2454
2454
  <button class="vz-sidebar-filter ${this.filter === "all" ? "is-active" : ""}" data-vz="filter" data-filter="all" role="tab" aria-selected="${this.filter === "all"}">
2455
2455
  All <span class="vz-sidebar-filter-count">${total}</span>