Study interactive :: Progress tools open in the Study Hub reader.

Phase F: Advanced Frontend Engineering (In-Repo Lessons)

Maps to: Blueprint Phase F

Goal: Build dashboards and data-heavy UIs with predictable auth, caching, and URL-driven state.


Table of Contents


Lesson 1: Typed API contracts

Generate or hand-maintain types for API responses. The goal is to catch drift when the backend changes.

Even without codegen, Zod schemas can validate unknown JSON at runtime.


Lesson 2: Auth in the browser vs server

Cookies (HttpOnly) are often preferred for session tokens to reduce XSS blast radius compared to localStorage access tokens.

Whatever you choose, document:


Lesson 3: Data fetching patterns

You will mix:

Understand cache keys and stale times; avoid refetch storms on navigation.


Lesson 4: Tables, filters, and URL state

Make list pages shareable: encode filters/sort/page in the query string.

Debounce search inputs; cancel in-flight requests when parameters change.


Lesson 5: Performance and UX guardrails


Exercises

  1. Build a paginated table where sorting and filters round-trip through the URL.
  2. Implement a global 401 handler that refreshes tokens once and retries safely.
  3. Add optimistic updates for one mutation and document rollback behavior.

Next step

Phase G: Containers & delivery