privateboard 0.1.2 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "privateboard",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "PrivateBoard · your private board meeting, on call. Local-first, multi-agent thinking amplifier.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -2362,7 +2362,8 @@
2362
2362
  return {
2363
2363
  room: document.querySelector('[data-main-view="room"]'),
2364
2364
  agent: document.querySelector('[data-main-view="agent"]'),
2365
- reports: document.querySelector('[data-main-view="reports"]')
2365
+ reports: document.querySelector('[data-main-view="reports"]'),
2366
+ notes: document.querySelector('[data-main-view="notes"]'),
2366
2367
  };
2367
2368
  }
2368
2369
 
@@ -2373,11 +2374,16 @@
2373
2374
  v.agent.setAttribute("hidden", "");
2374
2375
  v.agent.innerHTML = "";
2375
2376
  }
2376
- // The All Reports view is the third main pane; hide it when
2377
- // returning to a room so its placeholder card / list never bleeds
2378
- // through under the room view.
2377
+ // Hide every other top-level pane so its content / placeholder
2378
+ // doesn't bleed through under the room view. Each view is just
2379
+ // the same `.main-view` CSS box — without explicitly hiding the
2380
+ // siblings, two of them stack and the user sees a leaked
2381
+ // "All Notes" / "All Reports" empty state.
2379
2382
  if (v.reports) v.reports.setAttribute("hidden", "");
2383
+ if (v.notes) v.notes.setAttribute("hidden", "");
2380
2384
  document.querySelectorAll(".agent-row.active").forEach((r) => r.classList.remove("active"));
2385
+ document.querySelectorAll("[data-notes-trigger].active").forEach((el) => el.classList.remove("active"));
2386
+ document.querySelectorAll("[data-reports-trigger].active").forEach((el) => el.classList.remove("active"));
2381
2387
  currentlyOpenSlug = null;
2382
2388
  }
2383
2389
 
@@ -2458,10 +2464,14 @@
2458
2464
  if (!v.agent) return;
2459
2465
  v.agent.innerHTML = pageHTML(p, slug);
2460
2466
  if (v.room) v.room.setAttribute("hidden", "");
2461
- // If the user came from All Reports, hide that pane too — without
2462
- // this, both views render simultaneously and the reports placeholder
2463
- // card overlays the agent profile.
2467
+ // Hide the other top-level panes (All Reports / All Notes) so
2468
+ // their placeholder / list doesn't render under the agent profile.
2469
+ // Without these, opening agent profile from "All Notes" leaks the
2470
+ // notes empty-state through the agent view.
2464
2471
  if (v.reports) v.reports.setAttribute("hidden", "");
2472
+ if (v.notes) v.notes.setAttribute("hidden", "");
2473
+ document.querySelectorAll("[data-notes-trigger].active").forEach((el) => el.classList.remove("active"));
2474
+ document.querySelectorAll("[data-reports-trigger].active").forEach((el) => el.classList.remove("active"));
2465
2475
  v.agent.removeAttribute("hidden");
2466
2476
  // Centralized sidebar-focus handler · also clears New room /
2467
2477
  // New agent highlights and any stale session-row highlight, since