ilevar — UX Engineering Case Study | Elias Ricardo Skip to main content

UX Engineering case study · 2026, ongoing

ilevar

A platform for language schools where AI prepares the lesson and a real teacher still teaches it live. This is how I mapped the flows, built the design system in Figma and in code, and what the usage data is telling me now.

16
activity types in the live classroom
134
colour tokens, mirrored between Figma and CSS
113
automated design-system assertions
4
interface languages: PT, EN, ES, FR

When

2026 – present

Problem

Teachers lose weekends building lessons, online classes turn into calls students only watch, and nothing connects the class to what the student practises next.

My role

UX Engineer across the whole loop: user flows and edge cases, the design system in Figma and in code, support for schools, and Clarity to check what people actually do.

Result

In production at ilevar.com: AI drafts the lesson and the homework, a teacher runs the class live with 16 activity types, and every lesson stays in the student's notebook.

01Problem

Six problems every language school repeats

A language lesson usually lives in pieces: the call in Zoom, the material in a PDF, the quiz in Kahoot, the notes in Notion. Around that sit the problems school owners describe in almost the same words. Teachers spend Sundays building lessons. Rescheduling happens on WhatsApp. Online classes turn into video calls students only watch. Nobody practises between lessons. When a teacher leaves, what the student covered leaves too. And students who cannot see progress cancel.

The home page opens with these six quotes. Each card links to the part of the product that answers it.

ilevar started as a marketplace where students found teachers. It is now built for the people who live with these problems: school owners and independent teachers, who need one place to teach and to run the school.

02My role

One person, the whole loop

The bet behind ilevar is that AI should do the preparation and a person should do the teaching, and that what connects them is context: the AI works from what this class actually covered. My job is to make that bet usable. I work on it as a UX Engineer, which here means there is no handoff. The person who maps the flow also draws the component, ships it, reads the ticket when it confuses someone, and watches the recording to see why.

  1. 01

    Figma

    Tokens, components and full screen patterns, each with its real states: default, empty, saving, error.

  2. 02

    Build

    The same structure in code: atoms, molecules, organisms. Dependencies only point downwards.

  3. 03

    Code

    Next.js, React and TypeScript in production, including the live classroom and the billing flows.

  4. 04

    Support

    An in-product help widget with guides, a changelog and tickets that reach me with context attached.

  5. 05

    Experience

    User flows, states and edge cases mapped before screens, and revised with what support and recordings show.

  6. 06

    Clarity

    Microsoft Clarity heatmaps and recordings, loaded only after the visitor consents.

03Figma

A design system that matches the code, token for token

The Figma file is organised the way the product is built: Foundations, Icons, then Atoms, Molecules and Organisms, then Patterns, where components are combined into real screens. The colour collection holds 134 tokens, and every one carries the CSS variable it maps to, so a swatch in Figma and a class in the codebase are the same thing with the same name. Aliases are marked, so it is visible that the focus ring is the primary blue and not a second blue that happens to match.

I keep the file honest by reconciling it against the code, not the other way round. The stylesheet is the source of truth; when the two disagree, the inventory in the repository says which token is real, and the Figma variable is fixed to match. The cover of the file carries the date of the last reconciliation.

The file's cover. The last line points to the document in the repository that the file is reconciled against.
Colour foundations. Each swatch shows its value and its CSS variable; arrows mark aliases.
Type styles, annotated with the classes that render them and where each one is used.

Patterns are drawn with their states, not just the happy path. A table has its empty state next to it; a dialog has its saving and error versions. That is what makes the file useful to build from: the awkward cases are already decided.

One dialog, four states: empty, filled, saving and error. The component set is the specification.
Admin pattern: the schools table, default and empty.
The same plan panel as active, trial and past due.

Open the design system in Figma (opens in a new tab)

The decisions behind the system, and the checks that keep it in shape, have their own case study: ilevar design system.

04User flow

One loop, two people, one shared room

Before drawing screens I mapped the product as a single loop seen from two sides. The teacher's path and the student's path only truly meet in one place, the live room, so every other screen is judged by one question: does it get this person into the room prepared, or does it carry something useful out of it?

