← Back to work
Case 01 · Enterprise systems

Turning a formula language into something you can see.

District administrators were writing nested formula syntax by hand to derive every username, email, and directory attribute for thousands of students and staff. A wrong character wasn't caught until the accounts already existed.

At a glance

Problem
Admins wrote account rules as hand-typed formulas, and mistakes only showed up after accounts were created.
What I did
Replaced the formulas with drag-and-drop blocks and a live preview that tests each rule on tricky sample names.
Result
Shipped to production and every client moved to the block builder, so errors are caught before they reach real accounts.

Work shown with enterprise-identifying details removed. Product name and interface are my own; original assets are not shown.

Role
UX/UI Designer
Owned the design end to end
Users
District IT administrators
Tools
Figma
Team
4 designers and 3 QA engineers
Sign-off
Design Director, VP of Product, Product Manager
Timeline
About one quarter
Status
Shipped to production
On this page
Interactive portfolio demo, fictional data
Evidence

Decisions and evidence at a glance

Each item is labeled by type, so a research sample is never read as an outcome and client comments are never read as measurements.

Adoption outcomeEvery client migrated

Clients were given an end-of-life date for the formula editor and moved to the block builder. The old editor was retired.

Research sample2 to 3 client volunteers per round

Usability sessions on early versions with district IT admins.

Behavioral analyticsMaze and PostHog heatmaps

Showed where admins clicked and where they got stuck while building rules.

Key trade-offFormula mode kept, blocks made default

Removing the text view would have been simpler. Keeping it as a two-way fallback let clients bring their existing rules with them.

Client feedbackEasier to understand and control

After rollout, clients said they could see the result instead of guessing at syntax.

What this demonstrates
  • Complex workflow design
  • Error prevention
  • Migration without stranding users
  • Usability testing
  • Design trade-offs
The context

Every district names people differently.

When a district syncs its people into a directory, something has to decide what each person's username, email address, and display name will actually be. One district wants first initial plus last name. Another wants the employee ID. Another wants first name, a dot, last name, all lowercase, with a fallback when a field is missing.

That decision is expressed as a mapping: for each destination attribute, a rule that derives it from source data. The rules have to handle real names, and real names are messy.

The problem

The old editor expected admins to write code.

Administrators wrote these rules as raw formula strings. Source fields wrapped in one delimiter, destination fields in another, function calls in backticks, nested several levels deep, with positional arguments and no autocomplete.

Two problems compound each other. Getting the syntax right is hard, and there is no way to see what a formula produces until it has already run. By then the accounts exist. Someone's login is wrong, and fixing it means correcting the rule and reconciling every record it already touched.

What made this specifically dangerous
  • The output is an identity, so a mistake doesn't degrade an experience; it locks someone out
  • Errors are silent. A malformed rule often produces a plausible-looking wrong value rather than a failure
  • It runs at scale. One bad rule applies to every person in the district at once
  • Discovery is delayed, usually until someone tries to log in and can't
The prior formula-entry experience is described from memory rather than shown. The original interface is not reproduced here.
The core issue

Admins couldn't see what a rule would produce.

It would be easy to read this as a syntax problem and solve it with better validation or an autocomplete. That helps, but it addresses the smaller half.

The rule an administrator types is not the thing they care about. They care about what comes out the other side for actual people. The old interface showed them the input and hid the output, which is exactly backwards for a task where the input is unfamiliar and the output is what matters.

A formula that parses correctly and produces the wrong username is still a failure, and validation cannot catch it.
The design

Build with blocks, check against real records.

One
Typed blocks instead of syntax
Source fields, destination fields, functions, and literal text become draggable blocks, color-coded by kind. Functions carry labeled slots for their arguments. You cannot produce a malformed rule, because there is no syntax to get wrong. Nesting is expressed by dropping a block into a slot rather than by counting parentheses.
Source fieldDestination fieldFunctionLiteral text
Two
A palette organized by what you're trying to do
Functions are grouped by intent rather than listed alphabetically, and the palette is searchable. An administrator who wants to handle a missing value looks under conditional rather than scanning thirty function names for the one that sounds right.
TextConditionalDate and timeHash and encodeLookup
Three
A live results preview
Every change to the rule immediately re-evaluates against sample records and shows the actual resulting value for each person. The output stops being something you discover after the sync and becomes something you are looking at while you build.
Four
Raw formula mode, retained
The text view stays available and round-trips: a formula parses into blocks, blocks serialize back to a formula. Administrators with existing rules and existing habits are not stranded, and anyone who wants to paste something can.
The problem
  • Rules are written as raw formula strings, by hand
  • Nested function calls with positional arguments and delimiters to get exactly right
  • A text field shows the rule, never the value it will produce
  • A broken rule usually returns a wrong value that looks fine, with no error
