Description
Improve search experience by showing result count and helpful message when no errors match filters.
Current Behavior
- When filters return no results, page shows empty list
- No indication of how many results were found
- Users may not realize filters are too restrictive
Desired Behavior
- Result count: Show "Showing X of Y errors" above list
- No results message: When list is empty, show helpful message:
- "No errors found matching your filters"
- Suggest removing some filters
- Show "Clear all filters" button
- Empty state: When truly no errors exist, show different message:
- "No errors logged yet"
- Show helpful onboarding text
Implementation Hints
- Check
@errors.total_count (from Pagy) for filtered count
- Check
ErrorLog.count for total count
- Display above error list table
- Add conditional rendering:
if @errors.empty?
- Style with Bootstrap alert component
Files to Modify
/app/views/rails_error_dashboard/errors/index.html.erb - Add count and empty state
/app/controllers/rails_error_dashboard/errors_controller.rb - May need to expose total count
Example UI
Showing 23 of 156 errors
[Error list...]
When no results:
┌─────────────────────────────────────┐
│ 🔍 No errors found │
│ │
│ Try removing some filters or │
│ [Clear All Filters] button │
└─────────────────────────────────────┘
Good First Issue Because
- Simple view changes
- Improves UX significantly
- Easy to test visually
- Minimal backend changes
Nice to Have
- Animated empty state icon
- Show which filters are active
- Link to clear individual filters
Description
Improve search experience by showing result count and helpful message when no errors match filters.
Current Behavior
Desired Behavior
Implementation Hints
@errors.total_count(from Pagy) for filtered countErrorLog.countfor total countif @errors.empty?Files to Modify
/app/views/rails_error_dashboard/errors/index.html.erb- Add count and empty state/app/controllers/rails_error_dashboard/errors_controller.rb- May need to expose total countExample UI
When no results:
Good First Issue Because
Nice to Have