Skip to content
Rubén García García
All projects
In development

Strategium

Army list building and validation for Warhammer 40,000.

My role
Personal product, frontend focus
Stack
Next.js 16, React 19, TypeScript, Tailwind CSS 4, TanStack Query, Zustand, React Hook Form, Zod, Playwright, Vitest

Context

A personal product in development. Players build, validate and publish army lists, follow other players, comment on lists and send private messages.

Problem

A valid list depends on many interlocking rules. The editor has to flag each problem while you edit, without losing the draft or blocking the interface.

How data flows

  1. Editor (Zustand)
  2. Validation (Zod)
  3. TanStack Query
  4. Next.js App Router

Decisions

  1. Local draft kept apart from server data

    Zustand holds the editable draft and pending changes; TanStack Query syncs, caches and invalidates remote data. There are never two server caches.

  2. Forms with declared rules

    React Hook Form manages form state and Zod defines the constraints, shared with list validation.

  3. Interface built on accessible primitives

    Tailwind CSS 4 with shadcn/ui components on Base UI, browser tests with Playwright and unit tests with Vitest.

  4. AI as support, decisions my own

    I built the back-end (Prisma, PostgreSQL, Better Auth) with help from Codex. I first design and implement a solution, then ask for alternatives, review the proposal and decide.

Outcome

Sign-up and sign-in, list building, following, private messages and comments already work. It has not been released yet.

Screenshots

Strategium list editor with the Tyranids catalogue, an 830/2000 pt army and three validation warnings shown (desktop, light theme).Saved list view: Invasion Swarm, 830 pts, units grouped by role and pending-validation status (desktop, light theme).Strategium list editor with the Tyranids catalogue, an 830/2000 pt army and three validation warnings shown (mobile, light theme).
Next projectAtelier Commerce