Back
Empyra · 2024Output Builder
OverviewOriginProblemConstraintMapping ModelFirst versionScopingSolutionImpactNextReflection

The legacy workaround we almost rebuilt in React

How one question about a legacy .NET constraint turned a PDF editor request into a workflow redesign, and cut template creation from days to hours.

Scroll to explore
RoleSolo Designer
Outcomes90% faster template creation
TypeWorkflow Redesign
Timeline4 months
SkillsWorkflow audit, contextual inquiry, systems design, feasibility, cross functional alignment
01Overview

A module with one button

Organizations on the product used forms to collect student data and generate official form outputs. An admin creates a form, a student fills it in, and the system generates an output from the responses.

As the platform migrated from .NET to React, I was asked to modernize the output builder first, along with the entire form ecosystem. So I started with a workflow audit of the output setup. But the output module just had an option to upload a PDF. And nothing else.

Legacy output entry screen, where the only option was to upload a PDF template
The legacy output module.

I usually find my way around new products easily, so this dead end surprised me. If I couldn't figure out the setup, a regular admin from an organization had no chance. So I sat with the engineers and watched them build an actual template. My first question to them was, why is PDF template is needed to create an output.

02Origin

Why the PDF existed

That's when I understood it all. This was a legacy product built on .NET. When it was built, the engineers didn't have an option to create PDFs with the responses within the system. So they built an output builder module which will hold an output template to map the student respones and get their signatures.

The system didn't know what to do with the output template. It didn't know which response went where. So the team added a unique response code for every possible response, and the engineers, when creating the PDF template, mapped these response codes to the correct field. Then, the system could easily replace the response codes in the template with the actual responses. Over the years, that became the only way outputs were made.

A form is created by an admin, sometimes with 50+ fields, and then exported for output setup.

Questionnaire editor with the Distance Learning Form questions listed. Step 1: A form is created by an admin, sometimes with 50+ fields, and then exported for output setup.

The system generates a unique response code for every element, so a single question can have many response codes.

Exported questionnaire data showing response codes for each question. Step 2: The system generates a unique response code for every element, so a single question can have many response codes.

The PDF template is built manually, and the response codes are mapped to the correct field.

PDF builder with a response code manually entered for a selected field. Step 3: The PDF template is built manually, and the response codes are mapped to the correct field.

The template is uploaded. If a response code is wrong, the PDF is edited and uploaded again, until everything is right.

Output entry screen for uploading and configuring the Distance Learning Contract PDF. Step 4: The template is uploaded. If a response code is wrong, the PDF is edited and uploaded again, until everything is right.

Showing step 1 of 4

03Problem

Where the time went

Some forms had 50+ fields. Each question had multiple response codes to map. The common form below had 23 questions and 45 codes. Manually mapping them took most of an engineer's time, about 2 to 3 days per template from starting till publishing.

Response mapping for one form: 23 questions expand into 45 response codes, since every possible response needs its own code

One mistake in the response code mapping could print a wrong response on an official document, like a student's enrollment form or distance learning contract. So they had to be diligent and slow to make everything right, and every template went through rounds of upload, test, and fix.

The brief was to move PDF creation inside the system so engineers could build templates easily. But as I worked through it with the engineers, I found what was actually slowing them down.

The PDF was never the problem. The response codes were.

So I looked into options on how to make this workflow simple, instead of just creating a PDF editor inside the system.

04Constraint

The idea we ruled out

I came from modernizing the staff dashboard with drag and drop custom widgets, so I immediately thought of a visual drag and drop WYSIWYG template builder. We had already built the tech, and it would be an easier port.

But how do we map the response codes? The product's form creation and output modules were two independent modules, and the response codes were the only common thing among them.

At first I thought if we could rebuild the system for React, we could completely do away with response codes. We could directly show the form with user responses, like modern forms do, and generate the PDF using React PDF libraries. I checked with the devs and other stakeholders and found that it would take a lot of time to rebuild everything, and lots of changes would be required on the backend to make that happen. And that would affect all the orgs that use the legacy instances. So I went back to the drawing board.

05Mapping Model

Borrowing from clinical work

Suddenly I remembered how we turned voice transcription reports into EHR compatible JSON during my previous work on a clinical healthcare platform. That was my eureka moment. This was a similar problem. The response codes could become output builder compatible JSON.

A PDF template held the layout and the mapping packed together. If those could live apart, the system could own the layout and the mapping could live as JSON. The response codes could stay as they were on the backend. I checked output templates built for several clients, and they all followed a simple layout. Only the response codes changed from one template to the next.

Before
Stored on upload
AEL-Enrollment-template-final-v5.pdf
Layout
Field mapping
Q_10235_RESPONSEQ_10238_RESPONSEQ_10240_RESPONSE
layout + mapping fused together
↓
Uploaded & stored
The whole template asset lives in the database
  • ✕Large binary files machines can't read
  • ✕Every version duplicated as a separate file
  • ✕Mapping locked to the static asset
After
generated on demand
Layout · in system
+
bindings.json · stored
{
  "Q_10235_RESPONSE": "name",
  "Q_10238_RESPONSE": "gender",
  "Q_10240_RESPONSE": "ssn"
}
layout + mapping decoupled
↓
Output generated at runtime
nothing persisted; rebuilt from layout and JSON
  • ✓Compact JSON schema machines can read
  • ✓No stored template assets to version
  • ✓Mapping maintained independent of layout

