Skip to content

feat: add TypeGen, SSR transfer state, and LQIP to Angular guide#30

Merged
jwoods02 merged 3 commits intomainfrom
feat/angular-typegen
Mar 4, 2026
Merged

feat: add TypeGen, SSR transfer state, and LQIP to Angular guide#30
jwoods02 merged 3 commits intomainfrom
feat/angular-typegen

Conversation

@nkgentile
Copy link
Copy Markdown
Contributor

Summary

Builds on #27 to add TypeGen integration, SSR performance, and image optimization guidance to the Angular guide.

  • TypeGen: Wrap all queries in defineQuery, add monorepo config note for sanity.cli.ts, type SanityService.fetch with ClientReturn<Query> and QueryParams from @sanity/client to preserve declaration-merged overloads
  • SSR Transfer State: Manual TransferState pattern for @sanity/client (Angular's HTTP Transfer Cache only covers HttpClient), with SHA-256 hashed cache keys matching hydrogen-sanity's approach
  • LQIP + NgOptimizedImage: Flat image projection preserving @sanity/image-url compatibility, feeding Sanity's base64 LQIP into NgOptimizedImage's placeholder attribute
  • Housekeeping: Add Angular to groq.md framework import comment, add Angular row to AGENTS.md knowledge router

Test plan

  • Verify all query definitions use defineQuery
  • Confirm SanityService.fetch signature uses ClientReturn<Query> from @sanity/client
  • Confirm cross-references to typegen.md and image.md are present
  • Review SSR TransferState diff is additive to Section 2 service
  • Review LQIP projection preserves asset reference for image URL builder

@nkgentile nkgentile requested a review from kmelve March 4, 2026 08:51
@nkgentile nkgentile force-pushed the feat/angular-typegen branch from c27db19 to 235fce7 Compare March 4, 2026 08:56
@jwoods02 jwoods02 changed the base branch from add-angular-guide to main March 4, 2026 10:28
Copy link
Copy Markdown
Contributor

@jwoods02 jwoods02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these look like great additions to the skill, nice!

@jwoods02 jwoods02 merged commit 1de3b12 into main Mar 4, 2026
3 checks passed
@nkgentile nkgentile deleted the feat/angular-typegen branch March 4, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants