@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.js CHANGED
@@ -1298,7 +1298,7 @@ var Sidebar = class {
1298
1298
  const orphans = comments.filter((c) => conf.get(c.id) === "orphaned");
1299
1299
  const anchored = comments.filter((c) => conf.get(c.id) !== "orphaned");
1300
1300
  const statusOf = (c) => c.status ?? "open";
1301
- const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) === "resolved") : anchored;
1301
+ const visible = this.filter === "open" ? anchored.filter((c) => statusOf(c) === "open") : this.filter === "resolved" ? anchored.filter((c) => statusOf(c) !== "open") : anchored;
1302
1302
  const visibleOrphans = this.filter === "all" ? orphans : [];
1303
1303
  const counts = countByStatus(comments);
1304
1304
  if (visible.length === 0 && visibleOrphans.length === 0) {
@@ -1409,7 +1409,7 @@ var Sidebar = class {
1409
1409
  Open <span class="vz-sidebar-filter-count">${counts.open}</span>
1410
1410
  </button>
1411
1411
  <button class="vz-sidebar-filter ${this.filter === "resolved" ? "is-active" : ""}" data-vz="filter" data-filter="resolved" role="tab" aria-selected="${this.filter === "resolved"}">
1412
- Resolved <span class="vz-sidebar-filter-count">${counts.resolved}</span>
1412
+ Resolved <span class="vz-sidebar-filter-count">${counts.resolved + counts.wontfix}</span>
1413
1413
  </button>
1414
1414
  <button class="vz-sidebar-filter ${this.filter === "all" ? "is-active" : ""}" data-vz="filter" data-filter="all" role="tab" aria-selected="${this.filter === "all"}">
1415
1415
  All <span class="vz-sidebar-filter-count">${total}</span>