But would this require a backend change? I didn't know. So I took the idea to the React team and they built a PoC. They mapped the response codes to JSON without a major backend rewrite. It was also faster than creating a PDF. The template became a structure the system fills on demand, with no PDFs stored at all.

That also made some old options pointless. File Category, added years ago for a single client, only organized stored PDFs, so it was dropped.

06First version

Going wide on purpose

With the major problem of the workflow solved, I went on to brainstorm how I could design the template builder. What features to include. How much it had to look like a modern builder. I didn't have answers to any of these.

I was torn. The user in me wanted to make it as simple as possible. The stakeholders plainly wanted to use React to its maximum extent. So I built the initial version with all the layout building features we could get by reusing the setup used for the dashboard. Advanced layouts, paddings, margins, columns, themes, and so on. I presented it to the stakeholders and they liked it.

Initial visual design exploration of the output builder canvas
First visual layout builder version featuring columns and styles presets
Theme presets and typography configurations editor panel mockup
07Scoping

What we kept

But engineering dropped in and thankfully stopped it right there. Building all these advanced features would take ages.

I had also collected reactions from each team separately: stakeholders, frontend and backend engineers, sales and support. Each group raised its own concern.

Stakeholders

“The drag & drop will confuse the admins. Not everyone using this will be technical.”

What I did

I kept a manual way to add fields along with drag and drop. The visual builder became the default, and the PDF route stayed for legacy users.

Engineers

“An open ended layout builder will be painful to build and worse to maintain”

What I did

I narrowed the customization to a small set of choices that still covered the variation organizations needed.

Backend engineers

“The new response mapping will be a challenge to implement”

What I did

I worked with the frontend engineers to confirm the mapping could be handled entirely on the frontend, with little to no extra backend work.

Sales and support

“Customers keep asking why implementation takes so long. They will love this!”

What it told me

The people closest to the customer already knew it was worth fixing.

Now that we knew what wasn't possible, we brainstormed and came up with the minimum features we needed for the output builder. A default org level template, a customizable header fields section, and easier ways to add the form questions. That's it. No layout, no column, nothing.

08Solution

From manual workflows
to a visual system

Each feature takes out a step from the old workflow. Picking a question wires up its response codes in the background, so nobody sees a string like Q_10235_RESPONSE. Compact or comfortable is just a view, and the system arranges the fields.

Automated code mapping

Users pick form questions from a plain language list, in the words they already know. The system wires up the response codes in the background, so nobody sees or types one.

How it helps
  • Less cognitive load
  • No memorization of codes
  • Fewer mapping errors
  • Easier for new users to pick up
0:17

Picking questions by name.

Visual builder

Template creation moved inside the product. Like Google Forms or Microsoft Forms, users drag and drop, only here they drag form questions onto the canvas and see the output as they build. A manual way to add questions stays alongside for admins who prefer it.

How it helps
  • Users can now see the output as they build
  • No need to switch between the app and PDF tools
  • Instant updates
0:11

Dragging fields onto the canvas and watching the output update live as the template is built, all inside the product.

Compact or Comfortable

Users pick a compact or comfortable view, and the system arranges the fields on its own. The output still adapts to each form.

How it helps
  • No layout decisions to make
  • The system arranges the fields
  • Consistent outputs across forms
0:13

Switching between the two views.

Org Defaults

Most organizations rebuilt the same headers and layouts for every template. Now each org has a default template with its header fields set once, so users start from it and only work on the form questions.

How it helps
  • Faster setup
  • Reduces repetitive work
  • Ensures consistency
  • Better control for organizations
0:19

Starting from a saved organization default and filling in only the form fields, instead of rebuilding headers and layout each time.

09Impact

From days to hours,
and no longer only engineers

With templates taking hours, new organizations get set up faster, and customer requests no longer sit in a long queue.

We measured it with a timed side by side test. The team built one real client output twice, once the old way and once in the new builder. Several outputs were done in the new builder before the manual one was finished.

With the mapping gone, building a template only needs an understanding of the form. No engineering knowledge. Engineers still run the builder today, but the work is no longer locked to them.

Template Creation
↓90%
Days of engineer time down to a few hours, even for engineers who knew the old process
Manual Mapping
Zero
Gone entirely, along with the errors that came from mapping each field manually
Static Storage
↓100%
Documents generated on demand, with no base files stored or maintained
Before

2 to 3 days of dedicated engineer time per template, external software, and a manual mapping for every field.

After

A few hours, entirely inside the product, with no external tools and no manual mapping.

10Next

Designing the output first

The nearer step is handing the builder to organizations directly, so they can update their own outputs without waiting on anyone.

During discovery I also proposed a bigger change. Most of the information a form collects already exists somewhere in the platform.

"What if we designed the output first and let the system work out what is missing?"

It needed platform level changes, so it stayed out of this release. It did change how the team thought about where the platform could go.

11Reflection

The ask was to move PDF creation inside the system. My question was why a PDF was needed to create an output.

That's when I understood it all. The PDF was never the problem. The response codes were. Removing that mapping did more than any editor I could have designed.

Open to the right opportunity

Looking for roles where I can work on complex systems, collaborate deeply with engineering, and drive real product impact.

Download Resume
100%