Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

1.3 KB
Raw Blame
// Flows for sign-in, the New tab pages, the New Harness form and the shortcuts page.
// The real app opens New Harness in the box; build the fixture with
// --dart-define=HARNESS_CURRENT_WORKSPACE=true to capture what people see.
//
// Fix group: 5, welcome pages, hints and downloads. Each group keeps its flows here, so parallel groups never
// edit the same file; load-flows.mjs reads every file in this folder.
import { menu, settings } from './steps.mjs';

export const FLOWS = [
  { name: 'signin', scenario: 'signin' },
  { name: 'signin-waiting', scenario: 'signin-waiting' },
  { name: 'signin-error', scenario: 'signin-error' },
  { name: 'signin-expired', scenario: 'signin-expired' },
  { name: 'signin-qr', scenario: 'signin-qr' },
  { name: 'signin-confirm', scenario: 'signin-confirm' },
  { name: 'new-tab', scenario: 'workspace', steps: [['exact', 'New Tab']] },
  // The New tab page's own New Swarm: what Alt+S does, by a click.
  {
    name: 'new-tab-new-swarm',
    scenario: 'workspace',
    steps: [['exact', 'New Tab'], ['exact', 'New Swarm']],
  },
  { name: 'empty-tab', scenario: 'empty-tab' },
  { name: 'split-pane', scenario: 'workspace', steps: menu('Split pane') },
  // A phone's Settings has no Keyboard shortcuts row to open.
  { ...settings('Keyboard shortcuts'), only: 'wide' },
];