@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/internal.cjs CHANGED
@@ -1328,7 +1328,7 @@ var Sidebar = class {
1328
1328
  const orphans = comments.filter((c) => conf.get(c.id) === "orphaned");
1329
1329
  const anchored = comments.filter((c) => conf.get(c.id) !== "orphaned");
1330
1330
  const statusOf = (c) => c.status ?? "open";
1331
- const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) === "resolved") : anchored;
1331
+ const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) !== "open") : anchored;
1332
1332
  const visibleOrphans = this.filter === "all" ? orphans : [];
1333
1333
  const counts = countByStatus(comments);
1334
1334
  if (visible.length === 0 && visibleOrphans.length === 0) {
@@ -1439,7 +1439,7 @@ var Sidebar = class {
1439
1439
  Open <span class="vz-sidebar-filter-count">${counts.open}</span>
1440
1440
  </button>
1441
1441
  <button class="vz-sidebar-filter ${this.filter === "resolved" ? "is-active" : ""}" data-vz="filter" data-filter="resolved" role="tab" aria-selected="${this.filter === "resolved"}">
1442
- Resolved <span class="vz-sidebar-filter-count">${counts.resolved}</span>
1442
+ Resolved <span class="vz-sidebar-filter-count">${counts.resolved + counts.wontfix}</span>
1443
1443
  </button>
1444
1444
  <button class="vz-sidebar-filter ${this.filter === "all" ? "is-active" : ""}" data-vz="filter" data-filter="all" role="tab" aria-selected="${this.filter === "all"}">
1445
1445
  All <span class="vz-sidebar-filter-count">${total}</span>