The core loop. Blue marks the two places where AI produces a draft; everything else is a person acting. Routes are the real ones in the product.

Mapping it this way exposed where context was being dropped. The lesson summary, the homework and the notebook all sit after the room, and all three are built from what happened inside it. That is why homework is generated from the lesson that just ended and not from a generic bank, and why each lesson becomes a page in the student's notebook that the next teacher can open.

The last step of the loop: homework built from the lesson, one exercise per screen, with the result going back to the teacher.

The full map lives in the repository as a document with flowcharts for every role (visitor, student, teacher, school owner, admin), the screen inventory, and a confidence level for each part: what is confirmed by routes and guards, and what still has to be checked in a browser.

05Edge cases

Designing the moments when the room is not available

A room link gets shared, bookmarked and opened at the wrong time. Most of the experience of a live product is decided in those moments, so I designed the states before the happy path: a lesson is scheduled, live, completed or cancelled, and each visitor to a room link gets an answer that makes sense for where the lesson is and who they are.

What happens when someone opens a room link
Someone opens a room link and…The product…
Not signed inSent to login.
Signed in, but not part of this lessonSent to their own bookings.
The lesson has already finishedSent to the lesson summary instead of an empty room.
A student arrives before the room opensBack to the dashboard with a "room not open yet" notice.
A participant arrives inside the entry windowJoins the room.

The rule behind the table is that nobody lands on a dead end. A finished lesson leads to its summary; a student who is early is told the room is not open yet; someone who does not belong is taken to something that is theirs.

06Design decision

The AI output is a draft, and the interface says so

The teacher gives a topic, a level and a duration, and the AI assembles a timed plan. The decision that shaped the screen was what happens next. A generated lesson that goes straight to students would save the most time, and it would also remove the teacher's judgment from the one place it matters. So the result lands as editable steps, each with its type and minutes, under a line that reads "Lesson ready. You review it and decide what stays."

The plan fills a time budget, so the teacher sees at a glance whether the lesson fits the hour before editing it.
The same structure in a real lesson: nine steps, each with its activity type and duration, filling 60 of 60 minutes.

07Build and code

Rules that are tested, not remembered

In code the system is 32 atoms, 14 molecules and 12 organisms, with one rule about direction: organisms may use molecules, molecules may use atoms, and nothing in those layers imports feature code. The tokens live in a single stylesheet, which is the source of truth for both the app and the Figma file.

The accessibility rules are enforced by tests. Every colour pair the interface renders is checked against WCAG AA, calculated from the real stylesheet. The brand blue, #0563A8, carries white text at 6.26:1 and is dark enough to work as text on a light surface too, so it needs no separate ink token. When a token changes and a pair fails, the fix is to change the token, not to lower the threshold.

32 · 14 · 12
atoms, molecules, organisms
113
design-system assertions in 5 test files
6.26:1
contrast of white on the brand blue
26
end-to-end specs covering the main flows
The internal admin gets the same care as the product: system health, presence and diagnostics, each with its states.

08Research

Tickets are my user research

Teachers and school owners have a help widget inside the product with guides, a changelog and a ticket form. A ticket carries the page the person was on and their browser, so I never have to ask where they were. It reaches me as a draft user story, and I decide whether the answer is a copy change, a different pattern or a new flow. Across 53 closed tickets, the median time from opening to closing was about a day.

