# Pebbler® Admin Dashboard

- [Case study](https://tesselpunt.com/projects/pebbler-admin)

An operations console with AI workflows for localising game headers and producing quest artwork.

The tools behind the product.

Role: Workflow design & full-stack engineering

Period: 2025 — present

Technologies: React, TypeScript, OpenAI, Gemini, Storybook

I built the React and TypeScript operations console used to manage Pebbler’s content and workflows. Its tools cover content releases, campaigns, asset catalogues and AI image production.

Two recurring production tasks shaped Image Studio: adapting illustrated headers for different locales, and creating consistent quest cards for Pebbler Telegram. Bringing recipes, references, review and exports into one workspace made both tasks quicker and easier in daily use.

## Quest artwork, with room to iterate

Boards turn a list of quests into a review workspace. Each card keeps its prompt, ordered style references, candidate history and chosen winner. I can revise one quest and generate more alternatives while keeping its position and previous selection.

The saved Oil Rig Worker board contains 14 quests, 92 attempts and 14 selected winners. “Survive Someone Else’s Shortcut” went through 12 candidates; its prompt was revised to explicitly request a square quest image, and candidate 9 was chosen. Every candidate retains the inputs used at the time, even after the current draft changes.

This preview uses the production board and comparison components with three recorded quests. It includes four candidates each for “Dodge the Swinging Pipe” and “Watch the Shakers”, plus candidates 7–12 for “Survive Someone Else’s Shortcut”. New generation is simulated with that artwork; the code browser identifies the application source and the portfolio controller.

### Interactive demo: Image Studio · Boards

Compare recorded Oil Rig Worker candidates, inspect their original inputs and choose winners. Generation replays existing artwork; references stay local and export saves a selection manifest.

- [Try the demo](https://tesselpunt.com/projects/pebbler-admin#demo-image-studio)

- [Workspace — StudioBoardWorkspace.tsx](https://tesselpunt.com/demo-code/image-studio/StudioBoardWorkspace.tsx-f23dda5fcb4d.md): Application source

- [Styles — ImageStudioBoardsPage.scss](https://tesselpunt.com/demo-code/image-studio/ImageStudioBoardsPage.scss-6da897bac616.md): Application source

- [Demo setup — Boards.tsx](https://tesselpunt.com/demo-code/image-studio/Boards.tsx-7150f6e82c2c.md): Portfolio adapter & sample data

- [Draft & recovery — useImageStudioBoards.ts](https://tesselpunt.com/demo-code/image-studio/useImageStudioBoards.ts-9cb8b251deed.md): Application source

- [Recorded examples — recordings.ts](https://tesselpunt.com/demo-code/image-studio/recordings.ts-5b60a4d9992d.md): Recorded data & portfolio adapter

## One recipe, twenty locale variants

Illustrated game headers combine lettering with a specific art style. Create images lets me supply the source artwork and a key/value list of translated text, then expand one prompt and filename template into a batch. The locale key names the exported file; the supplied value becomes the text in the generation prompt.

The recorded VIP bundle batch produced 20 locale variants from one reference, using GPT Image 2 with transparent WebP output. The gallery makes it practical to inspect different scripts and longer strings together, then retry an individual output without rerunning successful images. The translations are supplied by the operator; this workflow generates the artwork.

The preview below reuses the application’s variable editor and recipe validation. It shows the original outputs, expanded inputs and a simulated failure/retry scenario. Edited recipes can be inspected without presenting the recorded artwork as newly generated results.

### Interactive demo: Image Studio · Localisation

Explore the recorded VIP header batch, edit the key/value recipe and inspect expanded prompts and filenames. Replay and retry are simulated; downloads contain the original recorded images.

- [Try the demo](https://tesselpunt.com/projects/pebbler-admin#demo-image-localisation)

- [Variable editor — ImageStudioVariableEditor.tsx](https://tesselpunt.com/demo-code/image-localisation/ImageStudioVariableEditor.tsx-5042d0928757.md): Application source

- [Draft validation — imageStudioDraft.ts](https://tesselpunt.com/demo-code/image-localisation/imageStudioDraft.ts-18c85bac0d45.md): Application source

- [Demo controller — Localisation.tsx](https://tesselpunt.com/demo-code/image-localisation/Localisation.tsx-a5bf01d42146.md): Portfolio adapter & sample data

- [Recorded examples — recordings.ts](https://tesselpunt.com/demo-code/image-localisation/recordings.ts-5b60a4d9992d.md): Recorded data & portfolio adapter

- [Preview styles — scene.scss](https://tesselpunt.com/demo-code/image-localisation/scene.scss-ebac1a29de37.md): Portfolio adapter & sample data

## Keep editing while work is in flight

A save response can arrive after the operator has already made another edit. The board controller compares the submitted draft with the latest local draft, so an older response cannot replace newer work. Generation waits for the current draft to be saved and captures its inputs separately from later edits.

Local draft persistence and revision checks protect work across reloads and server conflicts. Candidate history keeps the original prompt, references and model settings, so repeating an earlier attempt does not silently use the current draft.

## Recovery by design

Paid generation needs careful recovery. The worker records a request’s submission state before calling a provider. Explicit rate limits can be retried with backoff; an uncertain response is held for inspection instead of automatically risking a duplicate paid request. A generation receipt also lets the board recover from a lost server response without creating another run.

This mattered in a recorded “KEEP PLAYING!” localisation run: the Vietnamese output was cancelled and then failed across several attempts before its sixth attempt completed. The history retained those outcomes and the successful image rather than hiding the failed work.

Focused tests cover draft restoration, attempt selection, progress reporting and stable board state. Browser scenarios exercise edits during an in-flight save and recovery after a lost generation response. Storybook scenarios cover candidate review and its interface states.

## Built for daily operation

The studio lives alongside content releases, campaigns and asset catalogues. Production exports preserve the generated image bytes and include a manifest of the selected attempts or winners, connecting creative review to the files that the applications use.

The benefit here is practical: faster localisation of illustrated headers and faster creation of quest artwork, with recipes and candidate history ready for the next content release.

## Screenshots

### Image Studio workspace

Real Oil Rig Worker quest artwork, ordered references and recorded candidate comparisons.

Image description: Pebbler Image Studio with image candidate cards and a prompt editor

Application workspace with recorded artwork and simulated generation.

- [Image](https://tesselpunt.com/media/image-studio-large.webp)

- [Screenshot page](https://tesselpunt.com/projects/pebbler-admin/gallery/image-studio)
