All projects

Case study 03 — Frontend

Dev Stack

A quiet tool for assembling a development stack. Browse a curated set of technologies, add the ones you actually use, and keep the list somewhere you can see it — no account, no dashboard, no noise.

Role
Solo — design & build
Timeline
2025
Type
Stack builder
Status
Live on Render
Focus
React state & typed props
Dev Stack homepage with the technology grid

Why I built it

I wanted a small, honest project to get fluent with React state after spending most of my time on backends. Not a tutorial clone — a real interface with a real list, a real selection model, and enough edge cases to make the state decisions visible.

Dev Stack is deliberately local. A JSON file holds the technology catalogue; the app lets you browse it, add items to a stack, and remove them again. There is no database and no auth, because the exercise was component boundaries and state ownership, not infrastructure.

What's in it

  • A responsive grid of technologies with icon, badge, name, description, category, difficulty and rating.
  • A "Your Stack" sidebar that tracks selections and shows an empty state before anything is added.
  • Add and remove one item at a time, or clear the whole stack.
  • Duplicate prevention — the button reflects whether an item is already in the stack.
  • Toast feedback through React Toastify for every add and remove.
  • Loading, error and empty states, with category badges driven by a lookup rather than scattered conditionals.

The parts that took thought

01

One owner for the stack

The first version kept a little state in every card, which meant the sidebar and the button could disagree about what was selected. I moved the stack and the catalogue into App, typed the data once, and passed down props plus a callback for changes. The card no longer decides anything; it reports an event. That single change removed the inconsistent UI.

02

Preventing duplicates at the data layer

Disabling a button is a hint, not a guarantee. The add handler checks the stack by id before appending, so a double click or a stale render cannot produce two copies. The button state is then derived from the same array, which keeps the visual and the data in agreement.

03

Categories without a wall of conditionals

Each technology belongs to a category, and each category has its own badge colour. Writing an if/else per card would have spread styling logic across the tree. A single category-to-style map gives every badge one source of truth and makes adding a category a one-line change.

04

Fetching JSON without blocking the page

The catalogue loads in a useEffect with loading and error states, so the shell renders immediately and the grid fills in when the file arrives. It sounds basic, but it is the difference between a page that feels instant and one that flashes an empty layout.

What I would improve next

  • Persist the stack in localStorage and support a shareable URL.
  • Filter by category and search by name — the catalogue will outgrow a single scroll.
  • Reorder the stack by dragging, with keyboard controls as the accessible path.
  • Compare two stacks side by side.
  • Move the catalogue behind a small API and add tests for the selection reducer.