-
Notifications
You must be signed in to change notification settings - Fork 12
Workshop Index - lazy load #588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| <div class="filters-applied w-full flex gap-3 items-center"> | ||
| <h3 class="text-sm font-semibold uppercase text-gray-500 tracking-wide">Workshops (<%= @workshops.total_entries %>)</h3> | ||
| <h3 class="text-sm font-semibold uppercase text-gray-500 tracking-wide"> | ||
| Workshops (<%= @workshops&.total_entries || "" %>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you've sold me. i think we should remove the count from the header and just include the "count_display" here.
but for workshops it's a little tricky bc we don't have a filtered and unfiltered count available from the search service. i guess we could just use Workshop.all for unfiltered.
(but prob should be if current_user.super_user Workshop.all : Workshop.published)
| <div class="flex items-start justify-between mb-6"> | ||
| <div class="pr-6"> | ||
| <h2 class="text-2xl font-semibold mb-2">Workshops (<%= @workshops_count %>)</h2> | ||
| <h2 class="text-2xl font-semibold mb-2">Workshops</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, agree
maebeale
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💥 love this!!!
What is the goal of this PR and why is this important?
Follow pattern of Resource Index and lazy load the workshop results
How did you approach the change?
Anything else to add?
screenrecording-2025-12-27_11-43-22.mp4