Muvan AI · Deep dive 5

The PDF report system

From a customer's old report to a branded one that runs on its own, through a system I designed and built.

One report system, every client's brand: five example reports in a row, each cover above the busiest inside page of the same report, each in its client's own colors under an invented name: Quillmont Residential, Corvane Management Group, Westerholt Residential, Marivell Property Management and Brackwell Living
Five examples: each cover above the busiest page of its report, in that client's own brand.
THE REPORTS

A spreadsheet in, a decision out

Report generation started as one of my concept prototypes, made to test whether it would be a strong selling point. It was. But inside the product it depended on the data layer, one source of truth from six property management systems (PMSs), and that took far longer to build than expected.

Customers got PDF reports from Muvan: weekly property reports, monthly portfolio reviews, quarterly asset management reports. Before, their own teams made them, as raw Excel workbooks, meeting decks and dated PDFs. I designed the reports and built the system that makes them instead, with Claude Code, the same way I shipped to the app.

What the client sends and what the report shows: twelve months of operating figures in a spreadsheet, with income, operating expense, NOI, occupancy and in-place rent for each month, and the dashboard page drawn from it: income against NOI as paired bars, with occupancy and the average in-place rent as two lines on the same timeline below
What the client sends and what the report shows: occupancy for six properties in April, May and June in a spreadsheet, and the quarterly report's dumbbell chart drawn from it, one row per property from where it started the quarter to where it ended, against the portfolio's 87.9%
The raw rows, and what the report makes of them.

A year of income, NOI, occupancy and rent becomes linked panels on one timeline, so a dip in NOI reads against what happened to occupancy that month. Three months of occupancy per property become a dumbbell against the portfolio average: where each property started the quarter, where it ended and which way it moved, in one glance instead of eighteen cells.

BUILDERS

A report that won't print wrong numbers

When a customer needs a new report, the one they had before reaches us once, as a reference: an Excel workbook or a meeting deck. Each data driven report has a builder, a script that reads that reference and checks that the figures add up before anything prints. If they don't, the report says so instead of quietly making them fit. In one quarterly report, property move-ins summed to 76 while the portfolio total said 81, so the report shows the difference as "not reported at property level".

The newest builder is stricter. It reads the customer's deck into one JSON file, every figure taken from where it sits on a slide, and checks the deck against itself: each property's slide against its row on the scorecard and against the portfolio totals, and one mismatch stops the build. The same data then prints in A4 and in landscape, for the customer to approve.

Once they approve it, they don't need to send a report again: the same JSON is filled from the data Muvan already collects from their PMSs, and the report is generated on its own. That was the whole idea: to save their team the time of making reports.

Steps 1 and 2 of the newest report's builder. Read: the client's own deck, each figure read by its spot on the slide, and nothing hardcoded: portfolio names, months and dates come from the deck. Check: a mismatch stops the build, with the reconciliation code that compares each property's slide to the scorecard
Steps 3 and 4. Data: one JSON file, the only input, with the occupancy marked A. Build and print: the terminal regenerating both layouts, printing 23 pages in A4 and 23 in landscape, and checking page counts, sizes and the cover photos
The newest report in four steps: read, check, data, print. The check is quoted from its real code.
The quarter at a glance page twice, in portrait and in landscape A4, with the same KPI band, charts and callout
The same page in portrait and in landscape A4, from one builder.
ONE LANGUAGE

One design language, any customer's brand

The reports borrow from two design systems: Atlassian's patterns for the branded blocks (KPI cards, status lozenges, callouts, section bands) and IBM Carbon's for dense data tables (grouped rows, zebra stripes, subtotals). Everything wears the customer's brand through tokens in two layers: the brand on top, and a shared core underneath that every component uses.

A new customer starts from one to three brand colors. A generator I wrote derives the full palette from them: table tints from the primary color, never the accent, which would read as highlighted rows; and a title band darkened until white text passes 4.5:1 contrast. Status colors never share a family with the brand, so when a customer's accent is amber, warning moves to orange. Each customer's brand lives in code, as one token file.

How a client report is built: two or three brand colors, a generator with the contrast rule built in, one token file per client, one builder for every chart, and the printed pages
Two or three brand colors onboard a client; the builders do the rest.

