Add LaravelPaginator component and Gooey plugin#42
Merged
stevethomas merged 8 commits intomainfrom Mar 12, 2026
Merged
Conversation
Introduces a server-driven pagination component for Laravel apps that auto-detects LengthAwarePaginator vs CursorPaginator responses. Adds a createGooey() plugin so consumers can configure their framework's link component (Inertia Link, NuxtLink, etc.) once at app setup — falls back to plain <a> tags for backwards compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Description section, props table, framework setup examples for both Inertia and Nuxt, and improved code samples with type annotations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Laravel's links array always has prev/next as first/last entries with HTML entities in labels. Skip by index instead of string matching. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LaravelPaginatorcomponent that auto-detectsLengthAwarePaginatorvsCursorPaginatorresponses and renders appropriate navigationgooeyVue plugin so consumers configure their framework's link component once (Linkfor Inertia,NuxtLinkfor Nuxt) — falls back to plain<a>tags if not configuredGooeyLinkinternal component,CursorPaginatorResponse<T>global type, showcase page with docs, and Cypress smoke testsAnything the reviewer needs to know
<a>tag fallback.gooeyplugin andGooeyOptionstype are exported from the library entry point for consumer setup.GooeyLinkis intentionally NOT exported — internal implementation detail only.Paginator<T>andCursorPaginatorResponse<T>types are globally declared — no import needed for consumers.linksarray prev/next entries are skipped by index (first/last) to avoid HTML entity matching issues.🤖 Generated with Claude Code