Deliverable Viewer

The file an agent hands back: a card in the conversation, and a viewer with page thumbnails, zoom, sheets, download and expand.

Halden-Account-Plan.pptxSlides · PPTX · 4 slides

Halden account plan

PPTX
4 / 4

Forecast

$1.2M upside if governance clears by Jan 15

Forecast ARR ($M)
$2.4M
$2.9M
$3.6M
RisksCISO needs audit-log and data-boundary evidence
Next stepsDec 9 review → Jan 15 sign-off → Feb 1 pilot
Source: data room and #acct-halden

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/deliverable

Usage

import { DeliverableCard, type DeliverableContent, DeliverableViewer } from "./ui/uicontext/components/kit/Deliverable.ts"
const Message = UiSchema.TaggedEnum({ ClickedOpen: { id: Schema.String }, ClickedDownload: { id: Schema.String }, ClosedViewer: {} })const content: DeliverableContent = { _tag: "Slides", slides: [{ cover: true, title: "Q3 review" }, { title: "Revenue", bullets: ["Up 18% on Q2"] }] }// the card in the conversation; the viewer where the app shows it, opened on the slide the agent addedexport const Deck = (h: Html.H<typeof Message.Type>, open: boolean) => [	DeliverableCard(h, { name: "Q3-Review.pptx", content, open, onOpen: Message.ClickedOpen({ id: "q3" }), onDownload: Message.ClickedDownload({ id: "q3" }) }),	open && DeliverableViewer(h, {		props: { id: "q3", name: "Q3-Review.pptx", content, initialPage: 1, changed: [1] },		onEmit: {			RequestedClose: () => Message.ClosedViewer(),			RequestedDownload: ({ id }) => Message.ClickedDownload({ id }),			RequestedExpand: () => undefined,		},	}),]

Examples

A spreadsheet

Column letters, row numbers and a frozen header, the agent's best pick marked, and the sheets as tabs. Zoom scales the grid.

Vendor-Comparison

XLSX
VendorPer seat / mo40 seats / yrSSOFit
Fernway$14$6,720YesBest fit, under budget
Orbitly$25$12,000YesOver budget
Quillstack$18$8,640YesNo audit log below Enterprise

A document

Pages fit the width, as a reader does, with a page rail beside them.

Q4-Board-Update

DOCX
1 / 2

Q4 board update

We closed the quarter ahead of plan: revenue grew 18% to $4.12M and retention stayed above 120%.

Decision needed: approve the FY27 hiring plan.

  • Net retention 121%
  • Two enterprise logos
  • Forecasting is generally available

API reference

DeliverableViewerComponent

Props

DeliverableViewer props
NameTypeDefaultDescription
agentIdstring—The id agents see this viewer by; deliverable:<id> when left out
idrequiredstring—Identifies the file in the events it sends
namerequiredstring—The file's name, with its extension
titlestring—What people call it, as the heading: "Halden account plan"; the name without its extension by default
contentrequiredDeliverableContent——
initialPagenumber—The page it opens on, from 0: the slide the agent added. Read once, as it mounts.
changednumber[]—Pages the agent added or changed, from 0: their thumbnails are marked New
expandedboolean—The viewer fills the app: the Expand button reads Collapse
closablebooleanonShow Close; on by default
expandablebooleanonShow Expand; on by default. Leave it off where the viewer already fills the screen, as on a phone.

Events

DeliverableViewer events
EventPayloadDescription
RequestedDownload{ id: string }—
RequestedExpand{ id: string; expanded: boolean }Expand or Collapse: the app gives the viewer the whole frame, or its place back
RequestedClose{ id: string }—

DeliverableCardView function

Options

DeliverableCard options
NameTypeDescription
namerequiredstringThe file's name, with its extension: "Account-Plan.pptx"
contentrequiredDeliverableContent—
openbooleanThe file is open in the viewer now: Open reads "Opened"
generatingbooleanStill being made: no Open yet
onOpenrequiredMessage—
onDownloadMessage—
localestring—
styleStyle—

Source