Skip to content

feat: corpus-back all Lenis integration patterns#82

Merged
KailasMahavarkar merged 6 commits intomainfrom
feat/corpus-lenis-patterns
Apr 21, 2026
Merged

feat: corpus-back all Lenis integration patterns#82
KailasMahavarkar merged 6 commits intomainfrom
feat/corpus-lenis-patterns

Conversation

@KailasMahavarkar
Copy link
Copy Markdown
Collaborator

Summary

  • Migrates the remaining 6 Lenis patterns (full-page, next-js, framer-motion-integration, custom-container, scroll-to-nav, accessibility) from in-file snippets to corpus/frontend/lenis/<name>.yaml slices
  • gsap-integration was already corpus-backed; this branch brings the rest under the same pattern
  • Each slice is registered in corpus/frontend/lenis/index.yaml
  • tests/lenis-pattern-corpus-backed-tools-behaviour.test.ts now asserts Corpus Source: frontend.lenis for every pattern the tool exposes

Test plan

  • bun test tests/lenis-pattern-corpus-backed-tools-behaviour.test.ts - 7 pass
  • bun run build - typecheck exit 0
  • Full regression across 19 test files - no failures

KailasMahavarkar and others added 6 commits April 22, 2026 02:05
Adds corpus/frontend/lenis/full-page.yaml with the root layout ReactLenis wrapper pattern.
Registers full-page in namespace index.
Test asserts corpus source for full-page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/lenis/next-js.yaml with the App Router SmoothScrollProvider wrapper.
Registers next-js in namespace index.
Test asserts corpus source for next-js.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…d slice

Adds corpus/frontend/lenis/framer-motion-integration.yaml with the frame.update sync pattern for Motion v11+.
Registers framer-motion-integration in namespace index.
Test asserts corpus source for framer-motion-integration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/lenis/custom-container.yaml with scoped wrapper/content ref scroll pattern.
Registers custom-container in namespace index.
Test asserts corpus source for custom-container.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/lenis/scroll-to-nav.yaml with the smooth anchor NavLink component pattern.
Registers scroll-to-nav in namespace index.
Test asserts corpus source for scroll-to-nav.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds corpus/frontend/lenis/accessibility.yaml with the prefers-reduced-motion gated AccessibleSmoothScrollProvider.
Registers accessibility in namespace index so all 7 Lenis patterns are now corpus-backed.
Test asserts corpus source for accessibility; the former fallback assertion is replaced because no un-migrated pattern remains.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@KailasMahavarkar KailasMahavarkar merged commit 03259d4 into main Apr 21, 2026
4 checks passed
@KailasMahavarkar KailasMahavarkar deleted the feat/corpus-lenis-patterns branch April 21, 2026 20:40
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.

1 participant