Cosmo Docs
Hub

Canvas

Working with the Hub canvas — where artifacts come to life.

The canvas is the main content area within the Hub where artifacts are rendered and viewed. It adapts based on what you're looking at — dashboard widgets, task lists, or full-screen artifact documents.

Canvas Views

The Hub canvas switches between several views depending on your navigation:

Tab Views

When a Hub tab is selected (Dashboard, Tasks, Daily Digest), the canvas shows the corresponding content:

  • Dashboard — Overview cards with focus tasks, activity charts, quick shortcuts, and connector status
  • Tasks — Filterable task list grouped by workspace, managed by AI through chat
  • Daily Digest — Your daily summary of activity and action items

Workspace View (Artifact List)

When you click a workspace in the Hub sidebar, the canvas switches to show that workspace's artifacts:

  • A header with the workspace name, artifact count, and a back button
  • Artifact cards sorted by last modified, each showing title, type, version, and timestamp
  • An empty state prompting you to ask Cosmo to create artifacts if none exist yet

Artifact Viewer

When you click an artifact, the canvas renders it as a full interactive HTML document:

  • Sticky header — Always visible at the top with the artifact title, version badge, back button, refresh control, and edit toggle
  • HTML content — The artifact's complete content rendered in a secure, sandboxed frame
  • Interactive charts — Chart.js visualizations with tooltips and hover effects
  • Auto-refresh — When the artifact is updated via chat, the viewer refreshes automatically

Artifact Editor

Click the pencil icon in the artifact header to enter edit mode and modify the artifact's content directly — without going through chat.

Formatting toolbar:

ActionKeyboard
BoldCtrl/Cmd + B
ItalicCtrl/Cmd + I
UnderlineCtrl/Cmd + U
Heading 2 / Heading 3Toolbar buttons
Bullet listToolbar button
Numbered listToolbar button

Saving and discarding:

  • Click Save or press Ctrl/Cmd + S to persist your changes
  • Click Discard or press Escape to exit without saving
  • If a save fails, the editor stays open and shows the error so you can retry

Chat consistency: The next time Cosmo reads this artifact (e.g. to summarise or update it via chat), it uses the saved version — manual edits are fully reflected in the AI context.

The canvas supports drill-down navigation with a simple back-button pattern:

  1. Hub tabs (Dashboard / Tasks / Digest) — the default top-level views
  2. Workspace click — drills into that workspace's artifact list
  3. Artifact click — opens the full artifact viewer
  4. Back button — returns one level up (artifact → workspace list → Hub tabs)

Clicking any Hub tab at any point returns you directly to the top-level tab views.

Security

Artifact HTML is rendered in a sandboxed iframe with allow-scripts permission only. This means:

  • Charts and interactive elements work normally
  • The artifact cannot access your Cosmo session, cookies, or local storage
  • The artifact cannot navigate away or open popups
  • External network requests from within the artifact are blocked