Four of them, chosen because they changed how a screen works and not just what it says. I name no school or person.

  1. 01 · Dashboard

    The status I needed was one click too deep

    Before: a mark inside each student's profile. Now: a status in the column the administrator already reads.
    What happened
    A school administrator wanted to know whether teachers were following the material. The "off the trail" mark existed, but only inside the student profile, so checking meant opening each one.
    What I decided
    Show it where the eye already is: the lesson status column on the dashboard, next to "Finished" and "No show". Same place, same pattern, no new screen.

    Ticket closed the same day it was opened.

  2. 02 · Undo

    A mistake with no way back

    Reopen lives in the history, asks once, and the row reflects the new state right away.
    What happened
    A school marked a lesson as finished by mistake and could not find how to undo it. "Reopen" existed, but only in the stage menu of the learning trail. Off-trail lessons had no button, and a lesson finished before its scheduled time did not show in the history at all.
    What I decided
    Put Reopen in the history of the student profile, behind a confirmation, for the people allowed to use it. A manager who could see the button but got an error is the same rule: show an action only to the roles that can complete it.

    Designed and specified. Not shipped yet.

  3. 03 · States

    The banner that covered its own exit

    The panel starts below the banner, so its title and close button are never hidden.
    What happened
    While an owner views the app as a teacher, a yellow banner stays on top. It covered the header of the teacher manual panel, hiding the title and the close button, and the first click on "Exit" only closed the panel.
    What I decided
    The panel starts below the banner, and one click on Exit leaves the mode. Found in QA, not by a customer, by running the two features together.

    Closed two days after it was reported.

  4. 04 · AI homework

    More exercises, fewer finished homeworks

    Proposal: one button per exercise type with progress inside. Hand-in within 7 days fell from 44% to 30% when exercises went from 3 to 9.
    What happened
    After a change on 9 November, the median homework went from 3 exercises to 9. In the school's own usage, the share handed in within 7 days fell from 44% to 30%, while the median time dropped from 5.9 to 4.8 minutes.
    What I decided
    My hypothesis is that nine separate buttons make the task look bigger than it is. The proposal is one button per exercise type with progress inside it (1/3, 2/3, 3/3). The cause is not proven, so the first step is asking the teacher which screen they saw it on.

    Open. Measured, not yet solved.

How the public site shows it: a school asks, a person answers, and the request ships.

09Measuring

What 30 days of Clarity say, and what I do about it

Microsoft Clarity runs on the product, loaded only after a visitor accepts analytics in the cookie banner; someone who picks "essential only" is never recorded. In the last 30 days it logged 386 sessions from 77 people, with 6.5 pages and 5.2 active minutes per session. Two of the signals are good news and two are work to do.

The Clarity dashboard for ilevar, last 30 days.

68%

Returning sessions

How I read it

263 of 386 sessions come from people who have been here before. It is used as a tool, not visited once.

What I do with it

Keep the first screen about what comes next, not about features.

1.04%

Rage clicks

How I read it

Four sessions. People are not fighting the interface.

What I do with it

Few enough to watch each recording.

38.6%

Dead clicks

How I read it

High. In 149 sessions someone clicked something that did nothing. My hypothesis: cards, rows and badges that look interactive and are not.

What I do with it

Heatmaps page by page to find which elements; then either make them clickable or remove the affordance.

47.7%

Quick backs

How I read it

High. In 184 sessions someone opened a page and came straight back. My hypothesis: some menu labels do not predict where they lead.

What I do with it

Find which navigations cause it; it lines up with the open question about Library, Lessons and Templates.

The same questions were already on my list from mapping the flows, which is what makes the numbers useful. These are the ones I am validating next:

  • Whether teachers understand the difference between Library, Lessons and Templates without being told.
  • Who confirms a pending booking, and whether both sides can tell pending from confirmed at a glance.
  • Whether the single onboarding screen is enough for a new teacher. I built a guided tour and removed it two days later; the question it was answering is still open.
  • The full class-group path on mobile: group, members, lesson, attendance, summary.

10Under the hood

The stack, briefly

Framework
Next.js 16 (App Router), React 19, TypeScript
Interface
Tailwind CSS 4, shadcn/ui, Motion
Data
PostgreSQL on Supabase, Prisma, 57 models
Auth
Auth.js (NextAuth v5)
Live video
WebRTC for 1:1, Cloudflare Calls for class groups
AI
OpenRouter for lesson and homework generation
Payments
Stripe: subscriptions, add-ons and Connect payouts
Quality
Vitest and Playwright; 26 end-to-end specs

The repository has more than 2,500 commits and 680 merged pull requests since May 2026. I use Claude Code as a pair for refactors and for keeping token usage consistent across the codebase; the design decisions and the review are mine.

Design, code and support, from one person

ilevar is how I like to work: close enough to the code to ship the component, and close enough to the users to hear when it fails. If that is the kind of UX Engineer you are hiring, let's talk.