Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:23blocks OS Ai maestro Dashboard Page

From Leeroopedia
Knowledge Sources
Domains UI, Agent_Orchestration
Last Updated 2026-10-26 18:00 GMT

Overview

Concrete tool for rendering the main AI Maestro dashboard — agent list, terminal, chat, memory graph, board, and tab management — provided by AI Maestro's `app/page.tsx`.

Description

The DashboardPage is the root client component of the AI Maestro web application. It orchestrates the entire single-page dashboard: it fetches the agent fleet via `useAgents`, manages the active-agent selection state (agent-centric, not session-driven), and renders a multi-tab layout (terminal, chat, streaming, messages, worktree, graph, memory, docs, canvas, board, matrix, search, export, playback). It dynamically imports heavy sub-components (OnboardingFlow, MemoryViewer, AgentGraph, CanvasPanel, etc.) with `next/dynamic` and `ssr: false` to reduce initial bundle size by ~100KB+. Layout is responsive: phone, tablet, and desktop variants, with a persistent sidebar (resizable, width persisted to localStorage) and a tab selection persisted across reloads. It integrates onboarding checks, organization setup, import/export dialogs, and the help panel.

Usage

Import this component as the Next.js page default export when serving the dashboard at `/`. It is the entry point for the full UI; no manual instantiation is needed — Next.js App Router renders it automatically.

Code Reference

Source Location

  • Repository: ai-maestro
  • File: app/page.tsx
  • Lines: L1-L1310

Signature

export default function DashboardPage(): JSX.Element

Import

// Next.js App Router renders this automatically as the page at /
// No explicit import needed; this is the default export of app/page.tsx

I/O Contract

Inputs

Name Type Required Description
(none) — — Pure React component; reads state from hooks (useAgents, useDeviceType, useToast) and localStorage

Outputs

Name Type Description
JSX ReactElement The full dashboard UI tree (sidebar + tab panels + dialogs)

Usage Examples

Next.js App Router (automatic)

// app/page.tsx is the default export; Next.js renders it at route "/".
// No manual code needed — the framework picks it up automatically.

Programmatic tab selection (via localStorage)

// The dashboard persists the active tab:
localStorage.setItem('aimaestro-active-tab', 'memory')
// On next load, the dashboard opens on the Memory tab.

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment