Skip to content

Add batched glyph previews - #151

Merged
kostyafarber merged 5 commits into
mainfrom
agent/tanstack-query-foundation
Jul 16, 2026
Merged

Add batched glyph previews#151
kostyafarber merged 5 commits into
mainfrom
agent/tanstack-query-foundation

Conversation

@kostyafarber

@kostyafarber kostyafarber commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add TanStack Query at the renderer composition root with local-workspace defaults
  • add a lightweight batched glyph-preview DTO and NAPI/workspace query
  • adapt the merged FontProjection into flattened SVG paths and root advances without hydrating editable renderer glyph models
  • load stable visible-grid chunks by document, internal design location, and glyph identity; cached chunks survive fast scrolling and stale location results cannot replace the active location
  • preserve the distinction between missing glyphs and present blank glyphs
  • align local development, CI, performance jobs, and pnpm engine enforcement on Node 24 LTS

Why

Large designspace fonts made the home grid hydrate complete live glyph models, interpolation data, and component trees for every visible cell. That work blocked useful previews and produced flicker while scrolling. This change keeps authoring semantics in shift-font, exposes only the compact projection the grid needs, and lets TanStack Query own fixed-chunk reuse and stale-result isolation.

Closes #150.

Validation

  • cargo test -p shift-font -p shift-wire
  • cargo check -p shift-bridge
  • cargo clippy --workspace --all-targets -- -D warnings
  • pnpm typecheck
  • pnpm format:check
  • pnpm lint:check
  • pnpm install --frozen-lockfile --ignore-scripts under Node 24
  • complete pre-commit suite, including Rust tests, dead-code checks, and pnpm test

@kostyafarber
kostyafarber force-pushed the agent/tanstack-query-foundation branch from 3cead33 to bfb4234 Compare July 16, 2026 13:12
@kostyafarber
kostyafarber marked this pull request as ready for review July 16, 2026 13:13
@kostyafarber kostyafarber changed the title Add TanStack Query foundation Add batched glyph previews Jul 16, 2026
@kostyafarber
kostyafarber marked this pull request as draft July 16, 2026 13:13
@kostyafarber
kostyafarber marked this pull request as ready for review July 16, 2026 13:16
@kostyafarber
kostyafarber merged commit e4a2ab8 into main Jul 16, 2026
11 of 12 checks passed
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.

Add lightweight batched glyph previews at a design location

1 participant