Skip to content

Conversation

@jmilljr24
Copy link
Collaborator

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

@jmilljr24 jmilljr24 requested a review from maebeale December 27, 2025 16:44
<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 || "" %>)
Copy link
Collaborator

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>
Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah, agree

Copy link
Collaborator

@maebeale maebeale left a comment

Choose a reason for hiding this comment

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

💥 love this!!!

@jmilljr24 jmilljr24 merged commit c57a923 into main Dec 27, 2025
2 checks passed
@jmilljr24 jmilljr24 deleted the workshop-index-lazy branch December 27, 2025 23:30
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.

3 participants