Chapter 2 Assignment
Add a field and feel the wave
The brief
Add an `IsFeatured bool` field to the Product model in the Go API. Run `grit sync`. Confirm the TypeScript type and Zod schema both regenerate, and that web / admin / mobile / desktop all type-check against the new field without any per-surface edits.
You've completed this when
- IsFeatured appears in shared/types/product.ts
- IsFeatured appears in shared/zod/product.ts
- TS build passes on web + admin + mobile + desktop
- No per-surface edits needed beyond using the new field
Worked through every criterion?
Push your code to GitHub, paste the link in your notes.md, and move on.
Continue to ch.3: Building a Feature Across All Three