@cryptiklemur/lattice 1.22.1 → 1.22.2

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.
@@ -274,9 +274,6 @@ export function Sidebar({ onSessionSelect }: { onSessionSelect?: () => void }) {
274
274
  onClick={function () {
275
275
  setAnalyticsScope("global");
276
276
  openTab("analytics");
277
- getSidebarStore().setState(function (s) {
278
- return { ...s, activeView: { type: "chat" } };
279
- });
280
277
  }}
281
278
  className="flex items-center gap-2 w-full px-2 py-1.5 rounded-lg text-[11px] text-base-content/40 hover:text-base-content/70 hover:bg-base-300/30 transition-colors"
282
279
  >
@@ -13,6 +13,7 @@ import { AnalyticsView } from "./components/analytics/AnalyticsView";
13
13
  import { NodeSettingsModal } from "./components/sidebar/NodeSettingsModal";
14
14
  import { AddProjectModal } from "./components/sidebar/AddProjectModal";
15
15
  import { useSidebar } from "./hooks/useSidebar";
16
+ import { useWorkspace } from "./hooks/useWorkspace";
16
17
  import { useWebSocket } from "./hooks/useWebSocket";
17
18
  import { useSwipeDrawer } from "./hooks/useSwipeDrawer";
18
19
  import { exitSettings, getSidebarStore, handlePopState, closeDrawer, toggleDrawer } from "./stores/sidebar";
@@ -494,14 +495,24 @@ class ViewErrorBoundary extends Component<{ children: ReactNode; viewName: strin
494
495
 
495
496
  function IndexPage() {
496
497
  var sidebar = useSidebar();
498
+ var workspace = useWorkspace();
497
499
  var viewName = sidebar.activeView.type;
500
+
501
+ var activePane = workspace.panes.find(function (p) { return p.id === workspace.activePaneId; });
502
+ var activeTab = activePane
503
+ ? workspace.tabs.find(function (t) { return t.id === activePane!.activeTabId; })
504
+ : null;
505
+ var hasWorkspaceTab = activeTab && activeTab.id !== "chat";
506
+
498
507
  var content;
499
- if (viewName === "dashboard") {
500
- content = <DashboardView />;
501
- } else if (viewName === "settings") {
508
+ if (viewName === "settings") {
502
509
  content = <SettingsView />;
503
510
  } else if (viewName === "project-settings") {
504
511
  content = <ProjectSettingsView />;
512
+ } else if (hasWorkspaceTab) {
513
+ content = <WorkspaceView />;
514
+ } else if (viewName === "dashboard") {
515
+ content = <DashboardView />;
505
516
  } else if (viewName === "project-dashboard") {
506
517
  content = <ProjectDashboardView />;
507
518
  } else if (viewName === "analytics") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptiklemur/lattice",
3
- "version": "1.22.1",
3
+ "version": "1.22.2",
4
4
  "description": "Multi-machine agentic dashboard for Claude Code. Monitor sessions, manage MCP servers and skills, orchestrate across mesh-networked nodes.",
5
5
  "license": "MIT",
6
6
  "author": "Aaron Scherer <me@aaronscherer.me>",