← Back

Edge Case Analyzer

Case study · Side project · 2025

The states nobody draws, caught while I’m still designing.

Watch it

Select frames, say what the screen does, analyse.

In 30 seconds

If you read nothing else

What is it?

A Figma plugin that lists the edge cases you missed.

Select frames, say what the screen does, and each case comes back with why it matters, notes for the engineer, and a fix.

What happened?

Six builds in twelve days. One kept.

I built it across Replit, ChatGPT-4 and Claude to compare them, then rebuilt the keeper from scratch with git and used it on my own designs.

What did I do?

Designed it, and wrote the rules it answers by.

Seven kinds of edge case, three priorities, and one shape for every answer.

Why care?

May 2025: early for building with AI.

The keeper is 1,144 lines of logic and 1,728 of interface, with a commit history that reads like a design log.

Role

Designed and built it

For my own design work.

Dates

May 15 to 27, 2025

Twelve days. Replit, ChatGPT-4, Claude, then git.

Builds

6

3 AI tools, 1 kept.

Verdict

▲ Used while designing

▼ Never published

01

The states nobody draws

Edge cases are the screens nobody draws: the empty list, the failed payment, the name that’s too long. They usually turn up late, found by an engineer or a user. And on every project I was checking for the same things, over and over.

I like to design the big screens first, the main flow, the happy path. That’s exactly when the small states slip. So I made the check happen while I was still designing, inside Figma, next to the frames.

Which AI could build it?

The plugin’s Input tab: six frames of a token withdrawal flow selected, and the sentence “Token withdrawal flow” describing the screen.
Six frames selected, and one sentence about what the screen does.
02

Six builds, three tools, one kept

This was early in building with AI, so I built the same plugin with each tool and compared what came back. Replit’s two attempts never got past an interface, and the second is shorter than the first.

ChatGPT-4 laid out the same three tabs, Input, Results and Settings, in under 300 lines. Claude’s first build was nearly four times that, and its second pass added priority and filters.

Then I spent a morning learning git, and rebuilt the keeper from scratch so every change had a history.

Lines of code per build

Claude wrote four times ChatGPT. The keeper doubled again.

Logic and interface together, in the order the builds were made. Orange: the keeper, rebuilt from scratch with git.

Built by AIThe keeper, from scratch
Claude wrote four times ChatGPT. The keeper doubled again.
CategoryBuilt by AIThe keeper, from scratch
Replit 24410
GPT-42720
Replit 31040
Claude 510450
Claude 614750
Keeper02872

Counted from the archived builds, May 15 to 27, 2025.

In order

May 15

Replit, Simple Test 2. 441 lines, interface only.

May 16

ChatGPT-4. 272 lines, three tabs kept small.

May 16

Replit 3. 104 lines, thinner than the first.

May 24

Claude 5. 1,045 lines, nearly four times ChatGPT’s.

May 24

Claude 6. 1,475 lines. Priority and filters appear.

May 25

A morning learning git. “first test”, “hello”.

May 25 to 27

From scratch, with git. The keeper. 2,872 lines across 8 commits.

One answer, four builds

The same three results, in each build

Each build re-rendered from its own code, fed the same three results from the demo, so they can be compared on one answer.

1 / 4
The ChatGPT-4 build’s Results tab: each case is a title and one line, with Save and Complete beside it.
The Claude 5 build’s Results tab: cleaner cards, each with a title, one line, and Save and Complete buttons.
The Claude 6 build’s Results tab: priority filters, and cards with a priority, a category, why it matters and a solution.
The keeper’s Results tab: priority filters, export to a report, auto-refresh, and a card with priority, category, why it matters and dev notes.

May 16ChatGPT-4Cut · 272 lines

A title and one line per case.

If the AI writes the code, what’s left to design?

03

The AI wrote the code. I wrote what it says.

The plugin is only as good as its answers, so the real design work was the instructions it answers by. None of the AI builds had them.

They arrived in the final version, in one commit: “results structure, priority system, categories.”

“Respond ONLY with a valid JSON array. Do NOT use JavaScript syntax (no spread operators, no comments)… No code blocks, no markdown.”
A rule I added because the AI kept breaking it

Seven kinds of edge case

Content

Empty, long text, missing data, overflow.

State

Loading, error, success, validation.

