Hanlun 2025–2026Next.js prototypeReact · TypeScript productionPull requests merged by the team
Twelve years designing internal platforms, CRM and operations software. On Hanlun’s DSE practice platform I built the working Next.js prototype, then contributed frontend code to the production React and TypeScript apps through pull requests merged by the team’s engineers.
$ gh pr list --author grace --state merged
- feat(student,teacher): show the passing rate each attempt was judged atMergedJul 2026
- fix(annotate): Apple Pencil reminder, iPad only, both languagesMergedJun 2026
- feat(theme): subject palettes on shared CSS variables, contrast storiesMergedJul 2026
- … and more · Feb–Oct 2026 · merged by three engineers
Three merged changes in Hanlun’s production apps
The passing rate an attempt was judged at
- Problem
- Teachers can change a quiz’s passing rate, and earlier attempts keep the rate they were judged at. Both apps needed to show that rate with each attempt, the same way for students and teachers.
- I implemented
- Another engineer stores each attempt’s rate at submission. I exposed that stored rate to both apps and placed it beside every attempt: an always-visible pass or fail pill, with the rate next to the submission time, for students and teachers alike.
- Behaviour
- History stays correct. A new rate only applies to attempts submitted after it, and a unit test pins attempts to their stored rate, not today’s.
Reconstructed demo · synthetic data
- Attempt 1Fail45%
- Attempt 2Pass55%
{ score: 55, passRateAtSubmit: 50 } — the latest attempt as both views receive it. Future attempts are judged at 50%; earlier ones keep their own rate.
Problem On iPad, a resting hand or Scribble could interfere with handwriting on the answer and marking pages.
I implemented An iPad check, including iPadOS Safari that reports itself as a Mac, and a shared reminder used on both pages, in two languages.
Behaviour Dismissal lasts for the browser session. The pull request calls it an interim fix: a device setting, not a canvas change.
Problem Each subject has its own brand colour, and a student or teacher can switch between courses.
I implemented A theme provider driven by the course’s subject, seven palettes on shared CSS variables, and Storybook stories that check text contrast.
Behaviour A subject with no mapping falls back to the default theme; one palette was adjusted to meet WCAG AA.
Personal prototype · synthetic receipts · local model
Receipt review: the model reads, code checks, a person decides
A small prototype informed by the CRM receipt workflows I designed. A free open-weight model reads a receipt and returns four fields; ordinary code checks them; a reviewer corrects and confirms.
- What the model does
- Reads the receipt’s numbered lines and returns merchant, date, currency and total, each with the line it came from. It shows no confidence score, because it has no calibrated one.
- What code decides
- Formats, conflicting readings, whether a value is on the receipt, and a made-up programme rule. Confirm stays locked until every flag is resolved, and the history keeps the model’s reading next to each correction.
- Trade-off
- The model cites a line number instead of quoting the line. Quoting made the local model copy the whole receipt and, on one receipt, repeat it until the request timed out. A number is shorter, and code can check it exists.
- What went wrong
- On a receipt dated 03/11/2026 the model chose 11 March against its instructions, and my first checks relied on the model to report ambiguity, so nothing flagged it. Dates that read two ways are now found from the receipt text itself, with a test built from that reply.
What the video shows
- An ambiguous receipt: the model returns the date 2026-03-11, the currency “$” and the total “:1280.00”.
- Code blocks the malformed currency and total, and flags the printed date because it reads either way.
- The reviewer picks the day-first date, enters HKD and the 1,208.00 actually paid, and confirms; the rule result and the history update.
- A receipt with a faded header: the model leaves the shop name and date empty, so confirmation stays blocked until the reviewer adds them.
Design to code
How a new feature reached Hanlun’s production codebase, and which code lived where.
- MeDesignflows and screens in Figma
- MePrototypea working Next.js app, Cursor-assisted
- MeBuildUI and states as Storybook stories and in the apps
- MePull requestopened by me, with screenshots
- TeamReviewscreens reviewed in the thread
- EngineerMergeafter CI passes
In the design portfolio
The product design behind this work: the rules, roles and workflows behind the interfaces. Each case opens in the design portfolio, with a link back here.