Skip to main content

Product analytics: Signal Pro

Signal is ink-coloured so the charts carry the colour. It's built like a product people pay for:

  • Workspace switcher at the top of the sidebar (Northwind on Pro, Acme Labs on Business, a free sandbox), Favorites for starred reports, a count on the board, a dot on Reports and a New tag on Copilot.
  • ⌘K command palette: every screen with its G then letter shortcut, actions (New report, Ask Copilot, Invite teammates, Export), Switch workspace… as a page, and reports and people from a simulated server as you type, with a spinner and skeletons while it answers.
  • Notification inbox in the top bar: mentions, invites with Accept and Decline, AI findings, billing and incident notices over the past week, grouped by day; swipe or hover to read, snooze or archive. A new mention arrives a few seconds in, so you see the count pop.
  • Usage card above the user: 8.4M of 10M events, amber past 80%, with Upgrade going to Billing.
  • A resizable sidebar on the web, a rail with a full drawer on tablets, and tabs with More (or phoneNav="drawer") on phones.
See it live, on any device

Use the whole app​

import { SaasApp } from '@patine-ui/pro';

<SaasApp />;
PropTypeDefault
initialRoute'overview' | 'funnels' | 'audience' | 'reports' | 'copilot' | 'roadmap' | 'board' | 'status' | 'billing''overview'
demo'ready' | 'loading' | 'empty' | 'error''ready'
insets{ top, bottom }None
platform'ios' | 'android' | 'web'Platform.OS
phoneNav'tabs' | 'drawer''tabs'
onColorSchemeChange(scheme: 'light' | 'dark' | 'system') => void: adds Change theme… to the palette
liveNotificationsboolean: a notification arrives a few seconds intrue

Screens move the platform's way: on iOS a pushed screen slides in from the trailing edge, on Android they fade through, on the web and between tabs they fade in. Reduce motion turns it off.

Screens​

ScreenWhat it does
AnalyticsOverviewScreenStatsRow, a ComboChart with a second axis, a FunnelChart and the ActivityFeed
FunnelsScreenA FunnelChart by step, the biggest drop called out, channels in a sortable Table
AudienceScreenA bubble ScatterChart with a trend, a PieChart, a RadarChart and a HeatmapChart
ReportsScreenPro's TreeView of folders, Breadcrumbs, a DataTable that becomes cards on phones, Pagination
CopilotScreenPro's Chat with tool calls and reasoning, AgentActivity and AIUsageMeter
RoadmapScreenPro's Gantt with dependencies and a milestone
BoardScreenPro's Kanban with a WIP limit and Move to…
StatusScreenStatusTracker per service, a latency GaugeChart, incidents on a Timeline
SaasBillingScreenUsage by source, PricingTable with monthly and yearly, invoices

Every screen is exported on its own, takes its data as props, and has sample data as defaults. biggestDrop(stages) finds the funnel step that loses the most; pageOf and filterReports drive the reports table.

Built with​

The free components, from patine-ui:

Avatar · Badge · Breadcrumbs · Button · Card · EmptyState · Heading, Text · Pagination · SearchField · SegmentedControl · Separator · Table

And from Patine Pro:

Files​

saas/
├── hooks/
│ └── useSaas.ts
├── AnalyticsOverviewScreen.tsx
├── AudienceScreen.tsx
├── CopilotScreen.tsx
├── FunnelsScreen.tsx
├── index.ts
├── ReportsScreen.tsx
├── RoadmapScreen.tsx
├── saas.constants.ts
├── saas.utils.ts
├── SaasApp.tsx
├── SaasBillingScreen.tsx
├── SprintBoardScreen.tsx
└── StatusScreen.tsx

It also uses shared/, the theme, money formatting and screen transitions every Pro app shares.

A look at the code​

The funnel’s step rates and its biggest drop, from saas.utils.ts:

/** Each funnel step's share of the one before, as a rounded percent: the biggest drop is where to look first. */
export const stepRates = (stages: readonly { stage: string; users: number }[]) =>
stages.map((s, i) => ({
...s,
rate: i === 0 ? 1 : s.users / (stages[i - 1]?.users || 1),
}));

/** The step that loses the most people. */
export const biggestDrop = (stages: readonly { stage: string; users: number }[]) =>
stepRates(stages)
.slice(1)
.reduce((worst, s) => (s.rate < worst.rate ? s : worst), { stage: '', users: 0, rate: 1 });
Get the source with Pro