Interaction

Hover, focus, disabled, gestures.

Device and layout

Screen sizes, orientation.

Network

Slow, offline, timeouts.

Security and privacy

Authentication, permissions.

Localisation

Text expansion, right-to-left.

Three priorities, and one shape for every answer

Five to eight cases, never more.

Top

Breaks things

There is always at least one.

Medium

Hurts usability

Low

Polish

Why it matters

For the designer

Deciding whether to act on it.

Dev notes

For the engineer

Who builds it.

Suggested solution

A pattern to try

Not just a problem.

What do you do with a list of warnings?

04

From a list of warnings to a checklist you work through

  1. Tick it off.

    Each edge case is a checklist item. Completed cards sink to the bottom, and can be un-completed if you change your mind.

  2. Priority and kind, at a glance.

    And you can filter by priority.

  3. Why it matters.

    For the designer deciding whether to act on it.

  4. Dev handoff notes.

    For the engineer who builds it. The same result already speaks to both.

  5. A suggested solution.

    A pattern to try, not just a problem.

An edge-case card: Failed transaction lack of information, Medium, Content-Driven, with Why it matters, Dev handoff notes and Suggested solution.
A result for “Token withdrawal flow”: a failed transaction that doesn’t say why.
The Results tab: filter by priority, export selected cases to a frame, and an auto-refresh switch.
Results: filter by priority, choose which cases to export, and switch on auto-refresh so results update when your frames change.

The commit log is the design log. The checklist, the priorities and the export all went in between midnight and 2am on May 27.

The keeper’s eight commits

May 25 · 13:48

“last working version”

May 25 · 14:44

“Clearner code, API key security, error handling, debug mode”

May 26 · 13:37

“Completing previous features”

May 27 · 00:29

“card moved to bottom if completed”

May 27 · 00:50

“card can be uncompleted also now”

May 27 · 01:14

“results structure, priority systen, categories”

May 27 · 01:22

“filtering results”

May 27 · 01:43

“export result to figma”

05

The results land where you design

Export to Figma: the selected cases become a report frame on the canvas, grouped by priority, next to the screens they’re about.

Watch it
Two cases picked, exported, and placed beside the flow.

Edge case report

Token withdrawal flow

6 frames · 7 Aug 2025

2 Top3 Medium1 Low2 of 6 exported

Medium priority2 cases
  1. 1

    Failed transaction lack of information

    Content-Driven

    The failed frame may not provide detailed reasons for failure, leaving users confused.

    Why it mattersfor the designer
    Without knowing the reason for failure, users cannot remedy the situation and may leave the platform out of frustration.
    Dev notesfor the engineer
    Ensure error messages are clear, specific, and actionable.
    Suggested solutionto try
    Design error messages to include details of the issue and steps for resolution.
  2. 2

    Withdrawal process not responsive on smaller devices

    Device & Layout

    The withdrawal process may not display or function correctly on smaller devices or different orientations.

    Why it mattersfor the designer
    If the process is not responsive, it may be difficult or impossible for some users to complete, impacting the overall user experience and potentially leading to loss of users.
    Dev notesfor the engineer
    Ensure the design is responsive and functional on all screen sizes and orientations.
    Suggested solutionto try
    Use responsive design principles to ensure functionality across devices.
The report: priority first, and one row for each reader.

What it couldn’t see

The AI never looked at the pixels. It read frame names, sizes and the sentence I typed about the screen, and reasoned from there.

That’s why the context field is required, and why its answers are good at what a screen is for and blind to what’s actually on it.

It was only ever used by me, on my own work, so there’s no number here beyond the builds.

Next version

Send the frames as images.

So the answers can see what’s actually on the screen, not only what it’s for.

What it took · May 15 to 27, 2025

6

Builds across Replit, ChatGPT-4 and Claude, in twelve days.

2,872

Lines in the keeper 1,144 of logic and 1,728 of interface, written from scratch.

8

Commits the checklist, priorities and export all after midnight on May 27.

▲ Design · the answers One result speaks to the designer and the engineer, and I used it while designing.

▼ Bet · beyond me Never published. It was only ever used on my own work.

May 27, 2025 · 1:43 am

Twelve days, six builds, and a morning learning git. The last commit:

“export result to figma.”

Published · Updated .