Point to an element to see the design tokens behind it.
Back to work

Skydio Autonomy Widget

Built a React mission-control widget in Skydio's Rivit design language. One typed config file drives four mission types and 15+ mission actions, and the widget runs on its own state or on state the host app passes in.

My role
Frontend Consultant · Component Architecture & Storybook
Timeline
2025 (Contract)
Built with
  • React
  • TypeScript
  • Storybook
  • Tailwind CSS
  • Vite
  • Vitest
  • Chromatic
  • Config-Driven UI
Skydio Autonomy Widget Orbit Mode in Storybook.
Orbit Mode · Storybook

One widget, four mission types

The Skydio Autonomy Widget is a React interface for drone mission controls. I came in as a frontend consultant, built the component architecture in Skydio's Rivit design language, and documented it in Storybook. One widget handles all four mission types: Waypoint, RTD, Orbit, and Tracking.

Everything the widget shows comes from one typed config file, and its state can live inside the widget or come from the app around it. That makes it close to a headless component: the config decides what it shows, the provider decides who owns the state, and the widget reports what the operator pressed. The public Storybook, linked on this page, walks through each part with live examples.

One config file drives the widget

AutonomyWidget.configs.ts is a typed catalog with an entry for each of 13 mission states. An entry sets the status text, the paused text, the timer icon, and the controls to show while the mission is active and while it's paused. The widget looks up the current mission and renders that entry.

typescript
// AutonomyWidget.configs.ts (excerpt)
export const ACTION_CONFIGS: Record<ActionType, ActionConfig> = {
'waypoint-mission': {
  displayName: 'Flying to Point 1',
  pausedName: 'Mission Paused',
  actionTooltip: 'ETA to Point 1',
  timerIcon: 'RouteIcon',
  buttons: [...WAYPOINT_BUTTONS],
  pausedButtons: [EXIT_MISSION_BUTTON],
},
orbiting: {
  displayName: 'Orbiting',
  pausedName: 'Orbit Paused',
  actionTooltip: 'Orbiting',
  timerIcon: 'OrbitIcon',
  buttons: [ORBIT_SLIDER_BUTTON],
  pausedButtons: [ORBIT_SLIDER_BUTTON],
},
// ...11 more mission states
}

Adding a mission means adding it to the ActionType union, writing its entry, and testing its active and paused states. The layout stays the same. Only a new kind of control needs renderer work.

Local state or host state

AutonomyWidgetProvider is the state boundary, and it works two ways. Pass initialState and the widget is uncontrolled: it starts from that input and handles pause, resume, expansion, and orbit progress itself. Pass state and onStateChange and it's controlled: each change comes back to the host app as a proposal, and the app decides what to keep. The app can fill that state from an API response, a store, or device events.

tsx
<AutonomyWidgetProvider
state={state}
onStateChange={onStateChange}
onAction={onAction}
onOrbitProgressChange={onOrbitProgressChange}>
<AutonomyWidget />
</AutonomyWidgetProvider>

In both modes the widget never fetches data or talks to the drone. A mission button emits { type: 'mission-action', action, id } through onAction, and orbit changes go out through onOrbitProgressChange. Sending the command, confirming it, and syncing telemetry stay with the host app, and the timer counts down locally from the duration it's given.

The widget's main components:
  • Timer: a countdown ring with a text and icon transition, and a completion callback

  • OrbitSlider: a fixed center reference and a progress indicator that two native caret buttons move in 5% steps

  • Button: native buttons in a closed set of variants (default, action, play, stop, caret), with hover and focus tooltips

  • StatusMessage: the one-line mission status, announced through a polite live region

  • Tooltip: opens on hover or focus and closes with Escape

Docs and tests in Storybook

The Storybook has guide pages for the overview, architecture, design system, tokens, integration, component API, and verification. Interaction stories press the same named buttons a person would and check pause and resume, expansion, the typed action payload, and the orbit limits. Story and behavior tests run in Chromium through Vitest, and any violation the accessibility addon finds fails the run. Chromatic captures every story for visual review, and a person accepts the baselines.

A component system the team can extend

Icons exported from Figma as SVG became React components through SVGR. Color, type, geometry, and motion live in one Tailwind v4 stylesheet, where palette primitives feed semantic roles such as --color-action-pause and components use only the roles. Below a 600px viewport the widget keeps the timer and the pause control and takes the secondary row out of the tab order. On touch screens the controls grow to 44px targets.

Component imports and build setup

Component exports

One barrel file, src/components/index.ts, exports the widget, its provider and types, and the shared components.

typescript
import {
AutonomyWidget,
AutonomyWidgetProvider,
Button,
OrbitSlider,
Timer,
} from 'components'

Build setup

It builds with Vite inside a pnpm workspace, under ESLint and TypeScript strict mode. Vercel builds and serves the Storybook, and Chromatic handles visual review.

Handoff through Storybook

The widget shipped in a Skydio software release. I handed off the components and the Storybook docs, and trained Skydio's product and engineering teams on the component patterns.

Project notes

Shipped

The mission-control widget went out in a Skydio software release

Config-Driven

One typed config file defines 15+ mission actions across 13 mission states

Storybook

Guided docs, live examples, and interaction tests, with accessibility violations failing the run