A little horizon ahead…
Selected workApproval Workflow / Helix Pharma

Approval Workflow / Helix Pharma Case study

One extra zero. Ten times the order.

Giving teams a chance to catch costly mistakes before stock requests become operational changes.

Read the story

The real company name and certain product features are covered by an NDA. “Helix Pharma” is a fictional name, and selected features have been replaced with illustrative examples to protect confidential information.

Context & stakes

Sensitive actions in a pharma platform could go live without a second person checking them. A mistake here is a compliance problem, not just a bug.

Status Shipped

The short story

A closer look.

4Configurable action types
3Entry-rule templates
29Automated regression checks

Why validation wasn’t enough

A valid number can still be the wrong number.

Imagine an operator intending to order 250 packs and entering 2,500. A positive whole number passes validation, but the system cannot know that the intention changed. The brief called for a review point before accidental inputs reached operational work.

The response was an approval layer inside the existing dashboard, covering stock orders, inventory adjustments, price changes, and batch releases. A proposed change and an applied change needed to become visibly different states.

The required proposal and approval requirement remain visible.

The extra-zero scenario is illustrative, not a documented incident. People, products, and requests shown are demo data.

The boundary that changes everything

Separate submission from execution.

For an enabled operator workflow, submitting preserves the proposed values and creates a pending request without applying the business action. An eligible reviewer then decides whether it should proceed.

The gate is configurable by action. Open allows multiple requests, Locked permits one unresolved operator request, and Throttled limits submission frequency. A blocked submission explains the lock or cooldown instead of leaving the operator with an unexplained disabled button.

The action’s rule determines how a request enters review.

The specified workflow allows administrators to act directly through an audited auto-approval path. It is not universal two-person authorization.

Cutting the clutter

Put the work before the explanation.

The first screens tried to explain everything at once. Template cards came before workflow rows, request counts repeated across summary cards, and the new-request action appeared twice. The user’s request for less clutter exposed competing starting points.

The refinement brings rules and current requests forward. Template guidance, history, filters, and optional context open when needed. Consequential state stays visible: active filters still show their count, and blocked or failed work still explains itself.

Before
Explanation pushed the actual rules down.
After
Rules lead; reference material opens on demand.

Making review worth doing

Read the proposed change before the record.

The review drawer leads with the requester and proposed values. Submission time, template, and attempt details sit under Request context; the activity log has its own tab. Decision controls remain available at the bottom.

Authority and freshness are part of the interaction. A requester cannot review their own pending request, even after becoming an administrator. If the target changes while waiting, the reviewer must acknowledge the difference, and the engine rechecks the context before execution.

The proposal comes before administrative metadata.
The same review hierarchy carries onto the phone layout.

When approval isn’t the end

A decision and its execution are different events.

A reviewer can approve the right proposal and the action can still fail. The prototype labels execution failure explicitly, retains the error, and allows an eligible retry on the same request. A Locked workflow stays blocked while that work is unresolved.

Other outcomes preserve their own meaning. Rejection requires a reason; a revision becomes a linked new attempt. Cancellation withdraws a pending request, and a version check prevents an earlier open review from overriding the withdrawal.

  • Refusal explains what is blocking submission.
  • Rejection gives the requester something to revise.
  • Execution failure keeps a visible route to recovery.
The queue is the place to find work that still needs attention.

What’s proven, what’s next

Consistent rules, with human outcomes still to test.

Twenty-nine regression checks cover the workflow’s main transitions and exception paths. Browser walkthroughs checked forms, disclosures, configuration confirmation, review details, active filters, and the phone layout at 390 pixels.

Those checks establish software behavior, not whether staff understand the screens. The next meaningful step is a pilot with operators and reviewers: catch an excessive quantity, explain whether stock has changed, revise a rejection, and recover from failure. Success must include both fewer unintended changes and an acceptable review burden.

A pilot should test whether people can explain the consequence before submitting.

There is no production result. The opportunity model uses illustrative assumptions, counts review time as a cost, and may produce a negative result. It claims no measured financial, clinical, or patient-safety benefit.

Want the reasoning behind it?

There’s more to the story.

Explore the research, trade-offs, and interactive examples.

The decisions behind it

Three calls, and the options I turned down.

Goal: Catch costly mistakes before they become operational changes, without slowing everyday work.

  1. 01Strategic

    Why submitting no longer means applying

    “The system can check that 2,500 is a number. It can’t know you meant 250.”

    Before: Stock orders, adjustments, price changes and batch releases took effect as soon as they were submitted.

    Options considered

    Stricter validationCheap, but a valid number can still be wrong.
    A confirmation dialogOne extra click that people learn to dismiss.
    Pending request plus reviewer (chosen)Adds a step, but a second person sees the change before it happens.

    Why: A proposed change and an applied change needed to become visibly different states.

    Result: Gates are configurable per action (Open, Locked or Throttled), and a blocked submission says why.

  2. 02Tactical

    Why the review drawer leads with the proposed values

    “A reviewer who has to dig for the change will just approve it.”

    Before: Request context, template and attempt details competed with the one thing being reviewed.

    Options considered

    Full record firstComplete, but the change gets buried.
    Changes onlyFast, but hides who asked and when.
    Requester and values first, context on request (chosen)One tap for detail, but the decision stays front and centre.

    Why: Review only protects anything if the reviewer actually reads the change.

    Result: Requesters can’t review their own requests, and stale targets must be acknowledged before approval.

  3. 03Tactical

    Why ‘approved’ and ‘done’ are different states

    “A reviewer can approve the right change and the action can still fail.”

    Before: A single success state would hide execution failures behind a green tick.

    Options considered

    Treat approval as doneSimpler states, but failures go unseen.
    Auto-retry silentlyFewer alerts, but nobody knows what happened.
    Label the failure, keep the error, allow retry (chosen)More states to design, but there’s always a way to recover.

    Why: Every outcome (rejected, revised, cancelled, failed) should keep its own meaning.

    Result: Rejection requires a reason, revisions link to the original as a new attempt, and version checks stop old reviews from overriding a withdrawal.

Small decisions, on purpose

Active filters show their countHidden filtering never looks like missing data.
Disabled buttons explain themselvesA lock or cooldown is named, never left unexplained.
One ‘New request’ action, not twoRemoves a competing starting point.
Decision controls pinned to the bottomAlways in reach on long requests and on phones.

Outcomes & limitations

What changed, and how sure we can be.

Observed4Configurable action typesActions that can be Open, Locked or Throttled.
Observed3Entry-rule templatesReusable rule sets for who can approve what.
Measured29Automated regression checksChecks covering self-approval, stale targets and withdrawals.

Limitations

  • No user testing or adoption data has been supplied.
  • Regression checks prove the rules hold, not that reviewers find them clear.

Still to confirm

  • Reviewer feedback and time-to-approval before vs after

What I’d do next

  • Test with real operators and reviewers: does review catch mistakes without becoming rubber-stamping?
  • Measure how often requests are rejected or revised compared with approved.

What this taught me

  • Safety comes from clear states, not extra friction.
  • Users asking for ‘less clutter’ were really pointing at competing starting points.
Want the full walkthrough? Let’s talk
Up next

Giving merchants control of their presence inside Koko.

Koko Advertiser Portal

Read case study