Skip to content

Conversation

@bwl21
Copy link
Owner

@bwl21 bwl21 commented Nov 19, 2025

Summary

This PR adds loading spinners to all refresh buttons across the dashboard and significantly improves the Logger admin panel user experience.

Changes

Refresh Button Spinners

  • ✅ Added loading spinners to all refresh buttons (BaseCard, all Admin panels)
  • ✅ Swapped button order: Details (left) → Refresh (right)
  • ✅ Fixed loading state detection using isFetching for manual refreshes
  • ✅ Consistent spinner styling across all components

Logger Component Cleanup

  • ✅ Removed legacy LoggerSummaryAdmin.vue (806 lines, unused)
  • ✅ Renamed LoggerSummaryAdminBulk.vue to LoggerSummaryAdmin.vue
  • ✅ Simplified naming and removed "(Bulk Cache)" from title

Logger Admin Panel UX Improvements

  • ✅ Fixed table title to show correct filtered count (not just paginated 50)
  • ✅ Added dynamic title showing active filters: "Logger System - Letzter Tag - Fehler"
  • ✅ Removed custom pagination in favor of AdminTable's built-in features
  • ✅ Fixed search functionality (removed duplicate search fields)
  • ✅ Changed default from 3 days to 1 day for both Card and Admin
  • ✅ Increased Card log limit from 1000 to 1500 entries
  • ✅ Added "1500+" display when Card hits log limit

Technical Details

Loading State Management

  • Combined isLoading and isFetching from TanStack Query
  • Ensures spinner shows during manual refresh operations

Pagination Simplification

  • Removed custom pagination that conflicted with AdminTable search
  • All filtered logs now searchable (not just current page)

Consistency Improvements

  • Both Card and Admin use 1 day as default
  • Better alignment between Card count and Admin count

Testing

  • ✅ All changes pass npm run lint
  • ✅ Tested refresh buttons in all admin panels
  • ✅ Verified search functionality in Logger admin
  • ✅ Confirmed "1500+" display when limit reached

Documentation

  • Session documentation added: docs/DEVELOPMENT_SESSION_2025-11-19_Refresh_Button_Spinner.md

Commits

  1. feat: add loading spinner to refresh buttons
  2. feat: add refresh button with spinner to logger admin panels
  3. refactor: remove unused LoggerSummaryAdmin component
  4. refactor: rename LoggerSummaryAdminBulk to LoggerSummaryAdmin
  5. feat: improve logger admin panel UX and fix table display
  6. docs: add session documentation for refresh button spinner feature

Co-authored-by: Ona no-reply@ona.com

bwl21 and others added 6 commits November 19, 2025 18:32
- Add spinner animation to refresh buttons in BaseCard and all admin views
- Swap button order in BaseCard footer (Details left, Refresh right)
- Use isFetching in AutomaticGroupsAdmin for better loading state detection
- Consistent spinner styling across all components

Co-authored-by: Ona <no-reply@ona.com>
- Add refresh button with loading spinner to LoggerSummaryAdminBulk
- Add spinner to LoggerSummaryAdmin for consistency
- Fix button styling to match other admin panels
- Use isFetching for better loading state detection in bulk cache
- Change default days filter from 3 to 1 in bulk view

Co-authored-by: Ona <no-reply@ona.com>
- Remove LoggerSummaryAdmin.vue (legacy version, not used in production)
- Remove unused import from App.vue
- LoggerSummaryAdminBulk is the active version with better caching
- Keep useLoggerSummary.ts as it exports types used by useLoggerBulkCache

Co-authored-by: Ona <no-reply@ona.com>
- Rename LoggerSummaryAdminBulk.vue to LoggerSummaryAdmin.vue
- Update imports in App.vue
- Remove '(Bulk Cache)' from component title
- Now that legacy version is removed, bulk version becomes the standard

Co-authored-by: Ona <no-reply@ona.com>
- Fix table title to show correct filtered count instead of paginated count
- Add dynamic title showing active filters (days, category)
- Remove custom pagination in favor of AdminTable's built-in features
- Enable AdminTable search to work across all filtered logs
- Change both Card and Admin to use 1 day as default
- Increase Card log limit from 1000 to 1500 entries
- Show '1500+' in Card when log limit is reached
- Remove duplicate search field issue
- Fix goToPage undefined error

Co-authored-by: Ona <no-reply@ona.com>
- Document all phases of implementation
- Record technical decisions and rationale
- Capture lessons learned for future reference
- Include package.json version bump

Co-authored-by: Ona <no-reply@ona.com>
@bwl21 bwl21 merged commit db26523 into main Nov 20, 2025
1 check passed
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.

2 participants