Aurelia Jewellery
Luxury e-commerce with admin operations and realtime order updates
- Role
- Sole frontend engineer — storefront, admin UI, client state, API integration, and realtime notification layer.
- Timeline
- Personal product build — design through deployment on Vite and Vercel.
- Code
- Private repository

Context
Aurelia is a jewellery storefront where customers browse collections, manage a cart, and complete a simulated checkout while staff manage catalogue, orders, and fulfilment from a separate admin surface. The product needed clear separation between shopper and operator flows without duplicating business rules in the UI.
Constraints
- Storefront and admin must share product and order truth without conflicting optimistic updates.
- Catalogue imagery and collection browsing need to stay responsive on mid-tier mobile hardware.
- Order status changes should reach operators without manual refresh during active fulfilment.
- Checkout stays simulated for the demo, but cart and order flows must mirror production edge cases.
Architecture
- React + TypeScript + Vite client with route-level split between storefront and admin experiences.
- TanStack Query owns server state, cache invalidation, and loading/error boundaries for catalogue and orders.
- Zustand holds session-local UI state such as cart composition and lightweight admin panel context.
- REST APIs back catalogue, cart, checkout, and order management; Socket.IO pushes order and notification events to connected admin clients.
- TailwindCSS tokens keep storefront and admin visually aligned while allowing denser operator layouts.
Key decisions
TanStack Query for catalogue and orders
Instead ofRedux Toolkit Query or ad hoc fetch hooks per screen
WhyQuery cache policies keep list/detail views consistent after mutations and reduce bespoke loading/error wiring across storefront and admin.
Zustand for cart and lightweight admin UI state
Instead ofRedux or Context-only cart
WhyCart updates are frequent but local; Zustand avoids boilerplate while keeping server truth in Query instead of duplicating order data client-side.
Socket.IO channel for operator notifications
Instead ofPolling order lists or manual refresh
WhyFulfilment screens benefit from immediate visibility when a new order lands or status changes, without aggressive polling load on the API.
Simulated checkout instead of live Stripe in the demo
Instead ofStripe test mode end-to-end
WhyThe portfolio focus is client architecture and operational workflows; payment capture was deferred while cart, order creation, and admin handling stayed production-shaped.
Hard problems
Keeping storefront and admin views consistent after mutations
Tried: Local component state updates after POST/PATCH calls caused stale list rows when navigating back from detail views.
Shipped: Mutation hooks invalidate the relevant Query keys so catalogue, cart, and order tables reconcile from the server after each change.
Realtime updates without noisy reconnect loops
Tried: Opening a socket on every admin screen remount produced duplicate listeners during route changes.
Shipped: A single client connection with scoped event handlers and teardown on layout unmount keeps notifications reliable during a shift.
Dense admin tables on small viewports
Tried: Reusing storefront card layouts made order review slow for operators on tablets.
Shipped: Admin-specific table density, sticky actions, and progressive disclosure for line-item detail on narrow breakpoints.
Outcomes
- 2surfaces shipped from one client codebase (storefront + admin)
- Liveoperator notifications on order events
- Query + Zustandsplit between server truth and session UI state
What I'd do next
- Add Stripe test-mode checkout with webhook-driven order confirmation.
- Harden admin auth boundaries and role-based action guards with integration tests around mutation paths.
- Instrument Core Web Vitals on collection pages and lazy-load hero media on slow connections.