The design
  • Typed blocks dropped into labeled slots
  • Nesting expressed by placement rather than by counting parentheses
  • Functions grouped by intent and searchable
  • Every change re-evaluated live against sample records, before saving
Blocks composing a username rule, with the results preview showing broken output for two of four sample records

Blocks on the canvas, sample records evaluating live beneath them.

Research

How I validated it

The existing formula tools were scattered across several parts of the product and badly outdated, so I started with a competitive review of how other identity platforms handle rule building. I then ran usability sessions on early versions with district IT admins, 2 to 3 client volunteers in each round, and used Maze and PostHog heatmaps to see where admins clicked and where they got stuck. The clearest insight: admins only trusted a rule once they could see its real output, and several asked how it would handle names with accents. That's why the preview runs against deliberately tricky sample records instead of clean ones.

I owned the design end to end. I explored several directions, iterated on each through feedback, and reviewed them with the Product Manager before we committed to one.

Research highlightsParaphrased; client research notes stay private
What I investigated
How other identity platforms handle rule building, and where admins got stuck writing formulas by hand.
Who took part
District IT admins, 2 to 3 client volunteers per round, in usability sessions on early versions.
What I found
Admins only trusted a rule once they could see its real output, and several asked how it would handle names with accents.
What changed
A live preview that runs every rule against deliberately tricky sample records: apostrophes, accents, missing fields.
How it was validated
Maze and PostHog heatmaps during sessions, a final review with leadership, then every client migrated after launch.
Sample data

I picked sample records that break bad rules.

A preview is only as useful as the records it previews against. The obvious choice is a few clean, ordinary names, which would confirm that a rule works and teach an administrator nothing.

So the preview set is deliberately awkward. Someone with an apostrophe in their surname. Someone with accented characters and a hyphenated name. Someone with no middle name. Someone with an empty email field.

What the preview is actually for
  • Not confirming the rule works on an easy name
  • Showing where it breaks, before it breaks on someone real
  • Making the fix obvious in the same screen where the problem appeared

Build a simple first-initial-plus-surname rule and the preview immediately produces an apostrophe and an accented character inside what is supposed to be a login. Nobody has to explain that this will fail. The administrator sees it, reaches for the function that strips diacritics, and watches the value correct itself.

Interactive portfolio demo

The builder, rebuilt and interactive.

I rebuilt this as a standalone prototype with fictional records, embedded below. Snap together a first-initial-plus-surname rule and watch the preview. Two of the four sample records produce a username that would not survive contact with a directory.

Sample data is fictional. Interface rebuilt from scratch in my own design system. Open full screen ↗
The decision

Keep the raw formula, or force everyone into blocks?

Removing the text view entirely would have made the product simpler and the design cleaner. It would also have stranded every administrator with formulas they had already written and habits they had already built, and taken away the fastest path for the few who genuinely prefer typing.

So I kept it, as a secondary mode that converts both ways, and made blocks the default. Then we moved every client onto the block builder, which made the raw formula a fallback instead of the main path.

Impact

Shipped, and the old editor retired.

The block builder is in production. Administrators define attribute mappings without writing formula syntax, and see the resulting values for real records before anything is saved. The class of error where a rule looks right and produces the wrong identity is now visible at the moment it is created rather than after it has propagated.

We rolled it out like any major feature change: clients were told the block builder was the new standard, given an end-of-life date for the old editor, and migrated over. The response was positive. Clients found it a better process, much easier to understand, and easier to control, because they could see the result instead of guessing at the syntax.

The feature was designed entirely in Figma. Later, when the team moved the whole product into code, I rebuilt the design in Claude Code.

What I learned

Preventing errors beat explaining them.

Lesson 01
Blocks made broken rules impossible.
Because each block only accepts the right kind of input, admins can't build a broken rule in the first place. We didn't need error messages for those mistakes at all.
Lesson 02
Show the output, not just the input.
The riskiest rule is one that looks right but produces the wrong value. The only way to catch it is to show the actual result on screen.
Lesson 03
Choose sample data that breaks things.
Testing a rule on simple names proves very little. Testing it on the tricky ones catches problems before they reach real accounts.
Lesson 04
Don't strand existing users.
Keeping the raw formula view made the design a little less tidy, but it let existing clients move over without losing the rules they had already built.

The blocks made the rule easy to write. The preview made it possible to know whether it was right.

Thanks for reading.