Six decisions behind the newest report's dense A4 pages: two follow Atlassian and Carbon, and four are my own rules.

The top of a report page: Portfolio at a Glance on a dark band, with five stat cards for occupancy, delinquency and applications, each with its change in a small lozenge
Branded blocks you read in a glance. A stat card per headline number with its change in a small lozenge, on a band dark enough for white text at 4.5:1 or more.
A table of five portfolios with zebra rows, right-aligned figures, changes in green and red, and a dark total row
Tables built for density. Zebra rows, a dark total row, numbers right-aligned in tabular figures. If one header wraps, every header aligns to the top.
Three occupancy boxes in a row, each with its figure, then a status or change, then the same in words: 90%+ band and Units occupied, 0.0 pts and vs today, down 1.1 pts and Today vs LY
The comparison stays inside the box. Row one is the status, row two says it in words, so a row of boxes lines up and no label spills out.
The All Properties scorecard: its legend of occupancy and delinquency bands in green, orange and red lozenges, and a property table with the same lozenges
Status never borrows the brand. The accent is yellow, so warnings turn orange. Yellow text on white is 1.5:1, so small accent text is a deep gold at 6.1:1.
Three charts: month-end occupancy on an axis from 92% to 100% with its 100% months labeled above their points, and two bar charts where only the current figure is full gold
Charts that don't mislead. The current figure alone is full gold. The axis starts where the data does, and a 100% month keeps its label above its point.
Three delinquency boxes: 38.7% in its 10%+ band, $57,539 of $148,679 charged, and a change of -4.8 pts against last month in green
Green means better, not up. A drop in delinquency is good news, so it's green. In the builder's own words: "arrow = direction, colour = whether that direction is good".
CHARTS

One chart form for each question

Seven chart forms cropped from printed report pages, each labeled with the question it answers: linked panels, whether an income dip came from occupancy or rent; a dumbbell, where each property started and ended the quarter; a donut, how far the renovations have come; benchmark bars, today against last month and last year; a banded scorecard, which properties are outside their bands; diverging bars, where rents rose and where they fell; and part-to-whole bars, how many vacant units are ready and how many are leased
Not only bars and lines: each form answers one question a property team brings to the report.

Charts come from a print chart library I built, drawn as SVG from the customer's tokens, and maps from US Census geodata in the brand colors.

PRINT

Print is its own medium

Page 2 of a weekly property review on A4, with its measurements drawn on: 595 by 842 points, 35-point side margins and 525 of content, a 20-point gap at every section break, 12 points from a label to its table, and content ending at 762, above a 30-point keep-out and the 50-point footer
A weekly review's page 2, measured in Chrome; the printed PDF matches it within half a point.

Every rule lives in one playbook that each client's report inherits. It covers everything from where each truth lives (Figma for the visual design, code for the data, the same token names on both sides) to how a table breaks across pages without splitting a row. Some rules fit in a line, like "Paint coloured bands on the ROW, never per cell (no phantom PDF seams)."

HANDOFF

A clean line between design and data

Two sides of one line. On the left, their backend, where the data team owns the run: their cron runs the job every week, pulls from the property systems, some through an API and some through scheduled report files, maps each system's fields onto the contract with every figure formatted to print, delivers the PDF by email, to storage or posted, and keeps every credential and secret on its side. On the right, my package, where I own the contract and the design: the tokens, the components and the five pages, all presentation only; sample data that prints out of the box; the contract in types.ts, field by field matching the page, where TypeScript flags any field that is missing or mistyped; one command that prints the A4 PDF; and a README that walks a developer through it. Between them, week.json, one typed object, crosses from Map to Contract, and report.pdf comes back from Render to Deliver.
Only two things cross the line: one typed object going in, and the PDF coming back.

The first report went to engineering as a package of its own, outside the app, so the data team could own the weekly run. I drew the line at one typed object. Their backend pulls from the PMSs, maps the fields and sends that object as JSON; the package turns it into the PDF.

They own the schedule, the mapping, the delivery and every credential. The package owns the contract and the design, so real data never means touching a component. Sample data renders out of the box, and a README walks a developer through it.

These are my real report designs. The companies and their numbers are invented, to protect the real customers' privacy.